Class: EasyData::RDF::CC

Inherits:
Namespaces show all
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

Methods inherited from Namespaces

list, list_form

Class Method Details

.classesObject

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_formObject



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_uriObject

Return Namespace URI



25
26
27
# File 'lib/data_models/namespaces/cc.rb', line 25

def self.get_uri
  @@uri
end

.propertiesObject

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_formObject



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