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

universal queries #1558

Open
gautschr opened this issue Dec 17, 2019 · 1 comment
Open

universal queries #1558

gautschr opened this issue Dec 17, 2019 · 1 comment
Assignees
Labels
Gravsearch question further information is requested

Comments

@gautschr
Copy link

I formulated the following query that (should) ask for all resources in Knora (using Postman and POST to https://api.dasch.swiss/v2/searchextended)

PREFIX knora-api: http://api.knora.org/ontology/knora-api/simple/v2#

CONSTRUCT {
?s knora-api:isMainResource true .
}
WHERE {
?s a knora-api:Resource .
}

I retrieved no results. Is there a mistake in the query or is there a reason that such queries aren't allowed and if so, why? I consider such a query as a very useful one to get an idea about the data.

@gautschr gautschr added question further information is requested Gravsearch labels Dec 17, 2019
@benjamingeer
Copy link

I think this query should return an error message, because it's too broad to be meaningful.

I consider such a query as a very useful one to get an idea about the data.

The DaSCH repository could have billions of resources in it, belonging to thousands of different resource types. Scrolling through a few random resources isn't going to give you an idea of what's in the repository.

For example, there are likely to be millions of knora-api:Region resources, used for different purposes by different projects. Suppose your search results returned all these Region resources first, before returning any other type of resource? You would have no idea what all these regions were used for. You might think that the DaSCH repository contained only regions... but regions of what? You would not know.

To get an idea of what's in the repository, you need an overview of the projects that are hosted by the DaSCH.

@subotic subotic added this to the Backlog milestone Feb 7, 2020
@irinaschubert irinaschubert removed this from the Backlog milestone Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gravsearch question further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants