示例#1
0
 /**
  * Utility method that can be used by classes in this package. It creates a new specification for
  * OWL DL models that are stored in memory and do no additional entailment reasoning, i.e., the
  * reasoner is initially set <code>null</code>.
  *
  * <p>Furthermore, the model specification delegates to the global <tt> OntDocumentManager</tt>
  * provided by Jena. Consequently, all the global settings are used, such as alternative paths,
  * prefix mappings, ignored ontologies, and the global cache (if not disabled). Note that
  * modifying the internal state of the document manager may cause inferences in multithreaded
  * environments, e.g., modifying the set of ignored ontologies by one thread while another thread
  * reads the set at the same time.
  *
  * @return A new ontology model specification.
  */
 static OntModelSpec createOntSpec() {
   OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_DL_MEM);
   spec.setDocumentManager(OntDocumentManager.getInstance());
   return spec;
 }