Re: reusing Vocabulary terms in Social API (Hypermedia)

On 01/21/2015 09:14 PM, ☮ elf Pavlik ☮ wrote:
> Since I know few thousands of people, and other people find themselves
> followed online even by millions of other people. We need a way to avoid
> publishing all those links directly on our homepage! One of the proposed
> solutions comes from Hydra CG -
> https://www.w3.org/community/hydra/wiki/Collection_Design
> 
> {
>   "@context": {
>     "@vocab": "http://schema.org",
>     "hydra": "http://www.w3.org/ns/hydra/core#"
>   },
>   "@id": "https://wwelves.org/perpetual-tripper",
>   "name": "elf Pavlik",
>   "hydra:collection": [
>     {
>       "@id": "https://wwelves.org/perpetual-tripper/friends",
>       "name": "elf Pavlik's friends",
>       "hydra:manages": {
>         "property": "knows",
>         "subject": "https://wwelves.org/perpetual-tripper/friends"
>       }
>     },
>     {
>       "@id": "https://wwelves.org/perpetual-tripper/events",
>       "name": "elf Pavlik's events",
>       "hydra:manages": {
>         "property": "attendee",
>         "object": "https://wwelves.org/perpetual-tripper/friends"
>       }
>     }
>   ]
> }
Dietrich Schulten participating in Hydra CG spotted mistake I made here.
Both subjects should have https://wwelves.org/perpetual-tripper (without
/friends), my mistake when copy/paste URIs :(

also property and object should have prefix hydra: or aliases in
@context, sorry for those glitches!

Received on Thursday, 22 January 2015 09:24:51 UTC