Hey, Jena-folks!

One of Andy’s criticisms of my JENA-624 PR was that it lacked Assembler 
machinery to let people put together datasets. I’ve written a simple one at:

https://github.com/ajs6f/jena/blob/jena-624-dexx/jena-arq/src/main/java/org/apache/jena/sparql/core/assembler/InMemDatasetAssembler.java

https://github.com/ajs6f/jena/blob/jena-624-dexx/jena-arq/src/test/java/org/apache/jena/sparql/core/assembler/TestInMemDatasetAssembler.java

for use with definitions like that shown below my sig.

Does this seem like a reasonable approach? It should allow users to build up 
their data by whatever means they like, including using inferencing models to 
generate assertions, then add them to the in-memory container.

---
A. Soroka
The University of Virginia Library

<test:simpleExample>  a  
<http://jena.hpl.hp.com/2005/11/Assembler#MemoryDataset> ;
        <http://jena.hpl.hp.com/2005/11/Assembler#defaultGraph>  
<test:defaultGraphDef> ;
        <http://jena.hpl.hp.com/2005/11/Assembler#namedGraph> 
<test:namedGraphDef> .

<test:defaultGraphDef>  a 
<http://jena.hpl.hp.com/2005/11/Assembler#MemoryModel> ;
        <http://jena.hpl.hp.com/2005/11/Assembler#content>
                [ <http://jena.hpl.hp.com/2005/11/Assembler#externalContent> 
<file:/some/triples.nt> . ] .

<test:namedGraphDef>  a <http://jena.hpl.hp.com/2005/11/Assembler#MemoryModel> ;
        <http://jena.hpl.hp.com/2005/11/Assembler#content>
                [ <http://jena.hpl.hp.com/2005/11/Assembler#externalContent>  
<file:/some/other/triples.nt> . ];
        <http://jena.hpl.hp.com/2005/11/Assembler#graphName>  
<test:namedGraphExample> .
       

Reply via email to