protected void checkBaseRequired()

in commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java [169:174]


    protected void checkBaseRequired() throws IllegalStateException {
        if (!getBase().isPresent() && getSourceInputStream().isPresent()
                && !getContentTypeSyntax().filter(t -> t == RDFSyntax.NQUADS || t == RDFSyntax.NTRIPLES).isPresent()) {
            throw new IllegalStateException("base iri required for inputstream source");
        }
    }