diff options
Diffstat (limited to 'test/jsonld/runner.py')
| -rw-r--r-- | test/jsonld/runner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/jsonld/runner.py b/test/jsonld/runner.py index 13afc085..77a80ed4 100644 --- a/test/jsonld/runner.py +++ b/test/jsonld/runner.py @@ -1,13 +1,13 @@ # -*- coding: UTF-8 -*- import json -from rdflib import ConjunctiveGraph +from rdflib import BNode, ConjunctiveGraph from rdflib.compare import isomorphic from rdflib.parser import InputSource from rdflib.plugins.parsers.jsonld import JsonLDParser, to_rdf # monkey-patch N-Quads parser via it's underlying W3CNTriplesParser to keep source bnode id:s .. -from rdflib.plugins.parsers.ntriples import W3CNTriplesParser, bNode, r_nodeid +from rdflib.plugins.parsers.ntriples import W3CNTriplesParser, r_nodeid from rdflib.plugins.serializers.jsonld import from_rdf from rdflib.plugins.shared.jsonld.keys import CONTEXT, GRAPH @@ -15,7 +15,7 @@ from rdflib.plugins.shared.jsonld.keys import CONTEXT, GRAPH def _preserving_nodeid(self, bnode_context=None): if not self.peek("_"): return False - return bNode(self.eat(r_nodeid).group(1)) + return BNode(self.eat(r_nodeid).group(1)) DEFAULT_PARSER_VERSION = 1.0 |
