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: 11.1.0.6 and later   [Release: 11.1 and later ]
Information in this document applies to any platform.

Goal

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.

CLASSES     PREDICATES
-------     -----------
Project     hasStudy
Study       hasExperiment
Experiment

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)



Solution

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
  Goal
  Solution

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