Re: Unknown rule

Hugo Mills <[email protected]>
Newsgroups gmane.org.w3c.semantic-web
Message-ID <[email protected]>
On Fri, Feb 28, 2020 at 04:48:27PM +0100, [email protected] wrote:
>    Dear all,
> 
>     
> 
>    Can anybody tell me why the following doesn't pass any RDF validator?
> 
>     
> 
>    xyz:P-101/40000512  ex:propertyValueInBarGauge   "14,7"^^xsd:decimal .
> 
>    or
> 
>    xyz:P-101#40000512  ex:propertyValueInBarGauge   "14,7"^^xsd:decimal .
> 
>    It seems to me that the subject is a perfect URI, but apparently it
>    violates some rule.
> 
>    But no validator tells me which rule.

   If you have a prefixed URI (as in "xyz:P-101/40000512"), you can
only have a limited set of characters in both the prefix side and the
identifier side. Neither # nor / are allowed in the identifier part,
hence the error. If I'm reading the spec correctly, you can escape the
# or the / with a backslash, \, but I haven't actually tested that.

   You'll find the details in the Turtle grammar[1], in the "PN_LOCAL"
production (168s).

   Hugo.

[1] https://www.w3.org/TR/turtle/#sec-grammar-grammar

-- 
Hugo Mills             | Lost in the maze of ontology
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |                                 Hegemony -- Labyrinth
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.