Re: Unknown rule

On Fri, Feb 28, 2020 at 04:48:27PM +0100, hans.teijgeler@quicknet.nl 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

Received on Friday, 28 February 2020 16:06:24 UTC