Interface Target

All Known Implementing Classes:
InstancesTarget, NodeTarget, ObjectsOfTarget, SPARQLTarget, SubjectsOfTarget

public interface Target
Interface for the various target types supported by SHACL, including https://www.w3.org/TR/shacl/#targets but also SHACL-AF and SHACL-JS extensions.
Author:
Holger Knublauch
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTargetNodes(org.apache.jena.query.Dataset dataset, Set<org.apache.jena.rdf.model.RDFNode> results)
    Adds target nodes to a given result collection.
    boolean
    contains(org.apache.jena.query.Dataset dataset, org.apache.jena.rdf.model.RDFNode node)
    Checks whether a given node is in the target.
  • Method Details

    • addTargetNodes

      void addTargetNodes(org.apache.jena.query.Dataset dataset, Set<org.apache.jena.rdf.model.RDFNode> results)
      Adds target nodes to a given result collection.
      Parameters:
      dataset - the Dataset with the potential target nodes in the default graph
      results - the collection to add the results to
    • contains

      boolean contains(org.apache.jena.query.Dataset dataset, org.apache.jena.rdf.model.RDFNode node)
      Checks whether a given node is in the target.
      Parameters:
      dataset - the Dataset with the potential target node in the default graph
      node - the potential target node
      Returns:
      true if node is in this target