The Knowledge Graph Conference Icon
The Knowledge Graph Conference
  • 馃彔Home
  • 馃搮Events
  • 馃懁Members
  • 馃數Announcements
  • 馃數Ask
  • 馃數Ask The Ontologists
  • 馃數Events
  • 馃數Jobs
  • 馃數Promotions
  • 馃數Share
Powered by Tightknit
Ask
Ask

SQL Joins and SPARQL Equivalents: FILTER NOT EXISTS vs MINUS

Avatar of Veronika H.Veronika H.
路Aug 01, 2025 07:21 AM

Hi, all. I am putting together a table of SQL joins and SPARQL equivalents. For this particular example, would you use FILTER NOT EXISTS or MINUS in SPARQL?

2 comments

路 Sorted by Oldest
  • Avatar of Pete R.
    Pete R.
    路

    I'd say FILTER NOT EXISTS is somewhat closer in semantics, likely to be more efficient, and more flexible (with MINUS the inner patterns must share an outer variable)

    馃憤2
  • Avatar of Veronika H.
    Veronika H.
    路

    Thank you, Pete R., for your superfast response!