[redland-dev] Re: Dealing with redefined IDs?

Boris Popov bpopov at gmail.com
Mon Jul 18 00:24:40 BST 2005


Gosh everyone must be annoyed with my self-replies by now ;)

Interestingly enough the solution was discovered by me just last night when 
I was posting regarding parser features. One of them (and I should have 
figured this out sooner) is checkRdfID. Incidentally setting it to 0 fixed 
my problem. Thanks!

-Boris

On 7/17/05, Boris Popov <bpopov at gmail.com> wrote:
> 
> 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 




-- 
- Boris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gnomehack.com/pipermail/redland-dev/attachments/20050717/4a9e5e40/attachment.htm


More information about the redland-dev mailing list