@medicine-wheel/ontology-core 0.2.2
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/README.md +93 -0
- package/dist/constants.d.ts +28 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +152 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +109 -0
- package/dist/index.js.map +1 -0
- package/dist/queries.d.ts +88 -0
- package/dist/queries.d.ts.map +1 -0
- package/dist/queries.js +218 -0
- package/dist/queries.js.map +1 -0
- package/dist/schemas.d.ts +697 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +193 -0
- package/dist/schemas.js.map +1 -0
- package/dist/types.d.ts +363 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +13 -0
- package/dist/types.js.map +1 -0
- package/dist/vocabulary.d.ts +143 -0
- package/dist/vocabulary.d.ts.map +1 -0
- package/dist/vocabulary.js +185 -0
- package/dist/vocabulary.js.map +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @medicine-wheel/ontology-core — RDF Vocabulary
|
|
3
|
+
*
|
|
4
|
+
* Namespace IRIs and predicate constants for Medicine Wheel concepts,
|
|
5
|
+
* bridging Indigenous relational ontology with semantic web standards.
|
|
6
|
+
*
|
|
7
|
+
* Namespaces:
|
|
8
|
+
* mw: — Medicine Wheel core concepts
|
|
9
|
+
* ids: — Indigenous Data Sovereignty
|
|
10
|
+
* ocap: — OCAP® (Ownership, Control, Access, Possession)
|
|
11
|
+
* rel: — Relational accountability (Wilson)
|
|
12
|
+
* cer: — Ceremony and protocol
|
|
13
|
+
*/
|
|
14
|
+
export declare const MW_NS: "https://ontology.medicine-wheel.dev/mw#";
|
|
15
|
+
export declare const IDS_NS: "https://ontology.medicine-wheel.dev/ids#";
|
|
16
|
+
export declare const OCAP_NS: "https://ontology.medicine-wheel.dev/ocap#";
|
|
17
|
+
export declare const REL_NS: "https://ontology.medicine-wheel.dev/rel#";
|
|
18
|
+
export declare const CER_NS: "https://ontology.medicine-wheel.dev/cer#";
|
|
19
|
+
export declare const BEAT_NS: "https://ontology.medicine-wheel.dev/beat#";
|
|
20
|
+
export declare const RDF_NS: "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
|
|
21
|
+
export declare const RDFS_NS: "http://www.w3.org/2000/01/rdf-schema#";
|
|
22
|
+
export declare const OWL_NS: "http://www.w3.org/2002/07/owl#";
|
|
23
|
+
export declare const SKOS_NS: "http://www.w3.org/2004/02/skos/core#";
|
|
24
|
+
export declare const PROV_NS: "http://www.w3.org/ns/prov#";
|
|
25
|
+
export declare const SHACL_NS: "http://www.w3.org/ns/shacl#";
|
|
26
|
+
export declare const PREFIXES: {
|
|
27
|
+
readonly mw: "https://ontology.medicine-wheel.dev/mw#";
|
|
28
|
+
readonly ids: "https://ontology.medicine-wheel.dev/ids#";
|
|
29
|
+
readonly ocap: "https://ontology.medicine-wheel.dev/ocap#";
|
|
30
|
+
readonly rel: "https://ontology.medicine-wheel.dev/rel#";
|
|
31
|
+
readonly cer: "https://ontology.medicine-wheel.dev/cer#";
|
|
32
|
+
readonly beat: "https://ontology.medicine-wheel.dev/beat#";
|
|
33
|
+
readonly rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
|
|
34
|
+
readonly rdfs: "http://www.w3.org/2000/01/rdf-schema#";
|
|
35
|
+
readonly owl: "http://www.w3.org/2002/07/owl#";
|
|
36
|
+
readonly skos: "http://www.w3.org/2004/02/skos/core#";
|
|
37
|
+
readonly prov: "http://www.w3.org/ns/prov#";
|
|
38
|
+
readonly sh: "http://www.w3.org/ns/shacl#";
|
|
39
|
+
};
|
|
40
|
+
export declare const MW: {
|
|
41
|
+
readonly Direction: "https://ontology.medicine-wheel.dev/mw#Direction";
|
|
42
|
+
readonly East: "https://ontology.medicine-wheel.dev/mw#East";
|
|
43
|
+
readonly South: "https://ontology.medicine-wheel.dev/mw#South";
|
|
44
|
+
readonly West: "https://ontology.medicine-wheel.dev/mw#West";
|
|
45
|
+
readonly North: "https://ontology.medicine-wheel.dev/mw#North";
|
|
46
|
+
readonly RelationalNode: "https://ontology.medicine-wheel.dev/mw#RelationalNode";
|
|
47
|
+
readonly RelationalEdge: "https://ontology.medicine-wheel.dev/mw#RelationalEdge";
|
|
48
|
+
readonly Relation: "https://ontology.medicine-wheel.dev/mw#Relation";
|
|
49
|
+
readonly NarrativeBeat: "https://ontology.medicine-wheel.dev/mw#NarrativeBeat";
|
|
50
|
+
readonly MedicineWheelCycle: "https://ontology.medicine-wheel.dev/mw#MedicineWheelCycle";
|
|
51
|
+
readonly StructuralTensionChart: "https://ontology.medicine-wheel.dev/mw#StructuralTensionChart";
|
|
52
|
+
readonly Human: "https://ontology.medicine-wheel.dev/mw#Human";
|
|
53
|
+
readonly Land: "https://ontology.medicine-wheel.dev/mw#Land";
|
|
54
|
+
readonly Spirit: "https://ontology.medicine-wheel.dev/mw#Spirit";
|
|
55
|
+
readonly Ancestor: "https://ontology.medicine-wheel.dev/mw#Ancestor";
|
|
56
|
+
readonly Future: "https://ontology.medicine-wheel.dev/mw#Future";
|
|
57
|
+
readonly Knowledge: "https://ontology.medicine-wheel.dev/mw#Knowledge";
|
|
58
|
+
readonly direction: "https://ontology.medicine-wheel.dev/mw#direction";
|
|
59
|
+
readonly ojibweName: "https://ontology.medicine-wheel.dev/mw#ojibweName";
|
|
60
|
+
readonly season: "https://ontology.medicine-wheel.dev/mw#season";
|
|
61
|
+
readonly lifeStage: "https://ontology.medicine-wheel.dev/mw#lifeStage";
|
|
62
|
+
readonly ages: "https://ontology.medicine-wheel.dev/mw#ages";
|
|
63
|
+
readonly medicine: "https://ontology.medicine-wheel.dev/mw#medicine";
|
|
64
|
+
readonly teaching: "https://ontology.medicine-wheel.dev/mw#teaching";
|
|
65
|
+
readonly practice: "https://ontology.medicine-wheel.dev/mw#practice";
|
|
66
|
+
readonly act: "https://ontology.medicine-wheel.dev/mw#act";
|
|
67
|
+
readonly color: "https://ontology.medicine-wheel.dev/mw#color";
|
|
68
|
+
readonly nodeType: "https://ontology.medicine-wheel.dev/mw#nodeType";
|
|
69
|
+
readonly strength: "https://ontology.medicine-wheel.dev/mw#strength";
|
|
70
|
+
readonly wilsonAlignment: "https://ontology.medicine-wheel.dev/mw#wilsonAlignment";
|
|
71
|
+
readonly desiredOutcome: "https://ontology.medicine-wheel.dev/mw#desiredOutcome";
|
|
72
|
+
readonly currentReality: "https://ontology.medicine-wheel.dev/mw#currentReality";
|
|
73
|
+
readonly actionStep: "https://ontology.medicine-wheel.dev/mw#actionStep";
|
|
74
|
+
readonly tensionPhase: "https://ontology.medicine-wheel.dev/mw#tensionPhase";
|
|
75
|
+
};
|
|
76
|
+
export declare const CER: {
|
|
77
|
+
readonly Ceremony: "https://ontology.medicine-wheel.dev/cer#Ceremony";
|
|
78
|
+
readonly Smudging: "https://ontology.medicine-wheel.dev/cer#Smudging";
|
|
79
|
+
readonly TalkingCircle: "https://ontology.medicine-wheel.dev/cer#TalkingCircle";
|
|
80
|
+
readonly SpiritFeeding: "https://ontology.medicine-wheel.dev/cer#SpiritFeeding";
|
|
81
|
+
readonly Opening: "https://ontology.medicine-wheel.dev/cer#Opening";
|
|
82
|
+
readonly Closing: "https://ontology.medicine-wheel.dev/cer#Closing";
|
|
83
|
+
readonly ceremonyType: "https://ontology.medicine-wheel.dev/cer#ceremonyType";
|
|
84
|
+
readonly participant: "https://ontology.medicine-wheel.dev/cer#participant";
|
|
85
|
+
readonly medicineUsed: "https://ontology.medicine-wheel.dev/cer#medicineUsed";
|
|
86
|
+
readonly intention: "https://ontology.medicine-wheel.dev/cer#intention";
|
|
87
|
+
readonly researchContext: "https://ontology.medicine-wheel.dev/cer#researchContext";
|
|
88
|
+
readonly ceremonyHonored: "https://ontology.medicine-wheel.dev/cer#ceremonyHonored";
|
|
89
|
+
};
|
|
90
|
+
export declare const OCAP: {
|
|
91
|
+
readonly OcapPolicy: "https://ontology.medicine-wheel.dev/ocap#OcapPolicy";
|
|
92
|
+
readonly ownership: "https://ontology.medicine-wheel.dev/ocap#ownership";
|
|
93
|
+
readonly control: "https://ontology.medicine-wheel.dev/ocap#control";
|
|
94
|
+
readonly access: "https://ontology.medicine-wheel.dev/ocap#access";
|
|
95
|
+
readonly possession: "https://ontology.medicine-wheel.dev/ocap#possession";
|
|
96
|
+
readonly compliant: "https://ontology.medicine-wheel.dev/ocap#compliant";
|
|
97
|
+
readonly steward: "https://ontology.medicine-wheel.dev/ocap#steward";
|
|
98
|
+
readonly consentGiven: "https://ontology.medicine-wheel.dev/ocap#consentGiven";
|
|
99
|
+
readonly consentScope: "https://ontology.medicine-wheel.dev/ocap#consentScope";
|
|
100
|
+
readonly dataLocation: "https://ontology.medicine-wheel.dev/ocap#dataLocation";
|
|
101
|
+
};
|
|
102
|
+
export declare const REL: {
|
|
103
|
+
readonly RelationalAccountability: "https://ontology.medicine-wheel.dev/rel#RelationalAccountability";
|
|
104
|
+
readonly respect: "https://ontology.medicine-wheel.dev/rel#respect";
|
|
105
|
+
readonly reciprocity: "https://ontology.medicine-wheel.dev/rel#reciprocity";
|
|
106
|
+
readonly responsibility: "https://ontology.medicine-wheel.dev/rel#responsibility";
|
|
107
|
+
readonly obligationCategory: "https://ontology.medicine-wheel.dev/rel#obligationCategory";
|
|
108
|
+
readonly humanObligation: "https://ontology.medicine-wheel.dev/rel#humanObligation";
|
|
109
|
+
readonly landObligation: "https://ontology.medicine-wheel.dev/rel#landObligation";
|
|
110
|
+
readonly spiritObligation: "https://ontology.medicine-wheel.dev/rel#spiritObligation";
|
|
111
|
+
readonly futureObligation: "https://ontology.medicine-wheel.dev/rel#futureObligation";
|
|
112
|
+
readonly relationsHonored: "https://ontology.medicine-wheel.dev/rel#relationsHonored";
|
|
113
|
+
readonly accountabilityScore: "https://ontology.medicine-wheel.dev/rel#accountabilityScore";
|
|
114
|
+
};
|
|
115
|
+
export declare const IDS: {
|
|
116
|
+
readonly DataSovereigntyPolicy: "https://ontology.medicine-wheel.dev/ids#DataSovereigntyPolicy";
|
|
117
|
+
readonly communityAuthority: "https://ontology.medicine-wheel.dev/ids#communityAuthority";
|
|
118
|
+
readonly treatyRelationship: "https://ontology.medicine-wheel.dev/ids#treatyRelationship";
|
|
119
|
+
readonly territorialScope: "https://ontology.medicine-wheel.dev/ids#territorialScope";
|
|
120
|
+
readonly protocolReference: "https://ontology.medicine-wheel.dev/ids#protocolReference";
|
|
121
|
+
};
|
|
122
|
+
export declare const BEAT: {
|
|
123
|
+
readonly Beat: "https://ontology.medicine-wheel.dev/beat#Beat";
|
|
124
|
+
readonly Arc: "https://ontology.medicine-wheel.dev/beat#Arc";
|
|
125
|
+
readonly title: "https://ontology.medicine-wheel.dev/beat#title";
|
|
126
|
+
readonly description: "https://ontology.medicine-wheel.dev/beat#description";
|
|
127
|
+
readonly prose: "https://ontology.medicine-wheel.dev/beat#prose";
|
|
128
|
+
readonly learning: "https://ontology.medicine-wheel.dev/beat#learning";
|
|
129
|
+
readonly relationsHonored: "https://ontology.medicine-wheel.dev/beat#relationsHonored";
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Generate a prefixed IRI string (e.g., "mw:Direction")
|
|
133
|
+
*/
|
|
134
|
+
export declare function prefixed(namespace: keyof typeof PREFIXES, localName: string): string;
|
|
135
|
+
/**
|
|
136
|
+
* Expand a prefixed IRI to full form (e.g., "mw:Direction" → full IRI)
|
|
137
|
+
*/
|
|
138
|
+
export declare function expandIRI(prefixedIRI: string): string;
|
|
139
|
+
/**
|
|
140
|
+
* Compact a full IRI to prefixed form if possible
|
|
141
|
+
*/
|
|
142
|
+
export declare function compactIRI(fullIRI: string): string;
|
|
143
|
+
//# sourceMappingURL=vocabulary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../src/vocabulary.ts"],"names":[],"mappings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
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @medicine-wheel/ontology-core — RDF Vocabulary
|
|
4
|
+
*
|
|
5
|
+
* Namespace IRIs and predicate constants for Medicine Wheel concepts,
|
|
6
|
+
* bridging Indigenous relational ontology with semantic web standards.
|
|
7
|
+
*
|
|
8
|
+
* Namespaces:
|
|
9
|
+
* mw: — Medicine Wheel core concepts
|
|
10
|
+
* ids: — Indigenous Data Sovereignty
|
|
11
|
+
* ocap: — OCAP® (Ownership, Control, Access, Possession)
|
|
12
|
+
* rel: — Relational accountability (Wilson)
|
|
13
|
+
* cer: — Ceremony and protocol
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BEAT = exports.IDS = exports.REL = exports.OCAP = exports.CER = exports.MW = exports.PREFIXES = exports.SHACL_NS = exports.PROV_NS = exports.SKOS_NS = exports.OWL_NS = exports.RDFS_NS = exports.RDF_NS = exports.BEAT_NS = exports.CER_NS = exports.REL_NS = exports.OCAP_NS = exports.IDS_NS = exports.MW_NS = void 0;
|
|
17
|
+
exports.prefixed = prefixed;
|
|
18
|
+
exports.expandIRI = expandIRI;
|
|
19
|
+
exports.compactIRI = compactIRI;
|
|
20
|
+
// ── Namespace IRIs ──────────────────────────────────────────────────────────
|
|
21
|
+
exports.MW_NS = 'https://ontology.medicine-wheel.dev/mw#';
|
|
22
|
+
exports.IDS_NS = 'https://ontology.medicine-wheel.dev/ids#';
|
|
23
|
+
exports.OCAP_NS = 'https://ontology.medicine-wheel.dev/ocap#';
|
|
24
|
+
exports.REL_NS = 'https://ontology.medicine-wheel.dev/rel#';
|
|
25
|
+
exports.CER_NS = 'https://ontology.medicine-wheel.dev/cer#';
|
|
26
|
+
exports.BEAT_NS = 'https://ontology.medicine-wheel.dev/beat#';
|
|
27
|
+
// Standard ontology namespaces for interop
|
|
28
|
+
exports.RDF_NS = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
|
|
29
|
+
exports.RDFS_NS = 'http://www.w3.org/2000/01/rdf-schema#';
|
|
30
|
+
exports.OWL_NS = 'http://www.w3.org/2002/07/owl#';
|
|
31
|
+
exports.SKOS_NS = 'http://www.w3.org/2004/02/skos/core#';
|
|
32
|
+
exports.PROV_NS = 'http://www.w3.org/ns/prov#';
|
|
33
|
+
exports.SHACL_NS = 'http://www.w3.org/ns/shacl#';
|
|
34
|
+
exports.PREFIXES = {
|
|
35
|
+
mw: exports.MW_NS,
|
|
36
|
+
ids: exports.IDS_NS,
|
|
37
|
+
ocap: exports.OCAP_NS,
|
|
38
|
+
rel: exports.REL_NS,
|
|
39
|
+
cer: exports.CER_NS,
|
|
40
|
+
beat: exports.BEAT_NS,
|
|
41
|
+
rdf: exports.RDF_NS,
|
|
42
|
+
rdfs: exports.RDFS_NS,
|
|
43
|
+
owl: exports.OWL_NS,
|
|
44
|
+
skos: exports.SKOS_NS,
|
|
45
|
+
prov: exports.PROV_NS,
|
|
46
|
+
sh: exports.SHACL_NS,
|
|
47
|
+
};
|
|
48
|
+
// ── Medicine Wheel Classes (mw:) ───────────────────────────────────────────
|
|
49
|
+
exports.MW = {
|
|
50
|
+
// Directions
|
|
51
|
+
Direction: `${exports.MW_NS}Direction`,
|
|
52
|
+
East: `${exports.MW_NS}East`,
|
|
53
|
+
South: `${exports.MW_NS}South`,
|
|
54
|
+
West: `${exports.MW_NS}West`,
|
|
55
|
+
North: `${exports.MW_NS}North`,
|
|
56
|
+
// Core entities
|
|
57
|
+
RelationalNode: `${exports.MW_NS}RelationalNode`,
|
|
58
|
+
RelationalEdge: `${exports.MW_NS}RelationalEdge`,
|
|
59
|
+
Relation: `${exports.MW_NS}Relation`,
|
|
60
|
+
NarrativeBeat: `${exports.MW_NS}NarrativeBeat`,
|
|
61
|
+
MedicineWheelCycle: `${exports.MW_NS}MedicineWheelCycle`,
|
|
62
|
+
StructuralTensionChart: `${exports.MW_NS}StructuralTensionChart`,
|
|
63
|
+
// Node types
|
|
64
|
+
Human: `${exports.MW_NS}Human`,
|
|
65
|
+
Land: `${exports.MW_NS}Land`,
|
|
66
|
+
Spirit: `${exports.MW_NS}Spirit`,
|
|
67
|
+
Ancestor: `${exports.MW_NS}Ancestor`,
|
|
68
|
+
Future: `${exports.MW_NS}Future`,
|
|
69
|
+
Knowledge: `${exports.MW_NS}Knowledge`,
|
|
70
|
+
// Properties
|
|
71
|
+
direction: `${exports.MW_NS}direction`,
|
|
72
|
+
ojibweName: `${exports.MW_NS}ojibweName`,
|
|
73
|
+
season: `${exports.MW_NS}season`,
|
|
74
|
+
lifeStage: `${exports.MW_NS}lifeStage`,
|
|
75
|
+
ages: `${exports.MW_NS}ages`,
|
|
76
|
+
medicine: `${exports.MW_NS}medicine`,
|
|
77
|
+
teaching: `${exports.MW_NS}teaching`,
|
|
78
|
+
practice: `${exports.MW_NS}practice`,
|
|
79
|
+
act: `${exports.MW_NS}act`,
|
|
80
|
+
color: `${exports.MW_NS}color`,
|
|
81
|
+
nodeType: `${exports.MW_NS}nodeType`,
|
|
82
|
+
strength: `${exports.MW_NS}strength`,
|
|
83
|
+
wilsonAlignment: `${exports.MW_NS}wilsonAlignment`,
|
|
84
|
+
// Structural tension
|
|
85
|
+
desiredOutcome: `${exports.MW_NS}desiredOutcome`,
|
|
86
|
+
currentReality: `${exports.MW_NS}currentReality`,
|
|
87
|
+
actionStep: `${exports.MW_NS}actionStep`,
|
|
88
|
+
tensionPhase: `${exports.MW_NS}tensionPhase`,
|
|
89
|
+
};
|
|
90
|
+
// ── Ceremony Classes (cer:) ────────────────────────────────────────────────
|
|
91
|
+
exports.CER = {
|
|
92
|
+
Ceremony: `${exports.CER_NS}Ceremony`,
|
|
93
|
+
Smudging: `${exports.CER_NS}Smudging`,
|
|
94
|
+
TalkingCircle: `${exports.CER_NS}TalkingCircle`,
|
|
95
|
+
SpiritFeeding: `${exports.CER_NS}SpiritFeeding`,
|
|
96
|
+
Opening: `${exports.CER_NS}Opening`,
|
|
97
|
+
Closing: `${exports.CER_NS}Closing`,
|
|
98
|
+
// Properties
|
|
99
|
+
ceremonyType: `${exports.CER_NS}ceremonyType`,
|
|
100
|
+
participant: `${exports.CER_NS}participant`,
|
|
101
|
+
medicineUsed: `${exports.CER_NS}medicineUsed`,
|
|
102
|
+
intention: `${exports.CER_NS}intention`,
|
|
103
|
+
researchContext: `${exports.CER_NS}researchContext`,
|
|
104
|
+
ceremonyHonored: `${exports.CER_NS}ceremonyHonored`,
|
|
105
|
+
};
|
|
106
|
+
// ── OCAP® Classes (ocap:) ─────────────────────────────────────────────────
|
|
107
|
+
exports.OCAP = {
|
|
108
|
+
OcapPolicy: `${exports.OCAP_NS}OcapPolicy`,
|
|
109
|
+
// The four OCAP® principles
|
|
110
|
+
ownership: `${exports.OCAP_NS}ownership`,
|
|
111
|
+
control: `${exports.OCAP_NS}control`,
|
|
112
|
+
access: `${exports.OCAP_NS}access`,
|
|
113
|
+
possession: `${exports.OCAP_NS}possession`,
|
|
114
|
+
// Governance
|
|
115
|
+
compliant: `${exports.OCAP_NS}compliant`,
|
|
116
|
+
steward: `${exports.OCAP_NS}steward`,
|
|
117
|
+
consentGiven: `${exports.OCAP_NS}consentGiven`,
|
|
118
|
+
consentScope: `${exports.OCAP_NS}consentScope`,
|
|
119
|
+
dataLocation: `${exports.OCAP_NS}dataLocation`,
|
|
120
|
+
};
|
|
121
|
+
// ── Relational Accountability (rel:) ───────────────────────────────────────
|
|
122
|
+
exports.REL = {
|
|
123
|
+
RelationalAccountability: `${exports.REL_NS}RelationalAccountability`,
|
|
124
|
+
// Wilson's three R's
|
|
125
|
+
respect: `${exports.REL_NS}respect`,
|
|
126
|
+
reciprocity: `${exports.REL_NS}reciprocity`,
|
|
127
|
+
responsibility: `${exports.REL_NS}responsibility`,
|
|
128
|
+
// Obligation categories
|
|
129
|
+
obligationCategory: `${exports.REL_NS}obligationCategory`,
|
|
130
|
+
humanObligation: `${exports.REL_NS}humanObligation`,
|
|
131
|
+
landObligation: `${exports.REL_NS}landObligation`,
|
|
132
|
+
spiritObligation: `${exports.REL_NS}spiritObligation`,
|
|
133
|
+
futureObligation: `${exports.REL_NS}futureObligation`,
|
|
134
|
+
// Tracking
|
|
135
|
+
relationsHonored: `${exports.REL_NS}relationsHonored`,
|
|
136
|
+
accountabilityScore: `${exports.REL_NS}accountabilityScore`,
|
|
137
|
+
};
|
|
138
|
+
// ── Indigenous Data Sovereignty (ids:) ─────────────────────────────────────
|
|
139
|
+
exports.IDS = {
|
|
140
|
+
DataSovereigntyPolicy: `${exports.IDS_NS}DataSovereigntyPolicy`,
|
|
141
|
+
// Governance
|
|
142
|
+
communityAuthority: `${exports.IDS_NS}communityAuthority`,
|
|
143
|
+
treatyRelationship: `${exports.IDS_NS}treatyRelationship`,
|
|
144
|
+
territorialScope: `${exports.IDS_NS}territorialScope`,
|
|
145
|
+
protocolReference: `${exports.IDS_NS}protocolReference`,
|
|
146
|
+
};
|
|
147
|
+
// ── Narrative Beats (beat:) ────────────────────────────────────────────────
|
|
148
|
+
exports.BEAT = {
|
|
149
|
+
Beat: `${exports.BEAT_NS}Beat`,
|
|
150
|
+
Arc: `${exports.BEAT_NS}Arc`,
|
|
151
|
+
// Properties
|
|
152
|
+
title: `${exports.BEAT_NS}title`,
|
|
153
|
+
description: `${exports.BEAT_NS}description`,
|
|
154
|
+
prose: `${exports.BEAT_NS}prose`,
|
|
155
|
+
learning: `${exports.BEAT_NS}learning`,
|
|
156
|
+
relationsHonored: `${exports.BEAT_NS}relationsHonored`,
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Generate a prefixed IRI string (e.g., "mw:Direction")
|
|
160
|
+
*/
|
|
161
|
+
function prefixed(namespace, localName) {
|
|
162
|
+
return `${namespace}:${localName}`;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Expand a prefixed IRI to full form (e.g., "mw:Direction" → full IRI)
|
|
166
|
+
*/
|
|
167
|
+
function expandIRI(prefixedIRI) {
|
|
168
|
+
const [prefix, local] = prefixedIRI.split(':');
|
|
169
|
+
const ns = exports.PREFIXES[prefix];
|
|
170
|
+
if (!ns)
|
|
171
|
+
throw new Error(`Unknown prefix: ${prefix}`);
|
|
172
|
+
return `${ns}${local}`;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Compact a full IRI to prefixed form if possible
|
|
176
|
+
*/
|
|
177
|
+
function compactIRI(fullIRI) {
|
|
178
|
+
for (const [prefix, ns] of Object.entries(exports.PREFIXES)) {
|
|
179
|
+
if (fullIRI.startsWith(ns)) {
|
|
180
|
+
return `${prefix}:${fullIRI.slice(ns.length)}`;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return fullIRI;
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=vocabulary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.js","sourceRoot":"","sources":["../src/vocabulary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AA2KH,4BAEC;AAKD,8BAKC;AAKD,gCAOC;AAjMD,+EAA+E;AAElE,QAAA,KAAK,GAAG,yCAAkD,CAAC;AAC3D,QAAA,MAAM,GAAG,0CAAmD,CAAC;AAC7D,QAAA,OAAO,GAAG,2CAAoD,CAAC;AAC/D,QAAA,MAAM,GAAG,0CAAmD,CAAC;AAC7D,QAAA,MAAM,GAAG,0CAAmD,CAAC;AAC7D,QAAA,OAAO,GAAG,2CAAoD,CAAC;AAE5E,2CAA2C;AAC9B,QAAA,MAAM,GAAG,6CAAsD,CAAC;AAChE,QAAA,OAAO,GAAG,uCAAgD,CAAC;AAC3D,QAAA,MAAM,GAAG,gCAAyC,CAAC;AACnD,QAAA,OAAO,GAAG,sCAA+C,CAAC;AAC1D,QAAA,OAAO,GAAG,4BAAqC,CAAC;AAChD,QAAA,QAAQ,GAAG,6BAAsC,CAAC;AAElD,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,aAAK;IACT,GAAG,EAAE,cAAM;IACX,IAAI,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tC,CAAC;AAEX;;GAEG;AACH,SAAgB,QAAQ,CAAC,SAAgC,EAAE,SAAiB;IAC1E,OAAO,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,SAAgB,SAAS,CAAC,WAAmB;IAC3C,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/C,MAAM,EAAE,GAAG,gBAAQ,CAAC,MAA+B,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,EAAE,CAAC,CAAC;IACtD,OAAO,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CAAC,OAAe;IACxC,KAAK,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAQ,CAAC,EAAE,CAAC;QACpD,IAAI,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;YAC3B,OAAO,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;QACjD,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@medicine-wheel/ontology-core",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Foundational ontology layer for the Medicine Wheel Developer Suite — unified types, RDF vocabulary, Zod schemas, and semantic query helpers grounded in Indigenous relational ontology",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./types": {
|
|
15
|
+
"import": "./dist/types.js",
|
|
16
|
+
"types": "./dist/types.d.ts",
|
|
17
|
+
"require": "./dist/types.js",
|
|
18
|
+
"default": "./dist/types.js"
|
|
19
|
+
},
|
|
20
|
+
"./schemas": {
|
|
21
|
+
"import": "./dist/schemas.js",
|
|
22
|
+
"types": "./dist/schemas.d.ts",
|
|
23
|
+
"require": "./dist/schemas.js",
|
|
24
|
+
"default": "./dist/schemas.js"
|
|
25
|
+
},
|
|
26
|
+
"./vocabulary": {
|
|
27
|
+
"import": "./dist/vocabulary.js",
|
|
28
|
+
"types": "./dist/vocabulary.d.ts",
|
|
29
|
+
"require": "./dist/vocabulary.js",
|
|
30
|
+
"default": "./dist/vocabulary.js"
|
|
31
|
+
},
|
|
32
|
+
"./constants": {
|
|
33
|
+
"import": "./dist/constants.js",
|
|
34
|
+
"types": "./dist/constants.d.ts",
|
|
35
|
+
"require": "./dist/constants.js",
|
|
36
|
+
"default": "./dist/constants.js"
|
|
37
|
+
},
|
|
38
|
+
"./queries": {
|
|
39
|
+
"import": "./dist/queries.js",
|
|
40
|
+
"types": "./dist/queries.d.ts",
|
|
41
|
+
"require": "./dist/queries.js",
|
|
42
|
+
"default": "./dist/queries.js"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"sideEffects": false,
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"README.md"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsc",
|
|
52
|
+
"dev": "tsc --watch",
|
|
53
|
+
"lint": "tsc --noEmit",
|
|
54
|
+
"clean": "rm -rf dist",
|
|
55
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
56
|
+
},
|
|
57
|
+
"keywords": [
|
|
58
|
+
"medicine-wheel",
|
|
59
|
+
"ontology",
|
|
60
|
+
"rdf",
|
|
61
|
+
"indigenous-research",
|
|
62
|
+
"relational-accountability",
|
|
63
|
+
"ocap",
|
|
64
|
+
"four-directions",
|
|
65
|
+
"shawn-wilson",
|
|
66
|
+
"semantic-web",
|
|
67
|
+
"zod"
|
|
68
|
+
],
|
|
69
|
+
"author": "IAIP Collaborative - Shawinigan, QC",
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"zod": "^3.23.0"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@types/node": "^20.10.0",
|
|
76
|
+
"typescript": "^5.3.0"
|
|
77
|
+
}
|
|
78
|
+
}
|