Package org.apache.stanbol.rules.base.api

Examples of org.apache.stanbol.rules.base.api.RuleAtom


          {if (true) return new IndividualPropertyAtom(uri1, uri2, uri3);}
    throw new Error("Missing return statement in function");
  }

  final public DatavaluedPropertyAtom datavaluedPropertyAtom() throws ParseException {
IObjectAtom uri1; IObjectAtom uri2; RuleAtom obj;
    jj_consume_token(VALUES);
    jj_consume_token(LPAR);
    uri1 = iObject();
    jj_consume_token(COMMA);
    uri2 = iObject();
View Full Code Here


    }
    throw new Error("Missing return statement in function");
  }

  final public RuleAtom dObject() throws ParseException {
  RuleAtom variable;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case NUM:
    case STRING:
      variable = literal();
      break;
View Full Code Here

        org.apache.stanbol.rules.manager.atoms.DatavaluedPropertyAtom tmp = (org.apache.stanbol.rules.manager.atoms.DatavaluedPropertyAtom) ruleAtom;

        IObjectAtom argument1 = tmp.getArgument1();
        IObjectAtom datatypeProperty = tmp.getDatatypeProperty();
        RuleAtom argument2 = tmp.getArgument2();

        ClerezzaSparqlObject argument1CSO = (ClerezzaSparqlObject) adapter.adaptTo(argument1,
            ConstructQuery.class);
        ClerezzaSparqlObject datatypePropertyCSO = (ClerezzaSparqlObject) adapter.adaptTo(datatypeProperty,
            ConstructQuery.class);
View Full Code Here

    }

    @Test
    public void testValidAtomWithVariableArguments() {

        RuleAtom ruleAtom = new DatavaluedPropertyAtom(datatypeProperty, argument1, variable);

        execTest(ruleAtom);

    }
View Full Code Here

    }

    @Test
    public void testValidAtomWithLiteralArguments() {

        RuleAtom ruleAtom = new DatavaluedPropertyAtom(datatypeProperty, argument1, literal);

        execTest(ruleAtom);
    }
View Full Code Here

    }

    @Test
    public void testValidAtomWithTypedLiteralArguments() {

        RuleAtom ruleAtom = new DatavaluedPropertyAtom(datatypeProperty, argument1, typedLiteral);

        execTest(ruleAtom);
    }
View Full Code Here

    }

    @Test
    public void testValidClassAtomWith() {

        RuleAtom ruleAtom = new ClassAtom(classResource, argument1);

        execTest(ruleAtom);
    }
View Full Code Here

    }

    @Test
    public void testValidAtomWithVariableArguments() {

        RuleAtom ruleAtom = new GreaterThanAtom(variable1, variable2);

        execTest(ruleAtom);

    }
View Full Code Here

    }

    @Test
    public void testValidAtomWithLiteralArguments() {

        RuleAtom ruleAtom = new GreaterThanAtom(literal1, literal2);

        execTest(ruleAtom);
    }
View Full Code Here

    }

    @Test
    public void testValidAtomWithTypedLiteralArguments() {

        RuleAtom ruleAtom = new GreaterThanAtom(typedLiteral1, typedLiteral2);

        execTest(ruleAtom);
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.base.api.RuleAtom

Copyright © 2018 www.massapicom. 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.