Module Expr Str ImportFrom alias alias ImportFrom alias If CompareEq NameLoad Str body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Print Str For NameStore Call AttributeLoad NameLoad attr NameLoad BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Print NameLoad
N/A N/A 

SPARQL 1.1 defines path operators for combining/repeating predicates
in triple-patterns.

We overload some python operators on URIRefs to allow creating path
operators directly in python. 

============ =========================================
Operator     Path
============ =========================================
``p1 / p2``  Path sequence
``p1 | p2``  Path alternative
``p1 * '*'`` chain of 0 or more p's
``p1 * '+'`` chain of 1 or more p's
``p1 * '?'`` 0 or 1 p 
``~p1``      p1 inverted, i.e. (s p1 o) <=> (o ~p1 s)
``-p1``      NOT p1, i.e. any property but p1
============ =========================================


these can then be used in property position for ``s,p,o`` triple queries
for any graph method.

See the docs for :mod:`rdflib.paths` for the details.

This example shows how to get the name of friends with a single query.

 rdflib URIRef Graph rdflib.namespace FOAF N/A N/A __name__ __main__ N/A N/A g N/A Graph N/A N/A N/A g load foaf.rdf N/A tim N/A URIRef http://www.w3.org/People/Berners-Lee/card#i N/A Timbl knows: N/A o N/A N/A g objects tim N/A N/A FOAF knows N/A FOAF name N/A N/A o