diff options
author | bruno cuconato <odanoburu@users.noreply.github.com> | 2019-07-09 17:12:31 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 17:12:31 -0300 |
commit | 2625542d63c88d67d21f4d6c60de469f9157dc3d (patch) | |
tree | 5b9a5d1ecf463eef20bdaf53f0b5ff5c7418507f /docs | |
parent | af625d0bc48b656b614629b9ad56df63b88a0d17 (diff) | |
download | rdflib-2625542d63c88d67d21f4d6c60de469f9157dc3d.tar.gz |
method is `predicate_objects`, not `predicates_objects`
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 |