Roles v2
Viewer
Template
Preview
History
Loading preview...
Version History
No version history yet. Save changes to create versions.
Reference
Template Variables
{{ role_schema }}
Role definitional/bearer field schema, resolved live from the SHACL role shapes (single source shared with the OntServe Role page)
{{ pass_directive }}
Per-pass directive; one body serves facts+discussion, differing only by this runtime slot
{{ role_definition }}
Governing definitional anchor: the Ch2-operationalised Role definition, read verbatim from the ontology
{{ role_relationships }}
Controlled role-to-role relationship type vocabulary for the relationships[] field, derived from the ontology (hasClient/professionalPeerOf/employedBy/reviewsWorkOf/workReviewedBy + relatedTo fallback); includes the additional_relationships overflow-bag instruction
{{ existing_roles_text }}
Formatted list of existing role classes from ontology
{{ role_directives }}
Prescriptive extraction directives compiled from the disjointness/restriction/scopeNote axioms (D-EXCLUDE/D-AGENT/D-TELEO/D-INDIVIDUATION/D-FILTER/D-LABEL)
{{ case_text }}
The case text to analyze
{{ role_category_vocab }}
Controlled role_category vocabulary with per-category audience cues and the directed edge each implies
Output Schema
new_role_classes
label*
string
role_kind
string
confidence
number
definition*
string
role_category
string
match_decision*
object
text_references*
array
associated_virtues
array
professional_scope
string
typical_qualifications
array
distinguishing_features
array
role_individuals
actor
string
→ Agent
license
string
employer
string
role_kind
string
specialty
string
attributes
object
confidence
number
identifier*
string
role_class*
string
relationships
array
role_category
string
text_references*
array
case_involvement
string
experience_level
string
technical_background
string
additional_relationships
array
JSON Wrapper
Appended to the prompt by the extractor:
IMPORTANT: Wrap your response as a JSON object with exactly two keys:
{"new_role_classes": [...], "role_individuals": [...]}
If there are no individuals to report, use an empty array for "role_individuals".