Package org.apache.stanbol.ontologymanager.registry.api.model

Examples of org.apache.stanbol.ontologymanager.registry.api.model.Library.loadOntologies()


                // TODO: implement ontology request targets.
                if (CachingPolicy.CENTRALISED.equals(getCachingPolicy()) && this.cache != null) {
                    ((Library) item).loadOntologies(this.cache);
                } else if (CachingPolicy.DISTRIBUTED.equals(getCachingPolicy())) {
                    Library lib = (Library) item;
                    lib.loadOntologies(lib.getCache());
                } else {
                    log.error("Tried to load ontology resource {} using a null cache.", item);
                }
            }
        }
View Full Code Here


            if (requestTarget instanceof Library && !((Library) requestTarget).isLoaded()) ((Library) requestTarget)
                    .loadOntologies(this.cache);
        } else if (CachingPolicy.DISTRIBUTED.equals(getCachingPolicy())) {
            if (requestTarget instanceof Library && !((Library) requestTarget).isLoaded()) {
                Library lib = (Library) requestTarget;
                lib.loadOntologies(lib.getCache());
            }
        } else {
            log.error("Tried to load ontology resource {} using a null cache.", requestTarget);
        }
    }
View Full Code Here

                // TODO: implement ontology request targets.
                if (CachingPolicy.CENTRALISED.equals(getCachingPolicy()) && this.cache != null) {
                    ((Library) item).loadOntologies(this.cache);
                } else if (CachingPolicy.DISTRIBUTED.equals(getCachingPolicy())) {
                    Library lib = (Library) item;
                    lib.loadOntologies(lib.getCache());
                } else {
                    log.error("Tried to load ontology resource {} using a null cache.", item);
                }
            }
        }
View Full Code Here

            if (requestTarget instanceof Library && !((Library) requestTarget).isLoaded()) ((Library) requestTarget)
                    .loadOntologies(this.cache);
        } else if (CachingPolicy.DISTRIBUTED.equals(getCachingPolicy())) {
            if (requestTarget instanceof Library && !((Library) requestTarget).isLoaded()) {
                Library lib = (Library) requestTarget;
                lib.loadOntologies(lib.getCache());
            }
        } else {
            log.error("Tried to load ontology resource {} using a null cache.", requestTarget);
        }
    }
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.