public void visit(SWRLDataPropertyAtom node) { hashCode = 653; hashCode = hashCode * MULT + node.getFirstArgument().hashCode(); hashCode = hashCode * MULT + node.getSecondArgument().hashCode(); hashCode = hashCode * MULT + node.getPredicate().hashCode(); }
@Override public Collection<SWRLVariable> visit(SWRLDataPropertyAtom node) { node.getFirstArgument().accept(this); node.getSecondArgument().accept(this); return variables; }
@Override public void visit(SWRLDataPropertyAtom node) { node.getPredicate().accept(this); }
@Override public void visit(SWRLDataPropertyAtom node) { //we consider only namedOwlDataProperty if(!node.getPredicate().isAnonymous()){ //get predicate for datalog IRI propertyIRI = rdfFactory.createIRI(node.getPredicate().asOWLDataProperty().toStringID()); terms = new ArrayList<Term>(); //get terms for datalog for(SWRLArgument argument: node.getAllArguments()){ argument.accept(this); } //TODO: check if it a head or a body function = atomFactory.getMutableTripleBodyAtom(terms.get(0), propertyIRI, terms.get(1)); } else{ notSupported=false; errors.add(node.toString()); } }
@Override public void visit(SWRLDataPropertyAtom node) { node.getFirstArgument().accept(this); node.getSecondArgument().accept(this); }
@Override public void visit(SWRLDataPropertyAtom node) { node.getPredicate().accept(this); }
@Override public void visit(SWRLDataPropertyAtom node) { node.getPredicate().accept(this); renderOpenBracket(); renderCollection(node.getAllArguments(), ","); renderCloseBracket(); }
@Override public void visit(SWRLDataPropertyAtom node) { hashCode = primes[65]; hashCode = hashCode * MULT + node.getFirstArgument().hashCode(); hashCode = hashCode * MULT + node.getSecondArgument().hashCode(); hashCode = hashCode * MULT + node.getPredicate().hashCode(); }
@Override public Collection<SWRLVariable> visit(SWRLDataPropertyAtom node) { node.getFirstArgument().accept(this); node.getSecondArgument().accept(this); return variables; }
@Override public void visit(SWRLDataPropertyAtom node) { node.getPredicate().accept(this); }
@Override public void visit(SWRLDataPropertyAtom node) { //we consider only namedOwlDataProperty if(!node.getPredicate().isAnonymous()){ //get predicate for datalog predicate=fac.getDataPropertyPredicate(node.getPredicate().asOWLDataProperty().toStringID()); terms = new ArrayList<Term>(); //get terms for datalog for(SWRLArgument argument: node.getAllArguments()){ argument.accept(this); } function = fac.getFunction(predicate, terms); } else{ notSupported=false; errors.add(node.toString()); } }
@Override public void visit(SWRLDataPropertyAtom node) { hashCode = 653; hashCode = hashCode * MULT + node.getFirstArgument().hashCode(); hashCode = hashCode * MULT + node.getSecondArgument().hashCode(); hashCode = hashCode * MULT + node.getPredicate().hashCode(); }
@Override public Collection<SWRLVariable> visit(SWRLDataPropertyAtom node) { node.getFirstArgument().accept(this); node.getSecondArgument().accept(this); return variables; }
@Override public void visit(SWRLDataPropertyAtom node) { node.getPredicate().accept(this); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderSWRLDataPropertyAtom(SWRLDataPropertyAtom expected, OWLDataFactory df) { this(df); withProperty(expected.getPredicate()).with(expected.getSecondArgument()) .with(expected.getFirstArgument()); }
@Override public void visit(SWRLDataPropertyAtom node) { node.getFirstArgument().accept(this); node.getSecondArgument().accept(this); }
@Override public void visit(SWRLDataPropertyAtom node) { node.getPredicate().accept(this); }
@Override public void visit(@Nonnull SWRLDataPropertyAtom node) { node.getPredicate().accept(this); node.getFirstArgument().accept(this); node.getSecondArgument().accept(this); }
public void visit(SWRLDataPropertyAtom node) { node.getFirstArgument().accept(this); node.getSecondArgument().accept(this); }
public void visit(@Nonnull SWRLDataPropertyAtom swrlDataPropertyAtom) { renderSWRLAtom(swrlDataPropertyAtom, swrlDataPropertyAtom.getPredicate()); }