-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConstrainedDatatype causes g.parseTurtle failure #34
Comments
I've written a working parser for List attributes here, although I admit the code is pretty horrible so I'll definitely clean it up when I can. |
I've found that my code linked above doesn't currently handle multiple restrictions for |
Thanks @weasdown! I made pr weasdown#1 to your forked repository. |
Sure, added! My code is pretty rough but will hopefully be a good starting point. |
If an ontology contains a property with a range whose value is a List rather than String,
Graph._saveToGroups()
fails on line 614 because the for loop casts the range item to a String. I tried changing this to cast to avar
, but I'm not then sure howGraph.item()
should handle it or how the resulting item should be saved togroups
. Below are a sample ontology file to reproduce this (in .ttl and .xml, but both with extra .txt extensions to allow upload), and the Python file used to generate the ontology.Ontology files to reproduce error (with extra .txt extension to allow upload):
Turtle: rdflib-test.ttl.txt
XML version for info: rdflib-test.xml.txt
Python used to generate ontology files:
The text was updated successfully, but these errors were encountered: