final private FunctionCall FunctionCall() throws ParseException { IRI name; List<Expression> arguments; name = IRI(); arguments = ArgList(); {if (true) return new FunctionCall(name, arguments);} throw new Error("Missing return statement in function"); }
final private FunctionCall FunctionCall() throws ParseException { IRI name; List<Expression> arguments; name = IRI(); arguments = ArgList(); {if (true) return new FunctionCall(name, arguments);} throw new Error("Missing return statement in function"); }
final private FunctionCall FunctionCall() throws ParseException { IRI name; List<Expression> arguments; name = IRIref(); arguments = ArgList(); {if (true) return new FunctionCall(name, arguments);} throw new Error("Missing return statement in function"); }
final private FunctionCall FunctionCall() throws ParseException { IRI name; List<Expression> arguments; name = IRIref(); arguments = ArgList(); {if (true) return new FunctionCall(name, arguments);} throw new Error("Missing return statement in function"); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption, UnavailableRuleObjectException, UnsupportedTypeForExportException { org.apache.stanbol.rules.manager.atoms.LowerCaseAtom tmp = (org.apache.stanbol.rules.manager.atoms.LowerCaseAtom) ruleAtom; StringFunctionAtom argument = tmp.getStringFunctionAtom(); ClerezzaSparqlObject argument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument, ConstructQuery.class); List<Expression> argumentExpressions = new ArrayList<Expression>(); argumentExpressions.add((Expression) argument1.getClerezzaObject()); FunctionCall functionCall = new FunctionCall(new IRI( "<http://www.w3.org/2005/xpath-functions#lower-case>"), argumentExpressions); return (T) new ClerezzaSparqlObject(functionCall); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption, UnavailableRuleObjectException, UnsupportedTypeForExportException { org.apache.stanbol.rules.manager.atoms.LengthAtom tmp = (org.apache.stanbol.rules.manager.atoms.LengthAtom) ruleAtom; StringFunctionAtom argument = tmp.getStringFunctionAtom(); ClerezzaSparqlObject argument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument, ConstructQuery.class); List<Expression> argumentExpressions = new ArrayList<Expression>(); argumentExpressions.add((Expression) argument1.getClerezzaObject()); FunctionCall functionCall = new FunctionCall(new IRI( "<http://www.w3.org/2005/xpath-functions#string-length>"), argumentExpressions); return (T) new ClerezzaSparqlObject(functionCall); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption, UnavailableRuleObjectException, UnsupportedTypeForExportException { org.apache.stanbol.rules.manager.atoms.UpperCaseAtom tmp = (org.apache.stanbol.rules.manager.atoms.UpperCaseAtom) ruleAtom; StringFunctionAtom argument = tmp.getStringFunctionAtom(); ClerezzaSparqlObject argument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument, ConstructQuery.class); List<Expression> argumentExpressions = new ArrayList<Expression>(); argumentExpressions.add((Expression) argument1.getClerezzaObject()); FunctionCall functionCall = new FunctionCall(new IRI( "<http://www.w3.org/2005/xpath-functions#upper-case>"), argumentExpressions); return (T) new ClerezzaSparqlObject(functionCall); }
final private Expression IRIrefOrFunction() throws ParseException { IRI IRI; List<Expression> args; IRI = IRIref(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 46: case NIL: args = ArgList(); {if (true) return new FunctionCall(IRI, args);} break; default: jj_la1[65] = jj_gen; ; } {if (true) return new UriRefExpression(IRI);} throw new Error("Missing return statement in function"); }
final private Expression IRIOrFunction() throws ParseException { IRI uriRef; List<Expression> args; uriRef = IRI(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 67: case NIL: args = ArgList(); {if (true) return new FunctionCall(uriRef, args);} break; default: jj_la1[142] = jj_gen; ; } {if (true) return new UriRefExpression(uriRef);} throw new Error("Missing return statement in function"); }
final private Expression IRIrefOrFunction() throws ParseException { IRI IRI; List<Expression> args; IRI = IRIref(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 46: case NIL: args = ArgList(); {if (true) return new FunctionCall(IRI, args);} break; default: jj_la1[65] = jj_gen; ; } {if (true) return new UriRefExpression(IRI);} throw new Error("Missing return statement in function"); }
final private Expression IRIOrFunction() throws ParseException { IRI uriRef; List<Expression> args; uriRef = IRI(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 67: case NIL: args = ArgList(); {if (true) return new FunctionCall(uriRef, args);} break; default: jj_la1[142] = jj_gen; ; } {if (true) return new UriRefExpression(uriRef);} throw new Error("Missing return statement in function"); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption, UnavailableRuleObjectException, UnsupportedTypeForExportException { org.apache.stanbol.rules.manager.atoms.StartsWithAtom tmp = (org.apache.stanbol.rules.manager.atoms.StartsWithAtom) ruleAtom; StringFunctionAtom argument = tmp.getArgument(); StringFunctionAtom term = tmp.getTerm(); ClerezzaSparqlObject argument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument, ConstructQuery.class); ClerezzaSparqlObject argument2 = (ClerezzaSparqlObject) adapter.adaptTo(term, ConstructQuery.class); List<Expression> argumentExpressions = new ArrayList<Expression>(); argumentExpressions.add((Expression) argument1.getClerezzaObject()); argumentExpressions.add((Expression) argument2.getClerezzaObject()); FunctionCall functionCall = new FunctionCall(new IRI( "<http://www.w3.org/2005/xpath-functions#starts-with>"), argumentExpressions); return (T) new ClerezzaSparqlObject(functionCall); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption, UnavailableRuleObjectException, UnsupportedTypeForExportException { org.apache.stanbol.rules.manager.atoms.EndsWithAtom tmp = (org.apache.stanbol.rules.manager.atoms.EndsWithAtom) ruleAtom; StringFunctionAtom argument = tmp.getArgument(); StringFunctionAtom term = tmp.getTerm(); ClerezzaSparqlObject argument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument, ConstructQuery.class); ClerezzaSparqlObject argument2 = (ClerezzaSparqlObject) adapter.adaptTo(term, ConstructQuery.class); List<Expression> argumentExpressions = new ArrayList<Expression>(); argumentExpressions.add((Expression) argument1.getClerezzaObject()); argumentExpressions.add((Expression) argument2.getClerezzaObject()); FunctionCall functionCall = new FunctionCall(new IRI( "<http://www.w3.org/2005/xpath-functions#ends-with>"), argumentExpressions); return (T) new ClerezzaSparqlObject(functionCall); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption, UnavailableRuleObjectException, UnsupportedTypeForExportException { org.apache.stanbol.rules.manager.atoms.ConcatAtom tmp = (org.apache.stanbol.rules.manager.atoms.ConcatAtom) ruleAtom; StringFunctionAtom argument1Atom = tmp.getArgument1(); StringFunctionAtom argument2Atom = tmp.getArgument2(); ClerezzaSparqlObject argument1 = (ClerezzaSparqlObject) adapter.adaptTo(argument1Atom, ConstructQuery.class); ClerezzaSparqlObject argument2 = (ClerezzaSparqlObject) adapter.adaptTo(argument2Atom, ConstructQuery.class); List<Expression> argumentExpressions = new ArrayList<Expression>(); argumentExpressions.add((Expression) argument1.getClerezzaObject()); argumentExpressions.add((Expression) argument2.getClerezzaObject()); FunctionCall functionCall = new FunctionCall(new IRI( "<http://www.w3.org/2005/xpath-functions#concat>"), argumentExpressions); return (T) new ClerezzaSparqlObject(functionCall); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption, UnavailableRuleObjectException, UnsupportedTypeForExportException { org.apache.stanbol.rules.manager.atoms.SubstringAtom tmp = (org.apache.stanbol.rules.manager.atoms.SubstringAtom) ruleAtom; StringFunctionAtom argument = tmp.getStringFunctionAtom(); NumericFunctionAtom start = tmp.getStart(); NumericFunctionAtom length = tmp.getLength(); ClerezzaSparqlObject clerezzaArgument = (ClerezzaSparqlObject) adapter.adaptTo(argument, ConstructQuery.class); ClerezzaSparqlObject clerezzaStart = (ClerezzaSparqlObject) adapter.adaptTo(start, ConstructQuery.class); ClerezzaSparqlObject clerezzaLength = (ClerezzaSparqlObject) adapter.adaptTo(length, ConstructQuery.class); List<Expression> argumentExpressions = new ArrayList<Expression>(); argumentExpressions.add((Expression) clerezzaArgument.getClerezzaObject()); argumentExpressions.add((Expression) clerezzaStart.getClerezzaObject()); argumentExpressions.add((Expression) clerezzaLength.getClerezzaObject()); FunctionCall functionCall = new FunctionCall(new IRI( "<http://www.w3.org/2005/xpath-functions#substring>"), argumentExpressions); return (T) new ClerezzaSparqlObject(functionCall); }