Example #1
0
        public void SparqlViewNativeAllegroGraph()
        {
            AllegroGraphConnector agraph = AllegroGraphTests.GetConnection();
            PersistentTripleStore store  = new PersistentTripleStore(agraph);

            //Load a Graph into the Store to ensure there is some data for the view to retrieve
            Graph g = new Graph();

            FileLoader.Load(g, "resources\\InferenceTest.ttl");
            agraph.SaveGraph(g);

            //Create the SPARQL View
            NativeSparqlView view = new NativeSparqlView("CONSTRUCT { ?s ?p ?o } WHERE { GRAPH ?g { ?s ?p ?o . FILTER(IsLiteral(?o)) } }", store);

            Console.WriteLine("SPARQL View Populated");
            TestTools.ShowGraph(view);
            Console.WriteLine();
        }
        public void ParsingWriteToStoreHandlerBNodesAcrossBatchesAllegroGraph()
        {
            AllegroGraphConnector agraph = AllegroGraphTests.GetConnection();

            this.TestWriteToStoreHandlerWithBNodes(agraph);
        }
        public void ParsingWriteToStoreHandlerAllegroGraph()
        {
            AllegroGraphConnector agraph = AllegroGraphTests.GetConnection();

            this.TestWriteToStoreHandler(agraph);
        }
 protected override IAsyncStorageProvider GetAsyncProvider()
 {
     this.WaitDelay = 30000;
     return(AllegroGraphTests.GetConnection());
 }
Example #5
0
 protected override IAsyncStorageProvider GetAsyncProvider()
 {
     return(AllegroGraphTests.GetConnection());
 }