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

Examples of org.apache.stanbol.ontologymanager.registry.api.RegistryContentException


        IRI libId = ind.getIRI();
        RegistryItem lib = null;
        if (population.containsKey(libId)) {
            // We are not allowing multityping either.
            lib = population.get(libId);
            if (!(lib instanceof Library)) throw new RegistryContentException(
                    "Inconsistent multityping: for item " + libId + " : {" + Library.class + ", "
                            + lib.getClass() + "}");
        } else {
            lib = riFactory.createLibrary(ind);
            try {
View Full Code Here


        IRI ontId = ind.getIRI();
        RegistryItem ront = null;
        if (population.containsKey(ontId)) {
            // We are not allowing multityping either.
            ront = population.get(ontId);
            if (!(ront instanceof RegistryOntology)) throw new RegistryContentException(
                    "Inconsistent multityping: for item " + ontId + " : {" + RegistryOntology.class + ", "
                            + ront.getClass() + "}");
        } else {
            ront = riFactory.createRegistryOntology(ind);
            try {
View Full Code Here

        IRI libId = ind.getIRI();
        RegistryItem lib = null;
        if (population.containsKey(libId)) {
            // We are not allowing multityping either.
            lib = population.get(libId);
            if (!(lib instanceof Library)) throw new RegistryContentException(
                    "Inconsistent multityping: for item " + libId + " : {" + Library.class + ", "
                            + lib.getClass() + "}");
        } else {
            lib = riFactory.createLibrary(ind);
            try {
View Full Code Here

        IRI ontId = ind.getIRI();
        RegistryItem ront = null;
        if (population.containsKey(ontId)) {
            // We are not allowing multityping either.
            ront = population.get(ontId);
            if (!(ront instanceof RegistryOntology)) throw new RegistryContentException(
                    "Inconsistent multityping: for item " + ontId + " : {" + RegistryOntology.class + ", "
                            + ront.getClass() + "}");
        } else {
            ront = riFactory.createRegistryOntology(ind);
            try {
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.registry.api.RegistryContentException

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.