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");
}
Aggregations