Package org.apache.stanbol.rules.manager.changes

Examples of org.apache.stanbol.rules.manager.changes.LoadRuleFile


     */
    @Test
    public void testRemoveRuleName_String() throws OWLOntologyCreationException {
        // RuleStore store = new RuleStoreImpl("./src/main/resources/RuleOntology/TestKReSOntologyRules.owl");
        // Load the example file
        LoadRuleFile load = new LoadRuleFile("./src/main/resources/RuleOntology/TestRuleFileExample.txt",
                store);
        OWLOntology owlstart = load.getStore().getOntology();
        String recipeName = "MyRecipe";
        RemoveRecipe instance = new RemoveRecipe(load.getStore());

        boolean expResult = true;
        boolean result = instance.removeRecipe(recipeName);
        OWLOntology owlend = instance.getStore().getOntology();

View Full Code Here


    public void testGetRule() {
        // RuleStore store = new RuleStoreImpl("./src/main/resources/RuleOntology/TestKReSOntologyRules.owl");
        OWLOntology owl = store.getOntology();
        String ID = owl.getOntologyID().toString().replace("<", "").replace(">", "") + "#";
        // Load the example file
        LoadRuleFile load = new LoadRuleFile("./src/main/resources/RuleOntology/TestRuleFileExample.txt",
                store);
        owl = load.getStore().getOntology();

        GetRule rule = new GetRule(store);
        HashMap<IRI,String> map = rule.getRule("MyRuleC");
        HashMap<IRI,String> expmap = new HashMap();
        expmap.put(IRI.create(ID + "MyRuleC"), "MyRuleCBody -> MyRuleCHead");
View Full Code Here

        // RuleStoreImpl store = new
        // RuleStoreImpl("./src/main/resources/RuleOntology/TestKReSOntologyRules.owl");
        OWLOntology owl = store.getOntology();
        String ID = owl.getOntologyID().toString().replace("<", "").replace(">", "") + "#";
        // Load the example file
        LoadRuleFile load = new LoadRuleFile("./src/main/resources/RuleOntology/TestRuleFileExample.txt",
                store);
        owl = load.getStore().getOntology();

        GetRule rule = new GetRule(store);

        HashMap<IRI,String> map = rule.getAllRules();
        HashMap<IRI,String> expmap = new HashMap();
View Full Code Here

        // RuleStoreImpl store = new
        // RuleStoreImpl("./src/main/resources/RuleOntology/TestKReSOntologyRules.owl");
        OWLOntology owl = store.getOntology();
        String ID = owl.getOntologyID().toString().replace("<", "").replace(">", "") + "#";
        // Load the example file
        LoadRuleFile load = new LoadRuleFile("./src/main/resources/RuleOntology/TestRuleFileExample.txt",
                store);
        owl = load.getStore().getOntology();

        GetRule rule = new GetRule(store);
        Vector<IRI> vector = rule.getRuleUsage(IRI.create(ID + "MyRuleC"));

        if (vector != null) {
View Full Code Here

        // RuleStoreImpl store = new
        // RuleStoreImpl("./src/main/resources/RuleOntology/TestKReSOntologyRules.owl");
        OWLOntology owl = store.getOntology();
        String ID = owl.getOntologyID().toString().replace("<", "").replace(">", "") + "#";
        // Load the example file
        LoadRuleFile load = new LoadRuleFile("./src/main/resources/RuleOntology/TestRuleFileExample.txt",
                store);
        owl = load.getStore().getOntology();

        GetRule rule = new GetRule(store);
        Vector<IRI> vector = rule.getRuleUsage(IRI.create(ID + "MyRuleC"));

        if (vector != null) {
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.manager.changes.LoadRuleFile

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.