Class: EasyData::RDF::Namespaces

Inherits:
Object
  • Object
show all
Defined in:
lib/data_models/namespaces.rb

Direct Known Subclasses

CC, CERT, DC, DC11, DOAP, EXIF, FOAF, GEO, HTTP, OWL, RDFS, RSA, RSS, SIOC, SKOS, WOT, XHTML, XSD

Constant Summary collapse

@@namespaces =

List of namespace availables to be used in RDF info models

['cc','cert','dc','dc11','doap','exif','foaf','geo','http','owl','rdfs','rsa','rss','sioc','skos','wot','xhtml','xsd']

Class Method Summary collapse

Class Method Details

.listArray

Return List of namespaces

Returns:

  • (Array)

    list of namespaces



10
11
12
# File 'lib/data_models/namespaces.rb', line 10

def self.list
  @@namespaces
end

.list_formHash

Return list of namespaces to be used in a form

Returns:

  • (Hash)

    hash of namespace



16
17
18
19
20
21
22
23
24
# File 'lib/data_models/namespaces.rb', line 16

def self.list_form
  list = {}

  @@namespaces.each do |namespace|
     list[namespace] = namespace
  end

  list
end