Examples of RuleAtom


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

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

  final public AtomList atomListRest() throws ParseException {
AtomList atomList = new AtomList(); RuleAtom kReSAtom;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case AND:
      jj_consume_token(AND);
      atomList = atomList();
          {if (true) return atomList;}
View Full Code Here

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

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

  final public RuleAtom atom() throws ParseException {
RuleAtom ruleAtom;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IS:
      ruleAtom = classAtom();
                         {if (true) return ruleAtom;}
      break;
View Full Code Here

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

          {if (true) return new PropStringAtom(stringFunctionAtom1, stringFunctionAtom2);}
    throw new Error("Missing return statement in function");
  }

  final public ComparisonAtom endsWithAtom() throws ParseException {
RuleAtom ruleAtom; StringFunctionAtom arg; StringFunctionAtom stringFunctionAtom;
    jj_consume_token(ENDS_WITH);
    jj_consume_token(LPAR);
    arg = stringFunctionAtom();
    jj_consume_token(COMMA);
    stringFunctionAtom = stringFunctionAtom();
View Full Code Here

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

         {if (true) return new EndsWithAtom(arg, stringFunctionAtom);}
    throw new Error("Missing return statement in function");
  }

  final public ComparisonAtom startsWithAtom() throws ParseException {
RuleAtom ruleAtom; StringFunctionAtom arg; StringFunctionAtom stringFunctionAtom;
    jj_consume_token(STARTS_WITH);
    jj_consume_token(LPAR);
    arg = stringFunctionAtom();
    jj_consume_token(COMMA);
    stringFunctionAtom = stringFunctionAtom();
View Full Code Here

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

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

    }
    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

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

        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

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

    }

    @Test
    public void testValidAtomWithVariableArguments() {

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

        execTest(ruleAtom);

    }
View Full Code Here

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

    }

    @Test
    public void testValidAtomWithLiteralArguments() {

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

        execTest(ruleAtom);
    }
View Full Code Here

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

    }

    @Test
    public void testValidAtomWithTypedLiteralArguments() {

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

        execTest(ruleAtom);
    }
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.