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
