コード例 #1
0
  private OWLOntology loadOntology(
      String matchingsDir,
      String ontologyDir,
      Map<File, String> map,
      OAEI11ConferenceSession conferenceSession,
      File file,
      String o1,
      String o2,
      String n) {
    OWLOntology merged =
        conferenceSession.getOntology(
            ontologyDir, o1, o2, matchingsDir + map.get(file), n + ".rdf");

    return new OWLIncoherencyExtractor(new Reasoner.ReasonerFactory())
        .getIncoherentPartAsOntology(merged);
  }