Open pebbie opened 10 years ago
Could you provide the code call which causes the problem? The following seems to work without this change:
from rdflib import *
import sys
Graph().parse(
"http://www.markus-lanthaler.com/hydra/api-demo/", format='json-ld').serialize(
sys.stdout, format='turtle')
(Or perhaps the example data has changed?)
when the
load
method of a context object is called (parser.py:83), variablebase
isNone
although in the parser.py:80 thebase
is already set in the constructor.this caused reading a jsonld document of a hydra api demo in (http://www.markus-lanthaler.com/hydra/api-demo/) ended up in a failure as relative IRI stated in the @context
/hydra/api-demo/context/EntryPoint.jsonld
is interpreted as local file source.adding 2 lines below in the beginning of
load
method (context.py:37) fixes the problem.