You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Fadhela Kerdjoudj <ke...@gmail.com> on 2013/06/12 15:18:40 UTC
problème with identification of intersection class
Hi,
I have a problem while testing if my class is an intersectionClass or not.
Let assume that my class is :
<owl:Class rdf:about="&gs;C">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="&foaf;Organization"/>
<owl:Restriction>
<owl:onProperty rdf:resource="&gs;isAgent"/>
<owl:allValuesFrom rdf:resource="&gs;ViolentAct"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="&gs;place"/>
<owl:allValuesFrom rdf:resource="&v;Address"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
When I try to use it as an intersectionClass to recover operands, I have an
exception which indicate me that C is not an intersectionClass:
*Exception in thread "main" com.hp.hpl.jena.ontology.ConversionException:
Cannot convert node http://www.geolsemantics.com/onto#C to IntersectionClass
*
Do you have any idea of where the problem comes? cause I'm very blocked.
Best regards,
F.K.
Re: problème with identification of intersection class
Posted by Dave Reynolds <da...@gmail.com>.
On 12/06/13 14:18, Fadhela Kerdjoudj wrote:
> Hi,
> I have a problem while testing if my class is an intersectionClass or not.
> Let assume that my class is :
>
> <owl:Class rdf:about="&gs;C">
> <owl:equivalentClass>
> <owl:Class>
> <owl:intersectionOf rdf:parseType="Collection">
> <rdf:Description rdf:about="&foaf;Organization"/>
> <owl:Restriction>
> <owl:onProperty rdf:resource="&gs;isAgent"/>
> <owl:allValuesFrom rdf:resource="&gs;ViolentAct"/>
> </owl:Restriction>
> <owl:Restriction>
> <owl:onProperty rdf:resource="&gs;place"/>
> <owl:allValuesFrom rdf:resource="&v;Address"/>
> </owl:Restriction>
> </owl:intersectionOf>
> </owl:Class>
> </owl:equivalentClass>
> </owl:Class>
>
> When I try to use it as an intersectionClass to recover operands, I have an
> exception which indicate me that C is not an intersectionClass:
> *Exception in thread "main" com.hp.hpl.jena.ontology.ConversionException:
> Cannot convert node http://www.geolsemantics.com/onto#C to IntersectionClass
From the RDF point of view C is not the intersectionClass it is
owl:equivalentClass to the intersection class.
Assuming no inference then use getEquivalentClass to get the anonymous
intersection class and then use asIntersectionClass on that.
Dave