public boolean matches(RuleAtom atom) { return (atom instanceof ClassAtom) && atom.getPredicate().equals(predicate) && argMatches((ClassAtom) atom); }
public boolean equals( Object other ) { if ( other != null && getClass().equals( other.getClass() ) ) { RuleAtom atom = ( RuleAtom ) other; return getPredicate().equals( atom.getPredicate() ) && getAllArguments().equals( atom.getAllArguments() ); } return false; }
public boolean equals( Object other ) { if ( other != null && getClass().equals( other.getClass() ) ) { RuleAtom atom = ( RuleAtom ) other; return getPredicate().equals( atom.getPredicate() ) && getAllArguments().equals( atom.getAllArguments() ); } return false; }
public boolean matches(RuleAtom atom) { return ((atom instanceof IndividualPropertyAtom) || (atom instanceof DatavaluedPropertyAtom)) && atom.getPredicate().equals(role.getName()) && ((BinaryAtom) atom).getArgument1() instanceof AtomVariable && ((BinaryAtom) atom).getArgument2().equals(((BinaryAtom) atom).getArgument1()); }
@SuppressWarnings("rawtypes") public boolean matches(RuleAtom atom) { return ((atom instanceof IndividualPropertyAtom) || (atom instanceof DatavaluedPropertyAtom)) && atom.getPredicate().equals(role.getName()) && ((BinaryAtom) atom).getArgument1() instanceof AtomVariable && ((BinaryAtom) atom).getArgument2() instanceof AtomVariable; }
@SuppressWarnings("rawtypes") public boolean matches(RuleAtom atom) { return ((atom instanceof IndividualPropertyAtom) || (atom instanceof DatavaluedPropertyAtom)) && atom.getPredicate().equals(role.getName()) && ((BinaryAtom) atom).getArgument1() instanceof AtomIConstant && ((AtomIConstant)((BinaryAtom) atom).getArgument1()).getValue().equals(name) && ((BinaryAtom) atom).getArgument2() instanceof AtomVariable; }
@SuppressWarnings("rawtypes") public boolean matches(RuleAtom atom) { return ((atom instanceof IndividualPropertyAtom) || (atom instanceof DatavaluedPropertyAtom)) && atom.getPredicate().equals(role.getName()) && ((BinaryAtom) atom).getArgument1() instanceof AtomVariable && ((BinaryAtom) atom).getArgument2() instanceof AtomIConstant && ((AtomIConstant)((BinaryAtom) atom).getArgument2()).getValue().equals(name); }
public boolean matches(RuleAtom atom) { return ((atom instanceof IndividualPropertyAtom) || (atom instanceof DatavaluedPropertyAtom)) && atom.getPredicate().equals(role.getName()) && ((BinaryAtom) atom).getArgument1() instanceof AtomIConstant && ((AtomIConstant)((BinaryAtom) atom).getArgument1()).getValue().equals(name) && ((BinaryAtom) atom).getArgument2() instanceof AtomConstant && ((AtomConstant)((BinaryAtom) atom).getArgument2()).getValue().equals(objectName); }
public AlphaNode addNode(RuleAtom atom) { Object pred = atom.getPredicate(); List<AlphaNode> nodes = map.get(pred); if (nodes == null) {