private IntensionalDataNode getIDN(Variable formerVariable, Variable newVariable) { return iqFactory.createIntensionalDataNode( atomFactory.getIntensionalTripleAtom( newVariable, Ontop.CANONICAL_IRI, formerVariable )); }
private DataAtom<AtomPredicate> translate(ObjectPropertyExpression property, String x, String y) { Variable varX = termFactory.getVariable(x); Variable varY = termFactory.getVariable(y); if (property.isInverse()) return atomFactory.getIntensionalTripleAtom(varY, property.getIRI(), varX); else return atomFactory.getIntensionalTripleAtom(varX, property.getIRI(), varY); }
private DataAtom<AtomPredicate> translate(DataPropertyExpression property, String x, String y) { Variable varX = termFactory.getVariable(x); Variable varY = termFactory.getVariable(y); return atomFactory.getIntensionalTripleAtom(varX, property.getIRI(), varY); }
private DataAtom<AtomPredicate> translate(ClassExpression description, String existentialVariableName) { if (description instanceof OClass) { final Variable varX = termFactory.getVariable(variableXname); OClass klass = (OClass) description; return atomFactory.getIntensionalTripleAtom(varX, klass.getIRI()); } else if (description instanceof ObjectSomeValuesFrom) { ObjectPropertyExpression property = ((ObjectSomeValuesFrom) description).getProperty(); return translate(property, variableXname, existentialVariableName); } else { DataPropertyExpression property = ((DataSomeValuesFrom) description).getProperty(); return translate(property, variableXname, existentialVariableName); } }