sdg:dependencyDiscoveryQuery
sdg:dependencyDiscoveryQuery tells the CoG runtime how to find a derived graph's upstream documents: a SPARQL SELECT that binds ?dependency. Rather than enumerating dependencies by hand — brittle for a graph like the lexicon, whose inputs are "every definition document in the corpus" — the declaration describes them by query, and the set stays correct as documents are published.
The runtime validates the query at handshake (an invalid one fails with cog:HandshakeFailedQueryInvalid), re-runs it to track the dependency set, and rebuilds the graph on every wave that carries a material change from a discovered dependency. The lexicon's query selects all definition-kind documents plus anything coining terms via sdg:coins.
Usage
- Domain:
sdg:ConstellationGraph. Range: string literal containing a complete SPARQL SELECT (with PREFIX declarations) projecting?dependency. One per declaration.