@Test void testExtensionQuads() { final IRI identifier = rdf.createIRI(TRELLIS_DATA_PREFIX + "auth#acl"); final Dataset dataset = rdf.createDataset(); final IRI extGraph = rdf.createIRI("http: final IRI relation = rdf.createIRI("http: dataset.add(extGraph, identifier, DC.relation, relation); dataset.add(Trellis.PreferAccessControl, identifier, ACL.mode, ACL.Read); dataset.add(Trellis.PreferAccessControl, identifier, ACL.mode, ACL.Write); dataset.add(Trellis.PreferAccessControl, identifier, ACL.mode, ACL.Control); dataset.add(Trellis.PreferAccessControl, identifier, ACL.mode, ACL.Append); dataset.add(Trellis.PreferAccessControl, identifier, ACL.agentClass, FOAF.Agent); dataset.add(Trellis.PreferAccessControl, identifier, ACL.accessTo, rdf.createIRI(TRELLIS_DATA_PREFIX + "auth")); assertDoesNotThrow(() -> svc.create(builder(identifier).interactionModel(LDP.RDFSource).container(root).build(), dataset).toCompletableFuture().join()); svc.get(identifier).thenAccept(res -> assertAll("Check response triples", () -> assertEquals(6L, res.stream(Trellis.PreferAccessControl).count()), () -> assertEquals(1L, res.stream(extGraph).count()))) .toCompletableFuture().join(); }
@Override public Stream<Quad> stream() { return Stream.concat(graphMapper.values().stream().flatMap(Supplier::get), extensions.keySet().stream().flatMap(this::fetchExtensionQuads)); }
DBResource implements Resource { @Override public Stream<Quad> stream() { return Stream.concat(graphMapper.values().stream().flatMap(Supplier::get), extensions.keySet().stream().flatMap(this::fetchExtensionQuads)); } }
DBResource implements Resource { @Override public Stream<Quad> stream() { return Stream.concat(graphMapper.values().stream().flatMap(Supplier::get), extensions.keySet().stream().flatMap(this::fetchExtensionQuads)); } protected  DBResource(final Jdbi jdbi, final IRI identifier, final Map<String, IRI> extensions,
            final boolean includeLdpType, final boolean supportDirectContainment,
            final boolean supportIndirectContainment); }
DBResource implements Resource { @Override public Stream<Quad> stream() { return Stream.concat(graphMapper.values().stream().flatMap(Supplier::get), extensions.keySet().stream().flatMap(this::fetchExtensionQuads)); } protected  DBResource(final Jdbi jdbi, final IRI identifier, final Map<String, IRI> extensions,
            final boolean includeLdpType, final boolean supportDirectContainment,
            final boolean supportIndirectContainment); static CompletionStage<Resource> findResource(final DataSource ds, final IRI identifier,
            final Map<String, IRI> extensions, final boolean includeLdpType); static CompletionStage<Resource> findResource(final Jdbi jdbi, final IRI identifier,
            final Map<String, IRI> extensions, final boolean includeLdpType); static CompletionStage<Resource> findResource(final Jdbi jdbi, final IRI identifier,
            final Map<String, IRI> extensions, final boolean includeLdpType, final boolean supportDirectContainment,
            final boolean supportIndirectContainment); boolean isDeleted(); @Override Stream<Quad> stream(); @Override Stream<Quad> stream(final Collection<IRI> graphNames); @Override IRI getIdentifier(); @Override IRI getInteractionModel(); @Override Optional<IRI> getContainer(); @Override Optional<IRI> getMembershipResource(); @Override Optional<IRI> getMemberRelation(); @Override Optional<IRI> getMemberOfRelation(); @Override Optional<IRI> getInsertedContentRelation(); @Override Optional<BinaryMetadata> getBinaryMetadata(); @Override Instant getModified(); @Override boolean hasMetadata(final IRI graphName); @Override Set<IRI> getMetadataGraphNames(); @Override Stream<Map.Entry<String,String>> getExtraLinkRelations(); }
DBResource implements Resource { @Override public Stream<Quad> stream() { return Stream.concat(graphMapper.values().stream().flatMap(Supplier::get), extensions.keySet().stream().flatMap(this::fetchExtensionQuads)); } protected  DBResource(final Jdbi jdbi, final IRI identifier, final Map<String, IRI> extensions,
            final boolean includeLdpType, final boolean supportDirectContainment,
            final boolean supportIndirectContainment); static CompletionStage<Resource> findResource(final DataSource ds, final IRI identifier,
            final Map<String, IRI> extensions, final boolean includeLdpType); static CompletionStage<Resource> findResource(final Jdbi jdbi, final IRI identifier,
            final Map<String, IRI> extensions, final boolean includeLdpType); static CompletionStage<Resource> findResource(final Jdbi jdbi, final IRI identifier,
            final Map<String, IRI> extensions, final boolean includeLdpType, final boolean supportDirectContainment,
            final boolean supportIndirectContainment); boolean isDeleted(); @Override Stream<Quad> stream(); @Override Stream<Quad> stream(final Collection<IRI> graphNames); @Override IRI getIdentifier(); @Override IRI getInteractionModel(); @Override Optional<IRI> getContainer(); @Override Optional<IRI> getMembershipResource(); @Override Optional<IRI> getMemberRelation(); @Override Optional<IRI> getMemberOfRelation(); @Override Optional<IRI> getInsertedContentRelation(); @Override Optional<BinaryMetadata> getBinaryMetadata(); @Override Instant getModified(); @Override boolean hasMetadata(final IRI graphName); @Override Set<IRI> getMetadataGraphNames(); @Override Stream<Map.Entry<String,String>> getExtraLinkRelations();  }