use of org.apache.jena.sparql.engine.optimizer.StatsMatcher in project jena by apache.
the class TestReorder method match_21.
@Test
public void match_21() {
StatsMatcher matcher = matcher("(:p 10) ");
Triple t = triple("(?x :p 1913)");
double d = matcher.match(t);
assertEquals(StatsMatcher.weightPO_small, d, 0);
}
use of org.apache.jena.sparql.engine.optimizer.StatsMatcher in project jena by apache.
the class TestReorder method match_04.
@Test
public void match_04() {
StatsMatcher matcher = matcher("((TERM :p VAR) 5)");
Triple t = triple("(:x :p ?v)");
double d = matcher.match(t);
assertEquals(5, d, 0);
}
use of org.apache.jena.sparql.engine.optimizer.StatsMatcher in project jena by apache.
the class TestReorder method match_03.
@Test
public void match_03() {
StatsMatcher matcher = matcher("((:x :p VAR) 5)");
Triple t = triple("(:x :p ?v)");
double d = matcher.match(t);
assertEquals(5, d, 0);
}
use of org.apache.jena.sparql.engine.optimizer.StatsMatcher in project jena by apache.
the class TestReorder method match_05.
@Test
public void match_05() {
StatsMatcher matcher = matcher("((URI :p VAR) 5)");
Triple t = triple("(:x :p ?v)");
double d = matcher.match(t);
assertEquals(5, d, 0);
}
use of org.apache.jena.sparql.engine.optimizer.StatsMatcher in project jena by apache.
the class TestReorder method match_22.
@Test
public void match_22() {
StatsMatcher matcher = matcher("(:p 11)");
Triple t = triple("(:x :p 1913)");
double d = matcher.match(t);
assertEquals(1, d, 0);
}
Aggregations