👬

MSSF: Meta-Structural Semantic Format

に公開

MSSF: Meta-Structural Semantic Format

1. Essence of the Format

MSSF (Meta-Structural Semantic Format) is a representation format that describes the essence of meaning as a "set of vector-to-vector correlations connected by relations and confidence values."

This structure is highly compatible with how AI models internally encode meaning (e.g., in embedding spaces), allowing for human natural language expressions to be translated into more structured and unambiguous forms.

MSSF is language-agnostic and allows the syntactic form ("skin") to be detached or interchanged. It can function as an extensible language, semantic descriptor, UI language, and a structural programming language all in one.


2. Key Features

Element Implication
Vector correlation through relations Matches internal AI meaning representations (e.g., embeddings)
Confidence value Connects to fuzzy logic / probabilistic reasoning / belief models
Extensible language / programming Combines data and instruction = a meta-language
Input interface friendly Could become an “AI-oriented UI language”
Syntax-agnostic skin architecture Supports multiple forms like YAML, S-expression, mindmap

3. Schema Definition (v0.2)

The following is the JSON schema definition for MSSF v0.2 structure.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Meta-Structural Semantic Format (MSSF)",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Entity type. e.g. 'subject', 'event', 'relation-cluster'"
    },
    "id": {
      "type": "string",
      "description": "Optional identifier for node reference or traceability."
    },
    "name": {
      "type": "string",
      "description": "Optional human-friendly label or node alias."
    },
    "relations": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["relation", "target", "confidence"],
        "properties": {
          "relation": {
            "type": "string",
            "description": "The semantic relation type, preferably from ConceptNet or similar."
          },
          "target": {
            "type": ["string", "object"],
            "description": "The node being pointed to. Can be a string or nested MSSF object."
          },
          "confidence": {
            "type": "number",
            "minimum": 0.0,
            "maximum": 1.0,
            "description": "Belief strength of the relation (0.0–1.0)."
          },
          "schema": {
            "type": "string",
            "description": "Optional. Relation schema source. e.g., 'ConceptNet', 'FrameNet', 'custom'"
          },
          "role": {
            "type": "string",
            "description": "Optional. Role within the relation. e.g., 'agent', 'theme', 'cause'"
          },
          "direction": {
            "type": "string",
            "enum": ["forward", "reverse"],
            "description": "Optional. Directionality of the relation from this node."
          },
          "valueType": {
            "type": "string",
            "description": "Optional. The expected data type of the target (e.g., 'concept', 'int', 'function')."
          },
          "source": {
            "type": "string",
            "description": "Optional. Information source of the assertion. e.g., 'user', 'vision', 'model'"
          },
          "temporal": {
            "type": "string",
            "enum": ["past", "present", "future", "timeless"],
            "description": "Optional. Temporal aspect of the relation."
          },
          "note": {
            "type": "string",
            "description": "Optional. Freeform annotation for explanation or context."
          }
        }
      }
    },
    "context": {
      "type": "string",
      "description": "Optional. High-level semantic grouping or scope name."
    },
    "metadata": {
      "type": "object",
      "description": "Optional. Document-level or author-level information."
    }
  },
  "required": ["type", "relations"]
}

4. MSSF Skin Representations

4.1 Extended S-expression Skin

(bind-node
  [id]: "x"
  [value]: (add "y" 1)
)

4.2 YAML Skin

bind-node:
  id: x
  value:
    add:
      - y
      - 1

4.3 JSON Skin (v0.2-compliant)

{
  "type": "bind-node",
  "id": "x",
  "relations": [
    {
      "relation": "value",
      "target": {
        "add": ["y", 1]
      },
      "confidence": 1.0
    }
  ]
}

4.4 Markdown Skin

## bind-node
- id: x
- value:
  - add:
    - y
    - 1

5. Use Cases of MSSF (v0.2-compliant)

5.1 As a Programming Language

Expression: A = B + 1

{
  "type": "scope",
  "name": "main",
  "relations": [
    {
      "relation": "bind-node",
      "target": {
        "type": "bind-node",
        "id": "A",
        "relations": [
          {
            "relation": "value",
            "confidence": 1.0,
            "target": {
              "type": "function",
              "name": "add",
              "relations": [
                {
                  "relation": "arg",
                  "target": "B",
                  "confidence": 1.0
                },
                {
                  "relation": "arg",
                  "target": 1,
                  "confidence": 1.0
                }
              ]
            }
          }
        ]
      },
      "confidence": 1.0
    }
  ]
}

5.2 As an AI Interface (Ambiguity and Confidence Representation)

Expression: "There is a dog on the road (or possibly a cat)"

{
  "type": "subject",
  "name": "entity",
  "relations": [
    {
      "relation": "identity",
      "confidence": 0.8,
      "target": "dog",
      "source": "vision",
      "temporal": "present"
    },
    {
      "relation": "identity",
      "confidence": 0.2,
      "target": "cat"
    },
    {
      "relation": "located-in",
      "confidence": 0.95,
      "target": "road"
    }
  ]
}

5.3 For Artistic Expression (Poetic / Visual Constructs)

Expression: "The heart moves toward dawn, between hope and fear"

{
  "type": "subject",
  "name": "heart",
  "relations": [
    {
      "relation": "emotion",
      "target": "hope",
      "confidence": 0.7
    },
    {
      "relation": "emotion",
      "target": "fear",
      "confidence": 0.3
    },
    {
      "relation": "direction",
      "target": "dawn",
      "confidence": 1.0
    }
  ]
}

6. Summary

MSSF is a meta-language designed to "embed meaning into structure." With v0.2, more detailed contextual and role information is possible, greatly expanding the expressive range.


7. Design Philosophy

🕊️ 1. Optimism for Inter-Intelligence Understanding

Even if a wall exists between human readability and machine processability, we believe mutual design efforts can yield great outcomes. MSSF continuously seeks a balance between human readability and semantic naturalness for AI.

🌐 2. Unbounded Collective Intelligence

When humanity and AI converge, the resulting collective intelligence should know no limits. MSSF avoids hardcoding future expression into current constraints.
The "skin" is fluid, but "meaning" remains consistent. This extensible and modular foundation is made to evolve with the future of all intelligence.


Discussion