Class: EasyData::RDF::SKOS
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::SKOS
- Defined in:
- lib/data_models/namespaces/skos.rb
Constant Summary collapse
- @@uri =
"http://www.w3.org/2004/02/skos/core#"
- @@properties =
{"altLabel" => "", "broadMatch" => "", "broader" => "", "broaderTransitive" => "", "changeNote" => "", "closeMatch" => "", "definition" => "", "editorialNote" => "", "exactMatch" => "", "example" => "", "hasTopConcept" => "", "hiddenLabel" => "", "historyNote" => "", "inScheme" => "", "mappingRelation" => "", "member" => "", "memberList" => "", "narrowMatch" => "", "narrower" => "", "narrowerTransitive" => "", "notation" => "", "note" => "", "prefLabel" => "", "related" => "", "relatedMatch" => "", "scopeNote" => "", "semanticRelation" => "", "topConceptOf" => "" }
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
38 39 40 |
# File 'lib/data_models/namespaces/skos.rb', line 38 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
48 49 50 |
# File 'lib/data_models/namespaces/skos.rb', line 48 def self.properties @@properties.keys end |
.properties_form ⇒ Object
52 53 54 55 56 57 58 |
# File 'lib/data_models/namespaces/skos.rb', line 52 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
43 44 45 |
# File 'lib/data_models/namespaces/skos.rb', line 43 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |