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); }
private void Graph_TripleAsserted(object sender, TripleEventArgs args) { using var g = new NonIndexedGraph(); g.Assert(args.Triple); Reasoner.Apply(g, this); }