diff options
author | Edmond Chuc <e.chuc@uq.edu.au> | 2021-07-09 09:36:31 +1000 |
---|---|---|
committer | Edmond Chuc <e.chuc@uq.edu.au> | 2021-07-09 09:36:31 +1000 |
commit | 0102461d2671f7a388ff11b3d21c91e350c551ac (patch) | |
tree | ea8550dd9d476cb43863c025c36671d4c433847e | |
parent | eb074bc91a09bbe7d3038b81486c63948ce1dc7c (diff) | |
download | rdflib-0102461d2671f7a388ff11b3d21c91e350c551ac.tar.gz |
Refactor usage of rdf:langString.
-rw-r--r-- | rdflib/plugins/sparql/operators.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rdflib/plugins/sparql/operators.py b/rdflib/plugins/sparql/operators.py index 803449c8..d93cf508 100644 --- a/rdflib/plugins/sparql/operators.py +++ b/rdflib/plugins/sparql/operators.py @@ -35,10 +35,6 @@ from pyparsing import ParseResults from rdflib.plugins.sparql.sparql import SPARQLError, SPARQLTypeError -# closed namespace, langString isn't in it -RDF_langString = str(RDF) + "langString" - - def Builtin_IRI(expr, ctx): """ http://www.w3.org/TR/sparql11-query/#func-iri @@ -553,7 +549,7 @@ def Builtin_DATATYPE(e, ctx): if not isinstance(l_, Literal): raise SPARQLError("Can only get datatype of literal: %r" % l_) if l_.language: - return RDF_langString + return RDF.langString if not l_.datatype and not l_.language: return XSD.string return l_.datatype |