Package org.trellisldp.api
Interface ConstraintService
-
- All Known Implementing Classes:
LdpConstraintService
public interface ConstraintServiceThe ConstraintService defines rules that constrain RDF triples on a graph for a particular resource type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Stream<ConstraintViolation>constrainedBy(IRI identifier, IRI interactionModel, Graph graph)Check a graph against an LDP interaction model.Stream<ConstraintViolation>constrainedBy(IRI identifier, IRI interactionModel, Graph graph, String domain)Check a graph against an LDP interaction model.
-
-
-
Method Detail
-
constrainedBy
Stream<ConstraintViolation> constrainedBy(IRI identifier, IRI interactionModel, Graph graph, String domain)
Check a graph against an LDP interaction model.- Parameters:
identifier- the resource identifierinteractionModel- the interaction modelgraph- the graphdomain- the domain of the resource- Returns:
- any constraint violations on the graph
-
constrainedBy
default Stream<ConstraintViolation> constrainedBy(IRI identifier, IRI interactionModel, Graph graph)
Check a graph against an LDP interaction model.- Parameters:
identifier- the resource identifierinteractionModel- the interaction modelgraph- the graph- Returns:
- any constraint violations on the graph
-
-