You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add v3 data model with EntityType and relationship fields
- Add EntityType union type with 10 fixed entity types
- Add entityType field to OntologyNode (replacing flexible labels)
- Add relationship field to OntologyEdge (free-form verbs)
- Add helper functions: getEntityTypeColor, getNodeEntityType, getEdgeRelationship
- Add labelToEntityType for legacy v2 data migration
- Update prompts for v3 extraction format
- Update search to use new type helpers
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+42-32Lines changed: 42 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,17 @@ This plugin builds a lightweight knowledge graph from users' Obsidian notes usin
6
6
7
7
## Why Lightweight Ontology?
8
8
9
-
Traditional knowledge graphs often require complex schemas with dozens of relationship types, making them difficult to maintain and query. Simple Graph Builder takes a different approach:
9
+
Traditional knowledge graphs often require complex schemas with dozens of entity and relationship types, making them difficult to maintain and query. Simple Graph Builder takes a different approach:
10
10
11
-
-**Flexible Node Labels**: The LLM determines the most appropriate label for each entity (Person, Concept, Tool, Project, etc.) - no predefined restrictions
12
-
-**Fixed Relationship Types**: Only 5 universal relationship types that cover most knowledge connections
11
+
-**10 Fixed Entity Types**: PERSON, ORGANIZATION, CONCEPT, PROJECT, TOOL, EVENT, PLACE, DOCUMENT, METHOD, TOPIC - covering all common knowledge domains
12
+
-**Free-form Relationship Verbs**: Express relationships naturally with active verbs like "develops", "uses", "causes", "cites"
13
13
-**Detail Property**: Each relationship includes a `detail` field for nuanced descriptions without schema explosion
14
14
15
-
This design provides **80% of the expressiveness with 20% of the complexity**, making it easy to build, query, and maintain your personal knowledge graph.
15
+
This design provides **structured entity classification with expressive relationships**, making it easy to build, query, and maintain your personal knowledge graph.
16
16
17
17
## Features
18
18
19
-
-**Lightweight Ontology Model**: Simple but expressive - flexible node labels + 5 fixed relationship types with detail annotations
19
+
-**Lightweight Ontology Model**: Simple but expressive - 10 fixed entity types + free-form relationship verbs with detail annotations
20
20
-**Hybrid Entity Resolution**: Multi-stage deduplication pipeline combining fast lookups with embedding similarity and LLM verification (inspired by KGGen [3])
21
21
-**Smart Search**: AI-powered natural language queries over your knowledge graph with multi-path exploration
22
22
-**Entity Extraction**: Automatically extract entities from your notes using AI (configurable extraction depth)
@@ -62,25 +62,35 @@ This approach resolves most entities via fast hash lookups, reserving expensive
62
62
63
63
## Data Model
64
64
65
-
### Node Labels (Flexible)
66
-
The LLM determines appropriate labels for each entity:
67
-
-**Person, Organization, Team** - People and groups
68
-
-**Concept, Theory, Method, Technique** - Ideas and approaches
0 commit comments