summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOlivier Bornet <olivier.bornet@puck.ch>2013-10-15 11:21:10 +0200
committerOlivier Bornet <olivier.bornet@puck.ch>2013-10-15 11:21:10 +0200
commitc8d1a14c08b611fb5b97dabff862e57bee5dfc7a (patch)
treef7375d12ed2b9d3970d3ae8d68a013b6042664b4 /docs
parente0ea49148f6e5ad0f4ad5adab578a3b3969e0793 (diff)
downloadrdflib-c8d1a14c08b611fb5b97dabff862e57bee5dfc7a.tar.gz
Method is subjects(), not subject()
Diffstat (limited to 'docs')
-rw-r--r--docs/intro_to_graphs.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro_to_graphs.rst b/docs/intro_to_graphs.rst
index 0b0732b3..733c17bc 100644
--- a/docs/intro_to_graphs.rst
+++ b/docs/intro_to_graphs.rst
@@ -73,7 +73,7 @@ This function is a generator of triples that match the pattern given by the argu
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::
- for person in g.subject(RDF.type, FOAF.Person):
+ for person in g.subjects(RDF.type, FOAF.Person):
print "%s is a person"%person