Class: EasyData::RDF::CC
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::CC
- Defined in:
- lib/data_models/namespaces/cc.rb
Constant Summary collapse
- @@uri =
"xmlns:cc=http://creativecommons.org/ns#"
- @@properties =
{"attributionName" => "<cc:attributionName>%value%</cc:attributionName>", "attributionURL" => "", "deprecatedOn" => "", "jurisdiction" => "", "legalcode" => "", "license" => "", "morePermissions" => "", "permits" => "", "prohibits" => "", "requires" => "" }
Class Method Summary collapse
-
.get_uri ⇒ Object
Return Namespace URI.
-
.properties ⇒ Object
Return a list of Namespace’s properties.
- .properties_form ⇒ Object
Methods inherited from Namespaces
Class Method Details
.get_uri ⇒ Object
Return Namespace URI
18 19 20 |
# File 'lib/data_models/namespaces/cc.rb', line 18 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
23 24 25 |
# File 'lib/data_models/namespaces/cc.rb', line 23 def self.properties @@properties.keys end |
.properties_form ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/data_models/namespaces/cc.rb', line 27 def self.properties_form list = {} @@properties.keys.each do |property| list[property] = property end list end |