Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #1824 s,http://rdlib.net,http://rdflib.net,g #1901

Merged
merged 11 commits into from May 19, 2022
2 changes: 1 addition & 1 deletion rdflib/graph.py
Expand Up @@ -2002,7 +2002,7 @@ class Dataset(ConjunctiveGraph):
>>> for c in ds.graphs(): # doctest: +SKIP
... print(c) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
DEFAULT
http://rdlib.net/.well-known/genid/rdflib/N...
http://rdflib.net/.well-known/genid/rdflib/N...
http://www.example.com/gr
>>> # Note that the Dataset.graphs() call returns names of empty graphs,
>>> # too. This can be restricted:
Expand Down
2 changes: 1 addition & 1 deletion rdflib/term.py
Expand Up @@ -482,7 +482,7 @@ def skolemize(
.. versionadded:: 4.0
"""
if authority is None:
authority = "http://rdlib.net/"
authority = "http://rdflib.net/"
if basepath is None:
basepath = rdflib_skolem_genid
skolem = "%s%s" % (basepath, str(self))
Expand Down
8 changes: 4 additions & 4 deletions test/test_graph/test_skolemization.py
Expand Up @@ -22,10 +22,10 @@
[
(URIRef("http://example.com"), None),
(Literal("some string in here ..."), None),
(BNode("GMeng4V7"), "http://rdlib.net/.well-known/genid/rdflib/GMeng4V7"),
(BNode("GMeng4V7"), "http://rdflib.net/.well-known/genid/rdflib/GMeng4V7"),
(
BNode(),
re.compile("^" + re.escape("http://rdlib.net/.well-known/genid/rdflib/")),
re.compile("^" + re.escape("http://rdflib.net/.well-known/genid/rdflib/")),
),
],
)
Expand Down Expand Up @@ -61,9 +61,9 @@ def test_skolemization(
[
("http://example.com", None),
("http://example.com/not/.well-known/genid/1", None),
("http://rdlib.net/not/.well-known/genid/1", None),
("http://rdflib.net/not/.well-known/genid/1", None),
("http://example.com/.well-known/genid/1", re.compile("^N")),
("http://rdlib.net/.well-known/genid/rdflib/GMeng4V7", "GMeng4V7"),
("http://rdflib.net/.well-known/genid/rdflib/GMeng4V7", "GMeng4V7"),
],
)
def test_deskolemization(
Expand Down