Package org.apache.stanbol.rules.base.api.util

Examples of org.apache.stanbol.rules.base.api.util.RuleList


     * @throws RefactoringException
     */
    private OWLOntology doRefactoring(InputStream input, KB kb) throws OWLOntologyCreationException,
                                                               RefactoringException {
        if (kb == null) return null;
        RuleList ruleList = kb.getkReSRuleList();
        if (ruleList == null) return null;
        Recipe actualRecipe = new RecipeImpl(null, null, ruleList);

        // Parse the input ontology
        OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
View Full Code Here


 
  public KB() {
    log.debug("Setting up a KReSKB");
    prefixes = new Hashtable<String, String>();
    prefixes.put("var", "http://kres.iks-project.eu/ontology/meta/variables#");
    kReSRuleList = new RuleList();
  }
View Full Code Here

                  Recipe recipe = null;
                  synchronized (store) {
                      recipe = store.getRecipe(IRI.create(recipeId));                   
                  }
                  log.debug("Recipe is: {}", recipe);
                  RuleList ruleList = recipe.getkReSRuleList();
                  log.debug("RuleList is: {}",ruleList);
                  for(org.apache.stanbol.rules.base.api.Rule r : ruleList ){
                      SWRLRule swrl = r.toSWRL(OWLManager.getOWLDataFactory());
                      log.debug("Prepared rule: {}",swrl);
                      rules.add(swrl);
View Full Code Here

        IRI recipeId = IRI.create(engineConfiguration.getRecipeId());
        try {
            // step 1: get all the rules
            log.debug("Recipe {} and its associated rules will be removed from the rule store.", recipeId);
            RuleList recipeRuleList = ruleStore.getRecipe(recipeId).getkReSRuleList();

            // step 2: remove the recipe
            if (ruleStore.removeRecipe(recipeId)) {
                log.debug(
                    "Recipe {} has been removed correctly. Note that its rules will be removed separately.",
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.base.api.util.RuleList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.