-
Notifications
You must be signed in to change notification settings - Fork 3
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
Confirm that solid:instanceContainer container contains documents containing instances? #34
Comments
A counterexample in solidos, where the objects of
|
Can you give an example of what you mean by a document needed to read an instance and how that would be (or is) used with the type index instanceContainer? To me instanceContainer points to a container which contains records of the type specified in the forClass e.g. image files, sioc posts, vcard records. I would expect each to be contained in its own resource. To me, the case of a document that contains pointers to instances should be handled by instance, not instanceContainer. I see these as the potential relationships between the type index and instances : solid:instanceContainer points to a Container whose contained resources include
solid:instance points to a subject in a resource, subject points to instances
solid:instance points to a subject in a resource, subject does not point to instances
solid:instance points to a resource
Should we explicitly say these are the possibilities? Or should we limit some of them? See the discussion starting at https://matrix.to/#/#solid_solidos:gitter.im/$AzSC4daFzrgRwt-FDuuB61wOY3rs4hwTcihI-5g3xeE |
As an example, Umai's structure uses instanceContainer with an LDP container in which each document has a schema:Recipe object. Media Kraken uses the same pattern and here's an example: |
The spec says:
"solid:instanceContainer - This predicate maps a type to a Solid container which the client would have to list to get the instances of that type."
My understanding is that this should be interpreted as
"a Solid container containing documents which the client needs to read to get instances of that type."
This interpretation provides an affirmative answer to:
#30 (comment) "A container contains documents, not instances of the given type. So does it mean I have to read all documents contained in the container and consider all instances of the type found in those documents?"
This interpretation is based on:
Additionally, to maintain an open world assumption, it appears that not all the documents in the container are required to contain instances of the registered type.
This may cause surprises, with clients parsing data they do not expect to parse or did not need to parse.
See e.g. NoelDeMartin/media-kraken#34 (comment)
The text was updated successfully, but these errors were encountered: