-
Notifications
You must be signed in to change notification settings - Fork 44
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
Proposal: expose alternative query interfaces via pim:storage
#455
Comments
Aren't the sparql, qpf etc interfaces about the storage and so should instead be part of storage's description? |
SPARQL and QPF APIs could arguably be available over any resource (as opposed to just be a Pod-Wide I think discovering such endpoints should happen via resource-based API discovery mechanism rather than via a WebID (which could contain multiple Solid storages). I think that maybe issue #355 is most relevant to such requirements. |
Indeed, that might make sense. So the example from above based on your suggested storage description could become something like this:
I agree, resource-level interfaces definitely make sense. But I think the discovery of resource-level interfaces may work quite different to pod-level interfaces, so I'm inclined to focus purely on pod-level interfaces here. |
It may not be appropriate to interpret those interfaces as another (type of a) storage. My understanding was that they are alternative (or additional) endpoints, services, communication options offered by the storage. Would a unique property indicating those interfaces suffice? Or employing VOID, SPARQL-SERVICE-DESCRIPTION, etc? |
Yep, I agree with that view. With LDP also being one type of interface among these.
Is it something like this you have in mind?
I think VOID and SPARQL SD definitely make sense to describe the capabilities of such interfaces, but we still need a way to discover these in the first place. In the examples above, |
Maybe the discovery mechanism can be generic enough to accomodate advertising a SPARQL or qpf endpoint on any resource. It seems to me that a description resource may be quite fitting for that purpose. It happens so that according to the Solid Protocol ED, servers MUST advertise a storage description resource (and maybe that storage description resource is the same as the resource one finds linked on the storage resource itself via the Now, I think that there is a lot to be known about a SPARQL endpoint and that's why the SPARQL Service Description spec exists, we could probably efficiently leverage that, in the simplest manner by including a statement of the form I don't mind introducing new vocabulary terms, but maybe it's nice to be more specific and have more expressivity when describing a service (qpf, sparql or solid). |
Yes, along those lines. Perhaps the property is specialised for the interface so that clients can easily follow-their-nose. I think A Storage may want to share its VoID Datasets and DatasetDescriptions, e.g., discovered through their Description Resource (via Would Is there a property to discover a Is there something in LDF/QPF that indicates an interface or is that HYDRA (search/template?) |
I don't think we necessarily MUST have interface-specific properties, if we assume that interfaces are self-descriptive after dereferencing (which is the case within SPARQL endpoints via the SPARQL SD, and TPF/QPF via Hydra). However, specialised properties would make sense if we want to avoid clients having to dereference those interfaces before detecting their capabilities. But this might lead us quite far, perhaps even to the point that we will have to duplicate all information in the SPARQL SD and Hydra controls for TPF/QPF. Furthermore, since such descriptions (SPARQL SD, Hydra, ...) usually remain static, they can be cached by clients, so I don't think this would involve too much processing overhead. |
👍 I think starting with something very generic like
etc. No matter how the dataset is accessed, we are still dealing with the same set of quads. |
I don't believe that association is accurate and find it to be potentially misleading. The Solid Protocol and LDP are compatible in some aspects, however neither are an extension of the other. I suggest that we take care in how we communicate that. There are existing issues on this but we need to move some of the information towards the spec (or to another document.) |
Not sure if this is the correct location for this proposal, feel free to move this issue to https://github.com/solid/specification or elsewhere if needed
Motivation
There has been some discussions in the past around exposing query interfaces as alternative to the LDP-based interface, such as SPARQL endpoints, or TPF/QPF interfaces (#229, #227).
However, up until now, there is still no agreed upon way to expose such alternative interfaces, which makes it difficult to make use of such query interfaces in the Solid ecosystem.
Below, I list a simple and concrete proposal to fill this gap.
Proposed solution
The WebID spec specifies the use of
pim:storage
as "location(s) of the WebID owner's storage space(s)".The spec says that this should refer to the root LDP container.
However, if we would lower this requirement, and make it say that it should refer to any kind of interface to access the user's pod, then this predicate could also be used to refer to an alternative interface using this predicate, such as a SPARQL endpoint or QPF interface.
Example
For example, a person deciding to expose a SPARQL endpoint and a QPF interface next to its LDP-based storage, could then do this as follows:
A client app could consider these storages as alternatives to each other, and pick the one that is best suited for the query needs of the client.
Limitations
The only downside of this approach would be backwards-compatibility, where apps would assume that these alternative interfaces are also LDP containers. For this reason, it may be better to introduce a new predicate, such as
solid:storage
.The text was updated successfully, but these errors were encountered: