예제 #1
0
        public void ParsingEmbeddedResourceLoaderGraphIntoTripleStore()
        {
            TripleStore store = new TripleStore();

            store.LoadFromEmbeddedResource("VDS.RDF.Configuration.configuration.ttl");

            Assert.True(store.Triples.Count() > 0);
            Assert.Equal(1, store.Graphs.Count);
        }
예제 #2
0
        public void FibonacciJson()
        {
            using var ts = new TripleStore();
            ts.LoadFromEmbeddedResource("GraphEngine.Tests.Resources.Examples.FibonacciSequence.json,GraphEngine.Tests");
            var g = ts.Graphs.Single();

            g.NamespaceMap.AddNamespace(string.Empty, UriFactory.Create("http://example.com/"));

            NewMethod(g);
        }