Anthony Rebello
Anthony Rebello
I tried parsing the rdfa using rdflib, and then serializing with json-ld. ``` python import rdflib g = rdflib.Graph() g.load("input.rdfa", format="rdfa") with open("output.jsonld", "w") as fp: fp.write(g.serialize(format="json-ld", indent=4)) ``` ```...
When defining the context somewhere else, and specifying it in each of the objects in the list using `@context`, it still works - ``` json [ { "@context": "schema.context", "@id":...
@pynem I faced the same problem on Ubuntu 20.04 with 5.13.0-51-generic. Quoting part of this [stackoverflow answer](https://stackoverflow.com/a/72379343/1520594) >To compile without error, you need a kernel recent enough to have struct...
My reference was https://docs.python.org/2/library/functions.html#open as I didn't intend to support python 3 at the time. Will make sure to change it when I add support for python 3!
@BrendanSimon That's something I didn't think of earlier! I'll try adding that feature in sometime in the future.
@jedie Thanks for reporting this! Looks like version specific code might have to be written for the call to `open`.