Using RACK SAME_AS query as an example, queries that have a node of type THING generate sparql with very long type clauses for FILTER IN.
Auto-generated queries are unusably slow.
Explore solutions:
optimization logic that decides to use VALUES clause for types instead of subclassOf* may need to take into account the number of subclasses
optimization logic that decides the type is needed on a node should (?) be able to drop the clause altogether given that the node type THING is the same as the range of the incoming connection (primary or secondary)
Using RACK SAME_AS query as an example, queries that have a node of type THING generate sparql with very long type clauses for FILTER IN.
Auto-generated queries are unusably slow.
Explore solutions: