W3C home > Mailing lists > Public > public-linked-json@w3.org > August 2014

Re: Default @type

From: David Janes <davidjanes@davidjanes.com>
Date: Fri, 8 Aug 2014 11:10:22 -0400
Message-ID: <CACp1KyOrW4NduiCVE0sFEzwtU9dqJM0Uq19WAD161aYHUORkNw@mail.gmail.com>
To: Stian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
Cc: Linked JSON <public-linked-json@w3.org>
Thanks everyone, that's what I figured.

If you're interested, here's what I'm doing with JSON-LD. TL;DR using it to
semantically describe sensor data (and actuator actions)
https://iotdb.org/social/imadeit/post/94151721526/make-your-data-semantic-using-json-ld-and-iotdb

D.


On Thu, Aug 7, 2014 at 8:36 PM, Stian Soiland-Reyes <
soiland-reyes@cs.manchester.ac.uk> wrote:

> If you use properties which you define and only use on the same type of
> resource, you can in the vocabulary where the property is defined add
> rdfs:domain to the implied type of the subject (and rdfs:range to type the
> object)
>
> It would however require additional RDFS or OWL reasoning beyond the
> regular JSON-LD processing to get those typing triples. In RDF stores like
> Jena this is normally just a simple configuration option combined with
> loading the vocabulary.
>  On 7 Aug 2014 20:34, "David Janes" <davidjanes@davidjanes.com> wrote:
>
>> Let's say I have some temperature / humidity data
>>
>>     {
>>       "temperature" : 22.1,
>>       "humidity" : 44
>>     }
>>
>> I can mark this up semantically using JSON-LD as follows (note the
>> JSON-LD at the link is a little wonky right now in terms of naming):
>>     {
>>       "@type" : "https://iotdb.org/iotdb/models/firmata-dht11",
>>       "@context" : "https://iotdb.org/iotdb/models/firmata-dht11",
>>       "temperature" : 22.1,
>>       "humidity" : 44
>>     }
>>
>> Great, this record now has a type and proper definitions for temperature
>> and humidity.
>>
>> But let's say I want to leave the record alone and use HTTP Links headers
>> to annotate, as per [1]. Obviously I get the @context. But how do I get the
>> @type associated with the record?
>>
>> [1] http://www.w3.org/TR/json-ld/#interpreting-json-as-json-ld
>>
>> Regards,
>>
>> D.
>>
>>
>>
Received on Friday, 8 August 2014 15:11:10 UTC

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