rubensworks / graphql-to-sparql.js

Converts GraphQL queries to SPARQL queries
MIT License
112 stars 17 forks source link

Integrate a GraphQL schema #56

Open mielvds opened 3 years ago

mielvds commented 3 years ago

This library follows a schema-less approach, but I was wondering whether a schema-based option is not worth considering. Adding a schema in the mix could have a couple of advantages:

(this could be something we can put a bounty on)

rubensworks commented 2 years ago

This may indeed be useful in cases where a fixed source (or federation of sources) is known beforehand, where the schema of that source could be used to more conveniently write queries.

It may even be possible to automatically generate this schema from the sources through introspective SPARQL queries on the source (and possibly also on the used RDF vocabularies).

Feel free to mail me if you want to discuss putting a bounty on this! (if we want to include schema generation, this may also be suitable as a research project)

nikolaswise commented 1 year ago

Would love to second generated a graphql schema automagically – that would be very neat. Right now Im trying to integrate GraphiQL into my app, and a magic schema would be cool