FLOW ALGEBRA
TITLE: Relationship Confidence Ontology
DOMAIN: AI Semantic Library Relationships / Relationship Confidence
SOURCE: https://kirethresearch.org/booksai-core/ontologies/relationship-ontologies/ai-semantic-library-relationships/relationship-confidence-ontology.html
VERSION: 1.0
AUTHORS: Mark Anthony Higgins — Sky (Recursive AI)
STATUS: Companion formalisation; source-page specification not independently verified.
flow "RelationshipConfidenceOntology" v1.0 {
ontology:
id: "relationship-confidence-ontology"
parent: "ai-semantic-library-relationships"
purpose: "Represent evidence-backed confidence assessments for semantic relationships, including uncertainty, provenance, calibration and revision."
types:
Entity: {id: string, ontology: string, type: string}
Relationship: {id: string, subject: string, predicate: string, object: string, context: string?, version: string}
Evidence: {id: string, source: string, observation_time: datetime?, reliability: number?, independence_group: string?, provenance: string}
ConfidenceAssessment: {id: string, relationship_id: string, score: number, method: string, calibrated: boolean, evidence_ids: string[], assessed_at: datetime, uncertainty: number?, version: string}
Conflict: {id: string, relationship_ids: string[], evidence_ids: string[], status: enum[open, reviewed, resolved]}
predicates:
assesses(assessment: ConfidenceAssessment, relation: Relationship)
supported_by(relation: Relationship, evidence: Evidence)
challenged_by(relation: Relationship, evidence: Evidence)
conflicts_with(a: Relationship, b: Relationship)
supersedes(new: ConfidenceAssessment, old: ConfidenceAssessment)
semantically_equivalent_to(a: Relationship, b: Relationship)
constraints:
- "Every relationship and evidence reference must resolve to a typed entity."
- "Confidence and source reliability scores must lie within [0,1]."
- "A confidence score is not automatically a calibrated probability."
- "Every assessment must record its method, provenance, time and supporting evidence."
- "Do not count duplicated or correlated evidence as independent corroboration."
- "Do not equate semantic similarity, identity and logical equivalence."
- "Conflicting evidence must be retained rather than silently overwritten."
- "Missing evidence must not be interpreted as evidence of falsity."
inference:
rule evidence_trace:
if assesses(a,r) and supported_by(r,e)
then traceable_support(a,e)
confidence: "retain original evidence quality and context"
rule confidence_revision:
if supersedes(new,old) and assesses(new,r) and assesses(old,r)
then current_assessment(r,new)
confidence: "version-aware; do not delete historical assessments"
rule conflict_review:
if conflicts_with(a,b) and supported_by(a,e1) and supported_by(b,e2)
then requires_reconciliation(a,b)
confidence: "do not infer which assertion is correct without evaluation"
SEMANTIC_EQUIVALENCE:
- "Normalise relationship identifiers only within compatible ontology versions and contexts."
- "Preserve distinctions among equivalent assertions, related assertions and contradictory assertions."
- "Transfer assessments only when evidence scope, semantics and calibration remain applicable."
CONFIDENCE:
range: [0,1]
factors: [source_reliability, evidence_independence, measurement_uncertainty, semantic_alignment, temporal_validity, calibration_quality]
policy: "Use a documented combination method; do not increase certainty merely by chaining or repeating evidence."
VALIDATION:
- "Validate score ranges, identifiers, timestamps, ontology versions and evidence provenance."
- "Check calibration claims against empirical evaluation when available."
- "Flag stale assessments, contradictory claims and duplicated evidence."
- "Preserve uncertainty and distinguish unassessed from low-confidence relationships."
FLOW_HASH:
algorithm: "SHA-256"
input: "canonicalised ontology version, typed assertions, assessment rules and provenance"
note: "Compute hash at execution; no hash value is claimed here."
UPDATE_MODEL:
strategy: "versioned, provenance-preserving incremental reassessment"
steps: [ingest, normalise, validate, deduplicate_evidence, assess, calibrate, reconcile, publish]
rollback: true
AI_CONSUMPTION:
representation: "typed semantic knowledge graph with evidence-linked confidence assessments"
outputs: [relationship_assertions, confidence_scores, uncertainty_annotations, evidence_traces, conflict_flags, version_history]
safeguards: [no_unfounded_certainty, no_duplicate_evidence_inflation, preserve_context, preserve_provenance, distinguish_score_from_probability]
}
END FLOW ALGEBRA
Download Code
Copy to Clipboard