You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Paolo Castagna (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/11 11:53:11 UTC

[jira] [Resolved] (JENA-127) Add RDF/JSON Parsing Support to RIOT

     [ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paolo Castagna resolved JENA-127.
---------------------------------

    Resolution: Fixed

Parser work done.
                
> Add RDF/JSON Parsing Support to RIOT
> ------------------------------------
>
>                 Key: JENA-127
>                 URL: https://issues.apache.org/jira/browse/JENA-127
>             Project: Jena
>          Issue Type: New Feature
>          Components: ARQ, Jena, RIOT
>         Environment: All
>            Reporter: Rob Vesse
>            Assignee: Paolo Castagna
>            Priority: Minor
>              Labels: patch, rdf/json, riot
>         Attachments: ARQ-RDF-JSON-tests_r1179639.patch, ARQ_JENA-127_r1179358.patch, JenaReaderRdfJson.java, LangRDFJSON.java, RdfJsonRiotPatch-ApacheSVN.patch, RdfJsonRiotPatch.patch, RdfJsonRiotPatch.patch, TestLangRdfJson.java, TestLangRdfJson.java
>
>
> The attached patch provides a RDF/JSON (Talis Specification) parser for RIOT, the patch is against ARQ trunk from the Jena SourceForge SVN repository
> It plugs in as an implementation of LangRIOT (named LangRDFJSON) and uses the existing TokenizerJSON from the atlas package to do the tokenisation.  There is also a JenaReaderRdfJson added as part of this patch which does what the name suggests.
> I have also included in this patch a set of unit tests which verify the parsers behaviour with a variety of valid and invalid inputs.
> There are still some things to be addressed:
> - The patch includes registration of the Jena reader when SysRiot.writeIntoJena() is called but does not unregister itself when resetJenaReaders() is called, should this be done?
> - Add a RDF/JSON writer - a separate patch will be submitted at a later date (likely next week) for this
> Otherwise the patch is fairly comprehensive and I hope can be reviewed and included in future releases
> EDIT - I have now redone the patch against Apache SVN as well and attached that as a separate file since there are some differences in the structure of the two repos and some minor code changes that mean the SourceForge SVN patch cannot be applied directly against Apache SVN

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Resolved] (JENA-127) Add RDF/JSON Parsing Support to RIOT

Posted by Paolo Castagna <ca...@googlemail.com>.
Paolo Castagna (Resolved) (JIRA) wrote:
> Paolo Castagna resolved JENA-127.
> ---------------------------------
> 
>     Resolution: Fixed
> 
> Parser work done.
>                 

As Andy suggested on IRC, I closed JENA-127 and opened JENA-135:
https://issues.apache.org/jira/browse/JENA-135
... to complete the RDF/JSON write part and add it to Jena and/or RIOT.

What's missing on JENA-135 is:

 - scripted tests (similar to what has been done for JENA-127 but
   for the write part).
 - the RDF writer plugged/added into Jena

I am unsure on what's the best way to add a new RDF writer to Jena
and/or RIOT. Any help/suggestion/guidance on this is welcome.

More generally, documenting how people can add new readers/writers
to Jena could be quite interesting and useful. Using RDF as gateway
between different formats|data models is quite an interesting and
useful thing to do (and it's a way to tackle the N^2 problem when
you need to translate N formats from one to each others). A good
and inspiring example of this is: http://simile.mit.edu/babel/.

I am not saying we do this, but documenting or making it easy and
obvious, how to add new readers/writers to Jena would enable others
to do that (and they might contribute readers/writers to Jena). :-)

Paolo