FLOW ALGEBRA
TITLE: Human Relationship Ontology
DOMAIN: Relationship Ontologies / Human Relationships
SOURCE: https://kirethresearch.org/booksai-core/ontologies/relationship-ontologies/human-relationships/human-relationship-ontology.html
VERSION: 1.0
AUTHORS: Mark Anthony Higgins — Sky (Recursive AI)
STATUS: Companion formalisation; source-page specification not independently verified.
flow "HumanRelationshipOntology" v1.0 {
ontology:
id: "human-relationship-ontology"
parent: "human-relationships"
purpose: "Represent human interpersonal, familial, social, organisational and professional relationships with temporal, contextual, evidential and privacy safeguards."
types:
Person: {id: string, display_name: string?, identifiers: string[]?, consent_status: string?}
Group: {id: string, kind: enum[family, community, organisation, team, institution, other]}
Role: {id: string, label: string, scope: string?}
Context: {id: string, setting: string?, jurisdiction: string?, valid_from: datetime?, valid_to: datetime?}
Evidence: {id: string, source: string, observed_at: datetime?, reliability: number?, access_level: string?}
Relationship: {id: string, subject: string, predicate: string, object: string, context: string?, valid_from: datetime?, valid_to: datetime?, confidence: number, evidence: string[], visibility: enum[public, restricted, private]}
predicates:
related_to(a: Person, b: Person)
parent_of(parent: Person, child: Person)
sibling_of(a: Person, b: Person)
partner_of(a: Person, b: Person)
friend_of(a: Person, b: Person)
member_of(person: Person, group: Group)
holds_role(person: Person, role: Role, group: Group?)
collaborates_with(a: Person, b: Person)
reports_to(person: Person, supervisor: Person)
interacts_with(a: Person, b: Person)
constraints:
- "Relationship endpoints must resolve to typed entities."
- "Confidence must lie within [0,1]."
- "Relationship validity periods must be internally consistent."
- "Do not infer friendship, kinship, intimacy or consent from proximity or interaction alone."
- "Do not assume social or professional relationships are permanent, exclusive or universally symmetric."
- "Avoid merging person identities on name similarity alone."
- "Protect sensitive personal attributes and restrict access according to consent, purpose and applicable law."
- "Distinguish asserted, observed and inferred relationships."
inference:
rule sibling_symmetry:
if sibling_of(a,b) and valid_relationship(a,b)
then sibling_of(b,a)
confidence: "retain evidence, scope and temporal validity"
rule collaboration_symmetry:
if collaborates_with(a,b) and collaboration_is_mutual(a,b)
then collaborates_with(b,a)
confidence: "preserve original evidence"
rule membership_role:
if holds_role(p,r,g) and role_requires_membership(r,g)
then member_of(p,g)
confidence: "subject to explicit organisational policy and valid dates"
rule ancestor_path:
if parent_of(a,b) and parent_of(b,c)
then ancestor_of(a,c)
confidence: "require independent validation of each parent assertion"
SEMANTIC_EQUIVALENCE:
- "Normalise relationship vocabulary against versioned schemas where available."
- "Distinguish relationship synonymy from identity of people or groups."
- "Preserve social, cultural, legal and temporal context when mapping roles."
CONFIDENCE:
range: [0,1]
factors: [source_reliability, direct_attestation, independent_corroboration, temporal_validity, context_fit]
policy: "Never increase confidence merely through repeated or chained assertions."
VALIDATION:
- "Check endpoint types, relationship scope, chronology and provenance."
- "Flag contradictory or outdated assertions without automatically exposing private data."
- "Review inferred relationships for privacy, fairness and unsupported sensitive conclusions."
- "Maintain distinction between unknown, false and not-disclosed relationships."
FLOW_HASH:
algorithm: "SHA-256"
input: "canonicalised ontology version, authorised assertions, rules and provenance"
note: "Compute at execution; no hash value is claimed here."
UPDATE_MODEL:
strategy: "versioned, consent-aware, provenance-preserving incremental update"
steps: [ingest, authorise, normalise, validate, reconcile, recompute_inferences, publish]
rollback: true
safeguards: [access_control, correction_requests, retention_limits, audit_log]
AI_CONSUMPTION:
representation: "typed, temporal and access-controlled human relationship graph"
outputs: [relationship_triples, context_annotations, confidence_scores, provenance_records, permitted_inferences]
safeguards: [no_unverified_identity_merges, no_sensitive_attribute_inference, no_unsupported_relationship_claims, respect_privacy_and_consent]
}
END FLOW ALGEBRA
Download Code
Copy to Clipboard