cognitive/docs/guides/obsidian_linking.md
Daniel Ari Friedman 6caa1a7cb1 Update
2025-02-07 08:16:25 -08:00

2.9 KiB

Obsidian Linking Guide

Overview

This guide explains how to effectively use Obsidian's wikilink syntax in our cognitive modeling documentation and knowledge base.

  • Standard format: [[filename]]
  • With alias: [[filename|display text]]
  • Section linking: [[filename#section]]
  • Block references: [[filename#^block-id]]

Best Practices

File Naming Conventions

  • Use lowercase with underscores: [[cognitive_model]]
  • Be consistent and descriptive: [[belief_update_algorithm]]
  • Avoid spaces and special characters
  • Use singular form for concept pages

Hierarchical Linking

- [[parent_concept]]
  - [[child_concept_1]]
  - [[child_concept_2]]

Bidirectional Linking

Always consider reciprocal links in related documents:

// In model_a.md
Related: [[model_b]]

// In model_b.md
Related: [[model_a]]
  • Link to fundamental concepts: [[active_inference]]
  • Link to theoretical foundations: [[free_energy_principle]]
  • Link to code implementations: [[belief_propagation_impl]]
  • Link to test files: [[belief_tests]]
  • Link to guides: [[getting_started]]
  • Link to examples: [[example_agent]]

YAML Frontmatter

Use frontmatter to enhance link relationships:

---
title: Belief Update Algorithm
related:
  - [[free_energy]]
  - [[message_passing]]
tags:
  - algorithm
  - inference
---

Graph View

  • Use Obsidian's graph view to visualize relationships
  • Color-code different types of notes
  • Use filters to focus on specific relationships

Local Graphs

  • Enable local graphs for contextual relationships
  • Use depth settings appropriately
  • Consider link direction

Common Patterns

Knowledge Maps

## Topic Map
- [[core_concept]]
  - [[sub_concept_1]] - Brief description
  - [[sub_concept_2]] - Brief description

Implementation References

## Implementation
- Algorithm: [[algorithm_name]]
- Tests: [[test_suite]]
- Examples: [[usage_example]]
## Version History
- [[v1_implementation]]
- [[v2_implementation]] (current)
- [[v3_proposal]]

Integration with Code

# Link to documentation: [[matrix_operations]]
def update_matrix():
    pass

Test References

# Test cases documented in: [[matrix_test_cases]]
def test_matrix_update():
    pass

Troubleshooting

Common Issues

  1. Broken links
  2. Circular references
  3. Missing backlinks

Solutions

  • Regular link validation
  • Graph view analysis
  • Consistent naming patterns

References