Examples of DatavaluedPropertyAtom


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

  }

  @Test
  public void testDatavalueBindingGeneratorChained() {
    DatavaluedPropertyAtom pattern1 = new DatavaluedPropertyAtom(dp2, x, z);
    DatavaluedPropertyAtom pattern2 = new DatavaluedPropertyAtom(dp2, y, z);

    BindingHelper genHelper1 = new DatavaluePropertyBindingHelper(kb.getABox(), pattern1);
    BindingHelper genHelper2 = new DatavaluePropertyBindingHelper(kb.getABox(), pattern2);
    BindingGenerator gen = new BindingGeneratorImpl(kb.getABox(), new VariableBinding(kb.getABox()), Arrays
                    .asList(new BindingHelper[] { genHelper1, genHelper2 }));
View Full Code Here

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

    assertIteratorValues(gen.iterator(), expected.iterator());
  }

  @Test
  public void testDatavalueBindingGeneratorChainedSubject() {
    DatavaluedPropertyAtom pattern1 = new DatavaluedPropertyAtom(dp2, x, new AtomDConstant(data2));
    DatavaluedPropertyAtom pattern2 = new DatavaluedPropertyAtom(dp2, y, new AtomDConstant(data2));

    BindingHelper genHelper1 = new DatavaluePropertyBindingHelper(kb.getABox(), pattern1);
    BindingHelper genHelper2 = new DatavaluePropertyBindingHelper(kb.getABox(), pattern2);
    BindingGenerator gen = new BindingGeneratorImpl(kb.getABox(), new VariableBinding(kb.getABox()), Arrays
                    .asList(new BindingHelper[] { genHelper1, genHelper2 }));
View Full Code Here

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

    assertIteratorValues(gen.iterator(), expected.iterator());
  }

  @Test
  public void testDatavalueBindingGeneratorObjects() {
    DatavaluedPropertyAtom pattern = new DatavaluedPropertyAtom(dp2, new AtomIConstant(mary), z);

    BindingHelper genHelper = new DatavaluePropertyBindingHelper(kb.getABox(), pattern);
    BindingGenerator gen = new BindingGeneratorImpl(kb.getABox(), new VariableBinding(kb.getABox()), Collections
                    .singletonList(genHelper));
    assertIteratorValues(new BindingToMapIterator(gen.iterator()), new Object[] {
View Full Code Here

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

  }

  @Test
  public void testDatavalueBindingGeneratorSubjects() {
    DatavaluedPropertyAtom pattern = new DatavaluedPropertyAtom(dp2, x, new AtomDConstant(data2));

    BindingHelper genHelper = new DatavaluePropertyBindingHelper(kb.getABox(), pattern);
    BindingGenerator gen = new BindingGeneratorImpl(kb.getABox(), new VariableBinding(kb.getABox()), Collections
                    .singletonList(genHelper));
View Full Code Here

Examples of org.apache.stanbol.rules.manager.atoms.DatavaluedPropertyAtom

    jj_consume_token(COMMA);
    uri2 = iObject();
    jj_consume_token(COMMA);
    obj = dObject();
    jj_consume_token(RPAR);
           {if (true) return new DatavaluedPropertyAtom(uri1, uri2, obj);}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

Examples of org.apache.stanbol.rules.manager.atoms.DatavaluedPropertyAtom

    jj_consume_token(COMMA);
    obj = dObject();
    jj_consume_token(RPAR);
    {
      if (true)
        return new DatavaluedPropertyAtom(uri1, uri2, obj);
    }
    throw new Error("Missing return statement in function");
  }
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.