public final class RDFUtils
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Map<org.apache.commons.rdf.api.IRI,org.apache.commons.rdf.api.IRI> |
superClassOf |
A mapping of LDP types to their supertype
|
static java.lang.String |
TRELLIS_BNODE_PREFIX |
The internal blank node prefix
|
static java.lang.String |
TRELLIS_PREFIX |
The internal trellis prefix
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<org.apache.commons.rdf.api.Quad> |
auditCreation(org.apache.commons.rdf.api.IRI subject,
Session session) |
Create audit-related creation data
|
static java.util.List<org.apache.commons.rdf.api.Quad> |
auditDeletion(org.apache.commons.rdf.api.IRI subject,
Session session) |
Create audit-related deletion data
|
static java.util.List<org.apache.commons.rdf.api.Quad> |
auditUpdate(org.apache.commons.rdf.api.IRI subject,
Session session) |
Create audit-related update data
|
static java.lang.String |
cleanIdentifier(java.lang.String identifier) |
Clean the identifier
|
static org.apache.commons.rdf.api.IRI |
cleanIdentifier(org.apache.commons.rdf.api.IRI identifier) |
Clean the identifier
|
static org.apache.commons.rdf.api.RDF |
getInstance() |
Get the Commons RDF instance in use
|
static java.util.stream.Stream<org.apache.commons.rdf.api.IRI> |
ldpResourceTypes(org.apache.commons.rdf.api.IRI interactionModel) |
Get all of the LDP resource (super) types for the given LDP interaction model
|
static <T extends org.apache.commons.rdf.api.RDFTerm> |
toExternalTerm(T term,
java.lang.String baseUrl) |
Convert an internal term to an external term
|
static <T extends org.apache.commons.rdf.api.RDFTerm> |
toInternalTerm(T term,
java.lang.String baseUrl) |
Convert an external term to an internal term
|
public static final java.lang.String TRELLIS_PREFIX
public static final java.lang.String TRELLIS_BNODE_PREFIX
public static final java.util.Map<org.apache.commons.rdf.api.IRI,org.apache.commons.rdf.api.IRI> superClassOf
public static org.apache.commons.rdf.api.RDF getInstance()
public static java.util.List<org.apache.commons.rdf.api.Quad> auditCreation(org.apache.commons.rdf.api.IRI subject,
Session session)
subject - the subjectsession - the sessionpublic static java.util.List<org.apache.commons.rdf.api.Quad> auditDeletion(org.apache.commons.rdf.api.IRI subject,
Session session)
subject - the subjectsession - the sessionpublic static java.util.List<org.apache.commons.rdf.api.Quad> auditUpdate(org.apache.commons.rdf.api.IRI subject,
Session session)
subject - the subjectsession - the sessionpublic static java.util.stream.Stream<org.apache.commons.rdf.api.IRI> ldpResourceTypes(org.apache.commons.rdf.api.IRI interactionModel)
interactionModel - the interaction modelpublic static <T extends org.apache.commons.rdf.api.RDFTerm> T toExternalTerm(T term,
java.lang.String baseUrl)
T - the RDF term typeterm - the RDF termbaseUrl - the base URLpublic static <T extends org.apache.commons.rdf.api.RDFTerm> T toInternalTerm(T term,
java.lang.String baseUrl)
T - the RDF term typeterm - the RDF termbaseUrl - the base URLpublic static java.lang.String cleanIdentifier(java.lang.String identifier)
identifier - the identifierpublic static org.apache.commons.rdf.api.IRI cleanIdentifier(org.apache.commons.rdf.api.IRI identifier)
identifier - the identifier