- From: Irene Polikoff <irene@topquadrant.com>
- Date: Wed, 16 Jan 2019 16:05:59 -0500
- To: Gary Murphy <gary@schemaapp.com>
- Cc: public-shacl@w3.org
- Message-Id: <8711FE33-221F-4AF2-BE49-4F3165AC8818@topquadrant.com>
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 <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 <mailto:gary@schemaapp.com>> - Hunch Manifest, 15 Wyndham N 'C', Guelph
Received on Wednesday, 16 January 2019 21:06:25 UTC