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

Jan Martin Keil commented on JENA-1687:
---------------------------------------

I'm building a processing pipeline. Input and output of the pipeline nodes are 
RDF graphs. As I need to store the results of each pipeline node separately, it 
is not an option to just add them into the input RDF graph. However, the next 
pipeline node needs a union of all earlier RDF graphs to process. To achieve 
that with Model, I would have needed to copy the whole RDF graphs each time. 
This was not an option form the performance/memory/storage perspective and I 
decided to work with Graph instead of Model. Due to your question, I just now 
noticed, that OntModel provides the needed functionality. So it was my mistake. 
Thank you for the critical question and sorry for the inconvenience.

> Precise return types of NodeFactory methods
> -------------------------------------------
>
>                 Key: JENA-1687
>                 URL: https://issues.apache.org/jira/browse/JENA-1687
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Jan Martin Keil
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I propose to precise the return types of the NodeFactory methods, e.g. to set 
> NodeFactory#createURI return type to Node_URI. This makes the developers life 
> easier, as there is no longer a need to cast after creating a Node, if one 
> need a specific node type. I can not see any disadvantages and it should be 
> backward compatible (except of classes that override these methods).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to