- From: James M Snell <jasnell@gmail.com>
- Date: Mon, 18 Aug 2014 10:20:32 -0700
- To: David Janes <davidjanes@davidjanes.com>
- Cc: Linked JSON <public-linked-json@w3.org>
I doubt it would be. The Link Relation is still fairly new and I believe Node has some challenges with multiple Link header instances. To be safe, if you're using Node, combine all your Link headers into a single Link header instance (comma separated). Until it's baked in, you'll have to scan for the "type" link header and do a bit of pre-processing on the JSON-LD context or JSON input in order for it to work. On Mon, Aug 18, 2014 at 10:11 AM, David Janes <davidjanes@davidjanes.com> wrote: > Oh brilliant, thanks. Darn Internet, there's always something new in some > corner. > > Flicking through the Node-JS jsonld it doesn't look like this is supported > by the code at this point? > > D. > > > > On Mon, Aug 18, 2014 at 12:38 PM, James M Snell <jasnell@gmail.com> wrote: >> >> Keep in mind that there is a "type" link relation registered for use >> with Link headers (see http://tools.ietf.org/html/rfc6903#section-6) >> >> In other words, you could use: >> >> Link: <https://iotdb.org/iotdb/models/firmata-dht11>; rel="context" >> Link: <https://iotdb.org/iotdb/models/firmata-dht11>; rel="type" >> >> To achieve the result you're looking for. That said, given that >> rel="type" is relatively new, it's likely that you will have to do the >> mapping yourself. >> >> - James Snell >> >
Received on Monday, 18 August 2014 17:21:33 UTC