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

Examples of org.apache.stanbol.rules.manager.changes.RemoveRule.removeRule()


                    return rb.build();
                }

                // Remove the old rule
                RemoveRule remove = new RemoveRule(ruleStore);
                ok = remove.removeRule(IRI.create(rule));
                if (ok) {
                    ruleStore.saveOntology();
                    ResponseBuilder rb = Response.ok();
                    rb.header(HttpHeaders.CONTENT_TYPE, TEXT_HTML + "; charset=utf-8");
                    addCORSOrigin(servletContext, rb, headers);
View Full Code Here


        AddRule rule = new AddRule(load.getStore());
        rule.addRule("MyRuleProva", "Body -> Head", null);
        String ruleName = "MyRuleProva";
        RemoveRule instance = new RemoveRule(rule.getStore());
        boolean expResult = true;
        boolean result = instance.removeRule(ruleName);
        if (result) {
            assertEquals(expResult, result);
            // TODO review the generated test code and remove the default call to fail.
        } else {
            fail("Some errors occur with removeRule of KReSRemoveRule.");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.