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

Valid values for @type in @context

From: Adrian Pohl <pohl@hbz-nrw.de>
Date: Mon, 12 Aug 2013 15:01:57 +0200
Message-Id: <5208F8E50200001400051A3A@agrippa.hbz-nrw.de>
To: "Linked JSON" <public-linked-json@w3.org>
Hello,

I have a short question about the possible values of the @type keyword in a JSON-LD @context. Can I use any rdfs:Class as value in the context? Example:

{
   "@context": 
   {
      "creator": {
      "@id": "http://purl.org/dc/terms/creator",
      "@type": "http://xmlns.com/foaf/0.1/Person"
     }
   }
   "@id": "http://example.org/SomeBook",
   "creator": "http://example.org/somePerson" 
}

Is the above a valid JSON-LD expression of the following data expressed as turtle?

<http://example.org/SomeBook> <http://purl.org/dc/terms/creator> <http://example.org/somePerson> .
<http://example.org/somePerson> a <http://xmlns.com/foaf/0.1/Person> .

I don't see a problem doing this but as I haven't found an analogous example anywhere I thought I'd better ask...

- Adrian


Adrian Pohl
- Linked Open Data -
hbz - Hochschulbibliothekszentrum des Landes NRW
Tel: (+49)(0)221 - 400 75 235
http://www.hbz-nrw.de
Received on Monday, 12 August 2013 13:02:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:53:23 UTC