# Path search: the TripleTrail vocabulary at http://w3id.org/tripletrail/path#
# Written by ns/generate.py in the tripletrail-website repository; see https://tripletrail.eu/ns/path/
@prefix path: <http://w3id.org/tripletrail/path#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .

<http://w3id.org/tripletrail/path> a owl:Ontology ;
    rdfs:label "TripleTrail path search"@en ;
    rdfs:comment "Unweighted path search over any predicates, in SERVICE <http://w3id.org/tripletrail/path>: the parameters say where paths start and end and which edges they follow; the results bind each path and its steps."@en ;
    rdfs:seeAlso <https://tripletrail.eu/ns/path/> .

path:source a rdf:Property ;
    rdfs:label "source" ;
    rdfs:comment "Where paths start and end: IRIs or literals, given once or more (or as a list). Without a target every node reached is an end; without a source the search runs backwards from the targets."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:target a rdf:Property ;
    rdfs:label "target" ;
    rdfs:comment "Where paths start and end: IRIs or literals, given once or more (or as a list). Without a target every node reached is an end; without a source the search runs backwards from the targets."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:predicate a rdf:Property ;
    rdfs:label "predicate" ;
    rdfs:comment "The edges: predicates followed from subject to object (once or more, or a list). Or, instead, a sub-select whose first two variables are an edge's ends and an optional third its label. With neither, every triple from an IRI to an IRI, read from the indexes as the search reaches each node."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:exceptPredicate a rdf:Property ;
    rdfs:label "exceptPredicate" ;
    rdfs:comment "Without path:predicate or a sub-select: predicates left out (once or more, or a list), such as rdf:type."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:direction a rdf:Property ;
    rdfs:label "direction" ;
    rdfs:comment "\"out\" (default), \"in\" (object to subject) or \"both\"."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:graph a rdf:Property ;
    rdfs:label "graph" ;
    rdfs:comment "Search one named graph's edges instead of the default graph's."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:mode a rdf:Property ;
    rdfs:label "mode" ;
    rdfs:comment "\"shortest\" (default): one shortest path from each start to each end it reaches, the first found breadth first. \"simple\": every path that visits no node twice. \"all\": every walk, nodes repeated, which needs path:maxLength."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:minLength a rdf:Property ;
    rdfs:label "minLength" ;
    rdfs:comment "In edges; 0 and unlimited by default."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:maxLength a rdf:Property ;
    rdfs:label "maxLength" ;
    rdfs:comment "In edges; 0 and unlimited by default."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:maxPaths a rdf:Property ;
    rdfs:label "maxPaths" ;
    rdfs:comment "At most this many paths from each start to each end (simple and all)."@en ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:path a rdf:Property ;
    rdfs:label "path" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:start a rdf:Property ;
    rdfs:label "start" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:end a rdf:Property ;
    rdfs:label "end" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:length a rdf:Property ;
    rdfs:label "length" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:step a rdf:Property ;
    rdfs:label "step" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:from a rdf:Property ;
    rdfs:label "from" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:edge a rdf:Property ;
    rdfs:label "edge" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
path:to a rdf:Property ;
    rdfs:label "to" ;
    rdfs:isDefinedBy <http://w3id.org/tripletrail/path> .
