Class: EasyData::RDF::SKOS

Inherits:
Namespaces show all
Defined in:
lib/data_models/namespaces/skos.rb

Constant Summary collapse

@@uri =
"http://www.w3.org/2004/02/skos/core#"
@@properties =
{"altLabel" => "",
    "broadMatch" => "",
    "broader" => "",
    "broaderTransitive" => "",
    "changeNote" => "",
    "closeMatch" => "",
    "definition" => "",
    "editorialNote" => "",
    "exactMatch" => "",
    "example" => "",
    "hasTopConcept" => "",
    "hiddenLabel" => "",
    "historyNote" => "",
    "inScheme" => "",
    "mappingRelation" => "",
    "member" => "",
    "memberList" => "",
    "narrowMatch" => "",
    "narrower" => "",
    "narrowerTransitive" => "",
    "notation" => "",
    "note" => "",
    "prefLabel" => "",
    "related" => "",
    "relatedMatch" => "",
    "scopeNote" => "",
    "semanticRelation" => "",
    "topConceptOf" => ""   
}
@@classes =
{"Collection" => "",
             "Concept" => "",
             "Concept Scheme" => "",
             "Ordered Collection" => ""
}

Class Method Summary collapse

Methods inherited from Namespaces

list, list_form

Class Method Details

.classesObject

Return a list of Namespace’s classes



67
68
69
# File 'lib/data_models/namespaces/skos.rb', line 67

def self.classes
   @@classes.keys
end

.classes_formObject



71
72
73
74
75
76
77
# File 'lib/data_models/namespaces/skos.rb', line 71

def self.classes_form 
  list = {}
  @@classes.keys.each do |c|
    list[c] = c
  end
  list
end

.get_uriObject

Return Namespace URI



44
45
46
# File 'lib/data_models/namespaces/skos.rb', line 44

def self.get_uri
  @@uri
end

.propertiesObject

Return a list of Namespace’s properties



54
55
56
# File 'lib/data_models/namespaces/skos.rb', line 54

def self.properties
   @@properties.keys
end

.properties_formObject



58
59
60
61
62
63
64
# File 'lib/data_models/namespaces/skos.rb', line 58

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



49
50
51
# File 'lib/data_models/namespaces/skos.rb', line 49

def self.to_s(property,uri,value)
   @@properties[property].gsub("%uri%",uri).gsub('%value%',value)
end