IIIF / discovery

8 stars 3 forks source link

What does delete mean? #68

Closed glenrobson closed 4 years ago

glenrobson commented 4 years ago

This is related to the discussion on the possibility of having the same item appear in two activity streams. In the example given in https://github.com/IIIF/registry/issues/1, if we had a painting of a dinosaur from NGA it could be in two activity streams; an activity stream aggregating dinosaur related material from a dinosaur aggregator and the NGA paintings activity stream.

If there was a delete event in the dinosaur activity stream what does this mean? Does it mean:

azaroth42 commented 4 years ago

The delete activity is on the manifest, not the entry in the stream, so I believe that the answer is the latter -- that the dinosaur painting has been deleted.

We don't have meta-level stream information, but it could be added using Remove as an activity type, and the URI of the stream as the origin of the activity. E.g. I removed "dinosaur painting" from this collection.

aisaac commented 4 years ago

@azaroth42 mentioning these two things next to each other makes me realize that it could help if we specify a general "scope" for understanding the activities:

Your interpretation of Delete would hint that we opt for the "absolute" approach, and I think this would be my prefered one. I guess this is also compatible with the Remove idea - though I would have used target for the (IIIF) Collection from which the object is removed (but I must say I'm not 100% sure I understand the difference between origin and target in the examples given at https://www.w3.org/TR/activitystreams-vocabulary/#dfn-remove )

zimeon commented 4 years ago

I think that adding "Remove" is perhaps the clearest way of making the distinction from "Delete" (though one might also need to add the parallel "Add" as distinct from "Create")

azaroth42 commented 4 years ago

For Add, are you thinking of a case where we want a point in the stream at which point the resource is added, such that the temporal ordering doesn't catch people out that there are new entries back in time that they won't have seen? Inserting entries in the past would break caching for the pages, and so encountering an Add isn't making a claim about the time of an activity on the resource, but instead about the current stream.

If so ... yes, I think I agree with Add as well as Remove.

zimeon commented 4 years ago

@azaroth42 precisely

aisaac commented 4 years ago

Cf discussion 2020-03-18:

azaroth42 commented 4 years ago

I think this can be closed, given 0.5?

aisaac commented 4 years ago

I think so! The specific part that implements this: https://iiif.io/api/discovery/0.9/#aggregated-activity-streams

azaroth42 commented 4 years ago

Closing, call of 2020-06-10