Package org.topbraid.shacl.targets
Class NodeTarget
java.lang.Object
org.topbraid.shacl.targets.NodeTarget
- All Implemented Interfaces:
Target
A Target based on a sh:targetNode statement.
- Author:
- Holger Knublauch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetNodes(org.apache.jena.query.Dataset dataset, Set<org.apache.jena.rdf.model.RDFNode> results) Adds target nodes to a given result collection.booleancontains(org.apache.jena.query.Dataset dataset, org.apache.jena.rdf.model.RDFNode node) Checks whether a given node is in the target.
-
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:TargetAdds target nodes to a given result collection.- Specified by:
addTargetNodesin interfaceTarget- Parameters:
dataset- the Dataset with the potential target nodes in the default graphresults- 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:TargetChecks whether a given node is in the target.
-