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

Examples of org.apache.stanbol.rules.base.api.RuleStore


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

        Dictionary<String,Object> configuration = new Hashtable<String,Object>();
        RuleAdaptersFactory ruleAdaptersFactory = new RuleAdaptersFactoryImpl();
        RuleStore ruleStore = new ClerezzaRuleStore(configuration, tcm);
       
        ruleAdapter = new ClerezzaAdapter(configuration, ruleStore, ruleAdaptersFactory);
    }
View Full Code Here


        mgr = OWLManager.createOWLOntologyManager();
        mgr.addIRIMapper(map1);

        ontology = OWLManager.createOWLOntologyManager().loadOntologyFromOntologyDocument(ontologyStream);

        ruleStore = new RuleStore() {

            @Override
            public void setStore(OWLOntology owl) {
                // TODO Auto-generated method stub
View Full Code Here

    public void testKReSLoadRuleFile() throws OWLOntologyStorageException {
        Dictionary<String,Object> configuration = new Hashtable<String,Object>();
        Dictionary<String,Object> configuration2 = new Hashtable<String,Object>();
        // configuration2.put(RuleStoreImpl.RULE_ONTOLOGY, "");
        configuration2.put(RuleStore.RULE_NAMESPACE, "http://kres.iks-project.eu/ontology/meta/rmi.owl#");
        RuleStore store = new RuleStoreImpl(configuration2,
                "./src/main/resources/RuleOntology/TestKReSOntologyRules.owl");
        RuleStore newstore = new RuleStoreImpl(configuration2, store.getOntology());
        // Load the example file
        LoadRuleFile load = new LoadRuleFile("./src/main/resources/RuleOntology/TestRuleFileExample.txt",
                store);
        OWLOntology result = load.getStore().getOntology();

        // //////////////////////////////////////////////////////////////////
        // Create ontology
        OWLOntologyManager owlmanager = OWLManager.createOWLOntologyManager();
        OWLOntology owlmodel = newstore.getOntology();
        OWLDataFactory factory = owlmanager.getOWLDataFactory();
        String ID = owlmodel.getOntologyID().toString().replace("<", "").replace(">", "") + "#";
       
        log.debug(ID);
       
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.base.api.RuleStore

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.