http://stackoverflow.com/questions/27958212/is-it-possible-to-add-virtuoso-as-a-storage-provider-in-jena-fuseki/27966848#27966848

On 28/01/15 07:27, Nauman Ramzan wrote:
Hey all !
I am working on fuseki and I want to use virtuoso graph instead of TDB

Here are my requirements

1 :- Save all record in virtuoso
2 :- Use SolrIndexer for index So that i can also use text:query in
Fuseki...

Doesn't Virtuoso have it's own SPARQL HTTP server built-in?

It has it's own text indexing.


I am using virt_jena2.jar and virtjdbc4_1.jar in my fuseki project

Here is My code

What is this code trying to do?
Where it is running?


Dataset ds = (Dataset) Assembler.general.open(datasetDesc);
         /*   Virtuoso Code  */

         datasetDesc = ((Resource)getOne(datasetDesc, "text:gdatabase"));
         if
(datasetDesc.getPropertyResourceValue(RDF.type).equals(VirtuosoDatasetVocab.tDataset))
{
             String jdbcurl = getOne(datasetDesc,
"fuvirtext:jdbcURL").toString();
             String user = getOne(datasetDesc, "fuvirtext:user").toString();
             String password = getOne(datasetDesc,
"fuvirtext:password").toString();
             String graphName = "";
             Boolean readAllGraphs = false;
             if (datasetDesc.hasProperty(VirtuosoDatasetVocab.pgraphName)) {
                 graphName = getOne(datasetDesc,
"fuvirtext:graphName").toString();
             }
             if
(datasetDesc.hasProperty(VirtuosoDatasetVocab.preadAllGraphs)) {
                 readAllGraphs = getOne(datasetDesc,
"fuvirtext:readAllGraphs").asLiteral().getBoolean();
             }

             VirtuosoStore vstore;

             if (!graphName.isEmpty()) { vstore = new VirtuosoStore(jdbcurl,
user, password, graphName, readAllGraphs);}
             else { vstore = new VirtuosoStore(jdbcurl, user, password,
readAllGraphs); }


             DatasetGraph vg = vstore.getDatasetGraph();
             DatasetGraph dg = ds.asDatasetGraph();

             return null;
             /*sDesc.dataset = vstore.getDatasetGraph();
             sDesc.dataset = ds.asDatasetGraph();*/
         }else{
         sDesc.dataset = ds.asDatasetGraph();
         }


Reply via email to