Beispiel #1
0
        static Graph()
        {
            using var schemaFull = new NonIndexedGraph();
            schemaFull.LoadFromEmbeddedResource("GraphEngine.Resources.Schema.ttl, GraphEngine");

            using var schemaClean = new NonIndexedGraph();
            schemaClean.Assert(
                schemaFull
                .GetTriplesWithPredicate(UriFactory.Create(OntologyHelper.PropertyDomain))
                .Where(t => !ExcludedClasses.Contains(t.Object)));

            Reasoner.Initialise(schemaClean);
        }
Beispiel #2
0
 private void Graph_TripleAsserted(object sender, TripleEventArgs args)
 {
     using var g = new NonIndexedGraph();
     g.Assert(args.Triple);
     Reasoner.Apply(g, this);
 }