You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Kamalraj Jairam <kj...@semanticsoftware.com.au> on 2014/06/20 03:50:45 UTC
Ontology Model
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
Re: Ontology Model
Posted by Ashish Nijhara <ni...@gmail.com>.
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 <
kjairam@semanticsoftware.com.au> 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
>
>
>
>
>