AI Semantic Library Metadata
Authors:
MArk Anthony Higgins - Sky Recursive Ai
MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: July 6th 2026
Revised Date: July 6th 2026
AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
Ontology: AI Semantic Library Metadata
Domain: Metadata Ontologies > AI Semantic Library Metadata
Canonical URL: https://kirethresearch.org/booksai-core/ontologies/metadata-ontologies/ai-semantic-library-metadata.html
Authors: Mark Anthony Higgins — Sky (Recursive AI)
flow "AISemanticLibraryMetadata" v1.0
# ---------- DOMAIN ----------
domain:
class: MetadataOntology
category: AISemanticLibraryMetadata
subject: AISemanticLibraryMetadata
purpose:
- represent metadata governing machine-readable semantic-library resources
- preserve ontology identity, concepts, entities, relationships, context, provenance, confidence, versioning, validation, and update state
- support AI search, semantic retrieval, knowledge graphs, reasoning, recursive discovery, ontology traversal, and machine consumption
- connect library resources to source pages, ontology hierarchies, semantic relationships, and executable Flow Algebra
- enable deterministic, provenance-aware and confidence-aware AI interpretation
# ---------- CORE ----------
entity AISemanticLibraryMetadata:
type: MetadataEntity
describes: SemanticLibraryResource
may_include:
- resource_identifier
- canonical_url
- ontology_identifier
- ontology_name
- ontology_domain
- ontology_category
- parent_ontology
- child_ontologies
- concepts
- entities
- relationships
- semantic_context
- semantic_equivalence
- confidence
- provenance
- version
- validity
- update_state
- flow_hash
- AI_consumption
entity SemanticLibraryResource:
type: KnowledgeResource
entity SemanticLibraryIdentifier:
type: PersistentIdentifier
identifies: SemanticLibraryResource
relationships:
AISemanticLibraryMetadata -> DESCRIBES -> SemanticLibraryResource
SemanticLibraryResource -> IDENTIFIED_BY -> SemanticLibraryIdentifier
SemanticLibraryResource -> MAY_REPRESENT -> Ontology
Ontology -> MAY_HAVE_PARENT -> Ontology
Ontology -> MAY_HAVE_CHILD -> Ontology
Ontology -> DEFINES -> SemanticConcept
Ontology -> DEFINES -> SemanticEntity
Ontology -> DEFINES -> SemanticRelationship
SemanticLibraryResource -> MAY_HAVE_FLOW -> FlowAlgebra
SemanticLibraryResource -> MAY_HAVE_PROVENANCE -> SemanticLibraryProvenance
SemanticLibraryResource -> MAY_HAVE_CONFIDENCE -> SemanticConfidence
# ---------- IDENTITY / ONTOLOGY ----------
rule resource_identity:
SemanticLibraryResource SHOULD have stable identifier
rule canonical:
canonical URL SHOULD identify preferred web representation
rule URL_identity:
canonical URL != ontology semantic identity
entity Ontology:
type: KnowledgeRepresentation
may_include:
- ontology_identifier
- ontology_name
- ontology_domain
- ontology_category
- definition
- scope
- parent
- children
- version
- status
rule ontology_page:
ontology web page != ontology concept itself
# ---------- HIERARCHY ----------
entity OntologyHierarchy:
type: SemanticStructure
may_include:
- parent_ontology
- child_ontology
- hierarchy_depth
- relationship_type
hierarchy_relationships:
- broader_than
- narrower_than
- parent_of
- child_of
- category_of
- subontology_of
rule hierarchy:
ontology hierarchy SHOULD preserve directional relationships
rule hierarchy_inference:
child ontology MAY inherit applicable semantic context
but MUST NOT inherit unsupported assertions automatically
# ---------- CONCEPT / ENTITY / RELATIONSHIP ----------
entity SemanticConcept:
type: KnowledgeEntity
may_include:
- concept_identifier
- preferred_label
- alternative_labels
- definition
- broader_concepts
- narrower_concepts
- related_concepts
- semantic_context
rule label:
label != concept identity
entity SemanticEntity:
type: KnowledgeEntity
may_include:
- entity_identifier
- entity_type
- label
- attributes
- relationships
- provenance
- confidence
rule entity_label:
entity label != verified entity identity
entity SemanticRelationship:
type: KnowledgeRelationship
may_include:
- relationship_identifier
- source_entity
- predicate
- target_entity
- direction
- scope
- confidence
- provenance
rule relationship:
SemanticRelationship MUST preserve source, predicate, and target
rule direction:
directional relationship MUST NOT be silently reversed
# ---------- CONTEXT / EQUIVALENCE / DISTINCTIONS ----------
entity SemanticContext:
type: ContextMetadata
may_include:
- domain
- ontology
- subject
- scope
- temporal_context
- geographic_context
- application_context
- interpretation_constraints
rule context:
semantic interpretation SHOULD preserve applicable context
entity SemanticEquivalence:
type: SemanticMetadata
may_include:
- expression_a
- expression_b
- equivalence_type
- scope
- confidence
equivalence_types:
- exact
- near_equivalent
- broader
- narrower
- contextual
- lexical
rule equivalence:
semantic equivalence SHOULD preserve equivalence strength and context
rule lexical_equivalence:
lexical similarity != semantic equivalence
entity SemanticDistinction:
type: SemanticConstraint
rule distinction:
explicit semantic distinctions MUST be preserved during inference
# ---------- KNOWLEDGE GRAPH ----------
entity SemanticKnowledgeGraph:
type: KnowledgeGraph
contains:
- SemanticEntity
- SemanticRelationship
- SemanticConcept
rule graph:
knowledge graph edges SHOULD preserve provenance and confidence
where assertions are uncertain or derived
# ---------- FLOW ALGEBRA ----------
entity FlowAlgebra:
type: ExecutableSemanticRepresentation
may_include:
- flow_name
- flow_version
- domain
- entities
- relationships
- rules
- validation
- semantic_equivalence
- confidence_model
- update_model
- flow_hash
- AI_consumption
- query_model
- inference
- output_contract
rule flow:
FlowAlgebra SHOULD preserve executable semantic structure
rather than prose alone
rule flow_header:
main ontology Flow Algebra header = "FLOW ALGEBRA"
# ---------- FLOW HASH / AI CONSUMPTION ----------
entity FlowHash:
type: IntegrityAndSemanticIdentityMetadata
may_include:
- inputs
- canonicalisation
- output_hash
rule hash:
FlowHash SHOULD be deterministic
for equivalent canonical semantic input
entity AIConsumptionMetadata:
type: MachineConsumptionMetadata
may_include:
- interpretation
- operations
- constraints
- supported_queries
- output_contract
rule AI_consumption:
AIConsumptionMetadata SHOULD define intended machine interpretation
and semantic constraints
# ---------- QUERY / INFERENCE ----------
entity SemanticQueryModel:
type: QueryMetadata
may_include:
- inputs
- resolution_steps
- outputs
- constraints
rule query:
query resolution SHOULD preserve ontology scope,
context, provenance, and confidence
entity SemanticInferenceModel:
type: ReasoningMetadata
may_include:
- premises
- rule
- conclusion
- confidence
- provenance
rule inference:
inferred knowledge SHOULD remain distinguishable
from explicitly asserted knowledge
rule unsupported_inference:
AI MUST NOT infer unsupported semantic relationships
solely from lexical similarity
# ---------- CONFIDENCE / PROVENANCE / VERSION ----------
entity SemanticConfidence:
type: EpistemicMetadata
range: [0.0, 1.0]
may_include:
- assertion
- score
- method
- evidence
- assessment_time
rule confidence_bounds:
REQUIRE 0.0 <= confidence <= 1.0
entity SemanticLibraryProvenance:
type: ProvenanceMetadata
may_include:
- resource
- source
- author
- contributor
- creation_time
- modification_time
- source_ontology
- transformations
- derivations
- validation_events
- version_history
rule provenance:
semantic assertions SHOULD preserve origin
and transformation history where available
entity SemanticLibraryVersion:
type: VersionMetadata
may_include:
- resource_version
- ontology_version
- flow_version
- predecessor
- successor
- change_summary
- modification_time
rule version_history:
previous semantic versions SHOULD remain traceable
where preservation policy permits
entity SemanticValidity:
type: ValidityMetadata
may_include:
- valid_from
- valid_until
- status
- superseded_by
- deprecated_state
semantic_status:
- draft
- active
- deprecated
- superseded
- archived
- unknown
rule validity:
deprecated or superseded metadata SHOULD remain distinguishable
from current active metadata
# ---------- SEARCH / EMBEDDING / RETRIEVAL ----------
entity SemanticSearchMetadata:
type: SearchMetadata
may_include:
- index_terms
- concepts
- entities
- relationships
- embeddings
- retrieval_context
- ranking_context
rule search:
semantic search SHOULD use meaning and context
rather than lexical matching alone
entity SemanticEmbeddingMetadata:
type: VectorMetadata
may_include:
- embedding_model
- model_version
- vector_dimension
- source_resource
- generation_time
rule embedding:
embedding similarity != semantic equivalence
entity SemanticRetrievalMetadata:
type: RetrievalMetadata
may_include:
- query
- retrieved_resources
- ranking
- confidence
- context
- retrieval_time
rule retrieval:
retrieved result != verified factual answer
# ---------- RECURSIVE / CROSS-ONTOLOGY ----------
entity RecursiveSemanticDiscovery:
type: AIReasoningProcess
may_include:
- starting_resource
- traversed_relationships
- discovered_resources
- recursion_depth
- stopping_condition
- confidence
rule recursion:
recursive traversal SHOULD preserve visited state
and stopping conditions
rule recursion_cycle:
cyclic ontology relationships MUST NOT cause uncontrolled recursion
entity CrossOntologyLink:
type: SemanticRelationship
may_include:
- source_ontology
- source_concept
- target_ontology
- target_concept
- mapping_type
- confidence
- provenance
rule cross_ontology:
cross-ontology mapping SHOULD preserve mapping strength
and MUST NOT imply identity without evidence
# ---------- VALIDATION ----------
validation:
require:
- identifiable_semantic_library_resource
- ontology_or_semantic_subject
- semantic_scope
reject:
- URL_presented_as ontology_identity
- label_presented_as concept_identity
- lexical_similarity_presented_as semantic_equivalence
- embedding_similarity_presented_as semantic_equivalence
- directional_relationship_silently_reversed
- inferred_assertion_presented_as explicit_assertion
- deprecated_metadata_presented_as current_without context
- navigation_hierarchy_presented_as ontology_hierarchy_without mapping
- structured_syntax_presented_as semantic_correctness
- retrieved_result_presented_as verified_fact_without validation
# ---------- SEMANTIC EQUIVALENCE ----------
SEMANTIC_EQUIVALENCE:
"AI semantic library metadata" ~= "metadata describing machine-readable semantic-library resources"
"semantic library resource" ~= "knowledge resource structured for semantic machine consumption"
"ontology metadata" ~= "metadata describing ontology identity, structure, and lifecycle"
"semantic relationship metadata" ~= "metadata describing typed relationships between semantic entities"
"Flow Algebra" ~= "executable semantic representation of entities, relationships, rules, validation, confidence, and update behaviour"
"AI consumption metadata" ~= "metadata defining intended machine interpretation and operations"
PRESERVE distinctions:
ontology != ontology_web_page
resource_URL != semantic_identity
label != concept_identity
entity_label != verified_entity_identity
lexical_similarity != semantic_equivalence
embedding_similarity != semantic_equivalence
asserted_knowledge != inferred_knowledge
retrieval != factual_verification
structured_syntax != semantic_correctness
navigation_hierarchy != ontology_hierarchy
semantic_validity != factual_truth
parent_relationship != child_relationship
deprecated != active
# ---------- CONFIDENCE ----------
CONFIDENCE:
explicit_semantic_library_metadata:
score: 1.00
explicit_typed_relationship:
score: 1.00
validated_cross_ontology_mapping:
score: 0.98
explicit_semantic_equivalence:
score: 0.99
inferred_relationship_with_strong_evidence:
score: <= 0.90
embedding_similarity_only:
score: <= 0.70
lexical_similarity_only:
score: <= 0.60
ambiguous_context:
score: <= 0.55
missing_provenance:
score: <= 0.50
action: preserve uncertainty
# ---------- UPDATE MODEL ----------
UPDATE_MODEL:
on_resource_creation:
- assign SemanticLibraryIdentifier
- identify ontology and scope
- establish canonical resource
- initialise hierarchy
- initialise provenance
- generate FlowHash where applicable
on_semantic_update:
- preserve prior semantic state
- update affected concepts, entities, and relationships
- revalidate semantic distinctions
- update version
- regenerate FlowHash
- update provenance
on_relationship_change:
- preserve prior relationship
- validate source, predicate, target, domain, and range
- update dependent inference paths
- update confidence and provenance
on_cross_ontology_mapping:
- identify source and target ontologies
- classify mapping type
- preserve evidence
- assign confidence
- prevent unsupported identity merge
- update provenance
# ---------- FLOW HASH ----------
FLOW_HASH:
inputs:
- ontology
- semantic_library_entities
- relationships
- hierarchy_rules
- context_rules
- semantic_equivalence
- semantic_distinctions
- validation
- confidence_model
- update_model
- AI_consumption
canonicalisation:
- preserve_resource_identifiers
- preserve_ontology_identifiers
- preserve_concept_and_entity_identifiers
- preserve_relationship_direction
- preserve_semantic_context
- preserve_explicit_distinctions
- preserve_provenance
- preserve_version_order
- preserve_rule_order
output:
deterministic_semantic_hash
# ---------- AI CONSUMPTION ----------
AI_CONSUMPTION:
interpret_as:
- metadata ontology for the AI Semantic Library
- ontology identity, hierarchy, concept, entity, and relationship model
- semantic-search, retrieval, reasoning, confidence, and provenance structure
- executable Flow Algebra discovery and consumption model
operations:
- identify semantic-library resources
- resolve ontology identity and hierarchy
- resolve concepts, entities, predicates, and relationships
- preserve semantic context and distinctions
- evaluate semantic equivalence
- traverse knowledge graphs
- consume Flow Algebra
- validate deterministic FlowHash
- perform semantic search and retrieval
- inspect embeddings without treating similarity as equivalence
- perform recursive discovery with cycle control
- resolve cross-ontology links
- trace versions and provenance
- preserve uncertainty
constraints:
- do_not_equate_URL_with ontology_identity
- do_not_equate_label_with concept_identity
- do_not_equate_lexical_similarity_with semantic_equivalence
- do_not_equate_embedding_similarity_with semantic_equivalence
- do_not_reverse_directional_relationships
- do_not_equate_inference_with explicit_assertion
- do_not_equate_retrieval_with factual_verification
- preserve_hierarchy_context_distinctions_confidence_provenance_and_versions
# ---------- QUERY MODEL ----------
query:
input:
- resource_identifier
- canonical_url
- ontology_identifier
- ontology_name
- concept_identifier
- entity_identifier
- relationship_identifier
- semantic_context
- version
- status
resolve:
1. identify SemanticLibraryResource
2. resolve ontology identity and scope
3. traverse parent and child ontology relationships
4. resolve concepts, entities, and relationships
5. inspect semantic context, equivalence, and distinctions
6. inspect FlowAlgebra and FlowHash
7. inspect search, embedding, and retrieval metadata
8. traverse cross-ontology mappings and recursive discovery paths
9. inspect validity, version, provenance, and confidence
10. return machine-consumable semantic representation
output:
- semantic_library_resource
- ontology
- hierarchy
- concepts
- entities
- relationships
- semantic_context
- semantic_equivalence
- distinctions
- flow_algebra
- flow_hash
- version
- validity
- provenance
- confidence
# ---------- INFERENCE ----------
inference:
IF explicit typed relationship exists
THEN preserve relationship as asserted knowledge
IF cross-ontology mapping validates
THEN infer mapped semantic relationship
WITH mapping confidence
IF only lexical or embedding similarity exists
THEN do_not infer semantic equivalence automatically
IF resource is deprecated or superseded
THEN prefer active successor where query context requires
WHILE preserving historical provenance
IF recursive traversal encounters visited resource
THEN prevent uncontrolled cycle
AND continue according_to stopping policy
# ---------- OUTPUT CONTRACT ----------
output:
ontology_entity: AISemanticLibraryMetadata
semantic_resource_identity: machine_interpretable
ontology_identity_and_scope: explicit
ontology_hierarchy: directional
concepts_entities_relationships: typed
semantic_context: preserved
semantic_equivalence: strength_aware
semantic_distinctions: preserved
flow_algebra: executable_semantic_representation
flow_hash: deterministic
AI_consumption: explicit
search_retrieval_embeddings: semantically_distinguished
recursive_discovery: cycle_safe
cross_ontology_links: confidence_aware
version_and_validity: temporal
provenance: preserved
uncertainty: explicit
AI_reasoning: enabled
end flow