Class: EasyData::RDF::XHTML
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::XHTML
- Defined in:
- lib/data_models/namespaces/xhtml.rb
Constant Summary collapse
- @@uri =
"http://www.w3.org/1999/xhtml/vocab#"
- @@properties =
{ }
Class Method Summary collapse
-
.get_uri ⇒ Object
Return Namespace URI.
-
.properties ⇒ Object
Return a list of Namespace’s properties.
- .properties_form ⇒ Object
-
.to_s(property, uri, value) ⇒ Object
Return tag to rdf doc.
Methods inherited from Namespaces
Class Method Details
.get_uri ⇒ Object
Return Namespace URI
9 10 11 |
# File 'lib/data_models/namespaces/xhtml.rb', line 9 def self.get_uri @@uri end |
.properties ⇒ Object
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_form ⇒ Object
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 |