Class ReaderDocumentSource

All Implemented Interfaces:
OWLOntologyDocumentSource

public class ReaderDocumentSource extends StreamDocumentSourceBase
An ontology document source which reads an ontology from a reader.
Since:
2.2.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Constructor Details

    • ReaderDocumentSource

      public ReaderDocumentSource(Reader reader)
      Constructs and ontology input source which will read an ontology from a reader.
      Parameters:
      reader - The reader that will be used to read an ontology.
    • ReaderDocumentSource

      public ReaderDocumentSource(Reader reader, IRI iri)
      Constructs and ontology input source which will read an ontology from a reader.
      Parameters:
      reader - The reader that will be used to read an ontology.
      iri - The ontology document IRI which will be used as the base of the document if needed.
    • ReaderDocumentSource

      public ReaderDocumentSource(Reader reader, IRI iri, @Nullable OWLDocumentFormat f, @Nullable String mime)
      Constructs and ontology input source which will read an ontology from a reader.
      Parameters:
      reader - The reader that will be used to read an ontology.
      iri - The ontology document IRI which will be used as the base of the document if needed.
      f - ontology format
      mime - mime type