Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RDBMS and RDF- SparQL

880207Sep 26 2011 — edited Oct 3 2011
Hi,

I have some data in RDBMS table's and some data stored as Triple in RDF tables. In my SparQL query, can i combine both RDBMS and RDF together in a single query?
if it is possible, it would be great if you can share some example.

I am looking for something like this, FIND SUPERVISOR NAME

RDBMS table- EMPLOYEE - contains all employee names
RDF table - EMPLOYEE_HEIRARCY - contains employee heirarcy
MODEL- MD_EMPLOYEE

SPARQL QUERY:

SELECT ?SUPERVISOR WHERE { ?SUPERVISOR :isSeniorOf ?EMPLOYEE AND ?EMPLOYEE ='MH'}
above query is not correct query w.r.t to syntax, i m looking for such a logic taking employee name from rdbms table and heirarcy from rdf table in a single sparql query.

Thanks and Regards,
Manish Hardasmalani

Comments

Sdas-Oracle
You can do this from a SQL query using SEM_MATCH table function which allows you to specify a SPARQL graph pattern.
SEM_MATCH retrieves relevant data from the RDF store which can then be joined with one or more relational tables.

For more details on use of SEM_MATCH, please refer to documentation at:
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11828/sdo_rdf_concepts.htm#CHDJACII
880207
Hi,

I am using Jena & SparQL. I am not sure if i can call SEM_MATCH query directly from Jena. As per my understanding Sparql gets converted to SEM_MATCH query.
As i am calling Sparql query using Jena, I want to use RDBMS table data also with sparql query in a single query.

If possible , kindly share an example , it would be of great help

Thanks and Regards,
Manish H
880207
Any view on above comment
Sdas-Oracle
Use of SPARQL from Jena does not currently allow access to relational tables. A workaround you may consider trying would be to first generate RDF triples from the relational tables and then try querying using SPARQL the original RDF data plus the RDF data generated from relational tables.
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 31 2011
Added on Sep 26 2011
4 comments
234 views