- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Tue, 4 Nov 2014 23:10:19 +0100
- To: <public-hydra@w3.org>
- Cc: <public-socialweb@w3.org>
On 3 Nov 2014 at 17:18, ☮ elf Pavlik ☮ wrote: > Hi, > > I currently do some work implementing Activity Streams 2.0 which we work > on in Social WG and recently core spec got published as FPWD[1]. > > I need a way to link to 'all my activity on some other thing', eg. > > PREFIX hydra: <http://www.w3.org/ns/hydra/core#",> > PREFIX as: <http://www.w3.org/ns/activitystreams#> > > CONSTRUCT { </some-collection> hydra:member ?activity } > WHERE { > ?activity a as:Activity; > as:actor https://wwelves.org/perpetual-tripper; > as:object http://tmblr.co/ZxcvMv1UViUDg . > } > > Preferably using a collection with permanent URI, eg. > > { > "@context": ..., > "@id": "/some-collection", > "@type": "Collection", > "member: [ > { > "@id": "/activities/1" > "@type": ["as:Activity", "schema:DislikeAction"] > }, > { > "@id": "/activities/5" > "@type": ["as:Activity", "schema:CommentAction"] > }, > { > "@id": "/activities/23" > "@type": ["as:Activity", "schema:CommentAction"] > } > ] > } > > (I do realize that in SPARQL example I didn't select those additional > types, etc.) > > I wonder if hydra:manages or Linked Data Fragments could provide a way > to relate this collection to the query, from which its members come from? No, they don't. You could mark it up with PROV [2] though > In practice I would like to have a link in human UI, as well as > hypermedia control for machines in each resource of as:Activity type to > collection of all my other activities on that resource. To me, that appears to be a different use case than what you described above. > At some point I want to allow subscriptions to various collections of my > activities, each based on some filter/query. eg. { "@type": > "schema:TravelAction" }. BTW I also plan to setup LDF server for all the > data that i publish online, which will include very detailed log of my > activities, similar to http://aaronparecki.com/metrics :) Cool. Please keep us posted > [1] http://www.w3.org/TR/2014/WD-activitystreams-core-20141023/ [2] http://www.w3.org/TR/prov-o/ -- Markus Lanthaler @markuslanthaler
Received on Tuesday, 4 November 2014 22:10:47 UTC