Re: hydra:Collection with reverse property (in manages)

Hi there,

Why not simply do:

{
  "@id": "http://uri-of-event",
  "@type": "http://schema.org/Event",
  "http://schema.org/attendee": "http://you-uri"
}

And you could clean it up in the @context

On Tue, Aug 26, 2014 at 1:33 PM, ☮ elf Pavlik ☮
<perpetual-tripper@wwelves.org> wrote:
> hi, i would like to create collection of events which i attend(ed).
> if i want to stick to schema.org vocab, then i need to use reverse of
> http://schema.org/attendee
>
> can i just define attendeeIn in @context
>
> {
>   "@context": {
>     "attendeeIn": { "@reverse": "http://schema.org/attendee" }
>   }
> }
>
> and simply use for property in 'manages block'?
>
> {
>   "@id": "/alice",
>   "collection": {
>     "@id": "/alice/events",
>     "@type": "Collection",
>     "manages": {
>       "property": "attendeeIn",
>       "subject": "/alice"
>     }
>   }
> }
>
> thanks for pointing out any possible gotchas!
>

Received on Tuesday, 26 August 2014 11:50:51 UTC