|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.spin.inference.SPINConstructors
public class SPINConstructors
Static methods to find and execute spin:constructors for a given set of Resources.
| Constructor Summary | |
|---|---|
SPINConstructors()
|
|
| Method Summary | |
|---|---|
static void |
construct(Model queryModel,
java.util.List<Resource> instances,
Model targetModel,
ProgressMonitor monitor)
Runs the constructors on a List of Resources. |
static void |
construct(Model queryModel,
java.util.List<Resource> instances,
Model targetModel,
java.util.Set<Resource> reached,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
java.util.List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
Runs the constructors on a List of Resources. |
static void |
construct(Model queryModel,
java.util.List<Resource> instances,
Model targetModel,
java.util.Set<Resource> reached,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
ProgressMonitor monitor)
Runs the constructors on a List of Resources. |
static void |
constructAll(Model queryModel,
Model targetModel,
ProgressMonitor monitor)
Runs all constructors on all instances in a given model. |
static void |
constructInstance(Model queryModel,
Resource instance,
Model targetModel,
java.util.List<Resource> newResources,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
java.util.List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
Runs constructors for a single instance. |
static void |
constructInstance(Model queryModel,
Resource instance,
Resource type,
Model targetModel,
java.util.List<Resource> newResources,
java.util.Set<Resource> reachedTypes,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
java.util.List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
Runs all constructors defined for a given type on a given instance. |
static void |
constructInstance(Model queryModel,
Resource instance,
Resource type,
Model targetModel,
java.util.List<Resource> newResources,
java.util.Set<Resource> reachedTypes,
ProgressMonitor monitor)
Runs all constructors defined for a given type on a given instance. |
static java.util.Set<Resource> |
getClassesWithConstructor(Model model)
Finds all classes that directly have a spin:constructor attached to it. |
static boolean |
hasConstructor(Resource cls)
Checks whether a given class or a superclass thereof has a constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SPINConstructors()
| Method Detail |
|---|
public static void construct(Model queryModel,
java.util.List<Resource> instances,
Model targetModel,
ProgressMonitor monitor)
queryModel - the model to query overinstances - the instances to run the constructors oftargetModel - the model that shall receive the new triplesmonitor - an optional progress monitor
public static void construct(Model queryModel,
java.util.List<Resource> instances,
Model targetModel,
java.util.Set<Resource> reached,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
ProgressMonitor monitor)
queryModel - the model to query overinstances - the instances to run the constructors oftargetModel - the model that shall receive the new triplesreached - the Set of already reached Resourcesmonitor - an optional progress monitor
public static void construct(Model queryModel,
java.util.List<Resource> instances,
Model targetModel,
java.util.Set<Resource> reached,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
java.util.List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
queryModel - the model to query overinstances - the instances to run the constructors oftargetModel - the model that shall receive the new triplesreached - the Set of already reached Resourcesexplanations - an (optional) explanations objectmonitor - an optional progress monitor
public static void constructInstance(Model queryModel,
Resource instance,
Model targetModel,
java.util.List<Resource> newResources,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
java.util.List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
queryModel - the model to queryinstance - the instance to run the constructors oftargetModel - the model that will receive the new triplesnewResources - will hold the newly constructed instancesmonitor - an optional progress monitor
public static void constructInstance(Model queryModel,
Resource instance,
Resource type,
Model targetModel,
java.util.List<Resource> newResources,
java.util.Set<Resource> reachedTypes,
ProgressMonitor monitor)
queryModel - the model to queryinstance - the instance to run the constructors oftype - the class to run the constructors oftargetModel - the model that will receive the new triplesnewResources - will hold the newly constructed instancesreachedTypes - contains the already reached typesmonitor - an optional progress monitor
public static void constructInstance(Model queryModel,
Resource instance,
Resource type,
Model targetModel,
java.util.List<Resource> newResources,
java.util.Set<Resource> reachedTypes,
java.util.Map<Resource,java.util.List<QueryWrapper>> class2Constructor,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
java.util.List<SPINStatistics> statistics,
SPINExplanations explanations,
ProgressMonitor monitor)
queryModel - the model to queryinstance - the instance to run the constructors oftype - the class to run the constructors oftargetModel - the model that will receive the new triplesnewResources - will hold the newly constructed instancesreachedTypes - contains the already reached typesexplanations - the explanations (optional)monitor - an optional progress monitor
public static void constructAll(Model queryModel,
Model targetModel,
ProgressMonitor monitor)
queryModel - the query modeltargetModel - the model to write the new triples tomonitor - an optional progress monitorpublic static java.util.Set<Resource> getClassesWithConstructor(Model model)
model - the Model to operate on
public static boolean hasConstructor(Resource cls)
cls - the class to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||