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...

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

Here is My code

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