You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Rob Vesse (Created) (JIRA)" <ji...@apache.org> on 2011/09/30 16:49:45 UTC
[jira] [Created] (JENA-127) Add RDF/JSON Parsing Support to RIOT
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: Jena, RIOT
Environment: All
Reporter: Rob Vesse
Priority: Minor
Attachments: RdfJsonRiotPatch.patch
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 plugins 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
--
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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse updated JENA-127:
---------------------------
Attachment: RdfJsonRiotPatch.patch
TestLangRdfJson.java
Added updated patch and unit test file - added a couple of additional unit tests around bnode identity that I realised were missing and hadn't tested for
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: JenaReaderRdfJson.java, LangRDFJSON.java, 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
--
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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse updated JENA-127:
---------------------------
Description:
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
was:
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
Added a note to the description re: the alternative patch for Apache SVN
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: 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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna updated JENA-127:
--------------------------------
Component/s: Jena
> 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_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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121988#comment-13121988 ]
Paolo Castagna commented on JENA-127:
-------------------------------------
Rob, please, double check I've not missed anything from your contribution since I re-applied the changes manually (it could well be). You can check here (pick one you prefer):
- http://svn.apache.org/viewvc?view=revision&revision=1179639
- https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel#issue-tabs
- svn diff -r 1179638:1179639
Have you started on the RDF/JSON writer yet?
> 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_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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna updated JENA-127:
--------------------------------
Component/s: (was: Jena)
ARQ
> 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_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
[jira] [Issue Comment Edited] (JENA-127) Add RDF/JSON Parsing
Support to RIOT
Posted by "Paolo Castagna (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121966#comment-13121966 ]
Paolo Castagna edited comment on JENA-127 at 10/6/11 2:30 PM:
--------------------------------------------------------------
> 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?
There is currently no way to unregister a reader, we could add an unsetBaseReaderClassName to RDFReaderFImpl, but maybe it's time to review how people can plug-in new readers/writers into Jena. If we do this, it should be a separate issue.
> - Add a RDF/JSON writer - a separate patch will be submitted at a later date (likely next week) for this
Ack. Rob, if you want, feel free to have a look at:
- https://github.com/talis/rdf-json-writer/blob/master/src/main/java/com/talis/rdfwriters/json/JSONJenaWriter.java
- http://docs.api.talis.com/platform-api/output-types/rdf-json#TOC-Serialisation-Algorithm
We should probably be using stuff a the graph level rather than Jena Model.
was (Author: castagna):
> 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?
There is currently no way to unregister a reader, we could add an unsetBaseReaderClassName to RDFReaderFImpl, but maybe it's time to review how people can plug-in new readers/writers into Jena. If we do this, it should be a separate issue.
> - Add a RDF/JSON writer - a separate patch will be submitted at a later date (likely next week) for this
Ack
> 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_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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123422#comment-13123422 ]
Andy Seaborne commented on JENA-127:
------------------------------------
The RIOT output framework is less defined; "undefined" would be
accurate. For now, writing into Jena core is best as a Jena writer then
go via a static function like writeRDFJSON(graph) and it'll get adapted
when/if.
Input efficiency is more important because it more directly affects
users experience with large data.
Rob - the tokenizer is doing minimal lookahead. Bytes->chars conversion
is done in large chunks (by the Java library - I tried to short circuit
it with a non-codepoint-checking version but it was not faster).
The tokens are quite simple - only one character look ahead is need
except in the case of prefix names [*]. There's non geneal rexexps
going on so it should be fast and I've profiled it heavily for N-triples
and others - don't see any obvious hot spots or inefficiencies.
[*] The end of local name is (CHARS|'.')* CHARS so there is a little
dance to handle ".". Does not affect RDF/JSON, and it's only at most
one charactser pushback code, not general backtracking.
> 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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse updated JENA-127:
---------------------------
Attachment: RdfJsonRiotPatch.patch
Full patch file for all the changes and unit tests
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: RdfJsonRiotPatch.patch
>
>
> 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 plugins 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
--
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
[jira] [Issue Comment Edited] (JENA-127) Add RDF/JSON Parsing
Support to RIOT
Posted by "Paolo Castagna (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121966#comment-13121966 ]
Paolo Castagna edited comment on JENA-127 at 10/6/11 2:13 PM:
--------------------------------------------------------------
> 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?
There is currently no way to unregister a reader, we could add an unsetBaseReaderClassName to RDFReaderFImpl, but maybe it's time to review how people can plug-in new readers/writers into Jena. If we do this, it should be a separate issue.
> - Add a RDF/JSON writer - a separate patch will be submitted at a later date (likely next week) for this
Ack
was (Author: castagna):
> 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?
There is currently no way to unregister a reader, we could add an unsetBaseReaderClassName to RDFReaderFImpl, but maybe it's time to review how people can plug-in new readers/writers into Jena. If we do this, it should be a separate issue.
- Add a RDF/JSON writer - a separate patch will be submitted at a later date (likely next week) for this
Ack
> 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_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
[jira] [Resolved] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Resolved) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna updated JENA-127:
--------------------------------
Attachment: ARQ_JENA-127_r1179358.patch
I am attaching this patch just to show the difference with the patch posted by Rob (i.e. RdfJsonRiotPatch-ApacheSVN.patch).
If we understand what went wrong, we can avoid it in the future. In particular for large patches.
We should document one the Jena website how we want people to generate patches. I suggest: svn diff > filename.patch.
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: 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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121947#comment-13121947 ]
Rob Vesse commented on JENA-127:
--------------------------------
I generated it with Tortoise SVN by doing Tortoise SVN > Create Patch
Just tried doing svn diff and for some reason it still incorporates the complete files for no apparent reason, if you look at the patch against SF SVN you'll see it only incorporates the changed lines so not sure what's going on there. I did the Apache SVN patch by looking at my SF SVN patch and just copying and pasting the relevant changes across. All the incoporated files have some changes to them
Only difference between how I created the two patches was that the Apache SVN one was done with a simple text editor while the SF SVN one was done with Eclipse so possibly the simple editor borked all the whitespace in the files hence why it thinks the entire files have changed
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: 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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122224#comment-13122224 ]
Paolo Castagna commented on JENA-127:
-------------------------------------
Thanks Andy.
Rob, please, have a look at RDFJSONWriter.java and SinkEntityOutput.java and let me know if that is what you had in mind.
You are welcome to help with adding more tests.
Is a JenaWriterRDFJSON.java necessary?
> 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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121995#comment-13121995 ]
Andy Seaborne commented on JENA-127:
------------------------------------
Aside:
While it might be nice replace the whole way readers/writers get manged, and the current one is a bit clunky, but things change so rarely that the effort to redo is much greater than living with the current hardcoded system.
You can set the impl classname to null or "" to unset.
We've talked about this pre-Apache. If I find time I'll try to dig out any email discussion from SF or if not, write-up a new one (interesting to compare it to the old one if found).
> 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_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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119947#comment-13119947 ]
Andy Seaborne commented on JENA-127:
------------------------------------
Andy;s commit on SF was a mistake due to bad Eclipse setup).
Rob - as this is a new functionality, the attached whole file or the patch look fine. It 's far more important that there are tests ... and there are. Small differences in source code alignment are just a fact of distributed working and only become difficult when there are overlapping or related changes. That's not true here - we'll cope!
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: 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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne updated JENA-127:
-------------------------------
Attachment: ARQ-RDF-JSON-tests_r1179639.patch
Test suite for framework for RDF/JSON. Adds manifest-controlled tests for good and bad syntax. A few tests included (more needed).
> 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] [Commented] (JENA-127) Add RDF/JSON Parsing Support to
RIOT
Posted by Ian Dickinson <ia...@epimorphics.com>.
Hi Paolo,
On 03/10/11 14:07, Paolo Castagna wrote:
> Hi,
> the page [1] is still there (Why?).
No idea. It's not part of the svn image, and afaik, that's the sole
reference source for the CMS. It looks as though the CMS hasn't deleted
the file in response to the svn rm. I'll file a JIRA item for Infra to
sort it out.
Good catch!
Ian
> [1] http://incubator.apache.org/jena/contributing.html
Re: [jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to
RIOT
Posted by Paolo Castagna <ca...@googlemail.com>.
Ian Dickinson wrote:
> On 01/10/11 10:31, Rob Vesse (Commented) (JIRA) wrote:
>> I was somewhat confused about which source to use to be honest,
>> obviously I am aware of the Jena move to Apache but your own website
>> on the incubator (http://incubator.apache.org/jena/contributing.html)
>> states the following: [.. elided ..]
> Sorry Rob - a race condition. The Jena Apache documentation has been
> updated, and was due to go live last weekend. Unfortunately, the Apache
> CMS was borked long enough for me not to get the main site updated
> before SemTech hit, and since then I've been on vacation. The web site
> now correctly indicates that the live source-control system is the
> Apache svn.
Hi,
the page [1] is still there (Why?). In addition to the new one: [2].
Just to clarify and avoid confusion, this is where people wanting
to contribute to Jena or any of its module should look at:
- http://svn.apache.org/repos/asf/incubator/jena/Jena2/
Forget about SourceForge, or treat it as "legacy"/historical thing
which will never be updated. People can also miss the "MOVED TO APACHE.txt"
[3] file (I did it myself).
Paolo
[1] http://incubator.apache.org/jena/contributing.html
[2] http://incubator.apache.org/jena/getting_involved/index.html
[3]
https://jena.svn.sourceforge.net/svnroot/jena/ARQ/trunk/MOVED%20TO%20APACHE.txt
>
> Ian
Re: [jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to
RIOT
Posted by Ian Dickinson <ia...@epimorphics.com>.
On 01/10/11 10:31, Rob Vesse (Commented) (JIRA) wrote:
> I was somewhat confused about which source to use to be honest,
> obviously I am aware of the Jena move to Apache but your own website
> on the incubator (http://incubator.apache.org/jena/contributing.html)
> states the following: [.. elided ..]
Sorry Rob - a race condition. The Jena Apache documentation has been
updated, and was due to go live last weekend. Unfortunately, the Apache
CMS was borked long enough for me not to get the main site updated
before SemTech hit, and since then I've been on vacation. The web site
now correctly indicates that the live source-control system is the
Apache svn.
Ian
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118711#comment-13118711 ]
Rob Vesse commented on JENA-127:
--------------------------------
Hi Paolo
I was somewhat confused about which source to use to be honest, obviously I am aware of the Jena move to Apache but your own website on the incubator (http://incubator.apache.org/jena/contributing.html) states the following:
> The Jena source code repository be found in Subversion at incubator/jena.
> However, until we've finalized the code grant to ASF by the current copyright
> holder, the active Jena source repository is maintained at SourceForge.
Plus I could see on SourceForge that Andy at least has been active in committing there within the last week.
Rob
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: JenaReaderRdfJson.java, LangRDFJSON.java, 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
--
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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse updated JENA-127:
---------------------------
Attachment: TestLangRdfJson.java
JenaReaderRdfJson.java
LangRDFJSON.java
Attached the Java files for the completely new code this patch adds to make it easier to review
Note that the full patch does include some additional changes beyond these files to things like RiotReader.java, Lang.java etc in order to fully register the RDF/JSON parser with RIOT
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: JenaReaderRdfJson.java, LangRDFJSON.java, RdfJsonRiotPatch.patch, 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 plugins 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
--
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
[jira] [Assigned] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna reassigned JENA-127:
-----------------------------------
Assignee: Paolo Castagna
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: JenaReaderRdfJson.java, LangRDFJSON.java, RdfJsonRiotPatch.patch, 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
--
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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse updated JENA-127:
---------------------------
Attachment: RdfJsonRiotPatch-ApacheSVN.patch
Added a version of the patch for Apache SVN
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: 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
--
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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121966#comment-13121966 ]
Paolo Castagna commented on JENA-127:
-------------------------------------
> 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?
There is currently no way to unregister a reader, we could add an unsetBaseReaderClassName to RDFReaderFImpl, but maybe it's time to review how people can plug-in new readers/writers into Jena. If we do this, it should be a separate issue.
- Add a RDF/JSON writer - a separate patch will be submitted at a later date (likely next week) for this
Ack
> 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_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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123419#comment-13123419 ]
Rob Vesse commented on JENA-127:
--------------------------------
Paolo - Sorry I had a rather hectic week so I never got round to starting on the writer patch, your patch looks fine though I don't really understand RIOTs output machinery as much as the input machinery so hard for me to make any judgment here. I'll defer to you and Andy as the experts on this. I may have some time to look at this next week but can't guarantee it
Andy - No I never considered using the SAX like API, I've never particularly been a fan of SAX based APIs and given than AFAICT the RIOT tokenisers are properly streaming i.e. only read ahead as far as they need to (please correct me if I've assumed wrongly here) I just went ahead and used that machinery. Tbh the parsing code is fairly closely based on my RDF/JSON parser from dotNetRDF which I know from user reports is one of the faster parsers so unless RIOT tokenisation machinery was poor (which I'm fairly sure it is not) then it should be pretty fast.
> 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
[jira] [Closed] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna closed JENA-127.
-------------------------------
> 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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118176#comment-13118176 ]
Paolo Castagna commented on JENA-127:
-------------------------------------
Rob, I've not looked at your patch yet.
> the patch is against ARQ trunk from the Jena SourceForge SVN repository
Why not to use Apache SVN repository?
https://svn.apache.org/repos/asf/incubator/jena/Jena2/ARQ/trunk/
These are the "official" ARQ sources, now.
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: JenaReaderRdfJson.java, LangRDFJSON.java, RdfJsonRiotPatch.patch, 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
--
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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122085#comment-13122085 ]
Andy Seaborne commented on JENA-127:
------------------------------------
Looks good. More out of curiosity:
Did you consider using the event-driven (SAX-like) API to the JSON parser?
org.openjena.atlas.json.io.parser.JSONParser
For this format, whether it's easier or not is unclear to me. The real work is in structural checking and state management which is specific to the format and the added layer doesn't help or hinder that in anyway.
> 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_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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122268#comment-13122268 ]
Andy Seaborne commented on JENA-127:
------------------------------------
The patch didn't contain the manifest files. I've fixed added them in.
> 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
[jira] [Commented] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Paolo Castagna (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121914#comment-13121914 ]
Paolo Castagna commented on JENA-127:
-------------------------------------
Rob, how you generated the https://issues.apache.org/jira/secure/attachment/12497441/RdfJsonRiotPatch-ApacheSVN.patch file?
I usually simply do: svn diff > filename.patch.
You patch file contains lines (marked as additions) which have not actually being changed.
I usually review changes side by side from Eclipse or directly on the patch file, but with your patch this is not possible since it contains files which are not actually changes.
I am now going to manually replicate your changes and build a new patch or directly submit changes to SVN.
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Assignee: Paolo Castagna
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: 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
[jira] [Updated] (JENA-127) Add RDF/JSON Parsing Support to RIOT
Posted by "Rob Vesse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse updated JENA-127:
---------------------------
Description:
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
was:
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 plugins 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
Minor typographical fixes to description
> 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: Jena, RIOT
> Environment: All
> Reporter: Rob Vesse
> Priority: Minor
> Labels: patch, rdf/json, riot
> Attachments: JenaReaderRdfJson.java, LangRDFJSON.java, RdfJsonRiotPatch.patch, 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
--
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