code: protected void readEntityIntoDataset(final IRI graphName, final RDFSyntax syntax,
              final TrellisDataset dataset) {
          try (final InputStream input = entity) {
              getServices().getIOService().read(input, syntax, getIdentifier())
                  .map(skolemizeTriples(getServices().getResourceService(), getBaseUrl()))
                  .filter(triple -> !RDF.type.equals(triple.getPredicate())
                          || !triple.getObject().ntriplesString().startsWith("<" + LDP.getNamespace()))
                  .filter(triple -> !LDP.contains.equals(triple.getPredicate())).map(triple ->
                          rdf.createQuad(graphName, triple.getSubject(), triple.getPredicate(), triple.getObject()))
                  .forEachOrdered(dataset::add);
          } catch (final RuntimeTrellisException ex) {
              throw new BadRequestException("Invalid RDF content: " + ex.getMessage());
          } catch (final IOException ex) {
              throw new WebApplicationException("Error processing input: " + ex.getMessage());
          }
      }
docs: Read an entity into the provided {@link TrellisDataset}.
  @param graphName the target graph
  @param syntax the entity syntax
  @param dataset the dataset