Class: EasyData::RDF::FOAF
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::FOAF
- Defined in:
- lib/data_models/namespaces/foaf.rb
Constant Summary collapse
- @@uri =
"http://xmlns.com/foaf/0.1/"
- @@properties =
{"account" => "", "accountName" => "", "accountServiceHomepage" => "", "age" => "", "aimChatID" => "", "based_near" => "", "birthday" => "", "currentProject" => "", "depiction" => "", "depicts" => "", "dnaChecksum" => "", "familyName" => "", "family_name" => "", "firstName" => "", "fundedBy" => "", "geekcode" => "", "gender" => "", "givenName" => "", "givenname" => "", "holdsAccount" => "", "homepage" => "", "icqChatID" => "", "img" => "", "interest" => "", "isPrimaryTopicOf" => "", "jabberID" => "", "knows" => "", "lastName" => "", "logo" => "", "made" => "", "maker" => "", "mbox" => "", "mbox_sha1sum" => "", "member" => "", "membershipClass" => "", "msnChatID" => "", "myersBriggs" => "", "name" => "", "nick" => "", "openid" => "", "page" => "", "pastProject" => "", "phone" => "", "plan" => "", "primaryTopic" => "", "publications" => "", "schoolHomepage" => "", "sha1" => "", "skypeID" => "", "status" => "", "surname" => "", "theme" => "", "thumbnail" => "", "tipjar" => "", "title" => "", "topic" => "", "topic_interest" => "", "weblog" => "", "workInfoHomepage" => "", "workplaceHomepage" => "", "yahooChatID" => "" }
Class Method Summary collapse
-
.get_uri ⇒ Object
Return Namespace URI.
-
.properties ⇒ Object
Return a list of Namespace’s properties.
- .properties_form ⇒ Object
-
.to_s(property, uri, value) ⇒ Object
Return tag to rdf doc.
Methods inherited from Namespaces
Class Method Details
.get_uri ⇒ Object
Return Namespace URI
70 71 72 |
# File 'lib/data_models/namespaces/foaf.rb', line 70 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
80 81 82 |
# File 'lib/data_models/namespaces/foaf.rb', line 80 def self.properties @@properties.keys end |
.properties_form ⇒ Object
84 85 86 87 88 89 90 |
# File 'lib/data_models/namespaces/foaf.rb', line 84 def self.properties_form list = {} @@properties.keys.each do |property| list[property] = property end list end |
.to_s(property, uri, value) ⇒ Object
Return tag to rdf doc
75 76 77 |
# File 'lib/data_models/namespaces/foaf.rb', line 75 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |