Re: Using compact URIs in RDF-XML as values of rdf:resource

* Bernard Vatant <bernard.vatant@mondeca.com> [2013-05-24 19:32+0200]
> Hi all
> 
> Parsing some vocabularies in the cloud, we stumbled on syntactic
> constructions such as the following one from http://lexvo.org/ontology
> 
> <owl:SymmetricProperty rdf:about="#nearlySameAs">
>   ...
>   <lvont:somewhatSameAs rdf:resource="owl:sameAs" />
> </owl:SymmetricProperty>
> 
> Let alone discussions on the semantics, is such use of "owl:sameAs" as
> value of rdf:resource valid RDF-XML? a good practice?
> The W3C validator seems happy with it, but some parsers won't, asking for a
> valid (relative or absolute) URI in this position, not a CURIE.

Pasting
[[
<?xml version="1.0"?>
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:lvont="http://lexvo.org/ontology#"
  xmlns:owl="http://www.w3.org/2002/07/owl#">
  <owl:SymmetricProperty rdf:about="#nearlySameAs">
    <lvont:somewhatSameAs rdf:resource="owl:sameAs" />
  </owl:SymmetricProperty>
</rdf:RDF>
]]
into the RDF validator gives you these triples:
Number Subject                                                         Predicate                                       Object                                         
1      http://www.w3.org/RDF/Validator/run/1369483622857#nearlySameAs  http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#SymmetricProperty
2      http://www.w3.org/RDF/Validator/run/1369483622857#nearlySameAs  http://lexvo.org/ontology#somewhatSameAs        owl:sameAs                                     

Note that the Object of #2 is <owl:sameAs>, which appears to RDF to be
a URI scheme called "owl".

The validator couldn't detect this as an error because it can't know
that there is no owl: URI scheme. It certainly is an error because
what you really want for the Object is
<http://www.w3.org/2002/07/owl#sameAs>.


> Thoughts?
> 
> 
> -- 
> *Bernard Vatant
> *
> Vocabularies & Data Engineering
> Tel :  + 33 (0)9 71 48 84 59
>  Skype : bernard.vatant
> Blog : the wheel and the hub <http://bvatant.blogspot.com>
> --------------------------------------------------------
> *Mondeca**          **                   *
> 3 cité Nollez 75018 Paris, France
> www.mondeca.com
> Follow us on Twitter : @mondecanews <http://twitter.com/#%21/mondecanews>
> ----------------------------------------------------------
> 
> Mondeca is selected to present at ReInvent Law,
> London<http://reinventlawlondon.com/> on
> June 14th
> 
> Mondeca will be supporting its client's
> presentation<http://semtechbizsf2013.semanticweb.com/sessionPop.cfm?confid=70&proposalid=5127>
> at
> SemTech in San Francisco
> 
>  <http://semtechbizsf2013.semanticweb.com/sessionPop.cfm?confid=70&proposalid=5127>

-- 
-ericP

Received on Saturday, 25 May 2013 12:09:57 UTC