Search in sources :

Example 1 with IObjectAtom

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

the class RuleParserImpl method datavaluedPropertyAtom.

public final DatavaluedPropertyAtom datavaluedPropertyAtom() throws ParseException {
    IObjectAtom uri1;
    IObjectAtom uri2;
    RuleAtom obj;
    jj_consume_token(VALUES);
    jj_consume_token(LPAR);
    uri1 = iObject();
    jj_consume_token(COMMA);
    uri2 = iObject();
    jj_consume_token(COMMA);
    obj = dObject();
    jj_consume_token(RPAR);
    {
        if (true)
            return new DatavaluedPropertyAtom(uri1, uri2, obj);
    }
    throw new Error("Missing return statement in function");
}
Also used : DatavaluedPropertyAtom(org.apache.stanbol.rules.manager.atoms.DatavaluedPropertyAtom) IObjectAtom(org.apache.stanbol.rules.manager.atoms.IObjectAtom) RuleAtom(org.apache.stanbol.rules.base.api.RuleAtom)

Example 2 with IObjectAtom

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

the class RuleParserImpl method namespaceAtom.

public final NamespaceAtom namespaceAtom() throws ParseException {
    IObjectAtom uri;
    jj_consume_token(NAMESPACE);
    jj_consume_token(LPAR);
    uri = iObject();
    jj_consume_token(RPAR);
    {
        if (true)
            return new NamespaceAtom(uri);
    }
    throw new Error("Missing return statement in function");
}
Also used : NamespaceAtom(org.apache.stanbol.rules.manager.atoms.NamespaceAtom) IObjectAtom(org.apache.stanbol.rules.manager.atoms.IObjectAtom)

Example 3 with IObjectAtom

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

the class RuleParserImpl method typedLiteral.

public final IObjectAtom typedLiteral() throws ParseException {
    IObjectAtom type = null;
    switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case APOX:
            jj_consume_token(APOX);
            jj_consume_token(APOX);
            type = reference();
            break;
        default:
            jj_la1[14] = jj_gen;
    }
    {
        if (true)
            return type;
    }
    throw new Error("Missing return statement in function");
}
Also used : IObjectAtom(org.apache.stanbol.rules.manager.atoms.IObjectAtom)

Example 4 with IObjectAtom

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

the class RuleParserImpl method letAtom.

public final LetAtom letAtom() throws ParseException {
    IObjectAtom uri1;
    StringFunctionAtom fun;
    jj_consume_token(LET);
    jj_consume_token(LPAR);
    uri1 = iObject();
    jj_consume_token(COMMA);
    fun = stringFunctionAtom();
    jj_consume_token(RPAR);
    {
        if (true)
            return new LetAtom(uri1, fun);
    }
    throw new Error("Missing return statement in function");
}
Also used : StringFunctionAtom(org.apache.stanbol.rules.manager.atoms.StringFunctionAtom) LetAtom(org.apache.stanbol.rules.manager.atoms.LetAtom) IObjectAtom(org.apache.stanbol.rules.manager.atoms.IObjectAtom)

Example 5 with IObjectAtom

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

the class RuleParserImpl method newIRIAtom.

public final NewIRIAtom newIRIAtom() throws ParseException {
    IObjectAtom arg1;
    StringFunctionAtom arg2;
    jj_consume_token(NEW_IRI);
    jj_consume_token(LPAR);
    arg1 = iObject();
    jj_consume_token(COMMA);
    arg2 = stringFunctionAtom();
    jj_consume_token(RPAR);
    {
        if (true)
            return new NewIRIAtom(arg1, arg2);
    }
    throw new Error("Missing return statement in function");
}
Also used : StringFunctionAtom(org.apache.stanbol.rules.manager.atoms.StringFunctionAtom) NewIRIAtom(org.apache.stanbol.rules.manager.atoms.NewIRIAtom) IObjectAtom(org.apache.stanbol.rules.manager.atoms.IObjectAtom)

Aggregations

IObjectAtom (org.apache.stanbol.rules.manager.atoms.IObjectAtom)36 RuleAtomCallExeption (org.apache.stanbol.rules.base.api.RuleAtomCallExeption)15 ConstructQuery (org.apache.clerezza.rdf.core.sparql.query.ConstructQuery)8 ClerezzaSparqlObject (org.apache.stanbol.rules.adapters.clerezza.ClerezzaSparqlObject)8 Node (com.hp.hpl.jena.graph.Node)7 ClauseEntry (com.hp.hpl.jena.reasoner.rulesys.ClauseEntry)7 ArrayList (java.util.ArrayList)7 NodeClauseEntry (org.apache.stanbol.rules.adapters.jena.NodeClauseEntry)7 StringFunctionAtom (org.apache.stanbol.rules.manager.atoms.StringFunctionAtom)6 IRI (org.apache.clerezza.commons.rdf.IRI)5 TriplePattern (com.hp.hpl.jena.reasoner.TriplePattern)4 BuiltInCall (org.apache.clerezza.rdf.core.sparql.query.BuiltInCall)4 Expression (org.apache.clerezza.rdf.core.sparql.query.Expression)4 ResourceOrVariable (org.apache.clerezza.rdf.core.sparql.query.ResourceOrVariable)4 UriRefOrVariable (org.apache.clerezza.rdf.core.sparql.query.UriRefOrVariable)4 Variable (org.apache.clerezza.rdf.core.sparql.query.Variable)4 SimpleTriplePattern (org.apache.clerezza.rdf.core.sparql.query.impl.SimpleTriplePattern)4 ArgumentSWRLAtom (org.apache.stanbol.rules.adapters.swrl.ArgumentSWRLAtom)4 RuleAtom (org.apache.stanbol.rules.base.api.RuleAtom)4 SPARQLObject (org.apache.stanbol.rules.base.api.SPARQLObject)4