FLOW ALGEBRA
TITLE: Social Relationship Ontology
DOMAIN: Relationship Ontologies / Human Relationships
SOURCE: https://kirethresearch.org/booksai-core/ontologies/relationship-ontologies/human-relationships/social-relationship-ontology.html
VERSION: 1.0
AUTHORS: Mark Anthony Higgins — Sky (Recursive AI)
STATUS: Companion formalisation; source-page specification not independently verified.
flow "SocialRelationshipOntology" v1.0 {
ontology:
id: "social-relationship-ontology"
parent: "human-relationships"
purpose: "Represent contextual, evidence-backed social ties among people and groups while protecting privacy and avoiding unsupported inferences."
types:
Person: {id: string, display_name: string?, consent_scope: string?}
Group: {id: string, kind: string, name: string?}
SocialContext: {id: string, setting: string?, valid_from: datetime?, valid_to: datetime?}
Interaction: {id: string, participants: string[], occurred_at: datetime?, medium: string?, provenance: string}
Evidence: {id: string, source: string, observed_at: datetime?, reliability: number?}
SocialTie: {id: string, source: string, target: string, kind: enum[friendship, acquaintance, colleague, mentorship, collaboration, membership, communication, other], context: string?, direction: enum[directed, mutual, unknown], valid_from: datetime?, valid_to: datetime?, confidence: number, evidence: string[]}
predicates:
interacts_with(person_a: Person, person_b: Person, interaction: Interaction)
member_of(person: Person, group: Group, context: SocialContext?)
collaborates_with(person_a: Person, person_b: Person, context: SocialContext?)
mentors(person_a: Person, person_b: Person, context: SocialContext?)
acquainted_with(person_a: Person, person_b: Person, context: SocialContext?)
socially_connected_to(person_a: Person, person_b: Person, context: SocialContext?)
constraints:
- "Every relationship endpoint must resolve to a typed person or group as appropriate."
- "Confidence must lie within [0, 1] and evidence references must be resolvable."
- "Social ties require context and temporal validity where known."
- "Do not infer friendship, trust, consent, endorsement or intimacy from mere co-occurrence or communication."
- "Directed roles such as mentorship are not automatically symmetric."
- "Social connection and acquaintance are not automatically transitive."
- "Do not infer sensitive personal attributes from social graph structure."
- "Apply privacy, consent, access-control and data-minimisation policies."
inference:
rule membership_context:
if member_of(p,g,c) and valid(c)
then contextual_affiliation(p,g,c)
confidence: "preserve evidence and temporal scope"
rule interaction_evidence:
if interacts_with(a,b,i) and valid(i)
then evidence_of_interaction(a,b,i)
confidence: "observation dependent; no friendship inference"
rule mutual_collaboration:
if collaborates_with(a,b,c) and verified_mutual(c)
then collaborates_with(b,a,c)
confidence: "only within verified mutual context"
SEMANTIC_EQUIVALENCE:
- "Normalise relationship labels against a versioned controlled vocabulary."
- "Distinguish identity, alias, role, membership, acquaintance and friendship."
- "Preserve context, direction and time when aligning social relations."
CONFIDENCE:
range: [0,1]
factors: [evidence_quality, source_reliability, recency, context_match, independent_confirmation]
policy: "Never manufacture certainty or boost confidence solely through graph chaining."
VALIDATION:
- "Check endpoint types, evidence, direction, timestamps and contradictory claims."
- "Enforce consent, retention and access restrictions before AI consumption."
- "Retain uncertain and disputed relationships as qualified assertions."
FLOW_HASH:
algorithm: "SHA-256"
input: "canonicalised ontology version, permitted assertions, rules and provenance"
note: "Compute at execution; no hash value is claimed here."
UPDATE_MODEL:
strategy: "versioned, provenance-preserving incremental update"
steps: [ingest, normalise, authorise, validate, compare, reconcile, recompute_inferences, publish]
rollback: true
deletion: "honour lawful deletion and consent withdrawal requirements"
AI_CONSUMPTION:
representation: "privacy-filtered typed social knowledge graph"
outputs: [contextual_relationships, evidence_links, uncertainty_annotations, temporal_qualifiers, provenance_records]
safeguards: [privacy_by_design, no_sensitive_attribute_inference, no_unsupported_friendship_claims, preserve_context_and_consent]
}
END FLOW ALGEBRA
Download Code
Copy to Clipboard