org.topbraid.spin.util
Class SPINQueryFinder
java.lang.Object
org.topbraid.spin.util.SPINQueryFinder
public class SPINQueryFinder
- extends java.lang.Object
Method Summary |
static void |
add(java.util.Map<Resource,java.util.List<QueryWrapper>> class2Query,
Statement s,
Model model,
boolean withClass,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
boolean allowAsk)
|
static java.util.Map<Resource,java.util.List<QueryWrapper>> |
getClass2QueryMap(Model model,
Model queryModel,
Property predicate,
boolean withClass,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
boolean allowAsk)
Gets a Map of QueryWrappers with their associated classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPINQueryFinder
public SPINQueryFinder()
add
public static void add(java.util.Map<Resource,java.util.List<QueryWrapper>> class2Query,
Statement s,
Model model,
boolean withClass,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
boolean allowAsk)
getClass2QueryMap
public static java.util.Map<Resource,java.util.List<QueryWrapper>> getClass2QueryMap(Model model,
Model queryModel,
Property predicate,
boolean withClass,
java.util.Map<QueryWrapper,java.util.Map<java.lang.String,RDFNode>> initialTemplateBindings,
boolean allowAsk)
- Gets a Map of QueryWrappers with their associated classes.
- Parameters:
model
- the Model to operate onqueryModel
- the Model to query on (might be different)predicate
- the predicate such as spin:rule
withClass
- true to also include a SPARQL clause to bind ?this
(something along the lines of ?this a ?THIS_CLASS)initialTemplateBindings
- will contain the initial bindings if
QueryWrappers wrap SPIN template callsallowAsk
- also return ASK queries
- Returns:
- the result Map, possibly empty but not null