Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a d3 style SPARQL query constructor. #3

Open
l00mi opened this issue Aug 1, 2017 · 0 comments
Open

Introduce a d3 style SPARQL query constructor. #3

l00mi opened this issue Aug 1, 2017 · 0 comments

Comments

@l00mi
Copy link
Contributor

l00mi commented Aug 1, 2017

It might be possible to create a query constructor looking something like the following:

d3.sparql(endpoint)
  .prefix("vcard","http://www.w3.org/2006/vcard/ns#")
  .select("card")
  .select("name")
  .where("card", a, "vcard:Individual")
  .where("card", "vcard:name", "name")
  .filter("name", "=", "Michael")
  .limit(100)

to build the QUERY:

SELECT ?card ?name WHERE {
  ?card a vcard:Individual.
  ?card vcard:name ?name.
  FILTER( ?name = 'Michael')
}
LIMIT 100

Not sure about the potential benefits? Evt. automated query builders?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant