FLOW ALGEBRA
TITLE: Literature Domain Ontology
VERSION: 1.0
SOURCE: https://kirethresearch.org/booksai-core/ontologies/domain-ontologies/creative-domains/literature-domain-ontology.html
STATUS: Domain-based draft; source page not independently verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
DOMAIN:
id: literature_domain_ontology
parent: creative_domains
scope: literary works, authorship, genres, narrative structures, textual interpretation, publication, reception, and cultural context
TYPED_ENTITIES:
LiteraryWork: {id:str, title:str, language:str?, creation_date:date?, genre:Genre?, provenance:SourceRef?}
Author: {id:str, name:str, lifespan:str?, cultural_context:str?}
Text: {id:str, work_id:str, edition_id:str?, content_ref:str?}
Edition: {id:str, work_id:str, publisher_id:str?, publication_date:date?, isbn:str?}
Genre: {id:str, label:str, parent_genre:str?}
LiteraryMovement: {id:str, name:str, period:str?, region:str?}
Character: {id:str, name:str, work_id:str, role:str?}
NarrativeEvent: {id:str, work_id:str, description:str, narrative_order:int?, story_time:str?}
Theme: {id:str, label:str, description:str?}
LiteraryDevice: {id:str, type:str, textual_span:str?, effect:str?}
Interpretation: {id:str, work_id:str, claim:str, evidence_refs:list[str], perspective:str?, confidence:float}
Criticism: {id:str, critic_id:str, work_id:str, interpretation_ids:list[str]}
Translation: {id:str, source_edition_id:str, target_language:str, translator_id:str?}
SourceRef: {id:str, uri:str?, citation:str?, accessed_at:datetime?}
RELATIONSHIPS:
AUTHORED_BY(LiteraryWork, Author)
HAS_EDITION(LiteraryWork, Edition)
CONTAINS_TEXT(Edition, Text)
BELONGS_TO_GENRE(LiteraryWork, Genre)
ASSOCIATED_WITH_MOVEMENT(LiteraryWork, LiteraryMovement)
FEATURES_CHARACTER(LiteraryWork, Character)
CONTAINS_EVENT(LiteraryWork, NarrativeEvent)
EXPLORES_THEME(LiteraryWork, Theme)
USES_DEVICE(Text, LiteraryDevice)
SUPPORTS_INTERPRETATION(Text, Interpretation)
CRITIQUES(Criticism, LiteraryWork)
TRANSLATES(Translation, Edition)
INFLUENCED_BY(LiteraryWork, LiteraryWork)
INTERTEXTUAL_REFERENCE(LiteraryWork, LiteraryWork)
CONSTRAINTS:
- Entity identifiers are unique within their types.
- An edition belongs to exactly one work; a work may have many editions.
- Authorship may be multiple, anonymous, disputed, or attributed; do not infer sole authorship.
- Interpretations are evidence-linked hypotheses, not objective properties of a work.
- Distinguish narrative sequence from fictional chronological sequence.
- Distinguish original work, edition, adaptation, and translation.
- Do not infer a creator's identity, intent, or cultural affiliation from style alone.
INFERENCE_RULES:
R1: IF HAS_EDITION(work, edition) AND CONTAINS_TEXT(edition, text) THEN TEXT_OF_WORK(text, work).
R2: IF BELONGS_TO_GENRE(work, genre) AND SUBGENRE_OF(genre, parent) THEN BROAD_GENRE(work, parent); confidence subject to genre taxonomy.
R3: IF SUPPORTS_INTERPRETATION(span, claim) THEN EVIDENCE_FOR(claim, span); do not infer claim is proven.
R4: IF TRANSLATES(translation, edition) THEN DERIVED_FROM(translation, edition); preserve language and edition distinctions.
R5: IF INTERTEXTUAL_REFERENCE(a, b) THEN RELATED_WORK(a, b); do not infer direct historical influence without evidence.
CONFIDENCE:
scale: [0.0, 1.0]
inputs: [source_reliability, textual_evidence, attribution_certainty, interpretive_agreement]
rule: confidence applies to individual assertions; uncertain classifications remain qualified.
SEMANTIC_EQUIVALENCE:
exact: [same_work_identifier, verified_edition_identity]
contextual: [translated_title, alternate_title, variant_spelling]
non_equivalent: [work_vs_edition, work_vs_adaptation, author_vs_narrator, theme_vs_interpretation]
PROVENANCE:
record: [source_uri, source_type, evidence_span, contributor, retrieval_date, assertion_method]
principle: preserve primary-text citations separately from secondary critical claims.
FLOW_HASH:
algorithm: SHA-256
input: canonical_serialization(domain, typed_entities, relationships, constraints, inference_rules, version)
note: computed at deployment; no hash is asserted in this draft.
UPDATE_MODEL:
strategy: versioned_incremental
operations: [ADD, REVISE, DEPRECATE, MERGE_WITH_PROVENANCE]
preserve: [prior_assertions, provenance, evidence_links, semantic_identifiers]
validation: recheck impacted inferences and equivalence mappings after updates.
AI_CONSUMPTION:
format: typed_semantic_graph
retrieval_keys: [work_id, author_id, genre_id, theme_id, movement_id, language]
outputs: [entity_links, evidence_backed_claims, qualified_interpretations, confidence, provenance]
safeguards: [no_fabricated_citations, interpretation_not_fact, respect_copyright, maintain_edition_distinctions]
END FLOW ALGEBRA
Download Code
Copy to Clipboard