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

[jira] [Commented] (CLEREZZA-648) RDF/JSON Serializer can not serialize graphs larger than available memory.

    [ https://issues.apache.org/jira/browse/CLEREZZA-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144941#comment-13144941 ] 

Paolo Castagna commented on CLEREZZA-648:
-----------------------------------------

An RDF/JSON parser and serializer (as well as usual Jena readers/writers) have been added to Apache Jena.

If you want to try or use it, make sure you call RIOT.init() to wire the new reader|writer into Jena. RIOT is in ARQ at the moment. Then you can use the usual Jena Model APIs:

public Model write( OutputStream out, String lang ) ;
public Model read ( InputStream in, String base, String lang ) ;

Specify "RDF/JSON" as the lang parameter.

See also:

 - https://issues.apache.org/jira/browse/JENA-127
 - https://issues.apache.org/jira/browse/JENA-135
 - http://svn.apache.org/repos/asf/incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/riot/out/RDFJSONWriter.java

                
> RDF/JSON Serializer can not serialize graphs larger than available memory.
> --------------------------------------------------------------------------
>
>                 Key: CLEREZZA-648
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-648
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Daniel Spicar
>              Labels: rdf/json, serialization
>
> The serializer loads the entire graph to serialize into memory in order to sort it. A solution is likely to depend on the underlying triple collection as certain triple collection may be able to provide sorted triples already from the underlying triple store. Therefore this issue may require a more general solution that affects other modules as well. A proposed solution and a detailed analysis is available in CLEREZZA-643.

--
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