public class SPINConstructors extends Object
| Constructor and Description |
|---|
SPINConstructors() |
| Modifier and Type | Method and Description |
|---|---|
static void |
construct(org.apache.jena.rdf.model.Model queryModel,
List<org.apache.jena.rdf.model.Resource> instances,
org.apache.jena.rdf.model.Model targetModel,
ProgressMonitor monitor)
Runs the constructors on a List of Resources.
|
static void |
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 |
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 |
constructAll(org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Model targetModel,
ProgressMonitor monitor)
Runs all constructors on all instances in a given model.
|
static void |
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 |
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 Set<org.apache.jena.rdf.model.Resource> |
getClassesWithConstructor(org.apache.jena.rdf.model.Model model)
Finds all classes that directly have a spin:constructor attached
to it.
|
static boolean |
hasConstructor(org.apache.jena.rdf.model.Resource cls)
Checks whether a given class or a superclass thereof has a
constructor.
|
public static void construct(org.apache.jena.rdf.model.Model queryModel,
List<org.apache.jena.rdf.model.Resource> instances,
org.apache.jena.rdf.model.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 monitorpublic static void 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)
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 monitorpublic static void 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)
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 monitorpublic static void 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)
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 monitorpublic static void 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)
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 monitorpublic static void constructAll(org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Model targetModel,
ProgressMonitor monitor)
queryModel - the query modeltargetModel - the model to write the new triples tomonitor - an optional progress monitorpublic static Set<org.apache.jena.rdf.model.Resource> getClassesWithConstructor(org.apache.jena.rdf.model.Model model)
model - the Model to operate onpublic static boolean hasConstructor(org.apache.jena.rdf.model.Resource cls)
cls - the class to checkCopyright © 2017 TopQuadrant, Inc.. All rights reserved.