зеркало из
https://github.com/docxology/cognitive.git
synced 2025-11-02 22:26:05 +02:00
4.1 KiB
4.1 KiB
| title | type | status | created | tags | semantic_relations | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Obsidian Linking Patterns | guide | stable | 2024-02-12 |
|
|
Obsidian Linking Patterns
Link Types Overview
Basic Links
-
Direct Links
[[filename]] -
Aliased Links
[[filename|Display Text]] -
Section Links
[[filename#Section Name]] -
Block Links
[[filename#^block-id]]
Advanced Links
-
Relative Path Links
[[../parent_folder/filename]] [[./current_folder/filename]] -
Multi-section Links
[[filename#section1#subsection]] -
Embedded Links
![[filename]] ![[filename#section]]
Link Organization
Semantic Grouping
## Theory
- [[active_inference|Active Inference Theory]]
- [[free_energy|Free Energy Principle]]
## Implementation
- [[active_inference_impl|Implementation Details]]
- [[free_energy_calc|Calculations]]
Hierarchical Organization
## Core Concepts
- [[parent_concept]]
- [[child_concept_1]]
- [[child_concept_2]]
- [[grandchild_1]]
- [[grandchild_2]]
Link Patterns
Knowledge Base Links
## Concept Definition
- Base: [[concept_name]]
- Theory: [[concept_theory]]
- Implementation: [[concept_implementation]]
- Examples: [[concept_examples]]
Documentation Links
## Documentation Structure
- Guide: [[user_guide]]
- API: [[api_documentation]]
- Examples: [[usage_examples]]
- Tests: [[test_documentation]]
Code Links
## Code References
- Source: [[source_file]]
- Tests: [[test_file]]
- Examples: [[example_file]]
- Benchmarks: [[benchmark_file]]
Link Management
Frontmatter Links
---
related_concepts:
- [[concept_a]]
- [[concept_b]]
dependencies:
- [[dependency_1]]
- [[dependency_2]]
implementations:
- [[impl_1]]
- [[impl_2]]
---
Link Categories
## Theoretical Links
- [[theory_a]]
- [[theory_b]]
## Implementation Links
- [[impl_x]]
- [[impl_y]]
## Test Links
- [[test_1]]
- [[test_2]]
Best Practices
Link Naming
- Use descriptive names
- Maintain consistency
- Follow naming conventions
- Use appropriate aliases
Link Organization
- Group related links
- Use clear hierarchy
- Maintain bidirectional links
- Document relationships
Link Maintenance
- Regular validation
- Update broken links
- Clean unused links
- Check consistency
Automation
Link Validation
def validate_links(content: str) -> List[str]:
"""Validate all links in content."""
pattern = r'\[\[(.*?)\]\]'
links = re.findall(pattern, content)
return validate_link_targets(links)
Link Generation
def generate_backlinks(source: str, target: str) -> str:
"""Generate bidirectional links."""
return f"""
// In {source}:
[[{target}]]
// In {target}:
[[{source}]]
"""
Common Patterns
Theory Documentation
## Theoretical Foundation
- Base Theory: [[base_theory]]
- Extensions: [[theory_extension]]
- Applications: [[theory_application]]
Implementation Documentation
## Implementation Details
- Core: [[core_implementation]]
- Modules: [[module_documentation]]
- Tests: [[test_documentation]]
Research Documentation
## Research Notes
- Papers: [[research_papers]]
- Experiments: [[experiment_notes]]
- Results: [[research_results]]
Link Visualization
Graph View
- Node types
- Link types
- Clustering
- Filtering
Local Graphs
- Depth settings
- Node filtering
- Link filtering
- Layout options
Troubleshooting
Common Issues
- Broken links
- Circular references
- Ambiguous links
- Missing backlinks
Solutions
- Regular validation
- Clear naming
- Proper organization
- Consistent patterns