Search in sources :

Example 11 with RuleAtom

use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.

the class GreaterThanAtomTest method testValidAtomWithLiteralArguments.

@Test
public void testValidAtomWithLiteralArguments() {
    RuleAtom ruleAtom = new GreaterThanAtom(literal1, literal2);
    execTest(ruleAtom);
}
Also used : RuleAtom(org.apache.stanbol.rules.base.api.RuleAtom) Test(org.junit.Test)

Example 12 with RuleAtom

use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.

the class GreaterThanAtomTest method testValidAtomWithTypedLiteralArguments.

@Test
public void testValidAtomWithTypedLiteralArguments() {
    RuleAtom ruleAtom = new GreaterThanAtom(typedLiteral1, typedLiteral2);
    execTest(ruleAtom);
}
Also used : RuleAtom(org.apache.stanbol.rules.base.api.RuleAtom) Test(org.junit.Test)

Example 13 with RuleAtom

use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.

the class IndividualPropertyAtomTest method testValidIndividualPropertyAtomWith.

@Test
public void testValidIndividualPropertyAtomWith() {
    RuleAtom ruleAtom = new IndividualPropertyAtom(objectProperty, argument1, argument2);
    execTest(ruleAtom);
}
Also used : RuleAtom(org.apache.stanbol.rules.base.api.RuleAtom) Test(org.junit.Test)

Example 14 with RuleAtom

use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.

the class LessThanAtomTest method testValidAtomWithLiteralArguments.

@Test
public void testValidAtomWithLiteralArguments() {
    RuleAtom ruleAtom = new LessThanAtom(literal1, literal2);
    execTest(ruleAtom);
}
Also used : RuleAtom(org.apache.stanbol.rules.base.api.RuleAtom) Test(org.junit.Test)

Example 15 with RuleAtom

use of org.apache.stanbol.rules.base.api.RuleAtom in project stanbol by apache.

the class LessThanAtomTest method testValidAtomWithTypedLiteralArguments.

@Test
public void testValidAtomWithTypedLiteralArguments() {
    RuleAtom ruleAtom = new LessThanAtom(typedLiteral1, typedLiteral2);
    execTest(ruleAtom);
}
Also used : RuleAtom(org.apache.stanbol.rules.base.api.RuleAtom) Test(org.junit.Test)

Aggregations

RuleAtom (org.apache.stanbol.rules.base.api.RuleAtom)33 Test (org.junit.Test)11 RuleAtomCallExeption (org.apache.stanbol.rules.base.api.RuleAtomCallExeption)4 AtomList (org.apache.stanbol.rules.base.api.util.AtomList)4 IObjectAtom (org.apache.stanbol.rules.manager.atoms.IObjectAtom)4 ArrayList (java.util.ArrayList)3 UnsupportedTypeForExportException (org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException)3 ClauseEntry (com.hp.hpl.jena.reasoner.rulesys.ClauseEntry)2 HashSet (java.util.HashSet)2 SPARQLObject (org.apache.stanbol.rules.base.api.SPARQLObject)2 StringFunctionAtom (org.apache.stanbol.rules.manager.atoms.StringFunctionAtom)2 OWLDataFactory (org.semanticweb.owlapi.model.OWLDataFactory)2 SWRLAtom (org.semanticweb.owlapi.model.SWRLAtom)2 Node (com.hp.hpl.jena.graph.Node)1 TriplePattern (com.hp.hpl.jena.reasoner.TriplePattern)1 IRI (org.apache.clerezza.commons.rdf.IRI)1 ConstructQuery (org.apache.clerezza.rdf.core.sparql.query.ConstructQuery)1 Expression (org.apache.clerezza.rdf.core.sparql.query.Expression)1 LiteralExpression (org.apache.clerezza.rdf.core.sparql.query.LiteralExpression)1 ResourceOrVariable (org.apache.clerezza.rdf.core.sparql.query.ResourceOrVariable)1