/usr/lib/ruby/2.3.0/rdf/redland/schemas/foaf.rb is in ruby-librdf 1.0.17.1+dfsg-1.3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | require 'rdf/redland'
module FOAF
NS = Redland::Namespace.new('http://xmlns.com/foaf/0.1/')
FIRST = NS['first']
SURNAME = NS['surname']
PHONE = NS['phone']
TITLE = NS['title']
MBOX = NS['mbox']
MBOXSHAL1 = NS['mbox_shal1sum']
NAME = NS['name']
NICK = NS['nick']
IMAGE = NS['image']
DEPICTION = NS['depiction']
DEPICTS = NS['depicts']
PERSON = NS['Person']
KNOWS = NS['knows']
def foaf_first(node)
@model.object(node,FOAF['firstName']).to_s
end
def foaf_name(node)
@model.object(node,NAME).to_s
end
def foaf_title(node)
@model.object(node,FOAF['title']).to_s
end
def foaf_surname(node)
@model.object(node,FOAF['surname']).to_s
end
def foaf_phone(node)
@model.object(node,FOAF['phone']).to_s
end
def foaf_namespace
return FOAF
end
def foaf_mbox(node)
@model.object(node,MBOX).to_s
end
end
|