W3C home > Mailing lists > Public > public-rdf-shapes@w3.org > December 2013

Constraint about language tag

From: Jose Emilio Labra Gayo <jelabra@gmail.com>
Date: Sat, 21 Dec 2013 00:35:23 +0100
Message-ID: <CAJadXXKV-p-zaQMzmZK0XjP2c=Rcxjq48c-d8Qjv87+JWEDNHA@mail.gmail.com>
To: public-rdf-shapes@w3.org
Is it possible to express a constraint on the language tag of a literal in
ShEx?

For example, imagine you want English comments (literals whose language tag
must be English). One could be tempted to express that constraint as:

<IssueShape> { ex:englishComment xsd:string@en } .

-- 
Best regards, Jose Labra
Received on Friday, 20 December 2013 23:36:11 UTC

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