public final class TrellisUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TRELLIS_ADMIN_ROLE
The name of the trellis admin role.
|
static java.lang.String |
TRELLIS_BNODE_PREFIX
The default internal blank node prefix.
|
static java.lang.String |
TRELLIS_DATA_PREFIX
The default internal IRI for the root container.
|
static java.lang.String |
TRELLIS_SCHEME
The internal trellis scheme.
|
static java.lang.String |
TRELLIS_SESSION_PREFIX
The default internal session prefix.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.rdf.api.IRI |
buildTrellisIdentifier(java.lang.String path)
Build a Trellis identifier from a path string.
|
static java.util.Optional<org.apache.commons.rdf.api.IRI> |
getContainer(org.apache.commons.rdf.api.IRI identifier)
Get the structural-logical container for this resource.
|
static org.apache.commons.rdf.api.RDF |
getInstance()
Get the Commons RDF instance in use.
|
static org.apache.commons.rdf.api.IRI |
normalizeIdentifier(org.apache.commons.rdf.api.IRI identifier)
For any identifier, normalize its form to remove any hashURIs or trailing slashes.
|
static org.trellisldp.api.TrellisUtils.DatasetCollector |
toDataset()
Collect a stream of Quads into a Dataset.
|
static java.util.stream.Collector<org.apache.commons.rdf.api.Triple,?,org.apache.commons.rdf.api.Graph> |
toGraph()
Collect a stream of Triples into a Graph.
|
public static final java.lang.String TRELLIS_SCHEME
public static final java.lang.String TRELLIS_DATA_PREFIX
public static final java.lang.String TRELLIS_BNODE_PREFIX
public static final java.lang.String TRELLIS_SESSION_PREFIX
public static final java.lang.String TRELLIS_ADMIN_ROLE
public static org.apache.commons.rdf.api.RDF getInstance()
public static java.util.Optional<org.apache.commons.rdf.api.IRI> getContainer(org.apache.commons.rdf.api.IRI identifier)
identifier - the resource identifierpublic static org.apache.commons.rdf.api.IRI normalizeIdentifier(org.apache.commons.rdf.api.IRI identifier)
identifier - the identifierpublic static org.apache.commons.rdf.api.IRI buildTrellisIdentifier(java.lang.String path)
path - the resource pathpublic static java.util.stream.Collector<org.apache.commons.rdf.api.Triple,?,org.apache.commons.rdf.api.Graph> toGraph()
public static org.trellisldp.api.TrellisUtils.DatasetCollector toDataset()
Collector that accumulates a Stream of Quads into a Dataset