W3C home > Mailing lists > Public > public-owl-dev@w3.org > October to December 2011

Re: OWL2 serialized as JSON?

From: Chris Mungall <cjmungall@lbl.gov>
Date: Thu, 1 Dec 2011 10:17:42 -0800
Cc: jerven.bolleman@isb-sib.ch, public-owl-dev@w3.org
Message-Id: <D17AB987-F0BC-4E47-8CE6-725AA2AB74EC@lbl.gov>
To: Bijan Parsia <bparsia@cs.man.ac.uk>

On Apr 7, 2011, at 5:54 AM, Bijan Parsia wrote:

> On 7 Apr 2011, at 08:33, Jerven Bolleman wrote:
>> Hi Chris, All,
>> I have the feeling that you are going about this the wrong way round.
>> I would first write a compelling JS api to deal with OWL concepts. And later if necessary design an optimized serialization format.
> Actually this is pretty close to what I proposed to do.
> The structure spec defines a quite nice API for OWL ontologies:
> 	http://www.w3.org/TR/2009/REC-owl2-syntax-20091027/
> (The Manchester OWL API adheres to this.)
> The XML Serialization mirrors this closely:
> 	http://www.w3.org/TR/2009/REC-owl2-xml-serialization-20091027/
> All other serializations (Manchester Syntax, RDF syntax) have a mapping to the abstract model.
> Although there are some issues with things for serialization (e.g., prefixes). I'll try to separate these out (as I'm currently doing for XML).
> Thus, the idea is to produce something close to this (with perhaps a few tweaks) so that, e.g., the structural spec serves as documentation for the API.
> I would generally recommend this as the preferred way to handle additional mappings and concrete formats. That was certainly the intent of the design.

Hi Bijan. How is this progressing?

I've written some code on top of the OWL API that generates json from either expressions or axioms. The resulting json is fairly generic and loosely corresponds to OWL-XML. Anything that is not a URI or a literal is translated to a hash with a "type" key that maps to the axiom or expression type, and an "args" arr. This is mostly for internal purposes write now - I'd like to adopt whatever de facto standard there is out there.

> Cheers,
> Bijan.
Received on Thursday, 1 December 2011 18:41:32 UTC

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