Class NodeTarget

java.lang.Object
org.topbraid.shacl.targets.NodeTarget
All Implemented Interfaces:
Target

public class NodeTarget extends Object implements Target
A Target based on a sh:targetNode statement.
Author:
Holger Knublauch
  • Constructor Summary

    Constructors
    Constructor
    Description
    NodeTarget(org.apache.jena.rdf.model.RDFNode node)
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NodeTarget

      public NodeTarget(org.apache.jena.rdf.model.RDFNode node)
  • Method Details

    • addTargetNodes

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

      public boolean contains(org.apache.jena.query.Dataset dataset, org.apache.jena.rdf.model.RDFNode node)
      Description copied from interface: Target
      Checks whether a given node is in the target.
      Specified by:
      contains in interface 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