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

Re: OWL serialization

From: Philippe Duchesne <pduchesne@gmail.com>
Date: Fri, 29 Aug 2014 09:54:13 +0200
Message-ID: <CAG9URtwDhVQj6d=uoo9bwsFi3iyh4ne+UB_=73xU3pJg_c5+6A@mail.gmail.com>
To: Vinicius Maran <viniciusmaran@gmail.com>
Cc: public-linked-json@w3.org
You lack a definition for the info element (here assuming it is part of the
owl namespace) :
http://tinyurl.com/oswqx5n

--p.


On Thu, Aug 28, 2014 at 4:54 PM, Vinicius Maran <viniciusmaran@gmail.com>
wrote:

> Hello all,
> i`m starting to develop using JSON-ld, and i have a question.
> I`m trying to serialize owl-dl files in json-ld (i saw a related project
> but i want to do this for my own :P)
>
> *For example, i'm trying to serialize pizza owl ontology (only the owl-dl
> description of ontology, without axioms)* ( http://pastebin.com/Y1hyZaJj
> ) :
>
> {
>     "@context": {
>         "pizza": {
>             "@id": "http://130.88.198.11/co-ode-files/ontologies/pizza.owl
> ",
>             "@type": "@id"
>         },
>         "rdf": "http: //www.w3.org/1999/02/22-rdf-syntax-ns#",
>         "xsd": "http: //www.w3.org/2001/XMLSchema#",
>         "rdfs": "http: //www.w3.org/2000/01/rdf-schema#",
>         "owl": "http: //www.w3.org/2002/07/owl#"
>     },
>     "owl: Ontology": {
>         "rdf: about": "",
>         "owl: versionInfo": [
>             {
>                 "info":
> "v.1.4.AddedFoodclass(usedindomain/rangeofhasIngredient
> AddedseveralhasCountryOfOriginrestrictionsonpizzas
> MadehasToppinginversfunctional",
>                 "@language": "en"
>             },
>             {
>                 "info":
> "v.1.5.Removedprotege.owlimportandreferences.MadeontologyURIdate-independent",
>                 "@language": "en"
>             }
>         ],
>         "rdfs:comment": {
>             "info":
> "AnexampleontologythatcontainsallconstructsrequiredforthevariousversionsofthePizzaTutorialrunbyManchesterUniversity(seehttp:
> //www.co-ode.org/resources/tutorials/)",
>             "@language": "en"
>         }
>     }
> }
>
> *This is valid to JSON validators, but i've tested in json-ld playground,
> and i got this (expanded):*
> [
>   {
>     "http: //www.w3.org/2002/07/owl# Ontology": [
>       {
>         "http: //www.w3.org/2002/07/owl# versionInfo": [],
>         "http: //www.w3.org/1999/02/22-rdf-syntax-ns# about": [
>           {
>             "@value": ""
>           }
>         ]
>       }
>     ]
>   }
> ]
>
> Anyone can help me to find why it don't show info and language information
> about info and language in comment and version info ?
>
> Thanks,
> Vinícius Maran
>
Received on Friday, 29 August 2014 07:54:40 UTC

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