diff options
author | Sina Ahmadi <ahmadi.sina@outlook.com> | 2021-08-03 20:35:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 20:35:33 +0200 |
commit | 38952febc286850d980dad48534e1b50448c66ae (patch) | |
tree | a66720ee5d2e21a3ed5ba73a92dac88418cb987b | |
parent | 038af4547e799845e08986867b24acafcbe72d48 (diff) | |
download | rdflib-38952febc286850d980dad48534e1b50448c66ae.tar.gz |
Update intro_to_sparql.rst
One line missing in the SPARQL example where the query should be run as in `qres = g.query(knows_query)`
-rw-r--r-- | docs/intro_to_sparql.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/intro_to_sparql.rst b/docs/intro_to_sparql.rst index ef7aab78..72a87c66 100644 --- a/docs/intro_to_sparql.rst +++ b/docs/intro_to_sparql.rst @@ -39,7 +39,8 @@ For example... ?a foaf:name ?aname . ?b foaf:name ?bname . }""" - + + qres = g.query(knows_query) for row in qres: print(f"{row.aname} knows {row.bname}") |