Class: EasyData::RDF::CERT
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::CERT
- Defined in:
- lib/data_models/namespaces/cert.rb
Constant Summary collapse
- @@uri =
"http://www.w3.org/ns/auth/cert#"
- @@properties =
{"modulus" => "", "exponent" => "", "identity" => "", "key" => "", "privateExponent" => "" }
- @@classes =
{"Certificate" => "", "PGPCertificate" => "", "PrivateKey" => "", "PublicKey" => "", "RSAKey" => "", "RSAPublicKey" => "", "Signature" => "", "X509Certificate" => "" }
Class Method Summary collapse
-
.classes ⇒ Object
Return a list of Namespace’s classes.
- .classes_form ⇒ Object
-
.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
.classes ⇒ Object
Return a list of Namespace’s classes
44 45 46 |
# File 'lib/data_models/namespaces/cert.rb', line 44 def self.classes @@classes.keys end |
.classes_form ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/data_models/namespaces/cert.rb', line 48 def self.classes_form list = {} @@classes.keys.each do |c| list[c] = c end list end |
.get_uri ⇒ Object
Return Namespace URI
22 23 24 |
# File 'lib/data_models/namespaces/cert.rb', line 22 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
31 32 33 |
# File 'lib/data_models/namespaces/cert.rb', line 31 def self.properties @@properties.keys end |
.properties_form ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/data_models/namespaces/cert.rb', line 35 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
26 27 28 |
# File 'lib/data_models/namespaces/cert.rb', line 26 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |