Re: ShEx negation of edge path

On 24 May 2014, at 06:46, Jose Emilio Labra Gayo <jelabra@gmail.com<mailto:jelabra@gmail.com>> wrote:

On Fri, May 23, 2014 at 5:05 PM, Gray, Alasdair J G <A.J.G.Gray@hw.ac.uk<mailto:A.J.G.Gray@hw.ac.uk>> wrote:
Hi Eric, All,

I want to be able to express the constraint that a certain resource in an RDF document should not have certain a property.

Specifically, I want to express that the follow triple is not permitted because ex:resource is not permitted to have an ex:invalidProperty edge.
ex:resource ex:invalidProperty “Some value” .

You can negations with symbol !. For example:

<Shape> { ! ex:invalidProperty . }

That’s what I thought would be in the syntax.

However, I think, negations are not yet implemented in the Javascript implementation.

Thanks for that piece of information.

I have just added negations to the Scala implementation (http://labra.github.io/ShExcala/)

Unfortunately the deployment environment I’m working with requires that I use the Javascript implementation, although I may try the Scala version to validate the approach.

Best regards

Alasdair

Best regards, Jose Labra

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: MailScanner has detected a possible fraud attempt from "www.macs.hw.ac.uk" claiming to be http://www.alasdairjggray.co.uk<http://www.macs.hw.ac.uk/~ajg33>
ORCID: http://orcid.org/0000-0002-5711-4872
Telephone: +44 131 451 3429<tel:%2B44%20131%20451%203429>
Twitter: @gray_alasdair






________________________________

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<http://www.hw.ac.uk/researchleaders> for further information and how to apply.

Heriot-Watt University is a Scottish charity registered under charity number SC000278.



--
Saludos, Labra

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.alasdairjggray.co.uk<http://www.macs.hw.ac.uk/~ajg33>
ORCID: http://orcid.org/0000-0002-5711-4872
Telephone: +44 131 451 3429
Twitter: @gray_alasdair







----- 
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.

Received on Monday, 26 May 2014 08:13:11 UTC