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

Examples of org.apache.stanbol.ontologymanager.registry.api.model.RegistryOntology


    @Override
    public synchronized void loadOntologies(OntologyProvider<?> loader) {
        if (loader == null) throw new IllegalArgumentException("A null loader is not allowed.");
        for (RegistryItem item : getChildren()) {
            if (item instanceof RegistryOntology) {
                RegistryOntology o = (RegistryOntology) item;
                IRI id = o.getIRI();
                try {
                    // No preferred key, we don't have a prefix here.
                    OWLOntologyID key = loader.loadInStore(id, null, false);
                    if (key == null || key.isAnonymous()) log.error(
                        "Empty storage key. Ontology {} was apparently not stored.", id);
View Full Code Here


    @Override
    public synchronized void loadOntologies(OntologyProvider<?> loader) {
        if (loader == null) throw new IllegalArgumentException("A null loader is not allowed.");
        for (RegistryItem item : getChildren()) {
            if (item instanceof RegistryOntology) {
                RegistryOntology o = (RegistryOntology) item;
                IRI id = o.getIRI();
                try {
                    // No preferred key, we don't have a prefix here.
                    String key = loader.loadInStore(id, null, null, false);
                    if (key == null || key.isEmpty()) log.error(
                        "Empty storage key. Ontology {} was apparently not stored.", id);
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.registry.api.model.RegistryOntology

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.