-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Filter LDP containers and AS containers #1251
Comments
It looks very promising. |
That's not in the LDP specs, that's why we need to decide what methods to use. |
Use case mentionned here: filter followers/following list by keywords (we would need to dereference the actors), so that we can quickly search through followers when we want to mention them. |
Maybe we should also take into consideration sorting as well... |
If we don't always provide a SPARQL endpoint to SemApps instances, it would be important to at least be able to filter LDP containers (and AS collections !), which is where SPARQL is the most relevant. The
ldp.container.get
action already accept afilter
param, but it is not available on the API.We have several options:
With a ShEx shape
Pass a SHACL/ShEx shape when GETting a LDP container, so that only resources matching the shape are returned.
Sarven comment:
https://www.w3.org/TR/ldp/#prefer-parameters
https://www.w3.org/TR/ldp/#prefer-examples
https://www.w3.org/TR/ldn/#constraints
https://solidproject.org/ED/protocol#constraints-problem-details
Would require some kind of Shape-to-SPARQL converter
With a SPARQL query
Unfortunately there seems to be no spec available to do a SPARQL query only on a single resource or container. Libraries like Communica allow it, but they fetch the resource/container, and then apply the SPARQL query. What we would need is to do that on the server side.
With Linked Data Fragments
The Linked Data Fragments server is too heavy for this use case, and we would need to develop a WAC extension like we did for Fuseki. But we could use the LDF spec to query the container itself.
See https://linkeddatafragments.org/specification/triple-pattern-fragments/#http-based-implementation
With a custom Header or query string
If all other solutions fail, we can always use a custom header or query string.
Related issues
search
parameter to the LDP container service #235The text was updated successfully, but these errors were encountered: