Package org.apache.stanbol.rules.refactor.api

Examples of org.apache.stanbol.rules.refactor.api.Refactorer


        QueryEngine qe = new JenaSparqlEngine();
        WeightedTcProvider wtcp = new SimpleTcProvider();
        TcManager tcm = new SpecialTcManager(qe, wtcp);


        Refactorer refactorer = new RefactorerImpl(null, new Serializer(), tcm, ruleStore,
                emptyConfig);
        try {
            refactorer.ontologyRefactoring(ontology, recipeIRI);
        } catch (RefactoringException e) {
            fail("Error while refactoring.");
        } catch (NoSuchRecipeException e) {
            fail("Error while refactoring: no such recipe");
        }
View Full Code Here


        KB kb = RuleParserImpl.parse(recipe);
        RuleList ruleList = kb.getkReSRuleList();
        Recipe actualRecipe = new RecipeImpl(null, null, ruleList);

        Refactorer refactorer = new RefactorerImpl(null, new Serializer(), tcm, ruleStore,
                emptyConfig);
        try {
            refactorer.ontologyRefactoring(ontology, actualRecipe);
        } catch (RefactoringException e) {
            fail("Error while refactoring.");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.refactor.api.Refactorer

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.