@equationalapplications/schema-software-org 6.2.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 +21 -0
- package/README.md +146 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +78 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +62 -0
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,146 @@
|
|
|
1
|
+
# @equationalapplications/schema-software-org
|
|
2
|
+
|
|
3
|
+
A custom minimal ontology manifest for an executive agent operating on behalf of a software organization — 17 node types, 40 edges, a superset of the warm-agent manifest in which the warm-agent rows are copied verbatim except for one intentional override of `product` (which delegates to `software_application` / `service`), data-only with no runtime code.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@equationalapplications/schema-software-org) [](https://www.npmjs.com/package/@equationalapplications/schema-software-org)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/schema-software-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).
|
|
12
|
+
|
|
13
|
+
## Node Catalog
|
|
14
|
+
|
|
15
|
+
| Type | Parent | Description |
|
|
16
|
+
|------|--------|-------------|
|
|
17
|
+
| `person` | — | A person—friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network. |
|
|
18
|
+
| `organization` | — | A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities. |
|
|
19
|
+
| `place` | — | A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location. |
|
|
20
|
+
| `event` | — | A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event. |
|
|
21
|
+
| `project` | — | A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives. |
|
|
22
|
+
| `action` | — | An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person. |
|
|
23
|
+
| `creativework` | — | A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates. |
|
|
24
|
+
| `review` | — | 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. |
|
|
25
|
+
| `product` | — | A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service. |
|
|
26
|
+
| `software_application` | — | Software the organization itself builds, ships, or maintains — its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev). |
|
|
27
|
+
| `service` | — | A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional). |
|
|
28
|
+
| `role` | — | A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities. |
|
|
29
|
+
| `design_spec` | `creativework` | A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch. |
|
|
30
|
+
| `handoff` | `creativework` | An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items. |
|
|
31
|
+
| `procedure` | `creativework` | A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug). |
|
|
32
|
+
| `session_recap` | `creativework` | A dated recap of one working session. Use only for session records — ordinary facts are not memories. Expected frontmatter properties: session_date, key_decisions (comma-separated list). |
|
|
33
|
+
| `reference_doc` | `creativework` | A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug). |
|
|
34
|
+
|
|
35
|
+
## Edge Catalog
|
|
36
|
+
|
|
37
|
+
| Edge | Source → Target | Description |
|
|
38
|
+
|------|-----------------|-------------|
|
|
39
|
+
| `knows` | person → person | Friendship, acquaintance, or general connection between two people. |
|
|
40
|
+
| `spouse` | person → person | Spousal or long-term partner relationship. |
|
|
41
|
+
| `parent` | person → person | A parent of this person: the source is the child, the target is the parent. |
|
|
42
|
+
| `worksFor` | person → organization | Employment or primary professional affiliation. |
|
|
43
|
+
| `memberOf` | person → organization | Membership in clubs, associations, or communities. |
|
|
44
|
+
| `homeLocation` | person → place | Primary residence. |
|
|
45
|
+
| `workLocation` | person → place | Workplace or primary work location. |
|
|
46
|
+
| `location` | event → place | Venue or geographic location of an event. |
|
|
47
|
+
| `location` | organization → place | Physical headquarters or primary location. |
|
|
48
|
+
| `containedInPlace` | place → place | Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France). |
|
|
49
|
+
| `subOrganization` | project → project | Nested project hierarchy: the target is a sub-project contained in the source project. |
|
|
50
|
+
| `object` | action → project | Project this task belongs to; the object the action advances. |
|
|
51
|
+
| `agent` | action → person | Person responsible for or performing the action. |
|
|
52
|
+
| `attendee` | event → person | Person attending or participating in the event. |
|
|
53
|
+
| `organizer` | event → person | Person who organized the event. |
|
|
54
|
+
| `organizer` | event → organization | Organization hosting the event. |
|
|
55
|
+
| `author` | creativework → person | Author, creator, artist, or filmmaker. |
|
|
56
|
+
| `publisher` | creativework → organization | Publisher, platform, studio, or distributor. |
|
|
57
|
+
| `about` | creativework → person | Content centered on a specific person. |
|
|
58
|
+
| `about` | creativework → organization | Content centered on a company, institution, or group. |
|
|
59
|
+
| `about` | creativework → place | Content centered on a location (travel guide, history). |
|
|
60
|
+
| `about` | creativework → event | Content centered on an event (documentary, article). |
|
|
61
|
+
| `itemReviewed` | review → creativework | The book, movie, article, or other work this review evaluates. |
|
|
62
|
+
| `itemReviewed` | review → organization | The business, restaurant, or institution this review evaluates. |
|
|
63
|
+
| `itemReviewed` | review → place | The venue, park, or location this review evaluates. |
|
|
64
|
+
| `itemReviewed` | review → event | The event this review evaluates. |
|
|
65
|
+
| `itemReviewed` | review → product | The tool, device, or product this review evaluates. |
|
|
66
|
+
| `owns` | person → product | Item owned by the person (electronics, vehicles, etc.). |
|
|
67
|
+
| `dependsOn` | software_application → service | This software application depends on this service. |
|
|
68
|
+
| `specifies` | design_spec → software_application | Spec is about this software application. |
|
|
69
|
+
| `specifies` | design_spec → service | Spec is about this service. |
|
|
70
|
+
| `documents` | procedure → software_application | Procedure applies to this software application. |
|
|
71
|
+
| `documents` | procedure → service | Procedure applies to this service. |
|
|
72
|
+
| `handoffFor` | handoff → software_application | Handoff is for this software application. |
|
|
73
|
+
| `handoffFor` | handoff → service | Handoff is for this service. |
|
|
74
|
+
| `supersedes` | creativework → creativework | This document replaces an older one. |
|
|
75
|
+
| `hasRole` | person → role | Person fills this role. |
|
|
76
|
+
| `operates` | role → software_application | Role operates this software application. |
|
|
77
|
+
| `provides` | organization → service | Organization provides this service. |
|
|
78
|
+
| `maintains` | person → software_application | Person maintains this software application. |
|
|
79
|
+
|
|
80
|
+
## Property Conventions
|
|
81
|
+
|
|
82
|
+
Property names follow [CodeMeta](https://codemeta.github.io/) shape: `snake_case`, single-word keys where possible, URL values for links. Status enums are written inline in parentheses — for example `status (active/deprecated/in_dev)` — rather than enumerated as separate properties.
|
|
83
|
+
|
|
84
|
+
`parent_type` is an **edge-matching rule only** (D4): it tells the runtime which parent row covers a subtype for edge validation, it does **not** inherit properties. Every subtype lists its own complete set of frontmatter properties, including any property the parent also lists.
|
|
85
|
+
|
|
86
|
+
Common schema.org fields (`name`, `url`, `dateCreated`, `author`, and the rest of the standard vocabulary) are deliberately **unlisted** in the property expectations. They come from the model's existing schema.org knowledge, not from this manifest, and that is not inheritance — the LLM supplies them from pretraining regardless of whether the manifest names them. The properties here are only the ones this manifest wants to elicit as structured frontmatter.
|
|
87
|
+
|
|
88
|
+
## Usage
|
|
89
|
+
|
|
90
|
+
Pass the manifest into `core-llm-wiki`'s `createWiki` via `config.ontology.seedManifests`:
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
import { createWiki } from '@equationalapplications/core-llm-wiki';
|
|
94
|
+
import { schemaSoftwareOrgManifest } from '@equationalapplications/schema-software-org';
|
|
95
|
+
|
|
96
|
+
const wiki = createWiki(db, {
|
|
97
|
+
llmProvider,
|
|
98
|
+
config: {
|
|
99
|
+
ontology: {
|
|
100
|
+
mode: 'strict',
|
|
101
|
+
seedManifests: {
|
|
102
|
+
[entityId]: { mode: 'strict', manifest: schemaSoftwareOrgManifest },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Or seed an existing entity directly at runtime:
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
await wiki.setOntologyManifest(entityId, schemaSoftwareOrgManifest, { mode: 'strict' });
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Disambiguation
|
|
116
|
+
|
|
117
|
+
Three node types overlap in everyday language and are kept distinct on purpose (D8):
|
|
118
|
+
|
|
119
|
+
- **`product`** — a thing the organization **owns or evaluates**. Owned electronics, vehicles, household items, third-party software tools the team pays for. Reviews target this type.
|
|
120
|
+
- **`software_application`** — a **codebase** the organization **builds, ships, or maintains**. Its own portfolio repos. Has properties like `repo_url`, `version`, `install_path`.
|
|
121
|
+
- **`service`** — a **running hosted capability** something depends on, vendor-run or self-run. Databases, APIs, CI, auth, monitoring. Has properties like `provider`, `dashboard_url`, `tier`.
|
|
122
|
+
|
|
123
|
+
The organization's own backend illustrates the split: it is a `software_application` as source (the codebase being written) and a `service` as deployed dependency (the running thing other systems call into). The `dependsOn (software_application → service)` edge encodes exactly that relationship — a `software_application` declaring its runtime dependencies on one or more `service` nodes.
|
|
124
|
+
|
|
125
|
+
## Requirements
|
|
126
|
+
|
|
127
|
+
Requires `@equationalapplications/core-llm-wiki` **>= 6.1.0** — that is the release that shipped `OntologyNodeType.parent_type`, which the five `creativework` subtypes rely on. This manifest will validate against 6.0.1, but will silently fail at ingest edge matching because 6.0.1 ignores the `parent_type` field.
|
|
128
|
+
|
|
129
|
+
`@equationalapplications/schema-org-llm-wiki` is **not** a runtime dependency. This package is a verbatim superset of the warm-agent manifest except for one intentional override of `product` (which delegates to `software_application` / `service`), and stands alone — there is no need to install `schema-org-llm-wiki` to use `schema-software-org`.
|
|
130
|
+
|
|
131
|
+
## Monorepo Ecosystem
|
|
132
|
+
|
|
133
|
+
| Package | Purpose |
|
|
134
|
+
| ----- | ----- |
|
|
135
|
+
| [**@equationalapplications/schema-software-org**](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/schema-software-org/README.md) | Software-organization executive ontology manifest — 17 node types, 40 edges, warm-agent superset, data-only |
|
|
136
|
+
| [@equationalapplications/core-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/core/README.md) | Persistent episodic memory |
|
|
137
|
+
| [@equationalapplications/expo-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/expo/README.md) | Persistent episodic memory for Expo/React Native |
|
|
138
|
+
| [@equationalapplications/react-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/react/README.md) | Persistent episodic memory for Web |
|
|
139
|
+
| [@equationalapplications/prisma-outbox](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/prisma-outbox/README.md) | Sync SQLite outbox events to Prisma |
|
|
140
|
+
| [@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 |
|
|
141
|
+
| [@equationalapplications/core-okf](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/okf/README.md) | Zero-dependency Open Knowledge Format (OKF) v0.1 + v0.2 primitives — parse and produce interoperable knowledge bundles. |
|
|
142
|
+
| [@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 |
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
MIT
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OntologyManifest } from '@equationalapplications/core-llm-wiki';
|
|
2
|
+
export { OntologyEdgeType, OntologyManifest, OntologyNodeType } from '@equationalapplications/core-llm-wiki';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Custom minimal ontology for an executive agent operating on behalf of a
|
|
6
|
+
* software organization: 17 node types, 40 edges. Superset of the warm-agent
|
|
7
|
+
* manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied
|
|
8
|
+
* verbatim (D2) — with one deliberate override on `product` (D8) — plus 3
|
|
9
|
+
* software-org base types, 5 `creativework` subtypes, and 12 new edges.
|
|
10
|
+
*
|
|
11
|
+
* Properties live in the description strings (D3): `buildPromptContext`
|
|
12
|
+
* JSON-serializes the manifest into the classification prompt, so description
|
|
13
|
+
* text reaches the model verbatim and no core change is needed. There is no
|
|
14
|
+
* property inheritance (D4) — every subtype lists its own complete set.
|
|
15
|
+
*
|
|
16
|
+
* The text is organization-neutral: it says "the organization", never a
|
|
17
|
+
* specific company, so any software org can adopt it unmodified.
|
|
18
|
+
*/
|
|
19
|
+
declare const schemaSoftwareOrgManifest: OntologyManifest;
|
|
20
|
+
|
|
21
|
+
export { schemaSoftwareOrgManifest };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OntologyManifest } from '@equationalapplications/core-llm-wiki';
|
|
2
|
+
export { OntologyEdgeType, OntologyManifest, OntologyNodeType } from '@equationalapplications/core-llm-wiki';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Custom minimal ontology for an executive agent operating on behalf of a
|
|
6
|
+
* software organization: 17 node types, 40 edges. Superset of the warm-agent
|
|
7
|
+
* manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied
|
|
8
|
+
* verbatim (D2) — with one deliberate override on `product` (D8) — plus 3
|
|
9
|
+
* software-org base types, 5 `creativework` subtypes, and 12 new edges.
|
|
10
|
+
*
|
|
11
|
+
* Properties live in the description strings (D3): `buildPromptContext`
|
|
12
|
+
* JSON-serializes the manifest into the classification prompt, so description
|
|
13
|
+
* text reaches the model verbatim and no core change is needed. There is no
|
|
14
|
+
* property inheritance (D4) — every subtype lists its own complete set.
|
|
15
|
+
*
|
|
16
|
+
* The text is organization-neutral: it says "the organization", never a
|
|
17
|
+
* specific company, so any software org can adopt it unmodified.
|
|
18
|
+
*/
|
|
19
|
+
declare const schemaSoftwareOrgManifest: OntologyManifest;
|
|
20
|
+
|
|
21
|
+
export { schemaSoftwareOrgManifest };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
var schemaSoftwareOrgManifest = {
|
|
5
|
+
node_types: [
|
|
6
|
+
// Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.
|
|
7
|
+
// Do not abridge: descriptions are the classification signal (D2/D3).
|
|
8
|
+
{ 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." },
|
|
9
|
+
{ type: "organization", description: "A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities." },
|
|
10
|
+
{ type: "place", description: "A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location." },
|
|
11
|
+
{ type: "event", description: "A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event." },
|
|
12
|
+
{ type: "project", description: "A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives." },
|
|
13
|
+
{ type: "action", description: "An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person." },
|
|
14
|
+
{ type: "creativework", description: "A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates." },
|
|
15
|
+
{ 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." },
|
|
16
|
+
// D8: intentional divergence from the warm-agent original — the upstream
|
|
17
|
+
// row claims "and software", which pulls the org's own repositories here.
|
|
18
|
+
{ type: "product", description: "A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service." },
|
|
19
|
+
// Software-org base types (no parent_type, no children — D5)
|
|
20
|
+
{ type: "software_application", description: "Software the organization itself builds, ships, or maintains \u2014 its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev)." },
|
|
21
|
+
{ type: "service", description: "A running hosted capability the organization consumes or operates, vendor-run or self-run \u2014 databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional)." },
|
|
22
|
+
{ type: "role", description: "A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities." },
|
|
23
|
+
// Software-org concrete types (one level under creativework)
|
|
24
|
+
{ type: "design_spec", parent_type: "creativework", description: "A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch." },
|
|
25
|
+
{ type: "handoff", parent_type: "creativework", description: "An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items." },
|
|
26
|
+
{ type: "procedure", parent_type: "creativework", description: "A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug)." },
|
|
27
|
+
{ type: "session_recap", parent_type: "creativework", description: "A dated recap of one working session. Use only for session records \u2014 ordinary facts are not memories. Expected frontmatter properties: session_date, key_decisions (comma-separated list)." },
|
|
28
|
+
{ type: "reference_doc", parent_type: "creativework", description: "A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug)." }
|
|
29
|
+
],
|
|
30
|
+
edge_types: [
|
|
31
|
+
// Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).
|
|
32
|
+
{ type: "knows", source_type: "person", target_type: "person", description: "Friendship, acquaintance, or general connection between two people." },
|
|
33
|
+
{ type: "spouse", source_type: "person", target_type: "person", description: "Spousal or long-term partner relationship." },
|
|
34
|
+
{ type: "parent", source_type: "person", target_type: "person", description: "A parent of this person: the source is the child, the target is the parent." },
|
|
35
|
+
{ type: "worksFor", source_type: "person", target_type: "organization", description: "Employment or primary professional affiliation." },
|
|
36
|
+
{ type: "memberOf", source_type: "person", target_type: "organization", description: "Membership in clubs, associations, or communities." },
|
|
37
|
+
{ type: "homeLocation", source_type: "person", target_type: "place", description: "Primary residence." },
|
|
38
|
+
{ type: "workLocation", source_type: "person", target_type: "place", description: "Workplace or primary work location." },
|
|
39
|
+
{ type: "location", source_type: "event", target_type: "place", description: "Venue or geographic location of an event." },
|
|
40
|
+
{ type: "location", source_type: "organization", target_type: "place", description: "Physical headquarters or primary location." },
|
|
41
|
+
{ 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)." },
|
|
42
|
+
{ type: "subOrganization", source_type: "project", target_type: "project", description: "Nested project hierarchy: the target is a sub-project contained in the source project." },
|
|
43
|
+
{ type: "object", source_type: "action", target_type: "project", description: "Project this task belongs to; the object the action advances." },
|
|
44
|
+
{ type: "agent", source_type: "action", target_type: "person", description: "Person responsible for or performing the action." },
|
|
45
|
+
{ type: "attendee", source_type: "event", target_type: "person", description: "Person attending or participating in the event." },
|
|
46
|
+
{ type: "organizer", source_type: "event", target_type: "person", description: "Person who organized the event." },
|
|
47
|
+
{ type: "organizer", source_type: "event", target_type: "organization", description: "Organization hosting the event." },
|
|
48
|
+
{ type: "author", source_type: "creativework", target_type: "person", description: "Author, creator, artist, or filmmaker." },
|
|
49
|
+
{ type: "publisher", source_type: "creativework", target_type: "organization", description: "Publisher, platform, studio, or distributor." },
|
|
50
|
+
{ type: "about", source_type: "creativework", target_type: "person", description: "Content centered on a specific person." },
|
|
51
|
+
{ type: "about", source_type: "creativework", target_type: "organization", description: "Content centered on a company, institution, or group." },
|
|
52
|
+
{ type: "about", source_type: "creativework", target_type: "place", description: "Content centered on a location (travel guide, history)." },
|
|
53
|
+
{ type: "about", source_type: "creativework", target_type: "event", description: "Content centered on an event (documentary, article)." },
|
|
54
|
+
{ type: "itemReviewed", source_type: "review", target_type: "creativework", description: "The book, movie, article, or other work this review evaluates." },
|
|
55
|
+
{ type: "itemReviewed", source_type: "review", target_type: "organization", description: "The business, restaurant, or institution this review evaluates." },
|
|
56
|
+
{ type: "itemReviewed", source_type: "review", target_type: "place", description: "The venue, park, or location this review evaluates." },
|
|
57
|
+
{ type: "itemReviewed", source_type: "review", target_type: "event", description: "The event this review evaluates." },
|
|
58
|
+
{ type: "itemReviewed", source_type: "review", target_type: "product", description: "The tool, device, or product this review evaluates." },
|
|
59
|
+
{ type: "owns", source_type: "person", target_type: "product", description: "Item owned by the person (electronics, vehicles, etc.)." },
|
|
60
|
+
// Software-org edges (12, new)
|
|
61
|
+
{ type: "dependsOn", source_type: "software_application", target_type: "service", description: "This software application depends on this service." },
|
|
62
|
+
{ type: "specifies", source_type: "design_spec", target_type: "software_application", description: "Spec is about this software application." },
|
|
63
|
+
{ type: "specifies", source_type: "design_spec", target_type: "service", description: "Spec is about this service." },
|
|
64
|
+
{ type: "documents", source_type: "procedure", target_type: "software_application", description: "Procedure applies to this software application." },
|
|
65
|
+
{ type: "documents", source_type: "procedure", target_type: "service", description: "Procedure applies to this service." },
|
|
66
|
+
{ type: "handoffFor", source_type: "handoff", target_type: "software_application", description: "Handoff is for this software application." },
|
|
67
|
+
{ type: "handoffFor", source_type: "handoff", target_type: "service", description: "Handoff is for this service." },
|
|
68
|
+
// One row covers every creativework subtype on both sides: matching is
|
|
69
|
+
// parent-aware on source and target alike, exact-first (D6).
|
|
70
|
+
{ type: "supersedes", source_type: "creativework", target_type: "creativework", description: "This document replaces an older one." },
|
|
71
|
+
{ type: "hasRole", source_type: "person", target_type: "role", description: "Person fills this role." },
|
|
72
|
+
{ type: "operates", source_type: "role", target_type: "software_application", description: "Role operates this software application." },
|
|
73
|
+
{ type: "provides", source_type: "organization", target_type: "service", description: "Organization provides this service." },
|
|
74
|
+
{ type: "maintains", source_type: "person", target_type: "software_application", description: "Person maintains this software application." }
|
|
75
|
+
]
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
exports.schemaSoftwareOrgManifest = schemaSoftwareOrgManifest;
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAmBO,IAAM,yBAAA,GAA8C;AAAA,EACzD,UAAA,EAAY;AAAA;AAAA;AAAA,IAGV,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;AAAA;AAAA,IAG7O,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,uRAAA,EAAwR;AAAA;AAAA,IAExT,EAAE,IAAA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AA,EAA2C;AAAA,IAC9I,EAAE,MAAM,WAAA,EAAa,WAAA,EAAa,eAAe,WAAA,EAAa,SAAA,EAAW,aAAa,6BAAA,EAA8B;AAAA,IACpH,EAAE,MAAM,WAAA,EAAa,WAAA,EAAa,aAAa,WAAA,EAAa,sBAAA,EAAwB,aAAa,iDAAA,EAAkD;AAAA,IACnJ,EAAE,MAAM,WAAA,EAAa,WAAA,EAAa,aAAa,WAAA,EAAa,SAAA,EAAW,aAAa,oCAAA,EAAqC;AAAA,IACzH,EAAE,MAAM,YAAA,EAAc,WAAA,EAAa,WAAW,WAAA,EAAa,sBAAA,EAAwB,aAAa,2CAAA,EAA4C;AAAA,IAC5I,EAAE,MAAM,YAAA,EAAc,WAAA,EAAa,WAAW,WAAA,EAAa,SAAA,EAAW,aAAa,8BAAA,EAA+B;AAAA;AAAA;AAAA,IAGlH,EAAE,MAAM,YAAA,EAAc,WAAA,EAAa,gBAAgB,WAAA,EAAa,cAAA,EAAgB,aAAa,sCAAA,EAAuC;AAAA,IACpI,EAAE,MAAM,SAAA,EAAW,WAAA,EAAa,UAAU,WAAA,EAAa,MAAA,EAAQ,aAAa,yBAAA,EAA0B;AAAA,IACtG,EAAE,MAAM,UAAA,EAAY,WAAA,EAAa,QAAQ,WAAA,EAAa,sBAAA,EAAwB,aAAa,0CAAA,EAA2C;AAAA,IACtI,EAAE,MAAM,UAAA,EAAY,WAAA,EAAa,gBAAgB,WAAA,EAAa,SAAA,EAAW,aAAa,qCAAA,EAAsC;AAAA,IAC5H,EAAE,MAAM,WAAA,EAAa,WAAA,EAAa,UAAU,WAAA,EAAa,sBAAA,EAAwB,aAAa,6CAAA;AAA8C;AAEhJ","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 * Custom minimal ontology for an executive agent operating on behalf of a\n * software organization: 17 node types, 40 edges. Superset of the warm-agent\n * manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied\n * verbatim (D2) — with one deliberate override on `product` (D8) — plus 3\n * software-org base types, 5 `creativework` subtypes, and 12 new edges.\n *\n * Properties live in the description strings (D3): `buildPromptContext`\n * JSON-serializes the manifest into the classification prompt, so description\n * text reaches the model verbatim and no core change is needed. There is no\n * property inheritance (D4) — every subtype lists its own complete set.\n *\n * The text is organization-neutral: it says \"the organization\", never a\n * specific company, so any software org can adopt it unmodified.\n */\nexport const schemaSoftwareOrgManifest: OntologyManifest = {\n node_types: [\n // Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.\n // Do not abridge: descriptions are the classification signal (D2/D3).\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 // D8: intentional divergence from the warm-agent original — the upstream\n // row claims \"and software\", which pulls the org's own repositories here.\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service.' },\n // Software-org base types (no parent_type, no children — D5)\n { type: 'software_application', description: 'Software the organization itself builds, ships, or maintains — its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev).' },\n { type: 'service', description: \"A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional).\" },\n { type: 'role', description: 'A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities.' },\n // Software-org concrete types (one level under creativework)\n { type: 'design_spec', parent_type: 'creativework', description: 'A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch.' },\n { type: 'handoff', parent_type: 'creativework', description: 'An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items.' },\n { type: 'procedure', parent_type: 'creativework', description: 'A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug).' },\n { type: 'session_recap', parent_type: 'creativework', description: 'A dated recap of one working session. Use only for session records — ordinary facts are not memories. Expected frontmatter properties: session_date, key_decisions (comma-separated list).' },\n { type: 'reference_doc', parent_type: 'creativework', description: 'A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug).' },\n ],\n edge_types: [\n // Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).\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 // Software-org edges (12, new)\n { type: 'dependsOn', source_type: 'software_application', target_type: 'service', description: 'This software application depends on this service.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'software_application', description: 'Spec is about this software application.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'service', description: 'Spec is about this service.' },\n { type: 'documents', source_type: 'procedure', target_type: 'software_application', description: 'Procedure applies to this software application.' },\n { type: 'documents', source_type: 'procedure', target_type: 'service', description: 'Procedure applies to this service.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'software_application', description: 'Handoff is for this software application.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'service', description: 'Handoff is for this service.' },\n // One row covers every creativework subtype on both sides: matching is\n // parent-aware on source and target alike, exact-first (D6).\n { type: 'supersedes', source_type: 'creativework', target_type: 'creativework', description: 'This document replaces an older one.' },\n { type: 'hasRole', source_type: 'person', target_type: 'role', description: 'Person fills this role.' },\n { type: 'operates', source_type: 'role', target_type: 'software_application', description: 'Role operates this software application.' },\n { type: 'provides', source_type: 'organization', target_type: 'service', description: 'Organization provides this service.' },\n { type: 'maintains', source_type: 'person', target_type: 'software_application', description: 'Person maintains this software application.' },\n ],\n};\n"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var schemaSoftwareOrgManifest = {
|
|
3
|
+
node_types: [
|
|
4
|
+
// Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.
|
|
5
|
+
// Do not abridge: descriptions are the classification signal (D2/D3).
|
|
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
|
+
// D8: intentional divergence from the warm-agent original — the upstream
|
|
15
|
+
// row claims "and software", which pulls the org's own repositories here.
|
|
16
|
+
{ type: "product", description: "A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service." },
|
|
17
|
+
// Software-org base types (no parent_type, no children — D5)
|
|
18
|
+
{ type: "software_application", description: "Software the organization itself builds, ships, or maintains \u2014 its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev)." },
|
|
19
|
+
{ type: "service", description: "A running hosted capability the organization consumes or operates, vendor-run or self-run \u2014 databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional)." },
|
|
20
|
+
{ type: "role", description: "A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities." },
|
|
21
|
+
// Software-org concrete types (one level under creativework)
|
|
22
|
+
{ type: "design_spec", parent_type: "creativework", description: "A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch." },
|
|
23
|
+
{ type: "handoff", parent_type: "creativework", description: "An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items." },
|
|
24
|
+
{ type: "procedure", parent_type: "creativework", description: "A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug)." },
|
|
25
|
+
{ type: "session_recap", parent_type: "creativework", description: "A dated recap of one working session. Use only for session records \u2014 ordinary facts are not memories. Expected frontmatter properties: session_date, key_decisions (comma-separated list)." },
|
|
26
|
+
{ type: "reference_doc", parent_type: "creativework", description: "A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug)." }
|
|
27
|
+
],
|
|
28
|
+
edge_types: [
|
|
29
|
+
// Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).
|
|
30
|
+
{ type: "knows", source_type: "person", target_type: "person", description: "Friendship, acquaintance, or general connection between two people." },
|
|
31
|
+
{ type: "spouse", source_type: "person", target_type: "person", description: "Spousal or long-term partner relationship." },
|
|
32
|
+
{ type: "parent", source_type: "person", target_type: "person", description: "A parent of this person: the source is the child, the target is the parent." },
|
|
33
|
+
{ type: "worksFor", source_type: "person", target_type: "organization", description: "Employment or primary professional affiliation." },
|
|
34
|
+
{ type: "memberOf", source_type: "person", target_type: "organization", description: "Membership in clubs, associations, or communities." },
|
|
35
|
+
{ type: "homeLocation", source_type: "person", target_type: "place", description: "Primary residence." },
|
|
36
|
+
{ type: "workLocation", source_type: "person", target_type: "place", description: "Workplace or primary work location." },
|
|
37
|
+
{ type: "location", source_type: "event", target_type: "place", description: "Venue or geographic location of an event." },
|
|
38
|
+
{ type: "location", source_type: "organization", target_type: "place", description: "Physical headquarters or primary location." },
|
|
39
|
+
{ 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)." },
|
|
40
|
+
{ type: "subOrganization", source_type: "project", target_type: "project", description: "Nested project hierarchy: the target is a sub-project contained in the source project." },
|
|
41
|
+
{ type: "object", source_type: "action", target_type: "project", description: "Project this task belongs to; the object the action advances." },
|
|
42
|
+
{ type: "agent", source_type: "action", target_type: "person", description: "Person responsible for or performing the action." },
|
|
43
|
+
{ type: "attendee", source_type: "event", target_type: "person", description: "Person attending or participating in the event." },
|
|
44
|
+
{ type: "organizer", source_type: "event", target_type: "person", description: "Person who organized the event." },
|
|
45
|
+
{ type: "organizer", source_type: "event", target_type: "organization", description: "Organization hosting the event." },
|
|
46
|
+
{ type: "author", source_type: "creativework", target_type: "person", description: "Author, creator, artist, or filmmaker." },
|
|
47
|
+
{ type: "publisher", source_type: "creativework", target_type: "organization", description: "Publisher, platform, studio, or distributor." },
|
|
48
|
+
{ type: "about", source_type: "creativework", target_type: "person", description: "Content centered on a specific person." },
|
|
49
|
+
{ type: "about", source_type: "creativework", target_type: "organization", description: "Content centered on a company, institution, or group." },
|
|
50
|
+
{ type: "about", source_type: "creativework", target_type: "place", description: "Content centered on a location (travel guide, history)." },
|
|
51
|
+
{ type: "about", source_type: "creativework", target_type: "event", description: "Content centered on an event (documentary, article)." },
|
|
52
|
+
{ type: "itemReviewed", source_type: "review", target_type: "creativework", description: "The book, movie, article, or other work this review evaluates." },
|
|
53
|
+
{ type: "itemReviewed", source_type: "review", target_type: "organization", description: "The business, restaurant, or institution this review evaluates." },
|
|
54
|
+
{ type: "itemReviewed", source_type: "review", target_type: "place", description: "The venue, park, or location this review evaluates." },
|
|
55
|
+
{ type: "itemReviewed", source_type: "review", target_type: "event", description: "The event this review evaluates." },
|
|
56
|
+
{ type: "itemReviewed", source_type: "review", target_type: "product", description: "The tool, device, or product this review evaluates." },
|
|
57
|
+
{ type: "owns", source_type: "person", target_type: "product", description: "Item owned by the person (electronics, vehicles, etc.)." },
|
|
58
|
+
// Software-org edges (12, new)
|
|
59
|
+
{ type: "dependsOn", source_type: "software_application", target_type: "service", description: "This software application depends on this service." },
|
|
60
|
+
{ type: "specifies", source_type: "design_spec", target_type: "software_application", description: "Spec is about this software application." },
|
|
61
|
+
{ type: "specifies", source_type: "design_spec", target_type: "service", description: "Spec is about this service." },
|
|
62
|
+
{ type: "documents", source_type: "procedure", target_type: "software_application", description: "Procedure applies to this software application." },
|
|
63
|
+
{ type: "documents", source_type: "procedure", target_type: "service", description: "Procedure applies to this service." },
|
|
64
|
+
{ type: "handoffFor", source_type: "handoff", target_type: "software_application", description: "Handoff is for this software application." },
|
|
65
|
+
{ type: "handoffFor", source_type: "handoff", target_type: "service", description: "Handoff is for this service." },
|
|
66
|
+
// One row covers every creativework subtype on both sides: matching is
|
|
67
|
+
// parent-aware on source and target alike, exact-first (D6).
|
|
68
|
+
{ type: "supersedes", source_type: "creativework", target_type: "creativework", description: "This document replaces an older one." },
|
|
69
|
+
{ type: "hasRole", source_type: "person", target_type: "role", description: "Person fills this role." },
|
|
70
|
+
{ type: "operates", source_type: "role", target_type: "software_application", description: "Role operates this software application." },
|
|
71
|
+
{ type: "provides", source_type: "organization", target_type: "service", description: "Organization provides this service." },
|
|
72
|
+
{ type: "maintains", source_type: "person", target_type: "software_application", description: "Person maintains this software application." }
|
|
73
|
+
]
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export { schemaSoftwareOrgManifest };
|
|
77
|
+
//# sourceMappingURL=index.mjs.map
|
|
78
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAmBO,IAAM,yBAAA,GAA8C;AAAA,EACzD,UAAA,EAAY;AAAA;AAAA;AAAA,IAGV,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,E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AA,EAAa,gBAAgB,WAAA,EAAa,SAAA,EAAW,aAAa,qCAAA,EAAsC;AAAA,IAC5H,EAAE,MAAM,WAAA,EAAa,WAAA,EAAa,UAAU,WAAA,EAAa,sBAAA,EAAwB,aAAa,6CAAA;AAA8C;AAEhJ","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 * Custom minimal ontology for an executive agent operating on behalf of a\n * software organization: 17 node types, 40 edges. Superset of the warm-agent\n * manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied\n * verbatim (D2) — with one deliberate override on `product` (D8) — plus 3\n * software-org base types, 5 `creativework` subtypes, and 12 new edges.\n *\n * Properties live in the description strings (D3): `buildPromptContext`\n * JSON-serializes the manifest into the classification prompt, so description\n * text reaches the model verbatim and no core change is needed. There is no\n * property inheritance (D4) — every subtype lists its own complete set.\n *\n * The text is organization-neutral: it says \"the organization\", never a\n * specific company, so any software org can adopt it unmodified.\n */\nexport const schemaSoftwareOrgManifest: OntologyManifest = {\n node_types: [\n // Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.\n // Do not abridge: descriptions are the classification signal (D2/D3).\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 // D8: intentional divergence from the warm-agent original — the upstream\n // row claims \"and software\", which pulls the org's own repositories here.\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service.' },\n // Software-org base types (no parent_type, no children — D5)\n { type: 'software_application', description: 'Software the organization itself builds, ships, or maintains — its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev).' },\n { type: 'service', description: \"A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional).\" },\n { type: 'role', description: 'A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities.' },\n // Software-org concrete types (one level under creativework)\n { type: 'design_spec', parent_type: 'creativework', description: 'A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch.' },\n { type: 'handoff', parent_type: 'creativework', description: 'An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items.' },\n { type: 'procedure', parent_type: 'creativework', description: 'A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug).' },\n { type: 'session_recap', parent_type: 'creativework', description: 'A dated recap of one working session. Use only for session records — ordinary facts are not memories. Expected frontmatter properties: session_date, key_decisions (comma-separated list).' },\n { type: 'reference_doc', parent_type: 'creativework', description: 'A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug).' },\n ],\n edge_types: [\n // Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).\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 // Software-org edges (12, new)\n { type: 'dependsOn', source_type: 'software_application', target_type: 'service', description: 'This software application depends on this service.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'software_application', description: 'Spec is about this software application.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'service', description: 'Spec is about this service.' },\n { type: 'documents', source_type: 'procedure', target_type: 'software_application', description: 'Procedure applies to this software application.' },\n { type: 'documents', source_type: 'procedure', target_type: 'service', description: 'Procedure applies to this service.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'software_application', description: 'Handoff is for this software application.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'service', description: 'Handoff is for this service.' },\n // One row covers every creativework subtype on both sides: matching is\n // parent-aware on source and target alike, exact-first (D6).\n { type: 'supersedes', source_type: 'creativework', target_type: 'creativework', description: 'This document replaces an older one.' },\n { type: 'hasRole', source_type: 'person', target_type: 'role', description: 'Person fills this role.' },\n { type: 'operates', source_type: 'role', target_type: 'software_application', description: 'Role operates this software application.' },\n { type: 'provides', source_type: 'organization', target_type: 'service', description: 'Organization provides this service.' },\n { type: 'maintains', source_type: 'person', target_type: 'software_application', description: 'Person maintains this software application.' },\n ],\n};\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@equationalapplications/schema-software-org",
|
|
3
|
+
"version": "6.2.0",
|
|
4
|
+
"description": "Custom minimal ontology manifest for an executive agent operating on behalf of a software organization: 17 node types, 40 edges, warm-agent superset. 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
|
+
"scripts": {
|
|
16
|
+
"build": "tsup",
|
|
17
|
+
"dev": "tsup --watch",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"test:watch": "vitest"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"ontology",
|
|
30
|
+
"knowledge-graph",
|
|
31
|
+
"llm-memory",
|
|
32
|
+
"ai-memory",
|
|
33
|
+
"software-organization",
|
|
34
|
+
"codemeta",
|
|
35
|
+
"typescript"
|
|
36
|
+
],
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/equationalapplications/expo-llm-wiki.git",
|
|
40
|
+
"directory": "packages/schema-software-org"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/equationalapplications/expo-llm-wiki/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/equationalapplications/expo-llm-wiki/tree/main/packages/schema-software-org#readme",
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public",
|
|
48
|
+
"registry": "https://registry.npmjs.org"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@equationalapplications/core-llm-wiki": "workspace:*"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=20"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@equationalapplications/schema-org-llm-wiki": "workspace:*",
|
|
58
|
+
"tsup": "^8.5.1",
|
|
59
|
+
"typescript": "^5.9.3",
|
|
60
|
+
"vitest": "4.1.5"
|
|
61
|
+
}
|
|
62
|
+
}
|