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" => "" }
- @@classes =
{"work" => "", "license" => "", "jurisdiction" => "", "permission" => "", "requirement" => "", "prohibition" => "" }
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
Methods inherited from Namespaces
Class Method Details
.classes ⇒ Object
Return a list of Namespace’s classes
43 44 45 |
# File 'lib/data_models/namespaces/cc.rb', line 43 def self.classes @@classes.keys end |
.classes_form ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/data_models/namespaces/cc.rb', line 47 def self.classes_form list = {} @@classes.keys.each do |c| list[c] = c end list end |
.get_uri ⇒ Object
Return Namespace URI
25 26 27 |
# File 'lib/data_models/namespaces/cc.rb', line 25 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
30 31 32 |
# File 'lib/data_models/namespaces/cc.rb', line 30 def self.properties @@properties.keys end |
.properties_form ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/data_models/namespaces/cc.rb', line 34 def self.properties_form list = {} @@properties.keys.each do |property| list[property] = property end list end |