Obligations v1
Viewer
Template
Preview
History

Loading preview...

Version History

No version history yet. Save changes to create versions.

Reference
Template Variables
{{ obligation_boundary }}
{{ obligation_definition }}
Governing definitional anchor: the ontology iao:0000115 definition plus the iao:0000116 extraction framing, citation-trimmed at injection (the generalized Role definition pattern)
{{ cross_concept_context }}
Roles and principles already extracted in this case, injected so obligated_party and derived_from_principle ground in named entities (R->P->O dependency)
{{ existing_obligations_text }}
Formatted list of existing obligation classes from ontology (plus the reuse-bias guidance block)
{{ pass_directive }}
Per-pass directive; one body serves facts+discussion, differing only by this runtime slot
{{ obligation_schema }}
Obligation definitional/individual field schema, resolved live from the SHACL ObligationDefinitionShape (single source shared with the OntServe Obligation entity page). obligation_type drives the subClassOf typing; obligated_party resolves to the obligatedParty edge at commit; derived_from_principle is fed to the dedicated R->P->O pass as grounding; the rest are per-individual literals
{{ obligation_individuation }}
{{ case_text }}
The case text to analyze
Output Schema
new_obligation_classes
label* string
confidence number
definition* string
match_decision* object
obligation_type* string
text_references* array
derived_from_principle string → Principle
obligation_individuals
confidence number
identifier* string
case_context string
temporal_scope string
obligated_party string → Agent
text_references* array
obligation_class* string
compliance_status string
obligation_statement string
derived_from_principle string → Principle
JSON Wrapper
Appended to the prompt by the extractor:
IMPORTANT: Wrap your response as a JSON object with exactly two keys:
{"new_obligation_classes": [...], "obligation_individuals": [...]}
If there are no individuals to report, use an empty array for "obligation_individuals".

REQUIRED FIELDS on every class: label, definition, confidence (float 0-1), match_decision, obligation_type (disclosure | safety | competence | confidentiality | reporting | collegial | attribution | legal | ethical), derived_from_principle, text_references
REQUIRED FIELDS on every individual: identifier, obligation_class, obligated_party, obligation_statement, confidence (float 0-1), text_references
Every new class MUST include a match_decision object.