Package org.apache.stanbol.commons.owl

Examples of org.apache.stanbol.commons.owl.PhonyIRIMapper


                log.info((arg0.isSuccessful() ? "Loaded" : "Failed")
                         + (arg0.isImported() ? " imported " : " ") + "ontology " + arg0.getDocumentIRI());
            }
        });

        mgr.addIRIMapper(new PhonyIRIMapper(null));

        File f = new File(url.toURI());
        OntologyInputSource<OWLOntology> src = new ParentPathInputSource(f, mgr);
        // OntologyInputSource<OWLOntology> src = new RootOntologyIRISource(IRI.create(f), mgr);
View Full Code Here


        log.debug("Exporting graph to OWLOntology");
        log.debug(" -- Graph name : {}", graphName);
        OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
        // Never try to import
        mgr.addIRIMapper(new PhonyIRIMapper(Collections.<IRI> emptySet()));

        Set<OWLOntologyID> loaded = new HashSet<OWLOntologyID>();
        TripleCollection graph = store.getTriples(graphName);
        UriRef ontologyId = null;
View Full Code Here

     * @return the equivalent OWL API {@link OWLOntology}.
     */
    public static OWLOntology clerezzaGraphToOWLOntology(TripleCollection graph) {
        OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
        // Never try to import
        mgr.addIRIMapper(new PhonyIRIMapper(Collections.<IRI> emptySet()));
        return clerezzaGraphToOWLOntology(graph, mgr);
    }
View Full Code Here

                log.info((arg0.isSuccessful() ? "Loaded" : "Failed")
                         + (arg0.isImported() ? " imported " : " ") + "ontology " + arg0.getDocumentIRI());
            }
        });

        mgr.addIRIMapper(new PhonyIRIMapper(null));

        File f = new File(url.toURI());
        OntologyInputSource<OWLOntology,?> src = new ParentPathInputSource(f, mgr);
        // OntologyInputSource<OWLOntology> src = new RootOntologyIRISource(IRI.create(f), mgr);
View Full Code Here

     */
    protected OWLOntology toOWLOntology(UriRef graphName, boolean forceMerge) throws OWLOntologyCreationException {

        OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
        // Never try to import
        mgr.addIRIMapper(new PhonyIRIMapper(Collections.<IRI> emptySet()));

        Set<UriRef> loaded = new HashSet<UriRef>();

        TripleCollection graph = store.getTriples(graphName);

View Full Code Here

TOP

Related Classes of org.apache.stanbol.commons.owl.PhonyIRIMapper

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.