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!

Do we have Joins , Intersection in SPARQL

880207Aug 10 2011 — edited Aug 11 2011
Hi,

In our SQL we have OUTER / INNER JOINS, is there anything similar in SPARQL?
Also i found UNION in SPARQL, Do we have INTERSECTION in SPARQL?

Thanks and Regards,
Manish H

Comments

alwu-Oracle
Hi,

In a BGP, patterns are joined together. SPARQL OPTIONAL is similar to outer join.

Say you have a query pattern ?x :friendOf :John, and you want to do an intersection
with query pattern ?x :friendOf :Mary, an easy way is to put these two patterns together.

{ ?x :friendOf :John . ?x :friendOf :Mary .}

The following SPEC has all the information you need for SPARQL 1.0.
http://www.w3.org/TR/rdf-sparql-query/

Thanks,

Zhe Wu
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 8 2011
Added on Aug 10 2011
1 comment
2,099 views