I'm trying to upload to Virtuoso a .n3 file through the Virtuoso Conductor, but I receive the following error message:
I found an online parser (e.g http://www.rdfabout.com/demo/validator/), but it's no help for me, since I want to upload a 1.3 GByte sized file.
Does anyone know a locally executable N3-parser/validator, which throws also any type of debbuging information? (at least line that provoked the fail :P )
Thanks in advance!
You might also try sending batches into Jena - take maybe 2k N3 facts at a time and use that to instantiate a Model; if no errors throw, drop the model and move on to the next 2k. Never tried it myself, so a bit of caveat emptor.
answered 13 Jan '11, 16:40
Most RDF toolkits can't handle N3 as it goes beyond the RDF data model. Most can handle Turtle, which is an RDF-compatible subset of N3. Some can handle a slight superset of Turtle - I think rapper falls into this category. This may well be why you had problems importing your file into Virtuoso - it may have simply contained N3 data which Virtuoso couldn't handle.
Some full N3 parsers that I know of:
RDF::TriN3 is one that I wrote, and it should be smart enough to catch most syntax errors and bail out. The error messages are not always particularly helpful though.
answered 13 Jan '11, 16:42
If you load the file via ISQL or any other SQL client (so you can execute an SQL procedure DB.DBA.TTLP_MT and see the text of SQL error message) then the text of error will contain exact line of source and some diagnostics from the parser.
answered 12 May '11, 16:50