Open rpgoldman opened 3 years ago
Hi,
I had a similar issue. I read the file into a graph using rdflib and serialized it into a format accepted by owlready. In my case, the NTriples format worked for me.
Good luck
Hi,
I had a similar issue. I read the file into a graph using rdflib and serialized it into a format accepted by owlready. In my case, the NTriples format worked for me.
Good luck
In which format you have converted the file after serialization , and what was your file format before and after serialization, could you please tell me?
The ontology file here https://github.com/rpgoldman/container-ontology/blob/80a1a88d056bcdeac0eda77698348ff9f41acb82/owl/strateos-catalog-individuals.ttl causes a parsing error in Owlready 2. When I look at the source line in question, it's near the bottom:
The error message and backtrace is as follows:
It looks like it is trying to break the line up into three components and is not finding three, perhaps because there is a top level block that (IIUC) corresponds to a blank node?
I had a cursory look at
driver.py
and I don't see anything in there that checks for the possibility of a line starting with a[
, so maybe that is the problem?Both Protege and RDFLib read this file successfully.