Skip to content

Commit 5c69b40

Browse files
committed
test: fix SPARQLStore docstring test
1 parent a603579 commit 5c69b40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rdflib/plugins/stores/sparqlstore.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,18 @@ class SPARQLStore(SPARQLConnector, Store):
7777
### Usage example
7878
7979
```python
80-
>>> from rdflib import Dataset # doctest: +SKIP
80+
>>> from rdflib import Dataset
8181
>>> from rdflib.plugins.stores.sparqlstore import SPARQLStore
8282
>>>
83-
>>> g = Dataset(
83+
>>> g = Dataset( # doctest: +SKIP
8484
... SPARQLStore("https://query.wikidata.org/sparql", returnFormat="xml"),
8585
... default_union=True
8686
... )
8787
>>>
88-
>>> res = g.query("SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 5")
88+
>>> res = g.query("SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 5") # doctest: +SKIP
8989
>>>
9090
>>> # Iterate the results
91-
>>> for row in res:
91+
>>> for row in res: # doctest: +SKIP
9292
... pass # but really you'd do something like: print(row)
9393
>>>
9494
>>> # Or serialize the results

0 commit comments

Comments
 (0)