sdgco:condition
sdgco:condition is an optional guard on a coherence rule: a SPARQL ASK query, held as a string literal. The rule's sdgco:assertion runs only when the condition is absent or returns true — so a rule can apply conditionally, firing only against documents that match some shape.
For example, a "every step must be typed" rule guards its assertion with an ASK that the document actually contains a Steps section; documents without one are simply skipped rather than falsely passing or failing. Like the assertion, the condition is evaluated against the document's canonical RDF, with the document's @prefix declarations prepended and ?this substituted to the document IRI. An ASK projects nothing, so ?this only ever appears in pattern position — substituted to the bare IRI — and the assertion's reserved projection vocabulary (its anchor variables) does not apply here.
Usage
- Domain: a
sdgco:Rule. Range: a string literal holding a SPARQLASK. - Optional; at most one per rule; authored in a
@ruleblock as a triple-quotedcondition.