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

On 29 Aug 2014 at 06:44, Thomas Hoppe wrote:
> Hi,
> now that there is consensus over the new collection design,
> when will it make it into the spec draft?

We still have some open issues regarding paged collections. As soon as those are resolved, we can document the collection design in the spec.


Cheers,
Markus


> Greets
> 
> On 08/28/2014 07:56 PM, ☮ elf Pavlik ☮ wrote:
>> On 08/26/2014 02:17 PM, Markus Lanthaler wrote:
>>> Hi Pavlik,
>>> 
>>> On 26 Aug 2014 at 13:33, ☮ elf Pavlik ☮ 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'?
>>> Nope :-) That doesn't do the trick as the information that you are
>>> interested in the reverse property would be lost. The solution is
>>> quite simple however. Schema.org follows the model
>>> 
>>>     Event  --[ attendee ]--> Person
>>> You want the collection to be constant for "attendee" and "Person". In
>>> other words, the variable is the "Event"... or subject if you look at
>>> it as triples. So instead of
>>> 
>>>> {
>>>>    "@id": "/alice",
>>>>    "collection": {
>>>>      "@id": "/alice/events",
>>>>      "@type": "Collection",
>>>>      "manages": {
>>>>        "property": "attendeeIn",
>>>>        "subject": "/alice"
>>> You would declare it as
>>> 
>>>         "property": "attendee",
>>>         "object": "/alice"
>>>>      }
>>>>    }
>>>> }
>> Thanks Markus,
>> 
>> I added this info to *Collection Design* wiki page:
>> 
> https://www.w3.org/community/hydra/wiki/index.php?title=Collection_Design&diff=19&ol
> did=18
>> 
>> BTW do you plan to include all this information in core spec?
>> 
>> Cheers!
>>

Received on Wednesday, 3 September 2014 14:49:04 UTC