hackers4peace / plp-prototypes

Repository containing prototype definition for profile data to be reused across components/modules.
http://ld.hackers4peace.net/contexts/plp.jsonld
Other
0 stars 0 forks source link

Replace $ref with {name: "name", id: "url") #2

Closed acorbi closed 9 years ago

acorbi commented 9 years ago

Currently, prototypes contain references to other prototype definitions ( Person <-> Organization, Place <-> Event ) by means of https://github.com/jdorn/json-editor#ref-and-definitions.

I believe this references should be replaced with following object:

{
name: "name of the linked resource",
url: "URI of the linked resource"
}

which corresponds to http://schema.org/Thing.

This way, the plp-editor for instance, would present the user a field to input just the url of the resource and not the whole set of attributes of that linked resource, which currently makes the editor not so user-friendly.

acorbi commented 9 years ago

Another question here would be whether this proposed object should comply with the attributes available on http://schema.org/Thing or whether using id instead of url would make a difference.