We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I generate a SPARQL query from a GraphQL query, I always see the statement in the WHERE clause is something like:
?df_3_0 <http://example.org/hero> ?hero.
which won't match anything in our knowledge base and thus cause the query to return with no results.
What I was expected was a statement more like:
?hero <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/hero>
which would then be followed by the remainder of the statements used to obtain the predicate values of interest.
Is there a way to get the code to generate that? Perhaps I've missed something.
The text was updated successfully, but these errors were encountered:
Sure, you can use inline fragments for that: https://github.com/rubensworks/graphql-to-sparql.js#inline-fragments
Sorry, something went wrong.
No branches or pull requests
When I generate a SPARQL query from a GraphQL query, I always see the statement in the WHERE clause is something like:
?df_3_0 <http://example.org/hero> ?hero.
which won't match anything in our knowledge base and thus cause the query to return with no results.
What I was expected was a statement more like:
?hero <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/hero>
which would then be followed by the remainder of the statements used to obtain the predicate values of interest.
Is there a way to get the code to generate that? Perhaps I've missed something.
The text was updated successfully, but these errors were encountered: