Every Turtle/RDF file must be validated before committing to SVN.
Else automatic repository deployment (refresh) scripts fail and you waste your colleagues' times.
Probably the easiest to use.
Uses Sesame (OpenRDF) RIO 2.3.1
It's Java based so it runs on Linux or Windows, and Mac
Jena ARQ RIOT is an RDF conversion/validation tool.
It's Java based so it runs on Linux or Windows:
- Download ARQ (ARQ-2.8.8 is current as of 2011-04-21)
- unzip to a path that includes no spaces (eg on Windows: c:\prog\ARQ-2.8.8)
- On Linux it's easier:
- add ARQ-2.8.8/bin to your path
- On Windows you need to jump through more hoops:
- add c:\prog\ARQ-2.8.8\bat to your path
- write a batch file riot.bat in the same dir:
- call it like this. If there are no errors, you'll see no output
TODO: integrate this as a SVN commit hook, or emacs vc-before-checkin-hook
Here's how to integrate RIOT to the Emacs 'compile' command
- Get and install n3-mode.el (it's rather primitive but still useful for Turtle editing), then
- Get and install smart-compile.el, then
- Add regexp's to recognize RIOT's error messages:
- When editing a TTL file, invoke compilation with "C-c c". It jumps automatically to the first error, eg:
"any23" stands for "anything to triples" and converts from RDFa, microformats, rdf/xml, ntriples etc to turtle and other formats
- install from http://code.google.com/p/any23/downloads/list and run it with a batch file like this:
- or use their web service using the wget program (similar with curl):
NOTICE: the file must be valid. Else the site crashes
For a one-off validation job, you can use http://www.rdfabout.com/demo/validator/.
TODO: we can easily automate calling this with wget, eg see below
ICS-FORTH Validating RDF Parser: a tool for analyzing, validating and processing RDF schemas and resource descriptions. SVG visualization.
- Tried install
- converted susana.ttl to susana.rdf
- runVRP.bat: fixed VRP_HOME, removed JAVA_HOME, fixed command line:
- ran it, trying various options
- specified susana-browseSchema.svg as one of the outputs.
Had to add namespaces:
and it shows a page with some control buttons, but no content
- it was never able to produce schemaVisualization.svg
- turns out it's buggy:
It's part of RDFSuite that includes
- Validating RDF Parser (VRP): The First RDF Parser supporting semantic validation of both resource descriptions and schemas
- RDF Schema Specific DataBase (RSSDB): The First RDF Store using schema knowledge to automatically generate an Object-Relational (SQL3) representation of RDF metadata and load resource descriptions.
- RDF Query Language (RQL): The First Declarative Language for uniformly querying RDF schemas and resource descriptions.
- RDF Update Language (RUL): The First Declarative Language for uniformly updating resource descriptions
But it's done 2002-2003 and given the above experience, I won't try it.
Jena Eyeball http://jena.sourceforge.net/Eyeball/
- RDF's open world assumption means "anything goes" so eg a misspelt prop name is not considered a mistake.
Eyeball tries to overcome this. It includes a lot of configurable checks over RDF data
- Windows download: http://sourceforge.net/projects/jena/files/Eyeball/Eyeball%202.3/eyeball-2.3.zip/download
for a first attempt and pieces of advice. Once we apply it successfully, we should move the info here.
Sebastian Hellmann firstname.lastname@example.org on OA mlist:
I convert/validate with
- Rapper http://librdf.org/raptor/rapper.html
- rdf.sh https://github.com/seebi/rdf.sh (Note the RDF diff function)
- Jena CLI http://jena.sourceforge.net/tools.html
- Pellet http://clarkparsia.com/pellet