Class StreamDocumentSource

All Implemented Interfaces:
OWLOntologyDocumentSource

public class StreamDocumentSource extends StreamDocumentSourceBase
An ontology document source which can read from a stream.
Since:
2.2.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Constructor Details

    • StreamDocumentSource

      public StreamDocumentSource(InputStream is)
      Constructs an input source which will read an ontology from a representation from the specified stream.
      Parameters:
      is - The stream that the ontology representation will be read from.
    • StreamDocumentSource

      public StreamDocumentSource(InputStream is, IRI iri)
      Constructs an input source which will read an ontology from a representation from the specified stream.
      Parameters:
      is - The stream that the ontology representation will be read from.
      iri - The document IRI
    • StreamDocumentSource

      public StreamDocumentSource(InputStream stream, IRI documentIRI, @Nullable OWLDocumentFormat f, @Nullable String mime)
      Constructs an input source which will read an ontology from a representation from the specified stream.
      Parameters:
      stream - The stream that the ontology representation will be read from.
      documentIRI - The document IRI
      f - ontology format
      mime - mime type
    • StreamDocumentSource

      public StreamDocumentSource(InputStream stream, String prefix, @Nullable OWLDocumentFormat f, @Nullable String mime)
      Constructs an input source which will read an ontology from a representation from the specified stream.
      Parameters:
      stream - The stream that the ontology representation will be read from.
      prefix - The document IRI prefix
      f - ontology format
      mime - mime type