W3C home > Mailing lists > Public > public-rdf-shapes@w3.org > October 2017

Some SHACL Examples

From: Thomas Francart <thomas.francart@sparna.fr>
Date: Wed, 4 Oct 2017 18:15:19 +0200
Message-ID: <CAPugn7XtjaDC1c=NvumP1x=A95=KmKbFE5rPk8ASUCaVxmOBgA@mail.gmail.com>
To: public-rdf-shapes@w3.org
Hello

I am trying to write SHACL Shapes for
https://github.com/FranckCo/Stamina/blob/master/doc/xkos-best-practice.md.
And I am struggling :-)
I would be particularly interested to see examples (in
https://www.w3.org/wiki/SHACL/Examples, maybe ?) of how to define the
following :

   - How to check that the values of skos:notation do _not_ have a language
   tag ? (maybe by saying they have xsd:string datatype ?)
   - How to check that skos:prefLabel must have at least one value with
   language @en, but others can exist as well with a different language ?
   (maybe using sh:zeroOrMorePath ?)
   - How to check that every value of skos:prefLabel must have a language
   (whatever the language) ? (maybe checking that the datatype is
   rdf:langLiteral ?)

Thanks !

Thomas
-- 

*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel :  +33 (0)6.71.11.25.97, skype : francartthomas
Received on Wednesday, 4 October 2017 16:16:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:51 UTC