public class QuerySupport extends Object
Modifier and Type | Field and Description |
---|---|
static Any |
text_query |
Constructor and Description |
---|
QuerySupport() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canPromoteSubject(Any S) |
static List<RDFQ.Triple> |
reorder(List<RDFQ.Triple> triples,
boolean tqFirst)
Reorder the given triples to try and arrange that query engines with weak
optimisers aren't given excessively silly queries.
|
public static final Any text_query
public static List<RDFQ.Triple> reorder(List<RDFQ.Triple> triples, boolean tqFirst)
Reorder the given triples to try and arrange that query engines with weak optimisers aren't given excessively silly queries. So rdf:type statements (which are usually less useful than specific properties) are moved down the order, and triples with literal objects (which often only appear a few times) are moved up. All optional triples are moved to the end regardless of their structure.
Uses of the text query property are pushed early if tqFirst is true, and later (just before the types) if it is false.
triples
- the list of triples to re-order.public static boolean canPromoteSubject(Any S)
Copyright © 2014. All Rights Reserved.