As I said, neither TDB component distinguishes between ontology triples and other RDF. Are you using the word ontology in some other sense?
How a given query is executed depends on a great deal of detail, including the form of the query. Perhaps you can explain more of the background to your question and we can give you a more useful answer... ajs6f > On Oct 30, 2018, at 12:02 PM, ashutosh mehta <[email protected]> wrote: > > I meant TDB2. > When a sparql query is made on the ontology, does only a particular node is > hit or doea it traverse the graph from the beginning? > > > On Tue, Oct 30, 2018, 7:10 PM ajs6f <[email protected]> wrote: > >> For TDB1 (you don't say whether you mean TDB1 or TDB2): >> >> https://jena.apache.org/documentation/tdb/architecture.html >> >> OWL, to either TDB, is just more RDF. TDB makes no distinction between >> ontology and instance data. Indexing is as described in the link above, >> along with any additional text or spatial indexing you may have created by >> using those Jena components. >> >> ajs6f >> >>> On Oct 30, 2018, at 9:36 AM, ashutosh mehta <[email protected]> >> wrote: >>> >>> Hi, >>> Is there any documentation regarding TDB structure. How does it store owl >>> files(ontology)? >>> >>> How does indexing happen in TDB? >>> >>> Thanks >>> Kind Regards >>> Ashutosh >> >>
