Search in sources :

Example 1 with NumericVariableAtom

use of org.apache.stanbol.rules.manager.atoms.NumericVariableAtom in project stanbol by apache.

the class RuleParserImpl method numericVariable.

public final NumericVariableAtom numericVariable() throws ParseException {
    Token t;
    String var;
    t = jj_consume_token(VARIABLE);
    var = t.image;
    var = kb.getPrefixURI("var") + var.substring(1);
    try {
        {
            if (true)
                return new NumericVariableAtom(new URI(var), false);
        }
    } catch (URISyntaxException e) {
        e.printStackTrace();
        {
            if (true)
                return null;
        }
    }
    throw new Error("Missing return statement in function");
}
Also used : NumericVariableAtom(org.apache.stanbol.rules.manager.atoms.NumericVariableAtom) URISyntaxException(java.net.URISyntaxException) URI(java.net.URI)

Aggregations

URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 NumericVariableAtom (org.apache.stanbol.rules.manager.atoms.NumericVariableAtom)1