use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.
the class LessThanAtomTest method testValidAtomWithVariableArguments.
@Test
public void testValidAtomWithVariableArguments() {
RuleAtom ruleAtom = new LessThanAtom(variable1, variable2);
execTest(ruleAtom);
}
use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.
the class RuleParserImpl method dObject.
public final RuleAtom dObject() throws ParseException {
RuleAtom variable;
switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case NUM:
case STRING:
variable = literal();
break;
case NOTEX:
case VARIABLE:
case BNODE:
variable = variable();
break;
default:
jj_la1[12] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
{
if (true)
return variable;
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.
the class ClassAtomTest method testValidClassAtomWith.
@Test
public void testValidClassAtomWith() {
RuleAtom ruleAtom = new ClassAtom(classResource, argument1);
execTest(ruleAtom);
}
use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.
the class DatavaluedPropertyAtomTest method testValidAtomWithVariableArguments.
@Test
public void testValidAtomWithVariableArguments() {
RuleAtom ruleAtom = new DatavaluedPropertyAtom(datatypeProperty, argument1, variable);
execTest(ruleAtom);
}
use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.
the class DatavaluedPropertyAtomTest method testValidAtomWithLiteralArguments.
@Test
public void testValidAtomWithLiteralArguments() {
RuleAtom ruleAtom = new DatavaluedPropertyAtom(datatypeProperty, argument1, literal);
execTest(ruleAtom);
}
Aggregations