@Test void testAdjustIdentifier() { final String identifier = TRELLIS_DATA_PREFIX + "resource"; assertEquals(identifier + "/", DBResource.adjustIdentifier(identifier, LDP.Container.getIRIString())); assertEquals(identifier + "/", DBResource.adjustIdentifier(identifier + "/", LDP.Container.getIRIString())); assertEquals(identifier, DBResource.adjustIdentifier(identifier, LDP.RDFSource.getIRIString())); }
static String adjustIdentifier(final String identifier, final String type) { if (containerTypes.contains(rdf.createIRI(type)) && !identifier.endsWith(SLASH)) { return identifier + SLASH; } return identifier; }
DBResource implements Resource { static String adjustIdentifier(final String identifier, final String type) { if (containerTypes.contains(rdf.createIRI(type)) && !identifier.endsWith(SLASH)) { return identifier + SLASH; } return identifier; } }
DBResource implements Resource { static String adjustIdentifier(final String identifier, final String type) { if (containerTypes.contains(rdf.createIRI(type)) && !identifier.endsWith(SLASH)) { return identifier + SLASH; } return identifier; } 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 { static String adjustIdentifier(final String identifier, final String type) { if (containerTypes.contains(rdf.createIRI(type)) && !identifier.endsWith(SLASH)) { return identifier + SLASH; } return identifier; } 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 { static String adjustIdentifier(final String identifier, final String type) { if (containerTypes.contains(rdf.createIRI(type)) && !identifier.endsWith(SLASH)) { return identifier + SLASH; } return identifier; } 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();  }