Package org.apache.stanbol.ontologymanager.ontonet.api.session

Examples of org.apache.stanbol.ontologymanager.ontonet.api.session.Session.export()


            /*
             * Export the entire session (incl. entities and enhancement graph) as a single merged ontology.
             *
             * TODO the refactorer should have methods to accommodate an OntologyCollector directly instead.
             */
            OWLOntology ontology = session.export(OWLOntology.class, true);
            log.debug("Refactoring recipe IRI is : " + engineConfiguration.getRecipeId());

            /*
             * We pass the ontology and the recipe IRI to the Refactor that returns the refactored graph
             * expressed by using the given vocabulary.
View Full Code Here


                log.warn("Session {} cannot be retrieved. Ignoring.", this.sessionId);
            }
            final Set<OWLOntology> set = new HashSet<OWLOntology>();
            set.add(scope.export(OWLOntology.class, true));
            if (session != null) {
                set.add(session.export(OWLOntology.class, true));
            }

            if (set.size() == 1) return set.iterator().next();
            OWLOntologyMerger merger = new OWLOntologyMerger(new OWLOntologySetProvider() {
                @Override
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.