| Package | Description |
|---|---|
| org.topbraid.spin.inference |
Support for inferencing using spin:rule and spin:constructor.
|
| org.topbraid.spin.util |
Various utilities that don't fit elsewhere.
|
| Modifier and Type | Method and Description |
|---|---|
Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> |
SPINInferencesOptimizer.optimize(Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Query)
Takes a rule set and either returns the same rule set unchanged or a new
one with refactored rules.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DefaultSPINRuleComparator.compare(CommandWrapper w1,
CommandWrapper w2) |
| 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.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,
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.
|
Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> |
SPINInferencesOptimizer.optimize(Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Query)
Takes a rule set and either returns the same rule set unchanged or a new
one with refactored rules.
|
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,
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
QueryWrapper
A CommandWrapper that wraps a SPARQL query
(in contrast to UpdateWrapper for UPDATE requests).
|
class |
UpdateWrapper
A CommandWrapper that wraps SPARQL UPDATE requests
(in contrast to QueryWrapper for SPARQL queries).
|
| Modifier and Type | Method and Description |
|---|---|
static Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> |
SPINQueryFinder.getClass2QueryMap(org.apache.jena.rdf.model.Model model,
org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Property predicate,
boolean withClass,
boolean allowAsk) |
static Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> |
SPINQueryFinder.getClass2QueryMap(org.apache.jena.rdf.model.Model model,
org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Property predicate,
boolean withClass,
boolean allowAsk,
Predicate<org.apache.jena.rdf.model.Resource> filter)
Gets a Map of QueryWrappers with their associated classes.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SPINQueryFinder.add(Map<org.apache.jena.rdf.model.Resource,List<CommandWrapper>> class2Query,
org.apache.jena.rdf.model.Statement s,
org.apache.jena.rdf.model.Model model,
boolean withClass,
boolean allowAsk) |
Copyright © 2017 TopQuadrant, Inc.. All rights reserved.