Class: EasyData::RDF::DC
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::DC
- Defined in:
- lib/data_models/namespaces/dc.rb
Constant Summary collapse
- @@uri =
"http://purl.org/dc/elements/1.1/"
- @@properties =
{"abstract" => "", "accessRights" => "", "accrualMethod" => "", "accrualPeriodicity" => "", "accrualPolicy" => "", "alternative" => "", "audience" => "", "available" => "", "bibliographicCitation" => "", "conformsTo" => "", "contributor" => "", "coverage" => "", "created" => "", "creator" => "", "date" => "", "dateAccepted" => "", "dateCopyrighted" => "", "dateSubmitted" => "", "description" => "", "educationLevel" => "", "extent" => "", "format" => "", "hasFormat" => "", "hasPart" => "", "hasVersion" => "", "identifier" => "", "instructionalMethod" => "", "isFormatOf" => "", "isPartOf" => "", "isReferencedBy" => "", "isReplacedBy" => "", "isRequiredBy" => "", "isVersionOf" => "", "issued" => "", "language" => "", "license" => "", "mediator" => "", "medium" => "", "modified" => "", "provenance" => "", "publisher" => "", "references" => "", "relation" => "", "replaces" => "", "requires" => "", "rights" => "", "rightsHolder" => "", "source" => "", "spatial" => "", "subject" => "", "tableOfContents" => "", "temporal" => "", "title" => "", "type" => "", "valid" => "" }
- @@classes =
{}
Class Method Summary collapse
-
.classes ⇒ Object
Return a list of Namespace’s classes.
- .classes_form ⇒ Object
-
.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
.classes ⇒ Object
Return a list of Namespace’s classes
88 89 90 |
# File 'lib/data_models/namespaces/dc.rb', line 88 def self.classes @@classes.keys end |
.classes_form ⇒ Object
92 93 94 95 96 97 98 |
# File 'lib/data_models/namespaces/dc.rb', line 92 def self.classes_form list = {} @@classes.keys.each do |c| list[c] = c end list end |
.get_uri ⇒ Object
Return Namespace URI
65 66 67 |
# File 'lib/data_models/namespaces/dc.rb', line 65 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
75 76 77 |
# File 'lib/data_models/namespaces/dc.rb', line 75 def self.properties @@properties.keys end |
.properties_form ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/data_models/namespaces/dc.rb', line 79 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
70 71 72 |
# File 'lib/data_models/namespaces/dc.rb', line 70 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |