diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/intro_to_graphs.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro_to_graphs.rst b/docs/intro_to_graphs.rst index 733c17bc..0c76e6f4 100644 --- a/docs/intro_to_graphs.rst +++ b/docs/intro_to_graphs.rst @@ -71,7 +71,7 @@ This function is a generator of triples that match the pattern given by the argu bobgraph += g.triples( (bob, None, None) ) -If you are not interested in whole triples, you can get only the bits you want with the methods :meth:`~rdflib.graph.Graph.objects`, :meth:`~rdflib.graph.Graph.subjects`, :meth:`~rdflib.graph.Graph.predicates`, :meth:`~rdflib.graph.Graph.predicates_objects`, etc. Each take parameters for the components of the triple to constraint:: +If you are not interested in whole triples, you can get only the bits you want with the methods :meth:`~rdflib.graph.Graph.objects`, :meth:`~rdflib.graph.Graph.subjects`, :meth:`~rdflib.graph.Graph.predicates`, :meth:`~rdflib.graph.Graph.predicate_objects`, etc. Each take parameters for the components of the triple to constraint:: for person in g.subjects(RDF.type, FOAF.Person): print "%s is a person"%person |