Good Day,
I have several different files that are stored in separate TDB folders. I
want to bring them all together to create a model that is easier to search.
I currently know how to name each of the TDB folders as named graphs, but I
believe my code is extremely inefficient. I would appreciate any advice on
how I can make this more efficient or use some of the statements that are
already available that will make things more straightforward. I have added
what I am doing currently. It works, but seems like a workaround.  I
appreciate your time and assistance.

                    String fileNameOrUri = "TDBStore/Test0/triples0000.nt";
                    String fileNameOrUri1 = "TDBStore/Test1/triples0001.nt";
                    String directory0 = "TDBStore/Test0" ;
                    String directory1 = "TDBStore/Test1" ;
                
                  // To read quad
               * TDB.getContext().set(TDB.symUnionDefaultGraph, true);*
                Dataset dataset0 = TDBFactory.createDataset(directory0) ;
                Dataset dataset1 = TDBFactory.createDataset(directory1) ;
               * Model model0= dataset0.getNamedModel("urn:x-arq:UnionGraph");
                Model model1= dataset1.getNamedModel("urn:x-arq:UnionGraph");*
                
                
        *          //merge the graphs
                   Model modelf = model0.union(model1);*
                
                   Jomari Peterson
"Creating the Context for Miracles"
707-373-1093

Reply via email to