Class: EasyData::RDF::DOAP
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::DOAP
- Defined in:
- lib/data_models/namespaces/doap.rb
Constant Summary collapse
- @@uri =
"http://usefulinc.com/ns/doap#"
- @@properties =
{"'anon-root'" => "", "audience" => "", "blog" => "", "browse" => "", "'bug-database'" => "", "category" => "", "created" => "", "description" => "", "developer" => "", "documenter" => "", "'download-mirror'" => "", "'download-page'" => "", "'file-release'" => "", "helper" => "", "homepage" => "", "implements" => "", "language" => "", "license" => "", "location" => "", "'mailing-list'" => "", "maintainer" => "", "module" => "", "name" => "", "'old-homepage'" => "", "os" => "", "platform" => "", "'programming-language'" => "", "release" => "", "repository" => "", "revision" => "", "screenshots" => "", "'service-endpoint'" => "", "shortdesc" => "", "tester" => "", "translator" => "", "vendor" => "", "wiki" => "" }
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
46 47 48 |
# File 'lib/data_models/namespaces/doap.rb', line 46 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
56 57 58 |
# File 'lib/data_models/namespaces/doap.rb', line 56 def self.properties @@properties.keys end |
.properties_form ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/data_models/namespaces/doap.rb', line 60 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
51 52 53 |
# File 'lib/data_models/namespaces/doap.rb', line 51 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |