Constraints v1
Viewer
Template
Preview
History
Loading preview...
Version History
No version history yet. Save changes to create versions.
Reference
Template Variables
{{ constraint_boundary }}
{{ constraint_individuation }}
{{ cross_concept_context }}
Obligations, states, and resources already extracted in this case, injected so constrained_entity and source ground in named entities
{{ constraint_definition }}
Governing definitional anchor: the ontology iao:0000115 definition plus the iao:0000116 extraction framing, citation-trimmed at injection (the generalized Role definition pattern)
{{ constraint_schema }}
Constraint definitional/individual field schema, resolved live from the SHACL ConstraintDefinitionShape (single source shared with the OntServe Constraint entity page). constraint_type drives the subClassOf typing (boundaryType is the shape-path anchor); severity, applicability_condition, and temporal_scope are literals; constrained_entity resolves to the constrainedEntity edge; source is kept as a literal whose dotted NSPE codes also resolve to establishedBy
{{ pass_directive }}
Per-pass directive; one body serves facts+discussion, differing only by this runtime slot
{{ existing_constraints_text }}
Formatted list of existing constraint classes from ontology (plus the reuse-bias guidance block)
{{ case_text }}
The case text to analyze
Output Schema
constraint_individuals
source
string
severity
string
confidence
number
identifier*
string
case_context
string
temporal_scope
string
text_references*
array
constraint_class*
string
constrained_entity
string
→ Agent
constraint_statement
string
applicability_condition
string
new_constraint_classes
label*
string
confidence
number
definition*
string
match_decision*
object
constraint_type*
string
text_references*
array
JSON Wrapper
Appended to the prompt by the extractor:
IMPORTANT: Wrap your response as a JSON object with exactly two keys:
{"new_constraint_classes": [...], "constraint_individuals": [...]}
If there are no individuals to report, use an empty array for "constraint_individuals".
REQUIRED FIELDS on every class: label, definition (the prohibition), confidence (float 0-1), match_decision, constraint_type (legal | regulatory | resource | competence | jurisdictional | procedural | safety | confidentiality | ethical | temporal), text_references
REQUIRED FIELDS on every individual: identifier, constraint_class, constraint_statement, applicability_condition, confidence (float 0-1), severity, text_references
Every new class MUST include a match_decision object. A constraint is a PROHIBITION; a positive "shall do" duty is an obligation, not a constraint.