code: private Stream<Quad> fetchDirectMemberQuads() {
          final Query q = new Query();
          q.setQuerySelectType();
          q.addResultVar(SUBJECT);
          q.addResultVar(PREDICATE);
          q.addResultVar(OBJECT);
          final Var s = Var.alloc("s");
  
          final ElementPathBlock epb = new ElementPathBlock();
          epb.addTriple(create(s, rdf.asJenaNode(LDP.member), rdf.asJenaNode(identifier)));
          epb.addTriple(create(s, rdf.asJenaNode(LDP.membershipResource), SUBJECT));
          epb.addTriple(create(s, rdf.asJenaNode(LDP.hasMemberRelation), PREDICATE));
          epb.addTriple(create(s, rdf.asJenaNode(LDP.insertedContentRelation), rdf.asJenaNode(LDP.MemberSubject)));
          epb.addTriple(create(OBJECT, rdf.asJenaNode(DC.isPartOf), s));
  
          final ElementNamedGraph ng = new ElementNamedGraph(rdf.asJenaNode(Trellis.PreferServerManaged), epb);
  
          final ElementGroup elg = new ElementGroup();
          elg.addElement(ng);
  
          q.setQueryPattern(elg);
  
          final Stream.Builder<Quad> builder = builder();
          rdfConnection.querySelect(q, qs -> builder.accept(rdf.createQuad(LDP.PreferMembership, getSubject(qs),
                          getPredicate(qs), getObject(qs))));
          return builder.build();
      }
docs: This code is equivalent to the SPARQL query below.
  
  <p><pre><code>
  SELECT ?subject ?predicate ?object
  WHERE {
  GRAPH trellis:PreferServerManaged {
  ?s ldp:member IDENTIFIER
  ?s ldp:membershipResource ?subject
  AND ?s ldp:hasMemberRelation ?predicate
  AND ?s ldp:insertedContentRelation ldp:MemberSubject
  AND ?object dc:isPartOf ?s }
  }
  </code></pre>