Class: EasyData::RDF::RDFS
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::RDFS
- Defined in:
- lib/data_models/namespaces/rdfs.rb
Constant Summary collapse
- @@uri =
"http://www.w3.org/2000/01/rdf-schema#"
- @@properties =
{"comment" => "", "domain" => "", "isDefinedBy" => "", "label" => "", "member" => "", "range" => "", "seeAlso" => "", "subClassOf" => "", "subPropertyOf" => "" }
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
18 19 20 |
# File 'lib/data_models/namespaces/rdfs.rb', line 18 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
28 29 30 |
# File 'lib/data_models/namespaces/rdfs.rb', line 28 def self.properties @@properties.keys end |
.properties_form ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/data_models/namespaces/rdfs.rb', line 32 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
23 24 25 |
# File 'lib/data_models/namespaces/rdfs.rb', line 23 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |