Class: EasyData::RDF::XHTML

Inherits:
Namespaces show all
Defined in:
lib/data_models/namespaces/xhtml.rb

Constant Summary collapse

@@uri =
"http://www.w3.org/1999/xhtml/vocab#"
@@properties =
{   
}

Class Method Summary collapse

Methods inherited from Namespaces

list, list_form

Class Method Details

.get_uriObject

Return Namespace URI



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

def self.get_uri
  @@uri
end

.propertiesObject

Return a list of Namespace’s properties



19
20
21
# File 'lib/data_models/namespaces/xhtml.rb', line 19

def self.properties
   @@properties.keys
end

.properties_formObject



23
24
25
26
27
28
29
# File 'lib/data_models/namespaces/xhtml.rb', line 23

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



14
15
16
# File 'lib/data_models/namespaces/xhtml.rb', line 14

def self.to_s(property,uri,value)
   @@properties[property].gsub("%uri%",uri).gsub('%value%',value)
end