Class OWLZipClosureIRIMapper

java.lang.Object
org.semanticweb.owlapi.util.OWLZipClosureIRIMapper
All Implemented Interfaces:
Serializable, OWLOntologyIRIMapper

public class OWLZipClosureIRIMapper extends Object implements OWLOntologyIRIMapper
An IRI mapper that uses a zip file and its owlzip.properties content to map logical IRIs to jar: IRIs. This enables access to zipped imports closures.
See Also:
  • Constructor Details

    • OWLZipClosureIRIMapper

      public OWLZipClosureIRIMapper(File f) throws IOException
      Parameters:
      f - zip file
      Throws:
      IOException - thrown if access to the file is impossible
  • Method Details

    • getDocumentIRI

      @Nullable public IRI getDocumentIRI(IRI ontologyIRI)
      Description copied from interface: OWLOntologyIRIMapper
      Given an ontology IRI, this method maps the ontology IRI to a document IRI.
      Specified by:
      getDocumentIRI in interface OWLOntologyIRIMapper
      Parameters:
      ontologyIRI - The ontology IRI to be mapped.
      Returns:
      The document IRI of the ontology, or null if the mapper doesn't have mapping for the specified ontology IRI.
    • roots

      public Stream<IRI> roots()
      Returns:
      stream of known roots; can be empty
    • mappedEntries

      public Stream<Map.Entry<IRI,IRI>> mappedEntries()
      Returns:
      all known mappings