Class: LogicalConstruct::ResolutionServer::Models::Navigation
- Inherits:
-
RoadForest::RDFModel
- Object
- RoadForest::RDFModel
- LogicalConstruct::ResolutionServer::Models::Navigation
- Defined in:
- lib/logical-construct/target/resolution-server.rb
Instance Method Summary collapse
- #exists? ⇒ Boolean
- #fill_graph(graph) ⇒ Object
- #nav_entry(graph, name, path) ⇒ Object
- #update(graph) ⇒ Object
Instance Method Details
#exists? ⇒ Boolean
34 35 36 |
# File 'lib/logical-construct/target/resolution-server.rb', line 34 def exists? true end |
#fill_graph(graph) ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/logical-construct/target/resolution-server.rb', line 50 def fill_graph(graph) graph[:rdf, "type"] = [:skos, "ConceptScheme"] nav_entry(graph, "Server Manifest", path_for(:manifest)) nav_entry(graph, "Unresolved Plans", path_for(:unresolved_plans)) nav_entry(graph, "All Plans", path_for(:full_plans)) nav_entry(graph, "Current Status", path_for(:status)) end |
#nav_entry(graph, name, path) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/logical-construct/target/resolution-server.rb', line 42 def nav_entry(graph, name, path) graph.add_node([:skos, :hasTopConcept], "#" + name) do |entry| entry[:rdf, :type] = [:skos, "Concept"] entry[:skos, :prefLabel] = name entry[:foaf, "page"] = path end end |
#update(graph) ⇒ Object
38 39 40 |
# File 'lib/logical-construct/target/resolution-server.rb', line 38 def update(graph) return false end |