Open betehess opened 9 years ago
I actually tried again today and it worked this time. I must have made some mistake yesterday. Sorry for the confusion.
My bad. There is an issue. I had replaced line 606 of RDFa.js
and I had forgotten about it:
var base = this.parseURI('http://example.com');
That's where the issue was.
There is a similar issue in RDFaProcessor.prototype.process
. When it gets called with a node
resulting from a call to DOMParser.parseFromString
, then node.baseURI
is null
and the subsequent call to removeHash
blows up when trying to find the "#"
.
This should look into options.baseURI
instead.
My goal is to parse some external content into a graph, and to have some control over the graph implementation being used.
So I have tried the following in the Chrome console, from the test harness:
I have a few additional questions:
RDFaProcessor.addTriple
being mentioned at https://code.google.com/p/green-turtle/wiki/API#RDFaProcessor.addTriple? Is that still relevant?