| Package | Description |
|---|---|
| org.topbraid.spin.constraints |
Support for constraint checking using spin:constraint.
|
| org.topbraid.spin.inference |
Support for inferencing using spin:rule and spin:constructor.
|
| org.topbraid.spin.statistics |
Support for collecting statistics about the execution time of SPIN queries.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SPINConstraints.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 |
SPINConstraints.addQueryResults(List<ConstraintViolation> results,
QueryOrTemplateCall qot,
org.apache.jena.rdf.model.Resource resource,
boolean matchValue,
List<SPINStatistics> stats,
ProgressMonitor monitor) |
static List<ConstraintViolation> |
SPINConstraints.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> |
SPINConstraints.check(org.apache.jena.rdf.model.Model model,
org.apache.jena.rdf.model.Property predicate,
List<SPINStatistics> stats,
ProgressMonitor monitor) |
static List<ConstraintViolation> |
SPINConstraints.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> |
SPINConstraints.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) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SPINConstructors.construct(org.apache.jena.rdf.model.Model queryModel,
List<org.apache.jena.rdf.model.Resource> instances,
org.apache.jena.rdf.model.Model targetModel,
Set<org.apache.jena.rdf.model.Resource> reached,
Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Constructor,
List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
Runs the constructors on a List of Resources.
|
static void |
SPINConstructors.constructInstance(org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Resource instance,
org.apache.jena.rdf.model.Model targetModel,
List<org.apache.jena.rdf.model.Resource> newResources,
Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Constructor,
List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
Runs constructors for a single instance.
|
static void |
SPINConstructors.constructInstance(org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Resource instance,
org.apache.jena.rdf.model.Resource type,
org.apache.jena.rdf.model.Model targetModel,
List<org.apache.jena.rdf.model.Resource> newResources,
Set<org.apache.jena.rdf.model.Resource> reachedTypes,
Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Constructor,
List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
Runs all constructors defined for a given type on a given instance.
|
static int |
SPINInferences.run(org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Model newTriples,
Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Query,
Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Constructor,
SPINExplanations explanations,
List<SPINStatistics> statistics,
boolean singlePass,
org.apache.jena.rdf.model.Property rulePredicate,
SPINRuleComparator comparator,
ProgressMonitor monitor)
Iterates over a provided collection of SPIN rules and adds all constructed
triples to a given Model (newTriples) until no further changes have been
made within one iteration.
|
static int |
SPINInferences.run(org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Model newTriples,
SPINExplanations explanations,
List<SPINStatistics> statistics,
boolean singlePass,
ProgressMonitor monitor)
See the other run method for help - this is using spin:rule as rulePredicate.
|
static int |
SPINInferences.run(org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Property rulePredicate,
org.apache.jena.rdf.model.Model newTriples,
SPINExplanations explanations,
List<SPINStatistics> statistics,
boolean singlePass,
ProgressMonitor monitor)
Iterates over all SPIN rules in a (query) Model and adds all constructed
triples to a given Model (newTriples) until no further changes have been
made within one iteration.
|
| Modifier and Type | Method and Description |
|---|---|
List<SPINStatistics> |
SPINStatisticsManager.getStatistics()
Gets all previously added statistics.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SPINStatisticsManager.add(Iterable<SPINStatistics> values)
Adds new statistics and notifies any registered listeners.
|
void |
SPINStatisticsManager.addSilently(Iterable<SPINStatistics> values)
Adds new statistics without notifying listeners.
|
Copyright © 2017 TopQuadrant, Inc.. All rights reserved.