Hey Ajs6f,
Thats what I also thought but I tried the approach and it didn't work.
This is how i did it
> dataset.begin(ReadWrite.WRITE) ;
> try {
> Model m = dataset.getDefaultModel() ;
> Model m2 = ModelFactory.createDefaultModel();
> m2.read(file);
>
Hello, Anuj--
I may be missing something about your question, but wouldn't Model.add(Model)
[1] work here?
ajs6f
[1]
https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/Model.html#add-org.apache.jena.rdf.model.Model-
> On Apr 24, 2018, at 7:14 AM, anuj kumar wrote:
>
Hi,
I have a scenario, where I have an instance of a Model Object that contains
multiple Statements.
Now I want to index the statements in this Model in Jena Text ES indexing
implementation.
*Question is*: How can i do that. :)
Until now I was indexing data by reading the data from a file into a