Skip to content

Built in ontologies

Martynas Jusevičius edited this page Dec 7, 2018 · 5 revisions

Domain

Templates

ct:Document
The most generic LDT template for Linked Data resources
Matches all URIs
Maps to SPARQL query
DESCRIBE ?this
WHERE {
    ?this ?p ?o
}
ct:SPARQLEndpoint
SPARQL endpoint template
Matches /sparql
Defines all SPARQL 1.1 Protocol parameters
ct:GraphStore
Matches /service
Defines all SPARQL 1.1 Graph Store Protocol parameters
ngt:Document
Extends ct:Document
Maps to SPARQL query
DESCRIBE ?this
WHERE
  { GRAPH ?g
      { ?this  ?p  ?o }
  }
dht:Container
Extends ct:Document
Maps to SPARQL query
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
DESCRIBE ?this ?child
WHERE
  { ?this ?p ?o
    OPTIONAL
      { { SELECT DISTINCT ?child
          WHERE
            {   { ?child sioc:has_parent ?this }
              UNION
                { ?child sioc:has_container ?this }
            }
        }
      }
  }
A template needs (directly or indirectly) extend dht:Container and contain a sub-SELECT in its query in order to support pagination.
Clone this wiki locally