public class ValidationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static PreMatching |
computePreMatching(org.apache.commons.rdf.api.RDFTerm focusNode,
List<org.apache.commons.rdf.api.Triple> neighbourhood,
List<TripleConstraint> tripleConstraints,
Set<org.apache.commons.rdf.api.IRI> extraProperties,
Matcher matcher) |
static List<org.apache.commons.rdf.api.Triple> |
getMatchableNeighbourhood(org.apache.commons.rdf.api.Graph graph,
org.apache.commons.rdf.api.RDFTerm node,
List<TripleConstraint> tripleConstraints,
boolean shapeIsClosed)
Select the neighborhood that must be matched for the given shape.
|
static Matcher |
getPredicateAndValueMatcher(Typing typing) |
static Matcher |
getPredicateOnlyMatcher() |
static Map<Label,List<org.apache.commons.rdf.api.Triple>> |
inverseMatching(Map<org.apache.commons.rdf.api.Triple,Label> matching,
List<TripleConstraint> tripleConstraints)
Produces a map that with every triple constraint from the given matching associates the list of triples that are matched with that triple constraint in the matching.
|
static Map<TripleConstraint,List<org.apache.commons.rdf.api.Triple>> |
inversePreMatching(Map<org.apache.commons.rdf.api.Triple,List<TripleConstraint>> preMatching,
List<TripleConstraint> tripleConstraints)
Produces a map that with every triple constraint in the given list of triple constarints associates all the triples matched with this triple constraint in the given pre-matching.
|
public static Matcher getPredicateOnlyMatcher()
public static List<org.apache.commons.rdf.api.Triple> getMatchableNeighbourhood(org.apache.commons.rdf.api.Graph graph, org.apache.commons.rdf.api.RDFTerm node, List<TripleConstraint> tripleConstraints, boolean shapeIsClosed)
graph
- node
- tripleConstraints
- shapeIsClosed
- public static PreMatching computePreMatching(org.apache.commons.rdf.api.RDFTerm focusNode, List<org.apache.commons.rdf.api.Triple> neighbourhood, List<TripleConstraint> tripleConstraints, Set<org.apache.commons.rdf.api.IRI> extraProperties, Matcher matcher)
public static Map<TripleConstraint,List<org.apache.commons.rdf.api.Triple>> inversePreMatching(Map<org.apache.commons.rdf.api.Triple,List<TripleConstraint>> preMatching, List<TripleConstraint> tripleConstraints)
preMatching
- tripleConstraints
- public static Map<Label,List<org.apache.commons.rdf.api.Triple>> inverseMatching(Map<org.apache.commons.rdf.api.Triple,Label> matching, List<TripleConstraint> tripleConstraints)
matching
- Copyright © 2019. All rights reserved.