![]() |
![]() |
![]() |
![]() |
Queries with unrestricted predicates are those like:
1 |
SELECT ?p { <a> ?p 42 } |
They involve lookups across all possible triples of an object, which roughly translates to a traversal through all tables and columns.
The most pathological case is:
1 |
SELECT ?s ?p ?o { ?s ?p ?o } |
Which does retrieve every triple existing in the store.
Queries with unrestricted predicates are most useful to introspect resources, or the triple store in its entirety. Production code should do this in rare occasions.