Callidon / sparql-engine

🚂 A framework for building SPARQL query engines in Javascript/Typescript
https://callidon.github.io/sparql-engine
MIT License
97 stars 14 forks source link

Add ability to sparql query over unbound (?g) named graphs #44

Closed jbouecke closed 4 years ago

jbouecke commented 4 years ago

Having variables that describes graph IRIs should be possible within a query

A sparql query that should work according to the 1.1 spec is:

  PREFIX dblp-pers: <https://dblp.org/pers/m/>
  PREFIX dblp-rdf: <https://dblp.uni-trier.de/rdf/schema-2017-04-18#>
  PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  SELECT ?s ?name ?article ?g
  WHERE {
        GRAPH ?g {
          ?s rdf:type dblp-rdf:Person .
          ?s dblp-rdf:primaryFullPersonName ?name .
          ?s dblp-rdf:authorOf ?article .
      }
  }

I am also willing to contribute but have not much experience with this project yet. May be you can sketch a solution and point me to the important parts?

I created a test case for it that (of coarse) right now fails, and placed it into a pull request #43

Callidon commented 4 years ago

Hi,

Thank you for reporting this issue. I see exactly how to easily fix it, I will work on that as soon as possible and notify you when it's done.

jbouecke commented 4 years ago

Sounds wonderful. Thanks! I did some research on javascript sparql engines and after that fix it's for me by far the best!

Am Sa., 29. Feb. 2020 um 11:30 Uhr schrieb Thomas Minier < notifications@github.com>:

Hi,

Thank you for reporting this issue. I see exactly how to easily fix it, I will work on that as soon as possible and notify you when it's done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Callidon/sparql-engine/issues/44?email_source=notifications&email_token=AAP7L6LM5K4XLVRLOIESVULRFDRTVA5CNFSM4K5Q7NSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENLWM6Q#issuecomment-592930426, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP7L6IVTKCIGLFGA7LSEDDRFDRTVANCNFSM4K5Q7NSA .