/** * {@inheritDoc} */ @Override public void visit(final AtomIConstant constant) { _term = constant.getValue(); }
/** * {@inheritDoc} */ @Override public void visit(final AtomIConstant constant) { _term = constant.getValue(); }
private boolean argMatches(final ClassAtom atom) { final AtomObject arg = atom.getArgument(); return _name == null ? arg instanceof AtomVariable : (arg instanceof AtomIConstant && ((AtomIConstant) arg).getValue().equals(_name)); }
private boolean argMatches(final ClassAtom atom) { final AtomObject arg = atom.getArgument(); return _name == null ? arg instanceof AtomVariable : (arg instanceof AtomIConstant && ((AtomIConstant) arg).getValue().equals(_name)); }
@Override public void visit(final AtomIConstant constant) { _abox.copyOnWrite(); value = _abox.getIndividual(constant.getValue()); }
@Override public void visit(final AtomIConstant constant) { _abox.copyOnWrite(); value = _abox.getIndividual(constant.getValue()); }
@Override public String toString() { return URIUtils.getLocalName(getValue().getName()); } }
@Override public String toString() { return URIUtils.getLocalName(getValue().getName()); } }
@Override @SuppressWarnings("rawtypes") public boolean matches(final 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; }
@Override @SuppressWarnings("rawtypes") public boolean matches(final 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); }
@Override @SuppressWarnings("rawtypes") public boolean matches(final 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; }
@Override public void visit(final AtomIConstant constant) { _translatorAbox.copyOnWrite(); final Individual individual = _translatorAbox.getIndividual(constant.getValue()); // if (_individual.isMerged()) { // _dependency = _individual.getMergeDependency(true); // _individual = _individual.getSame(); // } _result = new ConstantNodeProvider(individual); }
@Override public void visit(final AtomIConstant constant) { _translatorAbox.copyOnWrite(); final Individual individual = _translatorAbox.getIndividual(constant.getValue()); // if (_individual.isMerged()) { // _dependency = _individual.getMergeDependency(true); // _individual = _individual.getSame(); // } _result = new ConstantNodeProvider(individual); }
@Override @SuppressWarnings("rawtypes") public boolean matches(final 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); }
@Override public boolean matches(final 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); }
@Override public boolean matches(final 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); }