Class: EasyData::RDF::WOT
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::WOT
- Defined in:
- lib/data_models/namespaces/wot.rb
Constant Summary collapse
- @@uri =
"http://www.xmlns.com/wot/0.1/"
- @@properties =
{"assurance" => "", "encryptedTo" => "", "encrypter" => "", "fingerprint" => "", "hasKey" => "", "hex_id" => "", "identity" => "", "length" => "", "pubkeyAddress" => "", "sigdate" => "", "signed" => "", "signer" => "", "sigtime" => "" }
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
22 23 24 |
# File 'lib/data_models/namespaces/wot.rb', line 22 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
32 33 34 |
# File 'lib/data_models/namespaces/wot.rb', line 32 def self.properties @@properties.keys end |
.properties_form ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/data_models/namespaces/wot.rb', line 36 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
27 28 29 |
# File 'lib/data_models/namespaces/wot.rb', line 27 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |