Class: EasyData::RDF::DOAP

Inherits:
Namespaces show all
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

Methods inherited from Namespaces

list, list_form

Class Method Details

.get_uriObject

Return Namespace URI



46
47
48
# File 'lib/data_models/namespaces/doap.rb', line 46

def self.get_uri
  @@uri
end

.propertiesObject

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_formObject



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