- From: Gary Murphy <gary@schemaapp.com>
- Date: Wed, 16 Jan 2019 16:41:10 -0500
- To: Irene Polikoff <irene@topquadrant.com>
- Cc: public-shacl@w3.org
- Message-ID: <CADnyxpt_-=2BRBAy4h1tG1=8jKJk2F2KtnxgetT_eFWyzq7zww@mail.gmail.com>
Yes I just discovered that in https://www.w3.org/TR/shacl/ : The values of sh:datatype are typically datatypes, such as xsd:string. Note that using rdf:langString as value of sh:datatype can be used to test if value nodes have a language tag. thanks. On Wed, Jan 16, 2019 at 4:06 PM Irene Polikoff <irene@topquadrant.com> wrote: > You use sh:or to say the datatype can either a string or a language tagged > string > > On Jan 16, 2019, at 3:52 PM, Gary Murphy <gary@schemaapp.com> wrote: > > I have several shapes that specify sh:datatype xsd:string but I find > strings with language tags are being flagged as violations, for example, in > the shacl playground I modify the example turtle to read > > ex:Bob > a schema:Person ; > schema:givenName "Robert"@en ; > schema:familyName "Junior" ; > schema:birthDate "1971-07-07"^^xsd:date ; > schema:deathDate "1968-09-10"^^xsd:date ; > schema:address ex:BobsAddress . > > and I get > > [ > a sh:ValidationResult ; > sh:resultSeverity sh:Violation ; > sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; > sh:sourceShape _:n1 ; > sh:focusNode <http://example.org/ns#Bob> ; > sh:value "Robert"@en ; > sh:resultPath schema:givenName ; > sh:resultMessage "Value does not have datatype xsd:string" ; > ] . > > This happens with both the playground's js-based and with the apache java > implementations. How do I get around this? > > > -- > Gary Lawrence Murphy <gary@schemaapp.com> - Hunch Manifest, 15 Wyndham N > 'C', Guelph > > > -- Gary Lawrence Murphy <gary@schemaapp.com> - Hunch Manifest, 15 Wyndham N 'C', Guelph
Received on Wednesday, 16 January 2019 21:41:44 UTC