log.debug("Created recipe with ID " + recipe.getRecipeID().toString());
}
private void addRuleToRecipeTest() throws Exception {
Recipe recipe = store.getRecipe(new UriRef("http://incubator.apache.com/stanbol/rules/test/recipeA"));
String separator = System.getProperty("line.separator");
String rule = "rule1[" + separator + " is(<http://dbpedia.org/ontology/Person>, ?x) . " + separator
+ " has(<http://dbpedia.org/ontology/playsInTeam>, ?x, ?y) . " + separator
+ " is (<http://dbpedia.org/ontology/FootballTeam>, ?y) " + separator + " -> "
+ separator + " is(<http://dbpedia.org/ontology/FootballPlayer>, ?x)" + separator
+ "] . " + "rule2[" + separator
+ " is(<http://dbpedia.org/ontology/Organisation>, ?x) . " + separator
+ " has(<http://dbpedia.org/ontology/hasProduct>, ?x, ?y)" + separator + " -> "
+ separator + " is(<http://dbpedia.org/ontology/Company>, ?x)" + separator + "]";
store.addRulesToRecipe(recipe, rule, "This is a test rule.");
if (recipe == null) {
Assert.fail();
}
log.debug("Got recipe with ID " + recipe.getRecipeID().toString());
}