@equationalapplications/schema-org-llm-wiki 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Equational Applications
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,111 @@
1
+ # @equationalapplications/schema-org-llm-wiki
2
+
3
+ Curated [schema.org](https://schema.org/) warm-agent ontology manifest for hybrid LLM memory. Seeds a knowledge graph with 9 standard node types and 28 polymorphic edges — token-efficient, JSON-LD-ready, data-only with no runtime code.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/%40equationalapplications%2Fschema-org-llm-wiki?label=schema-org)](https://www.npmjs.com/package/@equationalapplications/schema-org-llm-wiki) [![npm downloads](https://img.shields.io/npm/dm/%40equationalapplications%2Fschema-org-llm-wiki?label=downloads)](https://www.npmjs.com/package/@equationalapplications/schema-org-llm-wiki)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
7
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/schema-org/LICENSE)
8
+
9
+ **[GitHub](https://github.com/equationalapplications/expo-llm-wiki)** · **[ScopeLab](https://equationalapplications.github.io/expo-llm-wiki/scopelab/)** · **[WikiDemo](https://equationalapplications.github.io/expo-llm-wiki/wiki-demo/)** · **[Changelog](https://github.com/equationalapplications/expo-llm-wiki/blob/main/CHANGELOG.md)** · **[Issues](https://github.com/equationalapplications/expo-llm-wiki/issues)**
10
+
11
+ > Ontology manifest for [LLM Wiki Memory](https://github.com/equationalapplications/expo-llm-wiki), inspired by [Andrej Karpathy's LLM Wiki memory spec](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f).
12
+
13
+ ## Why curated?
14
+
15
+ Full schema.org has ~800 types and ~1,400 properties. Injecting that into every
16
+ librarian/ingest prompt would blow token budgets and collapse LLM classification
17
+ accuracy. This manifest selects the high-value warm-agent subset (~2 KB serialized,
18
+ 9-way classification) while keeping every type and property standard, so stored
19
+ facts and edges map 1:1 onto schema.org for future JSON-LD export.
20
+
21
+ ## Requirements
22
+
23
+ Requires `@equationalapplications/core-llm-wiki` at the same release or newer —
24
+ this manifest uses polymorphic edge rows (one property name with several
25
+ source/target types), which core validates by the `(type, source_type, target_type)`
26
+ triple.
27
+
28
+ ## Installation
29
+
30
+ ```bash
31
+ npm install @equationalapplications/schema-org-llm-wiki
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ ```ts
37
+ import { createWiki } from '@equationalapplications/core-llm-wiki';
38
+ import { schemaOrgWarmAgentManifest } from '@equationalapplications/schema-org-llm-wiki';
39
+
40
+ const wiki = createWiki(db, {
41
+ llmProvider,
42
+ config: {
43
+ ontology: {
44
+ mode: 'strict',
45
+ seedManifests: {
46
+ [entityId]: { mode: 'strict', manifest: schemaOrgWarmAgentManifest },
47
+ },
48
+ },
49
+ },
50
+ });
51
+ ```
52
+
53
+ Or seed an existing entity directly:
54
+
55
+ ```ts
56
+ await wiki.setOntologyManifest(entityId, schemaOrgWarmAgentManifest, { mode: 'strict' });
57
+ ```
58
+
59
+ ## Node types
60
+
61
+ | Type | schema.org | Covers |
62
+ |------|-----------|--------|
63
+ | `person` | [Person](https://schema.org/Person) | Friends, family, colleagues, public figures |
64
+ | `organization` | [Organization](https://schema.org/Organization) | Companies, schools, clubs, teams, institutions |
65
+ | `place` | [Place](https://schema.org/Place) | Cities, venues, landmarks, addresses |
66
+ | `event` | [Event](https://schema.org/Event) | Meetings, conferences, concerts, celebrations |
67
+ | `project` | [Project](https://schema.org/Project) | Multi-step initiatives and goals |
68
+ | `action` | [Action](https://schema.org/Action) | Individual tasks, chores, steps |
69
+ | `creativework` | [CreativeWork](https://schema.org/CreativeWork) | Books, movies, articles, songs, recipes |
70
+ | `review` | [Review](https://schema.org/Review) | Personal opinions and evaluations |
71
+ | `product` | [Product](https://schema.org/Product) | Owned items, devices, software |
72
+
73
+ ## Edge properties (19 names, 28 rows)
74
+
75
+ All standard schema.org properties: `knows`, `spouse`, `parent`, `worksFor`,
76
+ `memberOf`, `homeLocation`, `workLocation`, `location` (×2), `containedInPlace`,
77
+ `subOrganization`, `object`, `agent`, `attendee`, `organizer` (×2), `author`,
78
+ `publisher`, `about` (×4), `itemReviewed` (×5), `owns`.
79
+
80
+ Polymorphic properties appear as multiple rows with distinct source/target
81
+ types, mirroring schema.org's own domain/range definitions — e.g. `about`
82
+ targets `person`, `organization`, `place`, and `event`.
83
+
84
+ ## JSON-LD export notes
85
+
86
+ - Property names keep schema.org camelCase (`worksFor`, `itemReviewed`); core
87
+ validation compares case-insensitively but stores the given casing, so names
88
+ survive to storage and future JSON-LD export unchanged.
89
+ - Literal-valued properties (`birthDate`, `startTime`, `reviewRating` values, …)
90
+ live inside fact content, not as edges. Only object-valued properties
91
+ (pointing at other facts) are edges.
92
+
93
+ ## Monorepo Ecosystem
94
+
95
+ | Package | Purpose |
96
+ | ----- | ----- |
97
+ | [**@equationalapplications/schema-org-llm-wiki**](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/schema-org/README.md) | Curated schema.org warm-agent ontology manifest |
98
+ | [@equationalapplications/core-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/core/README.md) | Persistent episodic memory |
99
+ | [@equationalapplications/expo-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/expo/README.md) | Persistent episodic memory for Expo/React Native |
100
+ | [@equationalapplications/react-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/react/README.md) | Persistent episodic memory for Web |
101
+ | [@equationalapplications/prisma-outbox](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/prisma-outbox/README.md) | Sync SQLite outbox events to Prisma |
102
+ | [@equationalapplications/core-llm-tools](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/core-llm-tools/README.md) | Gemini tool schemas and capability injector |
103
+ | [@equationalapplications/core-okf](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/okf/README.md) | Zero-dependency Open Knowledge Format (OKF) v0.1 primitives — parse and produce interoperable knowledge bundles. |
104
+
105
+ ## License
106
+
107
+ MIT
108
+
109
+ ---
110
+
111
+ Made with ❤️ by Equational Applications LLC. [https://equationalapplications.com/](https://equationalapplications.com/)
@@ -0,0 +1,13 @@
1
+ import { OntologyManifest } from '@equationalapplications/core-llm-wiki';
2
+ export { OntologyEdgeType, OntologyManifest, OntologyNodeType } from '@equationalapplications/core-llm-wiki';
3
+
4
+ /**
5
+ * Curated schema.org warm-agent ontology: 9 node types, 28 edges.
6
+ * All types and properties are schema.org-standard; polymorphic properties
7
+ * (`location`, `organizer`, `about`, `itemReviewed`) appear as multiple rows
8
+ * with distinct source/target types, exactly as schema.org defines their
9
+ * domain/range. Requires a core version with triple-keyed edge validation.
10
+ */
11
+ declare const schemaOrgWarmAgentManifest: OntologyManifest;
12
+
13
+ export { schemaOrgWarmAgentManifest };
@@ -0,0 +1,13 @@
1
+ import { OntologyManifest } from '@equationalapplications/core-llm-wiki';
2
+ export { OntologyEdgeType, OntologyManifest, OntologyNodeType } from '@equationalapplications/core-llm-wiki';
3
+
4
+ /**
5
+ * Curated schema.org warm-agent ontology: 9 node types, 28 edges.
6
+ * All types and properties are schema.org-standard; polymorphic properties
7
+ * (`location`, `organizer`, `about`, `itemReviewed`) appear as multiple rows
8
+ * with distinct source/target types, exactly as schema.org defines their
9
+ * domain/range. Requires a core version with triple-keyed edge validation.
10
+ */
11
+ declare const schemaOrgWarmAgentManifest: OntologyManifest;
12
+
13
+ export { schemaOrgWarmAgentManifest };
package/dist/index.js ADDED
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ // src/index.ts
4
+ var schemaOrgWarmAgentManifest = {
5
+ node_types: [
6
+ { type: "person", description: "A person\u2014friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network." },
7
+ { type: "organization", description: "A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities." },
8
+ { type: "place", description: "A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location." },
9
+ { type: "event", description: "A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event." },
10
+ { type: "project", description: "A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives." },
11
+ { type: "action", description: "An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person." },
12
+ { type: "creativework", description: "A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates." },
13
+ { type: "review", description: "A personal review, opinion, or evaluation. The implicit subject is always the owning character\u2014use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content." },
14
+ { type: "product", description: "A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, household items, and software." }
15
+ ],
16
+ edge_types: [
17
+ { type: "knows", source_type: "person", target_type: "person", description: "Friendship, acquaintance, or general connection between two people." },
18
+ { type: "spouse", source_type: "person", target_type: "person", description: "Spousal or long-term partner relationship." },
19
+ { type: "parent", source_type: "person", target_type: "person", description: "A parent of this person: the source is the child, the target is the parent." },
20
+ { type: "worksFor", source_type: "person", target_type: "organization", description: "Employment or primary professional affiliation." },
21
+ { type: "memberOf", source_type: "person", target_type: "organization", description: "Membership in clubs, associations, or communities." },
22
+ { type: "homeLocation", source_type: "person", target_type: "place", description: "Primary residence." },
23
+ { type: "workLocation", source_type: "person", target_type: "place", description: "Workplace or primary work location." },
24
+ { type: "location", source_type: "event", target_type: "place", description: "Venue or geographic location of an event." },
25
+ { type: "location", source_type: "organization", target_type: "place", description: "Physical headquarters or primary location." },
26
+ { type: "containedInPlace", source_type: "place", target_type: "place", description: "Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France)." },
27
+ { type: "subOrganization", source_type: "project", target_type: "project", description: "Nested project hierarchy: the target is a sub-project contained in the source project." },
28
+ { type: "object", source_type: "action", target_type: "project", description: "Project this task belongs to; the object the action advances." },
29
+ { type: "agent", source_type: "action", target_type: "person", description: "Person responsible for or performing the action." },
30
+ { type: "attendee", source_type: "event", target_type: "person", description: "Person attending or participating in the event." },
31
+ { type: "organizer", source_type: "event", target_type: "person", description: "Person who organized the event." },
32
+ { type: "organizer", source_type: "event", target_type: "organization", description: "Organization hosting the event." },
33
+ { type: "author", source_type: "creativework", target_type: "person", description: "Author, creator, artist, or filmmaker." },
34
+ { type: "publisher", source_type: "creativework", target_type: "organization", description: "Publisher, platform, studio, or distributor." },
35
+ { type: "about", source_type: "creativework", target_type: "person", description: "Content centered on a specific person." },
36
+ { type: "about", source_type: "creativework", target_type: "organization", description: "Content centered on a company, institution, or group." },
37
+ { type: "about", source_type: "creativework", target_type: "place", description: "Content centered on a location (travel guide, history)." },
38
+ { type: "about", source_type: "creativework", target_type: "event", description: "Content centered on an event (documentary, article)." },
39
+ { type: "itemReviewed", source_type: "review", target_type: "creativework", description: "The book, movie, article, or other work this review evaluates." },
40
+ { type: "itemReviewed", source_type: "review", target_type: "organization", description: "The business, restaurant, or institution this review evaluates." },
41
+ { type: "itemReviewed", source_type: "review", target_type: "place", description: "The venue, park, or location this review evaluates." },
42
+ { type: "itemReviewed", source_type: "review", target_type: "event", description: "The event this review evaluates." },
43
+ { type: "itemReviewed", source_type: "review", target_type: "product", description: "The tool, device, or product this review evaluates." },
44
+ { type: "owns", source_type: "person", target_type: "product", description: "Item owned by the person (electronics, vehicles, etc.)." }
45
+ ]
46
+ };
47
+
48
+ exports.schemaOrgWarmAgentManifest = schemaOrgWarmAgentManifest;
49
+ //# sourceMappingURL=index.js.map
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAWO,IAAM,0BAAA,GAA+C;AAAA,EAC1D,UAAA,EAAY;AAAA,IACV,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yJAAA,EAAqJ;AAAA,IACpL,EAAE,IAAA,EAAM,cAAA,EAAgB,WAAA,EAAa,oHAAA,EAAqH;AAAA,IAC1J,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,4IAAA,EAA6I;AAAA,IAC3K,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,2HAAA,EAA4H;AAAA,IAC1J,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,uIAAA,EAAwI;AAAA,IACxK,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yHAAA,EAA0H;AAAA,IACzJ,EAAE,IAAA,EAAM,cAAA,EAAgB,WAAA,EAAa,wIAAA,EAAyI;AAAA,IAC9K,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,kNAAA,EAA8M;AAAA,IAC7O,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,sIAAA;AAAuI,GACzK;AAAA,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EAAgB,WAAA,EAAa,UAAU,WAAA,EAAa,OAAA,EAAS,aAAa,qDAAA,EAAsD;AAAA,IACxI,EAAE,MAAM,cAAA,EAAgB,WAAA,EAAa,UAAU,WAAA,EAAa,OAAA,EAAS,aAAa,kCAAA,EAAmC;AAAA,IACrH,EAAE,MAAM,cAAA,EAAgB,WAAA,EAAa,UAAU,WAAA,EAAa,SAAA,EAAW,aAAa,qDAAA,EAAsD;AAAA,IAC1I,EAAE,MAAM,MAAA,EAAQ,WAAA,EAAa,UAAU,WAAA,EAAa,SAAA,EAAW,aAAa,yDAAA;AAA0D;AAE1I","file":"index.js","sourcesContent":["import type { OntologyManifest } from '@equationalapplications/core-llm-wiki';\n\nexport type { OntologyManifest, OntologyNodeType, OntologyEdgeType } from '@equationalapplications/core-llm-wiki';\n\n/**\n * Curated schema.org warm-agent ontology: 9 node types, 28 edges.\n * All types and properties are schema.org-standard; polymorphic properties\n * (`location`, `organizer`, `about`, `itemReviewed`) appear as multiple rows\n * with distinct source/target types, exactly as schema.org defines their\n * domain/range. Requires a core version with triple-keyed edge validation.\n */\nexport const schemaOrgWarmAgentManifest: OntologyManifest = {\n node_types: [\n { type: 'person', description: \"A person—friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network.\" },\n { type: 'organization', description: 'A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities.' },\n { type: 'place', description: 'A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location.' },\n { type: 'event', description: 'A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event.' },\n { type: 'project', description: 'A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives.' },\n { type: 'action', description: 'An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person.' },\n { type: 'creativework', description: 'A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates.' },\n { type: 'review', description: 'A personal review, opinion, or evaluation. The implicit subject is always the owning character—use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content.' },\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, household items, and software.' },\n ],\n edge_types: [\n { type: 'knows', source_type: 'person', target_type: 'person', description: 'Friendship, acquaintance, or general connection between two people.' },\n { type: 'spouse', source_type: 'person', target_type: 'person', description: 'Spousal or long-term partner relationship.' },\n { type: 'parent', source_type: 'person', target_type: 'person', description: 'A parent of this person: the source is the child, the target is the parent.' },\n { type: 'worksFor', source_type: 'person', target_type: 'organization', description: 'Employment or primary professional affiliation.' },\n { type: 'memberOf', source_type: 'person', target_type: 'organization', description: 'Membership in clubs, associations, or communities.' },\n { type: 'homeLocation', source_type: 'person', target_type: 'place', description: 'Primary residence.' },\n { type: 'workLocation', source_type: 'person', target_type: 'place', description: 'Workplace or primary work location.' },\n { type: 'location', source_type: 'event', target_type: 'place', description: 'Venue or geographic location of an event.' },\n { type: 'location', source_type: 'organization', target_type: 'place', description: 'Physical headquarters or primary location.' },\n { type: 'containedInPlace', source_type: 'place', target_type: 'place', description: 'Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France).' },\n { type: 'subOrganization', source_type: 'project', target_type: 'project', description: 'Nested project hierarchy: the target is a sub-project contained in the source project.' },\n { type: 'object', source_type: 'action', target_type: 'project', description: 'Project this task belongs to; the object the action advances.' },\n { type: 'agent', source_type: 'action', target_type: 'person', description: 'Person responsible for or performing the action.' },\n { type: 'attendee', source_type: 'event', target_type: 'person', description: 'Person attending or participating in the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'person', description: 'Person who organized the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'organization', description: 'Organization hosting the event.' },\n { type: 'author', source_type: 'creativework', target_type: 'person', description: 'Author, creator, artist, or filmmaker.' },\n { type: 'publisher', source_type: 'creativework', target_type: 'organization', description: 'Publisher, platform, studio, or distributor.' },\n { type: 'about', source_type: 'creativework', target_type: 'person', description: 'Content centered on a specific person.' },\n { type: 'about', source_type: 'creativework', target_type: 'organization', description: 'Content centered on a company, institution, or group.' },\n { type: 'about', source_type: 'creativework', target_type: 'place', description: 'Content centered on a location (travel guide, history).' },\n { type: 'about', source_type: 'creativework', target_type: 'event', description: 'Content centered on an event (documentary, article).' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'creativework', description: 'The book, movie, article, or other work this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'organization', description: 'The business, restaurant, or institution this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'place', description: 'The venue, park, or location this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'event', description: 'The event this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'product', description: 'The tool, device, or product this review evaluates.' },\n { type: 'owns', source_type: 'person', target_type: 'product', description: 'Item owned by the person (electronics, vehicles, etc.).' },\n ],\n};\n"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,48 @@
1
+ // src/index.ts
2
+ var schemaOrgWarmAgentManifest = {
3
+ node_types: [
4
+ { type: "person", description: "A person\u2014friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network." },
5
+ { type: "organization", description: "A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities." },
6
+ { type: "place", description: "A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location." },
7
+ { type: "event", description: "A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event." },
8
+ { type: "project", description: "A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives." },
9
+ { type: "action", description: "An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person." },
10
+ { type: "creativework", description: "A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates." },
11
+ { type: "review", description: "A personal review, opinion, or evaluation. The implicit subject is always the owning character\u2014use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content." },
12
+ { type: "product", description: "A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, household items, and software." }
13
+ ],
14
+ edge_types: [
15
+ { type: "knows", source_type: "person", target_type: "person", description: "Friendship, acquaintance, or general connection between two people." },
16
+ { type: "spouse", source_type: "person", target_type: "person", description: "Spousal or long-term partner relationship." },
17
+ { type: "parent", source_type: "person", target_type: "person", description: "A parent of this person: the source is the child, the target is the parent." },
18
+ { type: "worksFor", source_type: "person", target_type: "organization", description: "Employment or primary professional affiliation." },
19
+ { type: "memberOf", source_type: "person", target_type: "organization", description: "Membership in clubs, associations, or communities." },
20
+ { type: "homeLocation", source_type: "person", target_type: "place", description: "Primary residence." },
21
+ { type: "workLocation", source_type: "person", target_type: "place", description: "Workplace or primary work location." },
22
+ { type: "location", source_type: "event", target_type: "place", description: "Venue or geographic location of an event." },
23
+ { type: "location", source_type: "organization", target_type: "place", description: "Physical headquarters or primary location." },
24
+ { type: "containedInPlace", source_type: "place", target_type: "place", description: "Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France)." },
25
+ { type: "subOrganization", source_type: "project", target_type: "project", description: "Nested project hierarchy: the target is a sub-project contained in the source project." },
26
+ { type: "object", source_type: "action", target_type: "project", description: "Project this task belongs to; the object the action advances." },
27
+ { type: "agent", source_type: "action", target_type: "person", description: "Person responsible for or performing the action." },
28
+ { type: "attendee", source_type: "event", target_type: "person", description: "Person attending or participating in the event." },
29
+ { type: "organizer", source_type: "event", target_type: "person", description: "Person who organized the event." },
30
+ { type: "organizer", source_type: "event", target_type: "organization", description: "Organization hosting the event." },
31
+ { type: "author", source_type: "creativework", target_type: "person", description: "Author, creator, artist, or filmmaker." },
32
+ { type: "publisher", source_type: "creativework", target_type: "organization", description: "Publisher, platform, studio, or distributor." },
33
+ { type: "about", source_type: "creativework", target_type: "person", description: "Content centered on a specific person." },
34
+ { type: "about", source_type: "creativework", target_type: "organization", description: "Content centered on a company, institution, or group." },
35
+ { type: "about", source_type: "creativework", target_type: "place", description: "Content centered on a location (travel guide, history)." },
36
+ { type: "about", source_type: "creativework", target_type: "event", description: "Content centered on an event (documentary, article)." },
37
+ { type: "itemReviewed", source_type: "review", target_type: "creativework", description: "The book, movie, article, or other work this review evaluates." },
38
+ { type: "itemReviewed", source_type: "review", target_type: "organization", description: "The business, restaurant, or institution this review evaluates." },
39
+ { type: "itemReviewed", source_type: "review", target_type: "place", description: "The venue, park, or location this review evaluates." },
40
+ { type: "itemReviewed", source_type: "review", target_type: "event", description: "The event this review evaluates." },
41
+ { type: "itemReviewed", source_type: "review", target_type: "product", description: "The tool, device, or product this review evaluates." },
42
+ { type: "owns", source_type: "person", target_type: "product", description: "Item owned by the person (electronics, vehicles, etc.)." }
43
+ ]
44
+ };
45
+
46
+ export { schemaOrgWarmAgentManifest };
47
+ //# sourceMappingURL=index.mjs.map
48
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAWO,IAAM,0BAAA,GAA+C;AAAA,EAC1D,UAAA,EAAY;AAAA,IACV,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yJAAA,EAAqJ;AAAA,IACpL,EAAE,IAAA,EAAM,cAAA,EAAgB,WAAA,EAAa,oHAAA,EAAqH;AAAA,IAC1J,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,4IAAA,EAA6I;AAAA,IAC3K,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,2HAAA,EAA4H;AAAA,IAC1J,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,uIAAA,EAAwI;AAAA,IACxK,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yHAAA,EAA0H;AAAA,IACzJ,EAAE,IAAA,EAAM,cAAA,EAAgB,WAAA,EAAa,wIAAA,EAAyI;AAAA,IAC9K,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,kNAAA,EAA8M;AAAA,IAC7O,EAAE,IAAA,EAAM,SAAA,EAAW,WAA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kE;AAAA,IAC3J,EAAE,MAAM,cAAA,EAAgB,WAAA,EAAa,UAAU,WAAA,EAAa,OAAA,EAAS,aAAa,qDAAA,EAAsD;AAAA,IACxI,EAAE,MAAM,cAAA,EAAgB,WAAA,EAAa,UAAU,WAAA,EAAa,OAAA,EAAS,aAAa,kCAAA,EAAmC;AAAA,IACrH,EAAE,MAAM,cAAA,EAAgB,WAAA,EAAa,UAAU,WAAA,EAAa,SAAA,EAAW,aAAa,qDAAA,EAAsD;AAAA,IAC1I,EAAE,MAAM,MAAA,EAAQ,WAAA,EAAa,UAAU,WAAA,EAAa,SAAA,EAAW,aAAa,yDAAA;AAA0D;AAE1I","file":"index.mjs","sourcesContent":["import type { OntologyManifest } from '@equationalapplications/core-llm-wiki';\n\nexport type { OntologyManifest, OntologyNodeType, OntologyEdgeType } from '@equationalapplications/core-llm-wiki';\n\n/**\n * Curated schema.org warm-agent ontology: 9 node types, 28 edges.\n * All types and properties are schema.org-standard; polymorphic properties\n * (`location`, `organizer`, `about`, `itemReviewed`) appear as multiple rows\n * with distinct source/target types, exactly as schema.org defines their\n * domain/range. Requires a core version with triple-keyed edge validation.\n */\nexport const schemaOrgWarmAgentManifest: OntologyManifest = {\n node_types: [\n { type: 'person', description: \"A person—friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network.\" },\n { type: 'organization', description: 'A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities.' },\n { type: 'place', description: 'A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location.' },\n { type: 'event', description: 'A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event.' },\n { type: 'project', description: 'A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives.' },\n { type: 'action', description: 'An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person.' },\n { type: 'creativework', description: 'A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates.' },\n { type: 'review', description: 'A personal review, opinion, or evaluation. The implicit subject is always the owning character—use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content.' },\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, household items, and software.' },\n ],\n edge_types: [\n { type: 'knows', source_type: 'person', target_type: 'person', description: 'Friendship, acquaintance, or general connection between two people.' },\n { type: 'spouse', source_type: 'person', target_type: 'person', description: 'Spousal or long-term partner relationship.' },\n { type: 'parent', source_type: 'person', target_type: 'person', description: 'A parent of this person: the source is the child, the target is the parent.' },\n { type: 'worksFor', source_type: 'person', target_type: 'organization', description: 'Employment or primary professional affiliation.' },\n { type: 'memberOf', source_type: 'person', target_type: 'organization', description: 'Membership in clubs, associations, or communities.' },\n { type: 'homeLocation', source_type: 'person', target_type: 'place', description: 'Primary residence.' },\n { type: 'workLocation', source_type: 'person', target_type: 'place', description: 'Workplace or primary work location.' },\n { type: 'location', source_type: 'event', target_type: 'place', description: 'Venue or geographic location of an event.' },\n { type: 'location', source_type: 'organization', target_type: 'place', description: 'Physical headquarters or primary location.' },\n { type: 'containedInPlace', source_type: 'place', target_type: 'place', description: 'Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France).' },\n { type: 'subOrganization', source_type: 'project', target_type: 'project', description: 'Nested project hierarchy: the target is a sub-project contained in the source project.' },\n { type: 'object', source_type: 'action', target_type: 'project', description: 'Project this task belongs to; the object the action advances.' },\n { type: 'agent', source_type: 'action', target_type: 'person', description: 'Person responsible for or performing the action.' },\n { type: 'attendee', source_type: 'event', target_type: 'person', description: 'Person attending or participating in the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'person', description: 'Person who organized the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'organization', description: 'Organization hosting the event.' },\n { type: 'author', source_type: 'creativework', target_type: 'person', description: 'Author, creator, artist, or filmmaker.' },\n { type: 'publisher', source_type: 'creativework', target_type: 'organization', description: 'Publisher, platform, studio, or distributor.' },\n { type: 'about', source_type: 'creativework', target_type: 'person', description: 'Content centered on a specific person.' },\n { type: 'about', source_type: 'creativework', target_type: 'organization', description: 'Content centered on a company, institution, or group.' },\n { type: 'about', source_type: 'creativework', target_type: 'place', description: 'Content centered on a location (travel guide, history).' },\n { type: 'about', source_type: 'creativework', target_type: 'event', description: 'Content centered on an event (documentary, article).' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'creativework', description: 'The book, movie, article, or other work this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'organization', description: 'The business, restaurant, or institution this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'place', description: 'The venue, park, or location this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'event', description: 'The event this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'product', description: 'The tool, device, or product this review evaluates.' },\n { type: 'owns', source_type: 'person', target_type: 'product', description: 'Item owned by the person (electronics, vehicles, etc.).' },\n ],\n};\n"]}
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@equationalapplications/schema-org-llm-wiki",
3
+ "version": "4.22.0",
4
+ "description": "Curated schema.org warm-agent ontology manifest for LLM Wiki Memory: 9 node types, 28 edges, fully schema.org-standard. Data-only.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "require": "./dist/index.js",
12
+ "import": "./dist/index.mjs"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "LICENSE",
18
+ "README.md"
19
+ ],
20
+ "license": "MIT",
21
+ "keywords": [
22
+ "schema-org",
23
+ "ontology",
24
+ "knowledge-graph",
25
+ "llm-memory",
26
+ "ai-memory",
27
+ "json-ld",
28
+ "typescript"
29
+ ],
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/equationalapplications/expo-llm-wiki.git",
33
+ "directory": "packages/schema-org"
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/equationalapplications/expo-llm-wiki/issues"
37
+ },
38
+ "homepage": "https://github.com/equationalapplications/expo-llm-wiki/tree/main/packages/schema-org#readme",
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "registry": "https://registry.npmjs.org"
42
+ },
43
+ "dependencies": {
44
+ "@equationalapplications/core-llm-wiki": "4.22.0"
45
+ },
46
+ "engines": {
47
+ "node": ">=20"
48
+ },
49
+ "devDependencies": {
50
+ "tsup": "^8.0.0",
51
+ "typescript": "^5.4.0",
52
+ "vitest": "4.1.5"
53
+ },
54
+ "scripts": {
55
+ "build": "tsup",
56
+ "dev": "tsup --watch",
57
+ "typecheck": "tsc --noEmit",
58
+ "test": "vitest run",
59
+ "test:watch": "vitest"
60
+ }
61
+ }