Re: ShEx for RDF

* Gray, Alasdair J G <A.J.G.Gray@hw.ac.uk> [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
> http://www.macs.hw.ac.uk/~ajg33/HCLSValidator/
> 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 <http://www.w3.org/TR/turtle/#grammar-production-sparqlBase> (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?

<http://www.w3.org/2013/ShEx/FancyShExDemo?schema=PREFIX%20ex%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%0A%0Astart%3D%7Bex%3Ap%20(1%202)%2B%7D&data=%40prefix%20ex%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%20.%0A%0A%3Cs%3E%20ex%3Ap%201%2C%202.> 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: A.J.G.Gray@hw.ac.uk<mailto:A.J.G.Gray@hw.ac.uk>
> Web: http://www.macs.hw.ac.uk/~ajg33
> ORCID: http://orcid.org/0000-0002-5711-4872
> Telephone: +44 131 451 3429
> Twitter: @gray_alasdair
> Arrange a Meeting: http://doodle.com/agray
> 
> --
> 
> 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 www.ucu.org.uk/hepay13<http://www.ucu.org.uk/hepay13>
> 
> 
> 
> 
> 
> 
> ----- 
> 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 www.hw.ac.uk/researchleaders for further information and how
> to apply.
> 
> Heriot-Watt University is a Scottish charity
> registered under charity number SC000278.
> 

-- 
-ericP

office: +1.617.599.3509
mobile: +33.6.80.80.35.59

(eric@w3.org)
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