Re: ShEx for RDF

* Gray, Alasdair J G <> [2014-03-06 12:27+0000]
> Eric hello.
> At SWAT4LS in Edinburgh you sold me on the use of Shape Expressions for validating the content of an RDF file against a specification of what it should contain.
> I spent a bit of time throwing together a validator for the HCLS dataset descriptions activity. You can find the current prototype at
> Note that this is out of sync with the document requirements.

Very cool! If you're going to use the library, I'm happy to discuss modularization and release engineering et al. Also, it could make sense to move it off to github. Would that be conspicuously helpful, or just a nice thing I should get around to?

> Today, I tried to use the validator to test a turtle file and found that the ShEx scripts do not accept standard turtle. All of the prefix declarations need to have the ‘@‘ sign ripped out. Is this something that you plan to fix?

Hmm, I originally only implemented the new syntax from the RDF 1.1 Turtle spec <> (I was in a hurry). I think I added support for "@prefix foo: <bar> ." a while ago. Did you copy TurtleParser.js that far back?

<> shows it working now. The grammar for the old (n3) form is case-sensitive and requires a trailing '.'.

> Also, are other implementations of the scripts available for use within a backend (server side) validator?

I plan to update my C++ version (but it's part of SWObjects) and I know that Jose Emilio Labra Gayo is working on a Scala version. Jesse, do you have one as well?

> Thanks
> Alasdair
> Alasdair J G Gray
> Lecturer in Computer Science, Heriot-Watt University, UK.
> Email:<>
> Web:
> Telephone: +44 131 451 3429
> Twitter: @gray_alasdair
> Arrange a Meeting:
> --
> PLEASE NOTE: There may be a delay in me dealing with your email as I am participating in UCU industrial action by ‘working to contract’ in support of the union’s campaign for fair pay in higher education.
> For more info go here<>
> ----- 
> Sunday Times Scottish University of the Year 2011-2013
> Top in the UK for student experience
> Fourth university in the UK and top in Scotland (National Student Survey 2012)
> We invite research leaders and ambitious early career researchers to 
> join us in leading and driving research in key inter-disciplinary themes. 
> Please see for further information and how
> to apply.
> Heriot-Watt University is a Scottish charity
> registered under charity number SC000278.


office: +1.617.599.3509
mobile: +

Feel free to forward this message to any list for any purpose other than
email address distribution.

There are subtle nuances encoded in font variation and clever layout
which can only be seen by printing this message on high-clay paper.

Received on Thursday, 6 March 2014 14:47:41 UTC