public class SPINConstraints extends Object
| Constructor and Description |
|---|
SPINConstraints() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addConstraintViolations(List<ConstraintViolation> results,
SPINInstance instance,
org.apache.jena.rdf.model.Property spinPredicate,
boolean matchValue,
org.apache.jena.rdf.model.Property onProperty,
List<SPINStatistics> stats,
ProgressMonitor monitor) |
static void |
addConstraintViolationsRDF(List<ConstraintViolation> cvs,
org.apache.jena.rdf.model.Model result,
boolean createSource)
Creates an RDF representation (instances of spin:ConstraintViolation) from a
collection of ConstraintViolation Java objects.
|
static void |
addQueryResults(List<ConstraintViolation> results,
QueryOrTemplateCall qot,
org.apache.jena.rdf.model.Resource resource,
boolean matchValue,
List<SPINStatistics> stats,
ProgressMonitor monitor) |
static void |
addTemplateCallResults(List<ConstraintViolation> results,
QueryOrTemplateCall qot,
org.apache.jena.rdf.model.Resource resource,
boolean matchValue,
ProgressMonitor monitor) |
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Model model,
ProgressMonitor monitor)
Checks all instances in a given Model against all spin:constraints and
returns a List of constraint violations.
|
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Model model,
org.apache.jena.rdf.model.Property predicate,
List<SPINStatistics> stats,
Predicate<org.apache.jena.rdf.model.Resource> filter,
ProgressMonitor monitor)
Checks all instances in a given Model against all spin:constraints and
returns a List of constraint violations.
|
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Model model,
org.apache.jena.rdf.model.Property predicate,
List<SPINStatistics> stats,
ProgressMonitor monitor) |
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Model model,
org.apache.jena.rdf.model.Property predicate,
ProgressMonitor monitor)
Checks all instances in a given Model against all spin:constraints and
returns a List of constraint violations.
|
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Resource resource,
ProgressMonitor monitor)
Checks all spin:constraints for a given Resource.
|
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Resource resource,
org.apache.jena.rdf.model.Property spinPredicate,
List<SPINStatistics> stats,
ProgressMonitor monitor)
Checks all spin:constraints for a given Resource.
|
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Resource resource,
org.apache.jena.rdf.model.Property spinPredicate,
ProgressMonitor monitor)
Checks all spin:constraints for a given Resource.
|
static List<ConstraintViolation> |
check(org.apache.jena.rdf.model.Resource resource,
org.apache.jena.rdf.model.Property spinPredicate,
org.apache.jena.rdf.model.Property onProperty,
List<SPINStatistics> stats,
ProgressMonitor monitor) |
static boolean |
isConstraintProperty(org.apache.jena.rdf.model.Property property)
Checks if a given property is a SPIN constraint property.
|
public static void addConstraintViolations(List<ConstraintViolation> results, SPINInstance instance, org.apache.jena.rdf.model.Property spinPredicate, boolean matchValue, org.apache.jena.rdf.model.Property onProperty, List<SPINStatistics> stats, ProgressMonitor monitor)
public static void addConstraintViolationsRDF(List<ConstraintViolation> cvs, org.apache.jena.rdf.model.Model result, boolean createSource)
cvs - the violation objectsresult - the Model to add the results tocreateSource - true to also create the spin:violationSourcepublic static void addQueryResults(List<ConstraintViolation> results, QueryOrTemplateCall qot, org.apache.jena.rdf.model.Resource resource, boolean matchValue, List<SPINStatistics> stats, ProgressMonitor monitor)
public static void addTemplateCallResults(List<ConstraintViolation> results, QueryOrTemplateCall qot, org.apache.jena.rdf.model.Resource resource, boolean matchValue, ProgressMonitor monitor)
public static List<ConstraintViolation> check(org.apache.jena.rdf.model.Resource resource, ProgressMonitor monitor)
resource - the instance to run constraint checks onmonitor - an (optional) progress monitor (currently ignored)public static List<ConstraintViolation> check(org.apache.jena.rdf.model.Resource resource, org.apache.jena.rdf.model.Property spinPredicate, ProgressMonitor monitor)
resource - the instance to run constraint checks onspinPredicate - the system property, e.g. a sub-property of spin:constraint
or null for the default (spin:constraint)monitor - an (optional) progress monitor (currently ignored)public static List<ConstraintViolation> check(org.apache.jena.rdf.model.Resource resource, org.apache.jena.rdf.model.Property spinPredicate, List<SPINStatistics> stats, ProgressMonitor monitor)
resource - the instance to run constraint checks onspinPredicate - the system property, i.e. spin:constraint or a sub-property thereof
or null for the default (spin:constraint)stats - an (optional) List to add statistics tomonitor - an (optional) progress monitor (currently ignored)public static List<ConstraintViolation> check(org.apache.jena.rdf.model.Resource resource, org.apache.jena.rdf.model.Property spinPredicate, org.apache.jena.rdf.model.Property onProperty, List<SPINStatistics> stats, ProgressMonitor monitor)
public static List<ConstraintViolation> check(org.apache.jena.rdf.model.Model model, ProgressMonitor monitor)
model - the Model to operate onmonitor - an optional ProgressMonitorpublic static List<ConstraintViolation> check(org.apache.jena.rdf.model.Model model, org.apache.jena.rdf.model.Property predicate, ProgressMonitor monitor)
model - the Model to operate onmonitor - an optional ProgressMonitorpublic static List<ConstraintViolation> check(org.apache.jena.rdf.model.Model model, org.apache.jena.rdf.model.Property predicate, List<SPINStatistics> stats, ProgressMonitor monitor)
public static List<ConstraintViolation> check(org.apache.jena.rdf.model.Model model, org.apache.jena.rdf.model.Property predicate, List<SPINStatistics> stats, Predicate<org.apache.jena.rdf.model.Resource> filter, ProgressMonitor monitor)
model - the Model to operate onpredicate - the system property, e.g. a sub-property of spin:constraintstats - an (optional) List to write statistics reports tomonitor - an optional ProgressMonitorpublic static boolean isConstraintProperty(org.apache.jena.rdf.model.Property property)
property - the property to checkCopyright © 2017 TopQuadrant, Inc.. All rights reserved.