summaryrefslogtreecommitdiff
path: root/rdflib/namespace
diff options
context:
space:
mode:
authorIwan Aucamp <aucampia@gmail.com>2023-03-25 18:46:05 +0100
committerGitHub <noreply@github.com>2023-03-25 18:46:05 +0100
commit3faa01bf169166afa68be8084f16b537d850a070 (patch)
tree660c4c71d3d9aebe837cbce5c92390f280c9fe71 /rdflib/namespace
parent47e6c37f9a0a1930447f120902ff276aa7fe48e8 (diff)
downloadrdflib-3faa01bf169166afa68be8084f16b537d850a070.tar.gz
fix: change the prefix for `https://schema.org/` back to `schema` (#2312)
The default prefix for `https://schema.org/` registered with `rdflib.namespace.NamespaceManager` was inadvertently changed to `sdo` in 6.2.0, this however constitutes a breaking change, as code that was using the `schema` prefix would no longer have the same behaviour. This change changes the prefix back to `schema`.
Diffstat (limited to 'rdflib/namespace')
-rw-r--r--rdflib/namespace/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rdflib/namespace/__init__.py b/rdflib/namespace/__init__.py
index a68526e1..fb6d845b 100644
--- a/rdflib/namespace/__init__.py
+++ b/rdflib/namespace/__init__.py
@@ -364,8 +364,8 @@ class NamespaceManager(object):
* rdflib:
* binds all the namespaces shipped with RDFLib as DefinedNamespace instances
* all the core namespaces and all the following: brick, csvw, dc, dcat
- * dcmitype, dcterms, dcam, doap, foaf, geo, odrl, org, prof, prov, qb, sdo
- * sh, skos, sosa, ssn, time, vann, void, wgs
+ * dcmitype, dcterms, dcam, doap, foaf, geo, odrl, org, prof, prov, qb, schema
+ * sh, skos, sosa, ssn, time, vann, void
* see the NAMESPACE_PREFIXES_RDFLIB object for the up-to-date list
* none:
* binds no namespaces to prefixes
@@ -906,7 +906,7 @@ _NAMESPACE_PREFIXES_RDFLIB = {
"prof": PROF,
"prov": PROV,
"qb": QB,
- "sdo": SDO,
+ "schema": SDO,
"sh": SH,
"skos": SKOS,
"sosa": SOSA,