Skip to content

JSON-LD Format

Markdown is canonical. The JSON-LD form below is a derived projection: regenerate it from the .md source with scripts/mif_convert.py. It uses the .jsonld extension (never .md, so OKF’s *.md glob never ingests it) and MUST round-trip losslessly back to markdown. If the two disagree, markdown wins.

{
"@context": "https://mif-spec.dev/schema/context.jsonld",
"@type": "Concept",
"@id": "urn:mif:550e8400-e29b-41d4-a716-446655440000",
"content": "User prefers dark mode for all applications",
"conceptType": "semantic",
"title": "Dark Mode Preference",
"created": "2026-01-15T10:30:00Z",
"modified": "2026-01-20T14:22:00Z",
"timestamp": "2026-01-20T14:22:00Z",
"namespace": "_semantic/preferences",
"tags": ["preference", "ui", "accessibility"],
"entities": [...],
"relationships": [...],
"temporal": {...},
"provenance": {...},
"embedding": {...},
"extensions": {...}
}

The projection always includes the OKF-legible mirror field timestamp (the value of modified, or created when there is no modified). When the source has a summary, it also includes description (mapped from summary). These are derived mirrors of the canonical frontmatter; markdown remains authoritative.

{
"@context": [
"https://mif-spec.dev/schema/context.jsonld",
{
"prov": "http://www.w3.org/ns/prov#",
"subcog": "https://github.com/zircote/subcog/ns/"
}
],
"@type": ["Concept", "prov:Entity"],
"@id": "urn:mif:550e8400-e29b-41d4-a716-446655440000",
"content": "User prefers dark mode for all applications. This applies to:\n- IDE themes\n- Terminal colors\n- Web applications\n- Mobile apps",
"conceptType": "semantic",
"title": "Dark Mode Preference",
"created": "2026-01-15T10:30:00Z",
"modified": "2026-01-20T14:22:00Z",
"timestamp": "2026-01-20T14:22:00Z",
"ontology": {
"@type": "OntologyReference",
"id": "mif-base",
"version": "1.0.0"
},
"namespace": "_semantic/preferences",
"tags": ["preference", "ui", "accessibility"],
"aliases": ["Dark Mode Preference", "UI Theme Choice"],
"entities": [
{
"@type": "EntityReference",
"entity": {"@id": "urn:mif:entity:person:jane-doe"},
"role": "subject"
},
{
"@type": "EntityReference",
"entity": {"@id": "urn:mif:entity:concept:dark-mode"},
"role": "topic"
}
],
"relationships": [
{
"type": "relates-to",
"target": "urn:mif:memory:ui-preferences",
"strength": 0.85
},
{
"type": "supersedes",
"target": "urn:mif:memory:old-theme-preference"
}
],
"temporal": {
"@type": "TemporalMetadata",
"validFrom": "2026-01-15T00:00:00Z",
"validUntil": null,
"recordedAt": "2026-01-15T10:30:00Z",
"ttl": "P90D",
"decay": {
"model": "exponential",
"halfLife": "P7D",
"currentStrength": 0.85
},
"accessCount": 5,
"lastAccessed": "2026-01-20T14:22:00Z"
},
"provenance": {
"@type": "prov:Entity",
"sourceType": "user_explicit",
"prov:wasGeneratedBy": {
"@type": "prov:Activity",
"prov:wasAssociatedWith": {
"@id": "urn:mif:agent:claude-3-opus",
"@type": "prov:SoftwareAgent"
}
},
"prov:wasDerivedFrom": {
"@id": "urn:mif:conversation:conv-456"
},
"prov:wasAttributedTo": {
"@id": "urn:mif:entity:person:jane-doe"
},
"confidence": 0.95,
"trustLevel": "user_stated"
},
"embedding": {
"@type": "EmbeddingReference",
"model": "text-embedding-3-small",
"modelVersion": "2024-01",
"dimensions": 1536,
"sourceText": "User prefers dark mode for all applications",
"vectorUri": "urn:mif:vector:550e8400-e29b-41d4-a716-446655440000"
},
"citations": [
{
"@type": "Citation",
"citationType": "article",
"citationRole": "supports",
"title": "Dark Mode UI Benefits for Developer Productivity",
"url": "https://example.com/dark-mode-research",
"author": {
"@type": "EntityReference",
"entity": {"@id": "urn:mif:entity:person:jane-smith"},
"entityType": "Person",
"name": "Jane Smith"
},
"date": "2024-03-15",
"accessed": "2026-01-18",
"relevance": 0.92,
"note": "Research supporting dark mode preference for reduced eye strain"
}
],
"extensions": {
"subcog:domain": "user",
"subcog:hash": "sha256:4c04b32ddc2053b5..."
}
}