My Oracle Support Banner

How To Avoid Intermediate Predicates In a SPARQL Query (Doc ID 470813.1)

Last updated on APRIL 04, 2019

Applies to:

Oracle Spatial - Version: and later   [Release: 11.1 and later ]
Information in this document applies to any platform.


Note: This note does not contain code that can be directly used in an implementation. This note contains pseudo-code and concepts for working with ontologies. If you need some coding for an implementation that uses the concepts explained here, please create a Service Request with Oracle Support.

How to query two classes that are linked through another class without having to specify the connection in the query. e.g.

-------     -----------
Project     hasStudy
Study       hasExperiment

There is no subClass predicate involved.

We want to be able to relate Project to Experiment without having to use Study in the query

We want the query pattern to be:

(?x <projhasExperiment> ?y)

instead of

(?x <hasStudy> ?z) (?z <hasExperiment> ?y)


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.