Interface ConstraintService

  • All Known Implementing Classes:
    LdpConstraintService

    public interface ConstraintService
    The ConstraintService defines rules that constrain RDF triples on a graph for a particular resource type.
    • 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 identifier
        interactionModel - the interaction model
        graph - the graph
        domain - 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 identifier
        interactionModel - the interaction model
        graph - the graph
        Returns:
        any constraint violations on the graph