Thanks !
________________________________________
From: Dave Reynolds [[email protected]]
Sent: Wednesday, August 27, 2014 3:17 PM
To: [email protected]
Subject: Re: Listing datatype properties

On 27/08/14 14:12, HAQUE AKM RAFIQUL wrote:
> Hi Dave,
>
> The method could produce a list of data type properties. Thanks again for 
> your suggestion.
> Is it possible to know the corresponding classes of the properties?

If you mean domain/range declarations then yes a DatatypeProperty is an
OntProperty which in turn supports listRange() and listDomain().

Beware that if your ontology has complex domain/range expressions (e.g.
boolean combinations) then all that listRange/listDomain will give you
back is access to those class expressions.

You may find the OntAPI manual helpful:
  http://jena.apache.org/documentation/ontology/

Dave

Reply via email to