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

Lack of good quality SPARQL test queries #115

Open
Ritvik1712 opened this issue May 13, 2022 · 2 comments
Open

Lack of good quality SPARQL test queries #115

Ritvik1712 opened this issue May 13, 2022 · 2 comments
Labels

Comments

@Ritvik1712
Copy link

We tried to run SPARQL queries by copying them as it is from the demo link. However we faced errors while running the queries due to lack of support for pre defined prefixes present in the tutorial.
To help the community better compose correct queries and understand what are the missing attributes while using queries on DBPedia endpoints, we are raising this issue to add additional test cases in the test_sparql.py file. Currently the test file contains on one query which is very trivial and thus, does not test a majority of the filters in SPARQL. Addition of more queries to the test file would help give a better picture of how the queries are run and provide examples to the community when they create their own custom queries to be run on the DBPedia endpoint.

@lambdamusic
Copy link
Owner

Not sure I understand the point of this. Why should we include specific DBpedia queries in Ontospy?

Ontospy aims to make it easier to pull/document schema information from an RDF source. Any RDF source, ideally.

A Sparql endpoint is a possible source. DBPedia just so happens to provide such an endpoint - so not sure why the focus on DBpedia..

@ajnelson-nist
Copy link
Contributor

@Ritvik1712 would your needs be satisfied by inlining prefixes with the PREFIX directive? See e.g. how FOAF is inlined in the first example of section 2:

https://www.w3.org/TR/sparql11-overview/#sparql11-query

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

No branches or pull requests

3 participants