Skip to content

Commit 24cc7fa

Browse files
authored
Copyedit examples/datasets.py
1 parent ab5578b commit 24cc7fa

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

examples/datasets.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
22
An RDFLib Dataset is a slight extension to ConjunctiveGraph: it uses simpler terminology
3-
and has a few additional convenience method extensions, for example add() can be used to
3+
and has a few additional convenience methods, for example add() can be used to
44
add quads directly to a specific Graph within the Dataset.
55
6-
This example file shows how to decalre a Dataset, add content to it, serialise it, query it
6+
This example file shows how to declare a Dataset, add content to it, serialise it, query it
77
and remove things from it.
88
"""
99

@@ -12,11 +12,10 @@
1212
# Note regarding `mypy: ignore_errors=true`:
1313
#
1414
# This example is using URIRef values as context identifiers. This is contrary
15-
# to the type hints, but it does work. Most likely the type hints are wrong.
15+
# to the type hints, but it does work. Most likely, the type hints are wrong.
1616
# Ideally we should just use `# type: ignore` comments for the lines that are
17-
# causing problems, but for some reason the error occurs on different lines with
18-
# different python versions, so the only option is to ignore errors for the
19-
# whole file.
17+
# causing problems, but the error occurs on different lines with different
18+
# Python versions, so the only option is to ignore errors for the whole file.
2019

2120
# mypy: ignore_errors=true
2221

@@ -102,7 +101,7 @@
102101
print()
103102
print()
104103

105-
# Query one graph in the Dataset for all it's triples
104+
# Query one graph in the Dataset for all its triples
106105
# we should get
107106
"""
108107
(rdflib.term.URIRef('http://example.com/subject-z'), rdflib.term.URIRef('http://example.com/predicate-z'), rdflib.term.Literal('Triple Z'))
@@ -117,7 +116,7 @@
117116
print()
118117

119118
# Query the union of all graphs in the dataset for all triples
120-
# we should get Nothing:
119+
# we should get nothing:
121120
"""
122121
"""
123122
# A Dataset's default union graph does not exist by default (default_union property is False)

0 commit comments

Comments
 (0)