[redland-dev] Dealing with redefined IDs?

Boris Popov bpopov at gmail.com
Sun Jul 17 23:58:50 BST 2005


Here's the ontology in question: http://www.dayf.de/2004/owl/beer.owl

The fact that it redefined "Hops" at line line 169 causes redland to produce 
incorrect triples. Changing that like to rdf:about="#Hope" allows redland to 
proceed as normal.

These are the triples resulting from the original file

<http://www.purl.org/net/ontology/beer#Hops> <
http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://www.w3.org/2002/07/owl#Class> .
_:r1r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://www.w3.org/2000/01/rdf-schema#label> .
<http://www.purl.org/net/ontology/beer#Hops> <
http://www.w3.org/2002/07/owl#Class> _:r1r1 .
_:r1r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://www.w3.org/2000/01/rdf-schema#subClassOf> .
_:r1r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#resource> "#Ingredient" .

And these are triples with a change to rdf:about="#Hops"

<http://www.purl.org/net/ontology/beer#Hops> <
http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://www.w3.org/2002/07/owl#Class> .
<http://www.purl.org/net/ontology/beer#Hops> <
http://www.w3.org/2000/01/rdf-schema#label> "Hops"@en .
<http://www.purl.org/net/ontology/beer#Hops> <
http://www.w3.org/2000/01/rdf-schema#subClassOf> <
http://www.purl.org/net/ontology/beer#Ingredient> .
<http://www.purl.org/net/ontology/beer#Hops> <
http://www.w3.org/2000/01/rdf-schema#label> "Vine"@en .
<http://www.purl.org/net/ontology/beer#Hops> <
http://www.w3.org/2000/01/rdf-schema#label> "Hopfen"@de .

Is there a way to get the parser to deal with this on its own? I can't seem 
to think of a way that I could work around this. I know its a problem with a 
file, but I know for a fact that other OWL parsers (particularly Jena and 
OWLAPI) handle this gracefully. I'll poke around some more, but your help 
would be greatly appreciated!
-- 
- Boris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gnomehack.com/pipermail/redland-dev/attachments/20050717/4cfb5dad/attachment.htm


More information about the redland-dev mailing list