Do you have a reasoner attached? If yes, as an individual operation 2) is
faster only marginally.

But if this operation is part of many other operation, it really does not
matter.

Remember, the question you are asking the OntModel is a CWA question and
not an OWA question. So, by design the answer to this question is bound to
be slow.

Thanks
Ashish


On Fri, Jun 20, 2014 at 9:50 AM, Kamalraj Jairam <
[email protected]> wrote:

> Hello All,
>
> If i want to query an complex ontology, which method is the fastest ? (For
> e.g. , i need to get all class level relationships and properties for a
> class)
>
> 1) Run sparql against ONTModel
>
> 2) Use Model api to extract details from the Ontology
>
>
> Thanks
>
>
>
>
>

Reply via email to