-
Notifications
You must be signed in to change notification settings - Fork 12
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
Discussing a rework for conditional imports #90
Comments
From the call of 2023-11-08:
That way, imports could be entirely removed from the TREE specification. |
From the call of 2024-06-05:
Conditional imports should go: they don’t work on mixed collections/streams Actions:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems
The member extraction algorithm resolved a part of the use cases for having conditional imports in the spec. However, two problems imports solve still remain valid:
Problem 1: Fragmenting on external paths
A property is being used as a
tree:path
parameter, but it is not part of the actual member. Therefore, when theExample of when this might be useful:
Problem 2: importing streams
One should be able to register on a pubsub stream when the node or collection is going to update at a certain moment through that stream.
Solution
Conditional imports
A conditional import can be defined as follows - it defines an extra HTTP request that can be done if from the current page it must follow the link if it needs graph patterns that match the path.
ex:N1 tree:import [ tree:path ( lc:departureStop gsp:asWKT ); tree:import <stops.ttl> ] .
Import Stream
Also
tree:importStream
was defined which allows one the subscribe on a websockets stream or an SSE stream.Questions
Conditional imports: Is this design still adequate to the use case? Is the term
import
correctly chosen?ImportStream: what can be expected from that stream? Should we constrain it to only view descriptions so that it always updates the full set of members? Or should we also allow to it being defined on a subset? Should we also define it to describe its updates through activity streams, as members can also be deleted?
The text was updated successfully, but these errors were encountered: