/** * Replace the underlying data graph for this inference graph and start any inferences over again. * This is primarily using in setting up ontology imports processing to allow an imports * multiunion graph to be inserted between the inference graph and the raw data, before * processing. * * @param data the new raw data graph */ @Override public void rebind(Graph data) { fdata = new FGraph(data); rebind(); }
/** * Constructor. Creates a new inference graph based on the given rule set then processes the * initial data graph. No precomputed deductions are loaded. * * @param reasoner the parent reasoner * @param rules the list of rules to use this time * @param schema the (optional) schema or preload data which is being processed * @param data the data graph to be processed */ public BasicForwardRuleInfGraph(Reasoner reasoner, List<Rule> rules, Graph schema, Graph data) { this(reasoner, rules, schema); rebind(data); }