[Pellet-users] Get domains for a property

Evren Sirin evren at clarkparsia.com
Thu Apr 10 16:37:59 UTC 2008


You can get the domain of a property by asking the super classes of 
concept expression (p some owl:Thing). What you describe below is a 
little different and you wouldn't get any superclasses for this 
expression. You can query for the subclasses of the expression and in 
your example you would get both C1 and C2. But note that querying for 
subclasses finds concepts that necessarily have the property value, i.e. 
if all you had in the ontology is a global domain axiom then you 
wouldn't get any answers for this second query.

Cheers,
Evren

On 4/9/08 10:09 AM, Christina Tziviskou wrote:
> hi,
>
> I'm using the Pellet API for querying the knowledge base.
>
> I have two concepts that share the same property but each one of them 
> defines it with a different range.
> Example:
> C1 prop r1
> C2 prop r2
>
> Because of the common property, I define:
> kb.addEquivalentClass(C1, AtermUtils.makeSomeValues(prop, r1))
> kb.addEquivalentClass(C2, AtermUtils.makeSomeValues(prop, r2))
>
>
> How can I get the possible concepts that define the property without 
> knowing the range?
>
> If i knew the range, I could use:
> kb.getEquivalentClass(AtermUtils.makeSomeValues(prop, r1))
> and get C1 as the answer.
>
>
> thank you in advance,
> christina
>
>
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>   



More information about the Pellet-users mailing list