diff options
| author | Olivier Bornet <olivier.bornet@puck.ch> | 2013-10-15 11:21:10 +0200 |
|---|---|---|
| committer | Olivier Bornet <olivier.bornet@puck.ch> | 2013-10-15 11:21:10 +0200 |
| commit | c8d1a14c08b611fb5b97dabff862e57bee5dfc7a (patch) | |
| tree | f7375d12ed2b9d3970d3ae8d68a013b6042664b4 /docs | |
| parent | e0ea49148f6e5ad0f4ad5adab578a3b3969e0793 (diff) | |
| download | rdflib-c8d1a14c08b611fb5b97dabff862e57bee5dfc7a.tar.gz | |
Method is subjects(), not subject()
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 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 |
