statementSupplier.get(current, RDF.TYPE, RDF.LIST, contexts).ifPresent(collectionConsumer); collectionConsumer.accept(statementSupplier.get(current, RDF.FIRST, null, contexts).orElseThrow( exceptionSupplier.apply("list not wellformed: rdf:first statement missing."))); Statement next = statementSupplier.get(current, RDF.REST, null, contexts).orElseThrow( exceptionSupplier.apply("list not well-formed: rdf:rest statement missing."));
statementSupplier.get(current, RDF.TYPE, RDF.LIST, contexts).ifPresent(collectionConsumer); collectionConsumer.accept(statementSupplier.get(current, RDF.FIRST, null, contexts).orElseThrow( exceptionSupplier.apply("list not wellformed: rdf:first statement missing."))); Statement next = statementSupplier.get(current, RDF.REST, null, contexts).orElseThrow( exceptionSupplier.apply("list not well-formed: rdf:rest statement missing."));