Search in sources :

Example 1 with StringVariableAtom

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

the class RuleParserImpl method stringVariable.

public final StringVariableAtom stringVariable() 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 StringVariableAtom(new URI(var), false);
        }
    } catch (URISyntaxException e) {
        e.printStackTrace();
        {
            if (true)
                return null;
        }
    }
    throw new Error("Missing return statement in function");
}
Also used : StringVariableAtom(org.apache.stanbol.rules.manager.atoms.StringVariableAtom) URISyntaxException(java.net.URISyntaxException) URI(java.net.URI)

Aggregations

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