Package org.apache.stanbol.rules.manager.atoms

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


                                         UnavailableRuleObjectException,
                                         UnsupportedTypeForExportException {

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

        ExpressionAtom argument1 = tmp.getArgument1();
        ExpressionAtom argument2 = tmp.getArgument2();

        ClerezzaSparqlObject clerezzaArgument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument1,
            ConstructQuery.class);
        ClerezzaSparqlObject clerezzaArgument2 = (ClerezzaSparqlObject) adapter.adaptTo(argument2,
            ConstructQuery.class);
View Full Code Here


                                         UnavailableRuleObjectException,
                                         UnsupportedTypeForExportException {

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

        ExpressionAtom argument1 = tmp.getArgument1();
        ExpressionAtom argument2 = tmp.getArgument2();

        ClerezzaSparqlObject clerezzaArgument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument1,
            ConstructQuery.class);
        ClerezzaSparqlObject clerezzaArgument2 = (ClerezzaSparqlObject) adapter.adaptTo(argument2,
            ConstructQuery.class);
View Full Code Here

                                         UnavailableRuleObjectException,
                                         UnsupportedTypeForExportException {

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

        ExpressionAtom argument1 = tmp.getArgument1();
        ExpressionAtom argument2 = tmp.getArgument2();

        SPARQLObject sparqlArgument1 = adapter.adaptTo(argument1, SPARQLObject.class);
        SPARQLObject sparqlArgument2 = adapter.adaptTo(argument2, SPARQLObject.class);

        String arg1 = sparqlArgument1.getObject();
View Full Code Here

                                         UnavailableRuleObjectException,
                                         UnsupportedTypeForExportException {

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

        ExpressionAtom argument1 = tmp.getArgument1();
        ExpressionAtom argument2 = tmp.getArgument2();

        OWLDataFactory factory = OWLManager.getOWLDataFactory();

        SWRLAtom swrlAtom1 = (SWRLAtom) adapter.adaptTo(argument1, SWRLRule.class);
        SWRLAtom swrlAtom2 = (SWRLAtom) adapter.adaptTo(argument2, SWRLRule.class);
View Full Code Here

          {if (true) return new SubstringAtom(arg, start, length);}
    throw new Error("Missing return statement in function");
  }

  final public ExpressionAtom expressionAtom() throws ParseException {
ExpressionAtom expressionAtom;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case SUBSTRING:
    case UPPERCASE:
    case LOWERCASE:
    case CONCAT:
View Full Code Here

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

  final public SameAtom sameAsAtom() throws ParseException {
ExpressionAtom expressionAtom1; ExpressionAtom expressionAtom2;
    jj_consume_token(SAME);
    jj_consume_token(LPAR);
    expressionAtom1 = expressionAtom();
    jj_consume_token(COMMA);
    expressionAtom2 = expressionAtom();
View Full Code Here

          {if (true) return new SameAtom(expressionAtom1, expressionAtom2);}
    throw new Error("Missing return statement in function");
  }

  final public LessThanAtom lessThanAtom() throws ParseException {
ExpressionAtom obj1; ExpressionAtom obj2;
    jj_consume_token(LESSTHAN);
    jj_consume_token(LPAR);
    obj1 = expressionAtom();
    jj_consume_token(COMMA);
    obj2 = expressionAtom();
View Full Code Here

          {if (true) return new LessThanAtom(obj1, obj2);}
    throw new Error("Missing return statement in function");
  }

  final public LessEqualThanAtom lessEqualThanAtom() throws ParseException {
ExpressionAtom obj1; ExpressionAtom obj2;
    jj_consume_token(LESSEQUALTHAN);
    jj_consume_token(LPAR);
    obj1 = expressionAtom();
    jj_consume_token(COMMA);
    obj2 = expressionAtom();
View Full Code Here

          {if (true) return new LessEqualThanAtom(obj1, obj2);}
    throw new Error("Missing return statement in function");
  }

  final public GreaterThanAtom greaterThanAtom() throws ParseException {
ExpressionAtom obj1; ExpressionAtom obj2;
    jj_consume_token(GREATERTHAN);
    jj_consume_token(LPAR);
    obj1 = expressionAtom();
    jj_consume_token(COMMA);
    obj2 = expressionAtom();
View Full Code Here

          {if (true) return new GreaterThanAtom(obj1, obj2);}
    throw new Error("Missing return statement in function");
  }

  final public GreaterEqualThanAtom greaterEqualThanAtom() throws ParseException {
ExpressionAtom obj1; ExpressionAtom obj2;
    jj_consume_token(GREATEREQUALTHAN);
    jj_consume_token(LPAR);
    obj1 = expressionAtom();
    jj_consume_token(COMMA);
    obj2 = expressionAtom();
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.manager.atoms.ExpressionAtom

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.