W3C home > Mailing lists > Public > public-linked-json@w3.org > January 2015

correct use of @id vs url

From: Paul Mackay <pauljmackay@gmail.com>
Date: Tue, 13 Jan 2015 18:27:55 +0000
Message-ID: <CALe0mCx=OLvr055Ef+E=HuHU56Eq_WJMf1eyQYDQtHAc3ymC2Q@mail.gmail.com>
To: public-linked-json@w3.org
Could I check on the correct use of @ld, particularly with APIs (as opposed
to embedded data in webpages, etc)?

My assumption is @id is intended to represent a IRI for an API object. So
if I call an API and get a list of objects, if @id is present in each
object, it should be an IRI of just that object in the API.

What I'm wondering is what is the best way to define a JSON value of a URL
to a webpage of the object, if the object has a webpage separate from the
API? Would "url" be the most logical option? I ask because many examples in
the JSON-LD spec and elsewhere often use @id for something like object's
webpage.

Also is there a convention for representing links to other canonical
representations of a thing elsewhere on the web, e.g. Wikipedia pages?

Many thanks,

Paul
Received on Wednesday, 14 January 2015 13:49:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:43 UTC