Package org.apache.stanbol.rules.refactor.impl

Examples of org.apache.stanbol.rules.refactor.impl.RefactorerImpl


        RuleAdapterManager ruleAdapterManager = new RuleAdaptersManagerImpl(configuration2,
                ruleAdaptersFactory);

        Dictionary<String,Object> configuration4 = new Hashtable<String,Object>();

        refactorer = new RefactorerImpl(wtcp, tcm, store, ruleAdapterManager, configuration4);
    }
View Full Code Here


        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.impl.RefactorerImpl

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.