Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLOntologyManager.loadOntology()


        try {
            File stated = new File(
                    "src/test/resources/snomed_20110731_stated.owl");
            IRI iriStated = IRI.create(stated.getAbsoluteFile());
            OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
            OWLOntology ont = manager.loadOntology(iriStated);
            for (String val : vals) {
                OWLClass cl = manager.getOWLDataFactory().getOWLClass(
                        IRI.create(val));
                System.out.println(val + " -> " + DebugUtils.getLabel(cl, ont)
                        + " -> " + ont.getReferencingAxioms(cl).size());
View Full Code Here


        try {
            File stated = new File(
                    "src/test/resources/snomed_20110731_stated.owl");
            IRI iriStated = IRI.create(stated.getAbsoluteFile());
            OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
            OWLOntology ont = manager.loadOntology(iriStated);
            for (String val : vals) {
                OWLClass cl = manager.getOWLDataFactory().getOWLClass(
                        IRI.create(val));
                System.out.println(val + " -> " + DebugUtils.getLabel(cl, ont)
                        + " -> " + ont.getReferencingAxioms(cl).size());
View Full Code Here

  }

  public void testLuigiFamilyOWLApi() throws Exception {

    OWLOntologyManager manager = OWL.manager;
    OWLOntology familyRef = manager.loadOntology( IRI.create( base + "basicFamilyReference.owl" ) );
    OWLOntology familyRules = manager.loadOntology( IRI.create( base + "basicFamilyRules.owl" ) );
   
    final Set<OWLAxiom> axioms = new HashSet<OWLAxiom>();
    axioms.addAll( familyRef.getAxioms() );
    axioms.addAll( familyRules.getAxioms() );
View Full Code Here

  public void testLuigiFamilyOWLApi() throws Exception {

    OWLOntologyManager manager = OWL.manager;
    OWLOntology familyRef = manager.loadOntology( IRI.create( base + "basicFamilyReference.owl" ) );
    OWLOntology familyRules = manager.loadOntology( IRI.create( base + "basicFamilyRules.owl" ) );
   
    final Set<OWLAxiom> axioms = new HashSet<OWLAxiom>();
    axioms.addAll( familyRef.getAxioms() );
    axioms.addAll( familyRules.getAxioms() );
   
View Full Code Here

                else {
                    IRI inputontology = IRI
                            .create("http://ontologydesignpatterns.org/ont/iks/kres/rmi_config.owl");
                    try {
                        owlmodel = // OWLManager.createOWLOntologyManager()
                        mgr.loadOntology/* FromOntologyDocument */(inputontology);
                    } catch (OWLOntologyCreationException e) {
                        log.error("Cannot create the ontology " + inputontology.toString(), e);
                    } catch (Exception e) {
                        log.error("Rule Store: no rule ontology available.", e);
                    }
View Full Code Here

                IRI pathIri = IRI.create(ruleOntologyLocation);
                if (!pathIri.isAbsolute()) pathIri = IRI.create(new File(ruleOntologyLocation));

                try {
                    owlmodel = mgr
                    /* OWLManager.createOWLOntologyManager() */.loadOntology(pathIri);
                } catch (OWLOntologyCreationException e) {
                    log.error("Cannot load the RMI configuration ontology", e);
                } catch (Exception e) {
                    log.error("Rule Store: no rule ontology available.", e);
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.