final List<DebugContainer<BasicOperatorByteArray>> correctOperatorGraphRules = recog
.applyRulesDebugByteArray(this.rootNode, prefixInstance);
correctOperatorGraphRules.add(0, dc);
if (this.rdfs != RDFS.NONE) {
for (final PatternMatcher zpm : this.patternMatchers) {
final RDFSRoot ic = new RDFSRoot();
if (this.rdfs == RDFS.RDFS || this.rdfs == RDFS.OPTIMIZEDRDFS) {
if (this.externalOntology != null) {
RDFSchemaInference.addInferenceRulesForInstanceData(ic,
zpm);
} else {
RDFSchemaInference.addInferenceRules(ic, zpm);
}
} else if (this.rdfs == RDFS.RUDIMENTARYRDFS
|| this.rdfs == RDFS.OPTIMIZEDRUDIMENTARYRDFS) {
if (this.externalOntology != null) {
RudimentaryRDFSchemaInference
.addInferenceRulesForInstanceData(ic, zpm);
} else {
RudimentaryRDFSchemaInference
.addInferenceRules(ic, zpm);
}
} else if (this.rdfs == RDFS.ALTERNATIVERDFS
|| this.rdfs == RDFS.OPTIMIZEDALTERNATIVERDFS) {
if (this.externalOntology != null) {
AlternativeRDFSchemaInference
.addInferenceRulesForInstanceData(ic, zpm);
} else {
AlternativeRDFSchemaInference
.addInferenceRules(ic, zpm);
}
}
ic.addToPatternMatcher(zpm);
zpm.deleteParents();
zpm.setParents();
zpm.detectCycles();
zpm.sendMessage(new BoundVariablesMessage());
correctOperatorGraphRules