Examples of AtomObject


Examples of com.clarkparsia.pellet.rules.model.AtomObject

    @Override
    public void activate(Token token) {
      resetDependencySet(token);
      VariableBinding binding = new VariableBinding(strategy.getABox());
      for (Entry<AtomVariable, NodeProvider> entry : args.entrySet()) {
        AtomObject arg = entry.getKey();
        Node node = getNode(args.get(arg), token);
        if (arg instanceof AtomIVariable) {
          binding.set((AtomIVariable) arg, (Individual) node);
        }
        else {
View Full Code Here

Examples of com.clarkparsia.pellet.rules.model.AtomObject

      }
      return result;
    }
   
    private void addPropertyAtom(BinaryAtom<ATermAppl, ? extends AtomObject, ? extends AtomObject> atom) {
      AtomObject s = atom.getArgument1();
      AtomObject o = atom.getArgument2();
     
      Role role = abox.getRole(atom.getPredicate());
      if (s instanceof AtomVariable && o instanceof AtomVariable) {
        if (s.equals(o)) {
          result = new AlphaReflexiveEdgeNode(abox, role);
View Full Code Here

Examples of com.clarkparsia.pellet.rules.model.AtomObject

     
    }
   
    @Override
    public void visit(ClassAtom atom) {
      AtomObject arg = atom.getArgument();
      ATermAppl name = (arg instanceof AtomConstant) ? ((AtomConstant) arg).getValue() : null;
      result = new AlphaTypeNode(abox, atom.getPredicate(), name);
    }
View Full Code Here

Examples of com.clarkparsia.pellet.rules.model.AtomObject

  public boolean matches(RuleAtom atom) {
    return (atom instanceof ClassAtom) && atom.getPredicate().equals(predicate) && argMatches((ClassAtom) atom);
  }
 
  private boolean argMatches(ClassAtom atom) {
    AtomObject arg = atom.getArgument();
    return name == null
      ? arg instanceof AtomVariable
      : (arg instanceof AtomIConstant && ((AtomIConstant) arg).getValue().equals(name));
  }
View Full Code Here

Examples of com.clarkparsia.pellet.rules.model.AtomObject

      List<? extends AtomObject> args = atom.getAllArguments();
     
      List<FilterCondition> conditions = new ArrayList<FilterCondition>();
      if (!processed.isEmpty()) {
        for (int i = 0, n = args.size(); i < n; i++) {
          AtomObject arg = args.get(i);
          if (arg instanceof AtomVariable) {
            TokenNodeProvider provider = createNodeProvider((AtomVariable) arg, processed);
            if (provider != null) {
                        conditions.add(new JoinCondition(new WMENodeProvider(i), provider));
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.