Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

Every Turtle/RDF file must be validated before committing to SVN.
Else automatic repository deployment (refresh) scripts fail and you waste your colleagues' times.

rdf2rdf

http://www.l3s.de/~minack/rdf2rdf/
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

RIOT

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

Emacs integration

Here's how to integrate RIOT to the Emacs 'compile' command

  1. Get and install n3-mode.el (it's rather primitive but still useful for Turtle editing), then
  2. Get and install smart-compile.el, then
  3. Add regexp's to recognize RIOT's error messages:
  4. When editing a TTL file, invoke compilation with "C-c c". It jumps automatically to the first error, eg:

Any23

"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:
    any23.bat
  • or use their web service using the wget program (similar with curl):

    NOTICE: the file must be valid. Else the site crashes

Online Validator

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

Validating RDF Parser (VRP)

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
    any23 -f xmlrdf susana.ttl > susana.rdf
  • runVRP.bat: fixed VRP_HOME, removed JAVA_HOME, fixed command line:
    "%JAVA_HOME%\bin\java" -mx1000m -classpath "%JAVA_HOME%;..."
  • 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:
    Couldn't repair and continue parse
    gr.forth.ics.vrp.corevrp.RDF_Error:
    java.lang.NullPointerException
    d = 13 dec
    Exception in thread "AWT-EventQueue-0" java.lang.Error: Symbol recycling detected (fix your scanner).
            at java_cup.runtime.lr_parser.parse(lr_parser.java:545)
            at gr.forth.ics.vrp.corevrp.model.Model.fetch_all_ns(Model.java:621)
            at gr.forth.ics.vrp.corevrp.model.Model.fetch_all(Model.java:583)
    

RDFSuite

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.

Eyeball

Jena Eyeball http://jena.sourceforge.net/Eyeball/

See RS-1071
for a first attempt and pieces of advice. Once we apply it successfully, we should move the info here.

TODO

Sebastian Hellmann hellmann@informatik.uni-leipzig.de on OA mlist:
I convert/validate with

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.