Gosh everyone must be annoyed with my self-replies by now ;)<br>
<br>
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!<br>
<br>
-Boris<br><br><div><span class="gmail_quote">On 7/17/05, <b class="gmail_sendername">Boris Popov</b> <<a href="mailto:bpopov@gmail.com">bpopov@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here's the ontology in question: <a href="http://www.dayf.de/2004/owl/beer.owl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.dayf.de/2004/owl/beer.owl</a><br>
<br>
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.<br>
<br>
These are the triples resulting from the original file<br>
<br>
<span style="font-family: courier new,monospace;"><<a href="http://www.purl.org/net/ontology/beer#Hops" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Hops
</a>>
<<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</a>>
<<a href="http://www.w3.org/2002/07/owl#Class" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2002/07/owl#Class</a>> .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">_:r1r1 <<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/1999/02/22-rdf-syntax-ns#type
</a>> <<a href="http://www.w3.org/2000/01/rdf-schema#label" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.w3.org/2000/01/rdf-schema#label</a>> .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><<a href="http://www.purl.org/net/ontology/beer#Hops" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Hops
</a>> <<a href="http://www.w3.org/2002/07/owl#Class" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2002/07/owl#Class
</a>> _:r1r1 .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">_:r1r1 <<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/1999/02/22-rdf-syntax-ns#type
</a>> <<a href="http://www.w3.org/2000/01/rdf-schema#subClassOf" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.w3.org/2000/01/rdf-schema#subClassOf</a>> .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">_:r1r1 <<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#resource" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.w3.org/1999/02/22-rdf-syntax-ns#resource
</a>> "#Ingredient" .</span><br>
<br>
</span>And these are triples with a change to rdf:about="#Hops"<br>
<span style="font-family: courier new,monospace;"><br>
<<a href="http://www.purl.org/net/ontology/beer#Hops" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Hops</a>>
<<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</a>>
<<a href="http://www.w3.org/2002/07/owl#Class" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2002/07/owl#Class</a>> .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><<a href="http://www.purl.org/net/ontology/beer#Hops" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Hops
</a>> <<a href="http://www.w3.org/2000/01/rdf-schema#label" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2000/01/rdf-schema#label
</a>> "Hops"@en .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><<a href="http://www.purl.org/net/ontology/beer#Hops" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Hops
</a>>
<<a href="http://www.w3.org/2000/01/rdf-schema#subClassOf" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2000/01/rdf-schema#subClassOf</a>>
<<a href="http://www.purl.org/net/ontology/beer#Ingredient" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Ingredient</a>> .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><<a href="http://www.purl.org/net/ontology/beer#Hops" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Hops
</a>> <<a href="http://www.w3.org/2000/01/rdf-schema#label" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2000/01/rdf-schema#label
</a>> "Vine"@en .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><<a href="http://www.purl.org/net/ontology/beer#Hops" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.purl.org/net/ontology/beer#Hops
</a>> <<a href="http://www.w3.org/2000/01/rdf-schema#label" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2000/01/rdf-schema#label
</a>> "Hopfen"@de .</span><br>
<br>
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!<br>-- <br><span class="sg">- Boris
</span></blockquote></div><br><br><br>-- <br>- Boris