/** * Assign indexes for the named DAG, use a depth first listener over the DAG * @param reasoner used to know ancestors and descendants of the dag */ public SemanticIndexBuilder(ClassifiedTBox reasoner) { classRanges = createSemanticIndex(reasoner.classesDAG()); opRanges = createSemanticIndex(reasoner.objectPropertiesDAG()); dpRanges = createSemanticIndex(reasoner.dataPropertiesDAG()); }
DataPropertyExpression dpe = reasonerDag.dataPropertiesDAG().getCanonicalForm(dpe0); int idx = cacheSI.getEntry(dpe).getIndex();
for (Equivalences<DataPropertyExpression> propNode : reasoner.dataPropertiesDAG()) { for (Equivalences<DataPropertyExpression> subpropNode : reasoner.dataPropertiesDAG().getSub(propNode)) { for (DataPropertyExpression subprop : subpropNode) { DataAtom<AtomPredicate> body = translate(subprop, variableXname, variableYname);
DataPropertyExpression equivalent = reasoner.dataPropertiesDAG().getCanonicalForm(dpe); if (equivalent != null && !equivalent.equals(dpe)) { return atomFactory.getMutableTripleBodyAtom(bodyAtom.getTerm(0), equivalent.getIRI(), bodyAtom.getTerm(2));
getDataTMappings(mappingIndex, originalMappingIndex, reasoner.dataPropertiesDAG(), excludeFromTMappings);
if (cacheSI.getEntry(ope) != null) { DataPropertyExpression dpe = reasonerDag.dataProperties().get(iri); if (reasonerDag.dataPropertiesDAG().getVertex(dpe) != null) { if (cacheSI.getEntry(dpe) != null) throw new RuntimeException("DUPLICATE PROPERTY: " + iri); if (reasonerDag.dataPropertiesDAG().getVertex(dpe) != null) { if (cacheSI.getEntry(dpe) != null) throw new RuntimeException("DUPLICATE PROPERTY: " + iri);
getDataTMappings(mappingIndex, originalMappingIndex, reasoner.dataPropertiesDAG(), excludeFromTMappings);
for(Equivalences<DataPropertyExpression> node : reasoner.dataPropertiesDAG()) { DataPropertyExpression rep = node.getRepresentative(); (EquivalencesDAGImpl<DataPropertyExpression>)reasoner.dataPropertiesDAG(), dataProperties);
for(Equivalences<DataPropertyExpression> node : reasoner.dataPropertiesDAG()) { DataPropertyExpression rep = node.getRepresentative(); (EquivalencesDAGImpl<DataPropertyExpression>)reasoner.dataPropertiesDAG(), dataProperties);
for (Equivalences<DataPropertyExpression> set : reasonerDag.dataPropertiesDAG()) {