Resource.SpecialResources| Constructor and Description |
|---|
FileResource(IRI identifier,
File file)
Create a resource backed by an NQuads file.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<BinaryMetadata> |
getBinaryMetadata()
Retrieve a BinaryMetadata for this resouce, if it is a LDP-NR.
|
Optional<IRI> |
getContainer()
Get the container for this resource.
|
IRI |
getIdentifier()
Get an identifier for this resource.
|
Optional<IRI> |
getInsertedContentRelation()
Retrieve the inserted content relation if this is an LDP Indirect container.
|
IRI |
getInteractionModel()
Get the LDP interaction model for this resource.
|
Optional<IRI> |
getMemberOfRelation()
Retrieve the member of relation IRI.
|
Optional<IRI> |
getMemberRelation()
Retrieve the member relation if this is an LDP Direct or Indirect container.
|
Optional<IRI> |
getMembershipResource()
Retrieve the membership resource if this is an LDP Direct or Indirect container.
|
Instant |
getModified()
Get the last modified date.
|
boolean |
hasAcl()
Test whether this resource has an ACL resource.
|
Stream<Quad> |
stream()
Retrieve the RDF Quads for a resource.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdataset, getExtraLinkRelations, getRevision, stream, streampublic IRI getIdentifier()
ResourcegetIdentifier in interface Resourcepublic IRI getInteractionModel()
ResourcegetInteractionModel in interface Resourcepublic Instant getModified()
ResourcegetModified in interface Resourcepublic Optional<IRI> getContainer()
ResourcegetContainer in interface Resourcepublic Optional<BinaryMetadata> getBinaryMetadata()
ResourcegetBinaryMetadata in interface Resourcepublic Optional<IRI> getMembershipResource()
ResourcegetMembershipResource in interface Resourcepublic Optional<IRI> getMemberRelation()
ResourcegetMemberRelation in interface Resourcepublic Optional<IRI> getInsertedContentRelation()
ResourcegetInsertedContentRelation in interface Resourcepublic Optional<IRI> getMemberOfRelation()
ResourcegetMemberOfRelation in interface Resourcepublic boolean hasAcl()
Resource