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" => "" }
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
64 65 66 |
# File 'lib/data_models/namespaces/dc.rb', line 64 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
74 75 76 |
# File 'lib/data_models/namespaces/dc.rb', line 74 def self.properties @@properties.keys end |
.properties_form ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/data_models/namespaces/dc.rb', line 78 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
69 70 71 |
# File 'lib/data_models/namespaces/dc.rb', line 69 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |