Skip to content
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

Address Python rdflib parsing issues with examples #3

Open
ajnelson-nist opened this issue Apr 12, 2018 · 0 comments
Open

Address Python rdflib parsing issues with examples #3

ajnelson-nist opened this issue Apr 12, 2018 · 0 comments

Comments

@ajnelson-nist
Copy link
Member

(This is a re-post of Issue 2 from the prior repository.)

I tried ingesting all of the example files in all of their formats into the CASE Python API, and received some rdflib parsing issues before anything involving the CASE API.

This minimal Bash/Python script loops through the examples/ directory's XML and reports problems there. Here is a truncated shell transcript including the Bash line and the relevant part of the last error encountered:

$ ls *json *ttl *xml | while read x; do python3.5 -c "import rdflib ; rdflib.Graph().parse('$x')" ; done
INFO:rdflib:RDFLib Version: 4.2.2
# [snip]
rdflib.exceptions.ParserError: file:///.../examples/tsk_volume_system.xml:10:4: rdf:nodeID value is not a valid NCName: 51ee2f70-af0f-4ac7-9765-7bf7aa565ddf
$ echo $?
1

All XML files but bz2.xml had a problem. However, bz2.json and bz2.ttl also failed to parse.

This Issue is good to close when that little loop runs without a hitch.

Execution environment: macos Sierra, MacPorts-installed Python and rdflib via py35-rdflib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant