@faubulous/mentor-rdf 0.1.10 → 0.1.11

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.
@@ -1,5 +1,15 @@
1
1
  import * as n3 from "n3";
2
2
  import { ResourceRepository } from "./resource-repository";
3
+ interface PropertyRetrievalOptions {
4
+ /**
5
+ * A predicate that must be present on the returned properties.
6
+ */
7
+ predicate?: string;
8
+ /**
9
+ * An object value that must be present on the returned properties.
10
+ */
11
+ object?: string;
12
+ }
3
13
  /**
4
14
  * A repository for retrieving properties from graphs.
5
15
  */
@@ -13,51 +23,59 @@ export declare class PropertyRepository extends ResourceRepository {
13
23
  */
14
24
  rangePredicate: n3.NamedNode<"http://www.w3.org/2000/01/rdf-schema#range">;
15
25
  constructor(store: n3.Store);
26
+ private _skip;
16
27
  /**
17
28
  * Get all properties in the repository.
29
+ * @param options Optional options for retrieving properties.
18
30
  * @returns A list of all properties in the repository.
19
31
  */
20
- getProperties(): string[];
32
+ getProperties(options?: PropertyRetrievalOptions): string[];
21
33
  /**
22
34
  * Get the super properties of a given property.
23
35
  * @param subject URI of a property.
36
+ * @param options Optional options for retrieving properties.
24
37
  * @returns An array of super properties of the given property, an empty array if the property has no super properties.
25
38
  */
26
- getSuperProperties(subject: string): string[];
39
+ getSuperProperties(subject: string, options?: PropertyRetrievalOptions): string[];
27
40
  /**
28
41
  * Recursively find the first path from a given property to a root property.
29
42
  * @param subject URI of a property.
30
43
  * @param path The current property path.
31
44
  * @param backtrack Set of URIs that have already been visited.
45
+ * @param options Optional options for retrieving properties.
32
46
  * @returns The first path that is found from the given property to a root class.
33
47
  */
34
48
  private _getRootPropertyPath;
35
49
  /**
36
50
  * Get the first discovered path from a given property to a root property.
37
51
  * @param subject URI of a property.
52
+ * @param options Optional options for retrieving properties.
38
53
  * @returns A string array containing the first path that is found from the given property to a root property.
39
54
  */
40
- getRootPropertiesPath(subject: string): string[];
55
+ getRootPropertiesPath(subject: string, options?: PropertyRetrievalOptions): string[];
41
56
  /**
42
57
  * Indicate if there are sub properties of a given property.
43
58
  * @param subject URI of a property.
59
+ * @param options Optional options for retrieving properties.
44
60
  * @returns true if the property has sub properties, false otherwise.
45
61
  */
46
- hasSubProperties(subject: string): boolean;
62
+ hasSubProperties(subject: string, options?: PropertyRetrievalOptions): boolean;
47
63
  /**
48
64
  * Get the sub properties of a given property or all root properties.
49
65
  * @param subject URI of a property or undefined to get all root properties.
66
+ * @param options Optional options for retrieving properties.
50
67
  * @returns An array of sub properties of the given property, an empty array if the property has no sub properties.
51
68
  */
52
- getSubProperties(subject?: string): string[];
69
+ getSubProperties(subject?: string, options?: PropertyRetrievalOptions): string[];
53
70
  /**
54
71
  * Get all properties from the repository that have no super properties.
72
+ * @param options Optional options for retrieving properties.
55
73
  * @returns An array of root properties in the repository.
56
74
  */
57
- getRootProperties(): string[];
75
+ getRootProperties(options?: PropertyRetrievalOptions): string[];
58
76
  /**
59
77
  * Indicate if there is an equivalent property of a given property.
60
- * @param subject URI of a property.
78
+ * @param uri URI of a property.
61
79
  * @returns true if the property has an equivalent property, false otherwise.
62
80
  */
63
81
  hasEquivalentProperty(uri: string): boolean;
@@ -74,3 +92,4 @@ export declare class PropertyRepository extends ResourceRepository {
74
92
  */
75
93
  getRange(uri: string): string;
76
94
  }
95
+ export {};
@@ -20,15 +20,30 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
20
20
  */
21
21
  this.rangePredicate = ontologies_1.rdfs.range;
22
22
  }
23
+ _skip(node, options) {
24
+ if (node.termType != "NamedNode") {
25
+ return true;
26
+ }
27
+ if ((options === null || options === void 0 ? void 0 : options.predicate) || (options === null || options === void 0 ? void 0 : options.object)) {
28
+ const s = n3.DataFactory.namedNode(node.value);
29
+ const p = options.predicate ? n3.DataFactory.namedNode(options.predicate) : undefined;
30
+ const o = options.object ? n3.DataFactory.namedNode(options.object) : undefined;
31
+ if (this.store.match(s, p, o).size == 0) {
32
+ return true;
33
+ }
34
+ }
35
+ return false;
36
+ }
23
37
  /**
24
38
  * Get all properties in the repository.
39
+ * @param options Optional options for retrieving properties.
25
40
  * @returns A list of all properties in the repository.
26
41
  */
27
- getProperties() {
42
+ getProperties(options) {
28
43
  const result = new Set();
29
44
  for (let q of this.store.match(null, ontologies_1.rdf.type, ontologies_1.rdf.Property)) {
30
45
  const s = q.subject;
31
- if (s.termType != "NamedNode") {
46
+ if (this._skip(s, options)) {
32
47
  continue;
33
48
  }
34
49
  result.add(s.value);
@@ -38,9 +53,10 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
38
53
  /**
39
54
  * Get the super properties of a given property.
40
55
  * @param subject URI of a property.
56
+ * @param options Optional options for retrieving properties.
41
57
  * @returns An array of super properties of the given property, an empty array if the property has no super properties.
42
58
  */
43
- getSuperProperties(subject) {
59
+ getSuperProperties(subject, options) {
44
60
  const result = [];
45
61
  const s = n3.DataFactory.namedNode(subject);
46
62
  for (let q of this.store.match(s, ontologies_1.rdfs.subPropertyOf, null)) {
@@ -57,9 +73,10 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
57
73
  * @param subject URI of a property.
58
74
  * @param path The current property path.
59
75
  * @param backtrack Set of URIs that have already been visited.
76
+ * @param options Optional options for retrieving properties.
60
77
  * @returns The first path that is found from the given property to a root class.
61
78
  */
62
- _getRootPropertyPath(subject, path, backtrack) {
79
+ _getRootPropertyPath(subject, path, backtrack, options) {
63
80
  const superClasses = this.getSuperProperties(subject);
64
81
  for (let o of superClasses.filter(o => !backtrack.has(o))) {
65
82
  return this._getRootPropertyPath(o, [...path, o], backtrack);
@@ -69,17 +86,19 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
69
86
  /**
70
87
  * Get the first discovered path from a given property to a root property.
71
88
  * @param subject URI of a property.
89
+ * @param options Optional options for retrieving properties.
72
90
  * @returns A string array containing the first path that is found from the given property to a root property.
73
91
  */
74
- getRootPropertiesPath(subject) {
92
+ getRootPropertiesPath(subject, options) {
75
93
  return this._getRootPropertyPath(subject, [], new Set());
76
94
  }
77
95
  /**
78
96
  * Indicate if there are sub properties of a given property.
79
97
  * @param subject URI of a property.
98
+ * @param options Optional options for retrieving properties.
80
99
  * @returns true if the property has sub properties, false otherwise.
81
100
  */
82
- hasSubProperties(subject) {
101
+ hasSubProperties(subject, options) {
83
102
  const o = n3.DataFactory.namedNode(subject);
84
103
  for (let _q of this.store.match(null, ontologies_1.rdfs.subPropertyOf, o)) {
85
104
  return true;
@@ -89,9 +108,10 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
89
108
  /**
90
109
  * Get the sub properties of a given property or all root properties.
91
110
  * @param subject URI of a property or undefined to get all root properties.
111
+ * @param options Optional options for retrieving properties.
92
112
  * @returns An array of sub properties of the given property, an empty array if the property has no sub properties.
93
113
  */
94
- getSubProperties(subject) {
114
+ getSubProperties(subject, options) {
95
115
  if (subject) {
96
116
  const result = new Set();
97
117
  const o = n3.DataFactory.namedNode(subject);
@@ -110,9 +130,10 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
110
130
  }
111
131
  /**
112
132
  * Get all properties from the repository that have no super properties.
133
+ * @param options Optional options for retrieving properties.
113
134
  * @returns An array of root properties in the repository.
114
135
  */
115
- getRootProperties() {
136
+ getRootProperties(options) {
116
137
  const properties = new Set();
117
138
  const subproperties = new Set();
118
139
  for (let q of this.store.match(null, ontologies_1.rdf.type, ontologies_1.rdf.Property)) {
@@ -136,7 +157,7 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
136
157
  }
137
158
  /**
138
159
  * Indicate if there is an equivalent property of a given property.
139
- * @param subject URI of a property.
160
+ * @param uri URI of a property.
140
161
  * @returns true if the property has an equivalent property, false otherwise.
141
162
  */
142
163
  hasEquivalentProperty(uri) {
@@ -1 +1 @@
1
- {"version":3,"file":"property-repository.js","sourceRoot":"","sources":["../../src/rdf/property-repository.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,8CAA+C;AAC/C,+DAA2D;AAE3D;;GAEG;AACH,MAAa,kBAAmB,S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KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,EAAE;YAC7D,OAAO,IAAI,CAAC;SACf;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,GAAW;QACxB,MAAM,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QAExC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE;YAC3D,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;SACzB;QAED,OAAO,iBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,GAAW;QACvB,MAAM,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QAExC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EAAE;YAC1D,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;SACzB;QAED,OAAO,iBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;IAC/B,CAAC;CACJ;AAnOD,gDAmOC"}
@@ -1,9 +1,27 @@
1
1
  import * as n3 from "n3";
2
2
  import { RdfsReasoner } from "./rdfs-reasoner";
3
+ /**
4
+ * A restriction in OWL.
5
+ */
6
+ interface OwlRestriction {
7
+ onProperty?: n3.NamedNode;
8
+ cardinality?: number;
9
+ minCardinality?: number;
10
+ maxCardinality?: number;
11
+ qualifiedCardinality?: number;
12
+ onClass?: n3.NamedNode;
13
+ onDataRange?: n3.NamedNode;
14
+ }
3
15
  /**
4
16
  * A simple OWL reasoner that expands the graph with inferred triples.
5
17
  */
6
18
  export declare class OwlReasoner extends RdfsReasoner {
19
+ protected restrictions: {
20
+ [subject: string]: OwlRestriction;
21
+ };
22
+ constructor();
23
+ expand(store: n3.Store, sourceGraph: string | n3.Quad_Graph, targetGraph: string | n3.Quad_Graph): n3.Store;
7
24
  protected inferClassAxioms(store: n3.Store, targetGraph: n3.Quad_Graph, lists: Record<string, n3.Term[]>, quad: n3.Quad): void;
8
25
  protected inferPropertyAxioms(store: n3.Store, targetGraph: n3.Quad_Graph, lists: Record<string, n3.Term[]>, quad: n3.Quad): void;
9
26
  }
27
+ export {};
@@ -7,6 +7,27 @@ const rdfs_reasoner_1 = require("./rdfs-reasoner");
7
7
  * A simple OWL reasoner that expands the graph with inferred triples.
8
8
  */
9
9
  class OwlReasoner extends rdfs_reasoner_1.RdfsReasoner {
10
+ constructor() {
11
+ super();
12
+ this.restrictions = {};
13
+ }
14
+ expand(store, sourceGraph, targetGraph) {
15
+ this.restrictions = {};
16
+ super.expand(store, sourceGraph, targetGraph);
17
+ let t = this.getGraphNode(targetGraph);
18
+ for (let r of Object.values(this.restrictions)) {
19
+ const p = r.onProperty;
20
+ if (!p)
21
+ continue;
22
+ if (r.onDataRange) {
23
+ store.addQuad(p, ontologies_1.rdf.type, ontologies_1.owl.DatatypeProperty, t);
24
+ }
25
+ else if (r.onClass) {
26
+ store.addQuad(p, ontologies_1.rdf.type, ontologies_1.owl.ObjectProperty, t);
27
+ }
28
+ }
29
+ return store;
30
+ }
10
31
  inferClassAxioms(store, targetGraph, lists, quad) {
11
32
  super.inferClassAxioms(store, targetGraph, lists, quad);
12
33
  let s = quad.subject;
@@ -17,6 +38,14 @@ class OwlReasoner extends rdfs_reasoner_1.RdfsReasoner {
17
38
  }
18
39
  // See: https://www.w3.org/TR/owl2-profiles/#Reasoning_in_OWL_2_RL_and_RDF_Graphs_using_Rules
19
40
  switch (p.id) {
41
+ case ontologies_1.rdf.type.id: {
42
+ switch (o.id) {
43
+ case ontologies_1.owl.Restriction.id: {
44
+ this.restrictions[s.value] = {};
45
+ break;
46
+ }
47
+ }
48
+ }
20
49
  case ontologies_1.owl.equivalentClass.id:
21
50
  case ontologies_1.owl.complementOf.id:
22
51
  case ontologies_1.owl.disjointWith.id: {
@@ -62,6 +91,14 @@ class OwlReasoner extends rdfs_reasoner_1.RdfsReasoner {
62
91
  }
63
92
  break;
64
93
  }
94
+ case ontologies_1.owl.onClass.id: {
95
+ store.addQuad(o, ontologies_1.rdf.type, ontologies_1.rdfs.Class, targetGraph);
96
+ break;
97
+ }
98
+ case ontologies_1.owl.onDataRange.id: {
99
+ store.addQuad(o, ontologies_1.rdf.type, ontologies_1.rdfs.Datatype, targetGraph);
100
+ break;
101
+ }
65
102
  }
66
103
  }
67
104
  inferPropertyAxioms(store, targetGraph, lists, quad) {
@@ -73,6 +110,25 @@ class OwlReasoner extends rdfs_reasoner_1.RdfsReasoner {
73
110
  return;
74
111
  }
75
112
  switch (p.id) {
113
+ case ontologies_1.owl.onProperty.id: {
114
+ store.addQuad(o, ontologies_1.rdf.type, ontologies_1.rdf.Property, targetGraph);
115
+ if (this.restrictions[s.value] && o.termType == "NamedNode") {
116
+ this.restrictions[s.value].onProperty = o;
117
+ }
118
+ break;
119
+ }
120
+ case ontologies_1.owl.onClass.id: {
121
+ if (this.restrictions[s.value] && o.termType == "NamedNode") {
122
+ this.restrictions[s.value].onClass = o;
123
+ }
124
+ break;
125
+ }
126
+ case ontologies_1.owl.onDataRange.id: {
127
+ if (this.restrictions[s.value] && o.termType == "NamedNode") {
128
+ this.restrictions[s.value].onDataRange = o;
129
+ }
130
+ break;
131
+ }
76
132
  case ontologies_1.owl.equivalentProperty.id: {
77
133
  store.addQuad(s, ontologies_1.rdf.type, ontologies_1.rdf.Property, targetGraph);
78
134
  store.addQuad(o, ontologies_1.rdf.type, ontologies_1.rdf.Property, targetGraph);
@@ -1 +1 @@
1
- {"version":3,"file":"owl-reasoner.js","sourceRoot":"","sources":["../../../src/rdf/reasoners/owl-reasoner.ts"],"names":[],"mappings":";;;AACA,iDAA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,gBAAG,CAAC,kBAAkB,CAAC,EAAE,CAAC;oBAC/B,KAAK,gBAAG,CAAC,kBAAkB,CAAC,EAAE,CAAC;oBAC/B,KAAK,gBAAG,CAAC,yBAAyB,CAAC,EAAE,CAAC;oBACtC,KAAK,gBAAG,CAAC,mBAAmB,CAAC,EAAE,CAAC;oBAChC,KAAK,gBAAG,CAAC,cAAc,CAAC,EAAE,CAAC;oBAC3B,KAAK,gBAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC;oBAC7B,KAAK,gBAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;oBAC9B,KAAK,gBAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;oBAC9B,KAAK,gBAAG,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;wBAC5B,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,gBAAG,CAAC,IAAI,EAAE,gBAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;wBACtD,MAAM;qBACT;iBACJ;gBACD,MAAM;aACT;SACJ;IACL,CAAC;CACJ;AAnLD,kCAmLC"}
@@ -0,0 +1,13 @@
1
+ import * as n3 from "n3";
2
+ export declare const FIBO_AGENTS: {
3
+ /** system that reduces or eliminates the need for human involvement in order to complete a task */
4
+ AutomatedSystem: string;
5
+ /** something autonomous that can adapt to and interact with its environment */
6
+ AutonomousAgent: string;
7
+ };
8
+ export declare const fibo_agents: {
9
+ /** system that reduces or eliminates the need for human involvement in order to complete a task */
10
+ AutomatedSystem: n3.NamedNode<"https://spec.edmcouncil.org/fibo/ontology/FND/AgentsAndPeople/Agents/AutomatedSystem">;
11
+ /** something autonomous that can adapt to and interact with its environment */
12
+ AutonomousAgent: n3.NamedNode<"https://spec.edmcouncil.org/fibo/ontology/FND/AgentsAndPeople/Agents/AutonomousAgent">;
13
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fibo_agents = exports.FIBO_AGENTS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const n3 = tslib_1.__importStar(require("n3"));
6
+ exports.FIBO_AGENTS = {
7
+ /** system that reduces or eliminates the need for human involvement in order to complete a task */
8
+ 'AutomatedSystem': 'https://spec.edmcouncil.org/fibo/ontology/FND/AgentsAndPeople/Agents/AutomatedSystem',
9
+ /** something autonomous that can adapt to and interact with its environment */
10
+ 'AutonomousAgent': 'https://spec.edmcouncil.org/fibo/ontology/FND/AgentsAndPeople/Agents/AutonomousAgent',
11
+ };
12
+ exports.fibo_agents = {
13
+ /** system that reduces or eliminates the need for human involvement in order to complete a task */
14
+ 'AutomatedSystem': new n3.NamedNode('https://spec.edmcouncil.org/fibo/ontology/FND/AgentsAndPeople/Agents/AutomatedSystem'),
15
+ /** something autonomous that can adapt to and interact with its environment */
16
+ 'AutonomousAgent': new n3.NamedNode('https://spec.edmcouncil.org/fibo/ontology/FND/AgentsAndPeople/Agents/AutonomousAgent'),
17
+ };
18
+ //# sourceMappingURL=fibo-agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fibo-agents.js","sourceRoot":"","sources":["../../../../src/rdf/tests/ontologies/fibo-agents.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AAEZ,QAAA,WAAW,GAAG;IAC1B,mGAAmG;IACnG,iBAAiB,EAAE,sFAAsF;IACzG,+EAA+E;IAC/E,iBAAiB,EAAE,sFAAsF;CACzG,CAAA;AAEY,QAAA,WAAW,GAAG;IAC1B,mGAAmG;IACnG,iBAAiB,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,sFAAsF,CAAC;IAC3H,+EAA+E;IAC/E,iBAAiB,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,sFAAsF,CAAC;CAC3H,CAAA"}
@@ -1,2 +1,7 @@
1
+ export * from './fibo-agents';
1
2
  export * from './gist';
3
+ export * from './owl';
2
4
  export * from './schema';
5
+ export * from './schema';
6
+ export * from './schema';
7
+ export * from './skos';
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./fibo-agents"), exports);
4
5
  tslib_1.__exportStar(require("./gist"), exports);
6
+ tslib_1.__exportStar(require("./owl"), exports);
5
7
  tslib_1.__exportStar(require("./schema"), exports);
8
+ tslib_1.__exportStar(require("./schema"), exports);
9
+ tslib_1.__exportStar(require("./schema"), exports);
10
+ tslib_1.__exportStar(require("./skos"), exports);
6
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rdf/tests/ontologies/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,mDAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rdf/tests/ontologies/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,iDAAuB;AACvB,gDAAsB;AACtB,mDAAyB;AACzB,mDAAyB;AACzB,mDAAyB;AACzB,iDAAuB"}
@@ -0,0 +1,313 @@
1
+ import * as n3 from "n3";
2
+ export declare const OWL: {
3
+ /** The class of collections of pairwise different individuals. */
4
+ AllDifferent: string;
5
+ /** The class of collections of pairwise disjoint classes. */
6
+ AllDisjointClasses: string;
7
+ /** The class of collections of pairwise disjoint properties. */
8
+ AllDisjointProperties: string;
9
+ /** The class of annotated annotations for which the RDF serialization consists of an annotated subject, predicate and object. */
10
+ Annotation: string;
11
+ /** The class of annotation properties. */
12
+ AnnotationProperty: string;
13
+ /** The class of asymmetric properties. */
14
+ AsymmetricProperty: string;
15
+ /** The class of annotated axioms for which the RDF serialization consists of an annotated subject, predicate and object. */
16
+ Axiom: string;
17
+ /** The class of OWL classes. */
18
+ Class: string;
19
+ /** The class of OWL data ranges, which are special kinds of datatypes. Note: The use of the IRI owl:DataRange has been deprecated as of OWL 2. The IRI rdfs:Datatype SHOULD be used instead. */
20
+ DataRange: string;
21
+ /** The class of data properties. */
22
+ DatatypeProperty: string;
23
+ /** The class of deprecated classes. */
24
+ DeprecatedClass: string;
25
+ /** The class of deprecated properties. */
26
+ DeprecatedProperty: string;
27
+ /** The class of functional properties. */
28
+ FunctionalProperty: string;
29
+ /** The class of inverse-functional properties. */
30
+ InverseFunctionalProperty: string;
31
+ /** The class of irreflexive properties. */
32
+ IrreflexiveProperty: string;
33
+ /** The class of named individuals. */
34
+ NamedIndividual: string;
35
+ /** The class of negative property assertions. */
36
+ NegativePropertyAssertion: string;
37
+ /** This is the empty class. */
38
+ Nothing: string;
39
+ /** The class of object properties. */
40
+ ObjectProperty: string;
41
+ /** The class of ontologies. */
42
+ Ontology: string;
43
+ /** The class of ontology properties. */
44
+ OntologyProperty: string;
45
+ /** The class of reflexive properties. */
46
+ ReflexiveProperty: string;
47
+ /** The class of property restrictions. */
48
+ Restriction: string;
49
+ /** The class of symmetric properties. */
50
+ SymmetricProperty: string;
51
+ /** The class of OWL individuals. */
52
+ Thing: string;
53
+ /** The class of transitive properties. */
54
+ TransitiveProperty: string;
55
+ /** The property that determines the class that a universal property restriction refers to. */
56
+ allValuesFrom: string;
57
+ /** The property that determines the predicate of an annotated axiom or annotated annotation. */
58
+ annotatedProperty: string;
59
+ /** The property that determines the subject of an annotated axiom or annotated annotation. */
60
+ annotatedSource: string;
61
+ /** The property that determines the object of an annotated axiom or annotated annotation. */
62
+ annotatedTarget: string;
63
+ /** The property that determines the predicate of a negative property assertion. */
64
+ assertionProperty: string;
65
+ /** The annotation property that indicates that a given ontology is backward compatible with another ontology. */
66
+ backwardCompatibleWith: string;
67
+ /** The data property that does not relate any individual to any data value. */
68
+ bottomDataProperty: string;
69
+ /** The object property that does not relate any two individuals. */
70
+ bottomObjectProperty: string;
71
+ /** The property that determines the cardinality of an exact cardinality restriction. */
72
+ cardinality: string;
73
+ /** The property that determines that a given class is the complement of another class. */
74
+ complementOf: string;
75
+ /** The property that determines that a given data range is the complement of another data range with respect to the data domain. */
76
+ datatypeComplementOf: string;
77
+ /** The annotation property that indicates that a given entity has been deprecated. */
78
+ deprecated: string;
79
+ /** The property that determines that two given individuals are different. */
80
+ differentFrom: string;
81
+ /** The property that determines that a given class is equivalent to the disjoint union of a collection of other classes. */
82
+ disjointUnionOf: string;
83
+ /** The property that determines that two given classes are disjoint. */
84
+ disjointWith: string;
85
+ /** The property that determines the collection of pairwise different individuals in a owl:AllDifferent axiom. */
86
+ distinctMembers: string;
87
+ /** The property that determines that two given classes are equivalent, and that is used to specify datatype definitions. */
88
+ equivalentClass: string;
89
+ /** The property that determines that two given properties are equivalent. */
90
+ equivalentProperty: string;
91
+ /** The property that determines the collection of properties that jointly build a key. */
92
+ hasKey: string;
93
+ /** The property that determines the property that a self restriction refers to. */
94
+ hasSelf: string;
95
+ /** The property that determines the individual that a has-value restriction refers to. */
96
+ hasValue: string;
97
+ /** The property that is used for importing other ontologies into a given ontology. */
98
+ imports: string;
99
+ /** The annotation property that indicates that a given ontology is incompatible with another ontology. */
100
+ incompatibleWith: string;
101
+ /** The property that determines the collection of classes or data ranges that build an intersection. */
102
+ intersectionOf: string;
103
+ /** The property that determines that two given properties are inverse. */
104
+ inverseOf: string;
105
+ /** The property that determines the cardinality of a maximum cardinality restriction. */
106
+ maxCardinality: string;
107
+ /** The property that determines the cardinality of a maximum qualified cardinality restriction. */
108
+ maxQualifiedCardinality: string;
109
+ /** The property that determines the collection of members in either a owl:AllDifferent, owl:AllDisjointClasses or owl:AllDisjointProperties axiom. */
110
+ members: string;
111
+ /** The property that determines the cardinality of a minimum cardinality restriction. */
112
+ minCardinality: string;
113
+ /** The property that determines the cardinality of a minimum qualified cardinality restriction. */
114
+ minQualifiedCardinality: string;
115
+ /** The property that determines the class that a qualified object cardinality restriction refers to. */
116
+ onClass: string;
117
+ /** The property that determines the data range that a qualified data cardinality restriction refers to. */
118
+ onDataRange: string;
119
+ /** The property that determines the datatype that a datatype restriction refers to. */
120
+ onDatatype: string;
121
+ /** The property that determines the n-tuple of properties that a property restriction on an n-ary data range refers to. */
122
+ onProperties: string;
123
+ /** The property that determines the property that a property restriction refers to. */
124
+ onProperty: string;
125
+ /** The property that determines the collection of individuals or data values that build an enumeration. */
126
+ oneOf: string;
127
+ /** The annotation property that indicates the predecessor ontology of a given ontology. */
128
+ priorVersion: string;
129
+ /** The property that determines the n-tuple of properties that build a sub property chain of a given property. */
130
+ propertyChainAxiom: string;
131
+ /** The property that determines that two given properties are disjoint. */
132
+ propertyDisjointWith: string;
133
+ /** The property that determines the cardinality of an exact qualified cardinality restriction. */
134
+ qualifiedCardinality: string;
135
+ /** The property that determines that two given individuals are equal. */
136
+ sameAs: string;
137
+ /** The property that determines the class that an existential property restriction refers to. */
138
+ someValuesFrom: string;
139
+ /** The property that determines the subject of a negative property assertion. */
140
+ sourceIndividual: string;
141
+ /** The property that determines the object of a negative object property assertion. */
142
+ targetIndividual: string;
143
+ /** The property that determines the value of a negative data property assertion. */
144
+ targetValue: string;
145
+ /** The data property that relates every individual to every data value. */
146
+ topDataProperty: string;
147
+ /** The object property that relates every two individuals. */
148
+ topObjectProperty: string;
149
+ /** The property that determines the collection of classes or data ranges that build a union. */
150
+ unionOf: string;
151
+ /** The property that identifies the version IRI of an ontology. */
152
+ versionIRI: string;
153
+ /** The annotation property that provides version information for an ontology or another OWL construct. */
154
+ versionInfo: string;
155
+ /** The property that determines the collection of facet-value pairs that define a datatype restriction. */
156
+ withRestrictions: string;
157
+ };
158
+ export declare const owl: {
159
+ /** The class of collections of pairwise different individuals. */
160
+ AllDifferent: n3.NamedNode<"http://www.w3.org/2002/07/owl#AllDifferent">;
161
+ /** The class of collections of pairwise disjoint classes. */
162
+ AllDisjointClasses: n3.NamedNode<"http://www.w3.org/2002/07/owl#AllDisjointClasses">;
163
+ /** The class of collections of pairwise disjoint properties. */
164
+ AllDisjointProperties: n3.NamedNode<"http://www.w3.org/2002/07/owl#AllDisjointProperties">;
165
+ /** The class of annotated annotations for which the RDF serialization consists of an annotated subject, predicate and object. */
166
+ Annotation: n3.NamedNode<"http://www.w3.org/2002/07/owl#Annotation">;
167
+ /** The class of annotation properties. */
168
+ AnnotationProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#AnnotationProperty">;
169
+ /** The class of asymmetric properties. */
170
+ AsymmetricProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#AsymmetricProperty">;
171
+ /** The class of annotated axioms for which the RDF serialization consists of an annotated subject, predicate and object. */
172
+ Axiom: n3.NamedNode<"http://www.w3.org/2002/07/owl#Axiom">;
173
+ /** The class of OWL classes. */
174
+ Class: n3.NamedNode<"http://www.w3.org/2002/07/owl#Class">;
175
+ /** The class of OWL data ranges, which are special kinds of datatypes. Note: The use of the IRI owl:DataRange has been deprecated as of OWL 2. The IRI rdfs:Datatype SHOULD be used instead. */
176
+ DataRange: n3.NamedNode<"http://www.w3.org/2002/07/owl#DataRange">;
177
+ /** The class of data properties. */
178
+ DatatypeProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#DatatypeProperty">;
179
+ /** The class of deprecated classes. */
180
+ DeprecatedClass: n3.NamedNode<"http://www.w3.org/2002/07/owl#DeprecatedClass">;
181
+ /** The class of deprecated properties. */
182
+ DeprecatedProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#DeprecatedProperty">;
183
+ /** The class of functional properties. */
184
+ FunctionalProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#FunctionalProperty">;
185
+ /** The class of inverse-functional properties. */
186
+ InverseFunctionalProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#InverseFunctionalProperty">;
187
+ /** The class of irreflexive properties. */
188
+ IrreflexiveProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#IrreflexiveProperty">;
189
+ /** The class of named individuals. */
190
+ NamedIndividual: n3.NamedNode<"http://www.w3.org/2002/07/owl#NamedIndividual">;
191
+ /** The class of negative property assertions. */
192
+ NegativePropertyAssertion: n3.NamedNode<"http://www.w3.org/2002/07/owl#NegativePropertyAssertion">;
193
+ /** This is the empty class. */
194
+ Nothing: n3.NamedNode<"http://www.w3.org/2002/07/owl#Nothing">;
195
+ /** The class of object properties. */
196
+ ObjectProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#ObjectProperty">;
197
+ /** The class of ontologies. */
198
+ Ontology: n3.NamedNode<"http://www.w3.org/2002/07/owl#Ontology">;
199
+ /** The class of ontology properties. */
200
+ OntologyProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#OntologyProperty">;
201
+ /** The class of reflexive properties. */
202
+ ReflexiveProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#ReflexiveProperty">;
203
+ /** The class of property restrictions. */
204
+ Restriction: n3.NamedNode<"http://www.w3.org/2002/07/owl#Restriction">;
205
+ /** The class of symmetric properties. */
206
+ SymmetricProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#SymmetricProperty">;
207
+ /** The class of OWL individuals. */
208
+ Thing: n3.NamedNode<"http://www.w3.org/2002/07/owl#Thing">;
209
+ /** The class of transitive properties. */
210
+ TransitiveProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#TransitiveProperty">;
211
+ /** The property that determines the class that a universal property restriction refers to. */
212
+ allValuesFrom: n3.NamedNode<"http://www.w3.org/2002/07/owl#allValuesFrom">;
213
+ /** The property that determines the predicate of an annotated axiom or annotated annotation. */
214
+ annotatedProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#annotatedProperty">;
215
+ /** The property that determines the subject of an annotated axiom or annotated annotation. */
216
+ annotatedSource: n3.NamedNode<"http://www.w3.org/2002/07/owl#annotatedSource">;
217
+ /** The property that determines the object of an annotated axiom or annotated annotation. */
218
+ annotatedTarget: n3.NamedNode<"http://www.w3.org/2002/07/owl#annotatedTarget">;
219
+ /** The property that determines the predicate of a negative property assertion. */
220
+ assertionProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#assertionProperty">;
221
+ /** The annotation property that indicates that a given ontology is backward compatible with another ontology. */
222
+ backwardCompatibleWith: n3.NamedNode<"http://www.w3.org/2002/07/owl#backwardCompatibleWith">;
223
+ /** The data property that does not relate any individual to any data value. */
224
+ bottomDataProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#bottomDataProperty">;
225
+ /** The object property that does not relate any two individuals. */
226
+ bottomObjectProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#bottomObjectProperty">;
227
+ /** The property that determines the cardinality of an exact cardinality restriction. */
228
+ cardinality: n3.NamedNode<"http://www.w3.org/2002/07/owl#cardinality">;
229
+ /** The property that determines that a given class is the complement of another class. */
230
+ complementOf: n3.NamedNode<"http://www.w3.org/2002/07/owl#complementOf">;
231
+ /** The property that determines that a given data range is the complement of another data range with respect to the data domain. */
232
+ datatypeComplementOf: n3.NamedNode<"http://www.w3.org/2002/07/owl#datatypeComplementOf">;
233
+ /** The annotation property that indicates that a given entity has been deprecated. */
234
+ deprecated: n3.NamedNode<"http://www.w3.org/2002/07/owl#deprecated">;
235
+ /** The property that determines that two given individuals are different. */
236
+ differentFrom: n3.NamedNode<"http://www.w3.org/2002/07/owl#differentFrom">;
237
+ /** The property that determines that a given class is equivalent to the disjoint union of a collection of other classes. */
238
+ disjointUnionOf: n3.NamedNode<"http://www.w3.org/2002/07/owl#disjointUnionOf">;
239
+ /** The property that determines that two given classes are disjoint. */
240
+ disjointWith: n3.NamedNode<"http://www.w3.org/2002/07/owl#disjointWith">;
241
+ /** The property that determines the collection of pairwise different individuals in a owl:AllDifferent axiom. */
242
+ distinctMembers: n3.NamedNode<"http://www.w3.org/2002/07/owl#distinctMembers">;
243
+ /** The property that determines that two given classes are equivalent, and that is used to specify datatype definitions. */
244
+ equivalentClass: n3.NamedNode<"http://www.w3.org/2002/07/owl#equivalentClass">;
245
+ /** The property that determines that two given properties are equivalent. */
246
+ equivalentProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#equivalentProperty">;
247
+ /** The property that determines the collection of properties that jointly build a key. */
248
+ hasKey: n3.NamedNode<"http://www.w3.org/2002/07/owl#hasKey">;
249
+ /** The property that determines the property that a self restriction refers to. */
250
+ hasSelf: n3.NamedNode<"http://www.w3.org/2002/07/owl#hasSelf">;
251
+ /** The property that determines the individual that a has-value restriction refers to. */
252
+ hasValue: n3.NamedNode<"http://www.w3.org/2002/07/owl#hasValue">;
253
+ /** The property that is used for importing other ontologies into a given ontology. */
254
+ imports: n3.NamedNode<"http://www.w3.org/2002/07/owl#imports">;
255
+ /** The annotation property that indicates that a given ontology is incompatible with another ontology. */
256
+ incompatibleWith: n3.NamedNode<"http://www.w3.org/2002/07/owl#incompatibleWith">;
257
+ /** The property that determines the collection of classes or data ranges that build an intersection. */
258
+ intersectionOf: n3.NamedNode<"http://www.w3.org/2002/07/owl#intersectionOf">;
259
+ /** The property that determines that two given properties are inverse. */
260
+ inverseOf: n3.NamedNode<"http://www.w3.org/2002/07/owl#inverseOf">;
261
+ /** The property that determines the cardinality of a maximum cardinality restriction. */
262
+ maxCardinality: n3.NamedNode<"http://www.w3.org/2002/07/owl#maxCardinality">;
263
+ /** The property that determines the cardinality of a maximum qualified cardinality restriction. */
264
+ maxQualifiedCardinality: n3.NamedNode<"http://www.w3.org/2002/07/owl#maxQualifiedCardinality">;
265
+ /** The property that determines the collection of members in either a owl:AllDifferent, owl:AllDisjointClasses or owl:AllDisjointProperties axiom. */
266
+ members: n3.NamedNode<"http://www.w3.org/2002/07/owl#members">;
267
+ /** The property that determines the cardinality of a minimum cardinality restriction. */
268
+ minCardinality: n3.NamedNode<"http://www.w3.org/2002/07/owl#minCardinality">;
269
+ /** The property that determines the cardinality of a minimum qualified cardinality restriction. */
270
+ minQualifiedCardinality: n3.NamedNode<"http://www.w3.org/2002/07/owl#minQualifiedCardinality">;
271
+ /** The property that determines the class that a qualified object cardinality restriction refers to. */
272
+ onClass: n3.NamedNode<"http://www.w3.org/2002/07/owl#onClass">;
273
+ /** The property that determines the data range that a qualified data cardinality restriction refers to. */
274
+ onDataRange: n3.NamedNode<"http://www.w3.org/2002/07/owl#onDataRange">;
275
+ /** The property that determines the datatype that a datatype restriction refers to. */
276
+ onDatatype: n3.NamedNode<"http://www.w3.org/2002/07/owl#onDatatype">;
277
+ /** The property that determines the n-tuple of properties that a property restriction on an n-ary data range refers to. */
278
+ onProperties: n3.NamedNode<"http://www.w3.org/2002/07/owl#onProperties">;
279
+ /** The property that determines the property that a property restriction refers to. */
280
+ onProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#onProperty">;
281
+ /** The property that determines the collection of individuals or data values that build an enumeration. */
282
+ oneOf: n3.NamedNode<"http://www.w3.org/2002/07/owl#oneOf">;
283
+ /** The annotation property that indicates the predecessor ontology of a given ontology. */
284
+ priorVersion: n3.NamedNode<"http://www.w3.org/2002/07/owl#priorVersion">;
285
+ /** The property that determines the n-tuple of properties that build a sub property chain of a given property. */
286
+ propertyChainAxiom: n3.NamedNode<"http://www.w3.org/2002/07/owl#propertyChainAxiom">;
287
+ /** The property that determines that two given properties are disjoint. */
288
+ propertyDisjointWith: n3.NamedNode<"http://www.w3.org/2002/07/owl#propertyDisjointWith">;
289
+ /** The property that determines the cardinality of an exact qualified cardinality restriction. */
290
+ qualifiedCardinality: n3.NamedNode<"http://www.w3.org/2002/07/owl#qualifiedCardinality">;
291
+ /** The property that determines that two given individuals are equal. */
292
+ sameAs: n3.NamedNode<"http://www.w3.org/2002/07/owl#sameAs">;
293
+ /** The property that determines the class that an existential property restriction refers to. */
294
+ someValuesFrom: n3.NamedNode<"http://www.w3.org/2002/07/owl#someValuesFrom">;
295
+ /** The property that determines the subject of a negative property assertion. */
296
+ sourceIndividual: n3.NamedNode<"http://www.w3.org/2002/07/owl#sourceIndividual">;
297
+ /** The property that determines the object of a negative object property assertion. */
298
+ targetIndividual: n3.NamedNode<"http://www.w3.org/2002/07/owl#targetIndividual">;
299
+ /** The property that determines the value of a negative data property assertion. */
300
+ targetValue: n3.NamedNode<"http://www.w3.org/2002/07/owl#targetValue">;
301
+ /** The data property that relates every individual to every data value. */
302
+ topDataProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#topDataProperty">;
303
+ /** The object property that relates every two individuals. */
304
+ topObjectProperty: n3.NamedNode<"http://www.w3.org/2002/07/owl#topObjectProperty">;
305
+ /** The property that determines the collection of classes or data ranges that build a union. */
306
+ unionOf: n3.NamedNode<"http://www.w3.org/2002/07/owl#unionOf">;
307
+ /** The property that identifies the version IRI of an ontology. */
308
+ versionIRI: n3.NamedNode<"http://www.w3.org/2002/07/owl#versionIRI">;
309
+ /** The annotation property that provides version information for an ontology or another OWL construct. */
310
+ versionInfo: n3.NamedNode<"http://www.w3.org/2002/07/owl#versionInfo">;
311
+ /** The property that determines the collection of facet-value pairs that define a datatype restriction. */
312
+ withRestrictions: n3.NamedNode<"http://www.w3.org/2002/07/owl#withRestrictions">;
313
+ };
@@ -0,0 +1,318 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.owl = exports.OWL = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const n3 = tslib_1.__importStar(require("n3"));
6
+ exports.OWL = {
7
+ /** The class of collections of pairwise different individuals. */
8
+ 'AllDifferent': 'http://www.w3.org/2002/07/owl#AllDifferent',
9
+ /** The class of collections of pairwise disjoint classes. */
10
+ 'AllDisjointClasses': 'http://www.w3.org/2002/07/owl#AllDisjointClasses',
11
+ /** The class of collections of pairwise disjoint properties. */
12
+ 'AllDisjointProperties': 'http://www.w3.org/2002/07/owl#AllDisjointProperties',
13
+ /** The class of annotated annotations for which the RDF serialization consists of an annotated subject, predicate and object. */
14
+ 'Annotation': 'http://www.w3.org/2002/07/owl#Annotation',
15
+ /** The class of annotation properties. */
16
+ 'AnnotationProperty': 'http://www.w3.org/2002/07/owl#AnnotationProperty',
17
+ /** The class of asymmetric properties. */
18
+ 'AsymmetricProperty': 'http://www.w3.org/2002/07/owl#AsymmetricProperty',
19
+ /** The class of annotated axioms for which the RDF serialization consists of an annotated subject, predicate and object. */
20
+ 'Axiom': 'http://www.w3.org/2002/07/owl#Axiom',
21
+ /** The class of OWL classes. */
22
+ 'Class': 'http://www.w3.org/2002/07/owl#Class',
23
+ /** The class of OWL data ranges, which are special kinds of datatypes. Note: The use of the IRI owl:DataRange has been deprecated as of OWL 2. The IRI rdfs:Datatype SHOULD be used instead. */
24
+ 'DataRange': 'http://www.w3.org/2002/07/owl#DataRange',
25
+ /** The class of data properties. */
26
+ 'DatatypeProperty': 'http://www.w3.org/2002/07/owl#DatatypeProperty',
27
+ /** The class of deprecated classes. */
28
+ 'DeprecatedClass': 'http://www.w3.org/2002/07/owl#DeprecatedClass',
29
+ /** The class of deprecated properties. */
30
+ 'DeprecatedProperty': 'http://www.w3.org/2002/07/owl#DeprecatedProperty',
31
+ /** The class of functional properties. */
32
+ 'FunctionalProperty': 'http://www.w3.org/2002/07/owl#FunctionalProperty',
33
+ /** The class of inverse-functional properties. */
34
+ 'InverseFunctionalProperty': 'http://www.w3.org/2002/07/owl#InverseFunctionalProperty',
35
+ /** The class of irreflexive properties. */
36
+ 'IrreflexiveProperty': 'http://www.w3.org/2002/07/owl#IrreflexiveProperty',
37
+ /** The class of named individuals. */
38
+ 'NamedIndividual': 'http://www.w3.org/2002/07/owl#NamedIndividual',
39
+ /** The class of negative property assertions. */
40
+ 'NegativePropertyAssertion': 'http://www.w3.org/2002/07/owl#NegativePropertyAssertion',
41
+ /** This is the empty class. */
42
+ 'Nothing': 'http://www.w3.org/2002/07/owl#Nothing',
43
+ /** The class of object properties. */
44
+ 'ObjectProperty': 'http://www.w3.org/2002/07/owl#ObjectProperty',
45
+ /** The class of ontologies. */
46
+ 'Ontology': 'http://www.w3.org/2002/07/owl#Ontology',
47
+ /** The class of ontology properties. */
48
+ 'OntologyProperty': 'http://www.w3.org/2002/07/owl#OntologyProperty',
49
+ /** The class of reflexive properties. */
50
+ 'ReflexiveProperty': 'http://www.w3.org/2002/07/owl#ReflexiveProperty',
51
+ /** The class of property restrictions. */
52
+ 'Restriction': 'http://www.w3.org/2002/07/owl#Restriction',
53
+ /** The class of symmetric properties. */
54
+ 'SymmetricProperty': 'http://www.w3.org/2002/07/owl#SymmetricProperty',
55
+ /** The class of OWL individuals. */
56
+ 'Thing': 'http://www.w3.org/2002/07/owl#Thing',
57
+ /** The class of transitive properties. */
58
+ 'TransitiveProperty': 'http://www.w3.org/2002/07/owl#TransitiveProperty',
59
+ /** The property that determines the class that a universal property restriction refers to. */
60
+ 'allValuesFrom': 'http://www.w3.org/2002/07/owl#allValuesFrom',
61
+ /** The property that determines the predicate of an annotated axiom or annotated annotation. */
62
+ 'annotatedProperty': 'http://www.w3.org/2002/07/owl#annotatedProperty',
63
+ /** The property that determines the subject of an annotated axiom or annotated annotation. */
64
+ 'annotatedSource': 'http://www.w3.org/2002/07/owl#annotatedSource',
65
+ /** The property that determines the object of an annotated axiom or annotated annotation. */
66
+ 'annotatedTarget': 'http://www.w3.org/2002/07/owl#annotatedTarget',
67
+ /** The property that determines the predicate of a negative property assertion. */
68
+ 'assertionProperty': 'http://www.w3.org/2002/07/owl#assertionProperty',
69
+ /** The annotation property that indicates that a given ontology is backward compatible with another ontology. */
70
+ 'backwardCompatibleWith': 'http://www.w3.org/2002/07/owl#backwardCompatibleWith',
71
+ /** The data property that does not relate any individual to any data value. */
72
+ 'bottomDataProperty': 'http://www.w3.org/2002/07/owl#bottomDataProperty',
73
+ /** The object property that does not relate any two individuals. */
74
+ 'bottomObjectProperty': 'http://www.w3.org/2002/07/owl#bottomObjectProperty',
75
+ /** The property that determines the cardinality of an exact cardinality restriction. */
76
+ 'cardinality': 'http://www.w3.org/2002/07/owl#cardinality',
77
+ /** The property that determines that a given class is the complement of another class. */
78
+ 'complementOf': 'http://www.w3.org/2002/07/owl#complementOf',
79
+ /** The property that determines that a given data range is the complement of another data range with respect to the data domain. */
80
+ 'datatypeComplementOf': 'http://www.w3.org/2002/07/owl#datatypeComplementOf',
81
+ /** The annotation property that indicates that a given entity has been deprecated. */
82
+ 'deprecated': 'http://www.w3.org/2002/07/owl#deprecated',
83
+ /** The property that determines that two given individuals are different. */
84
+ 'differentFrom': 'http://www.w3.org/2002/07/owl#differentFrom',
85
+ /** The property that determines that a given class is equivalent to the disjoint union of a collection of other classes. */
86
+ 'disjointUnionOf': 'http://www.w3.org/2002/07/owl#disjointUnionOf',
87
+ /** The property that determines that two given classes are disjoint. */
88
+ 'disjointWith': 'http://www.w3.org/2002/07/owl#disjointWith',
89
+ /** The property that determines the collection of pairwise different individuals in a owl:AllDifferent axiom. */
90
+ 'distinctMembers': 'http://www.w3.org/2002/07/owl#distinctMembers',
91
+ /** The property that determines that two given classes are equivalent, and that is used to specify datatype definitions. */
92
+ 'equivalentClass': 'http://www.w3.org/2002/07/owl#equivalentClass',
93
+ /** The property that determines that two given properties are equivalent. */
94
+ 'equivalentProperty': 'http://www.w3.org/2002/07/owl#equivalentProperty',
95
+ /** The property that determines the collection of properties that jointly build a key. */
96
+ 'hasKey': 'http://www.w3.org/2002/07/owl#hasKey',
97
+ /** The property that determines the property that a self restriction refers to. */
98
+ 'hasSelf': 'http://www.w3.org/2002/07/owl#hasSelf',
99
+ /** The property that determines the individual that a has-value restriction refers to. */
100
+ 'hasValue': 'http://www.w3.org/2002/07/owl#hasValue',
101
+ /** The property that is used for importing other ontologies into a given ontology. */
102
+ 'imports': 'http://www.w3.org/2002/07/owl#imports',
103
+ /** The annotation property that indicates that a given ontology is incompatible with another ontology. */
104
+ 'incompatibleWith': 'http://www.w3.org/2002/07/owl#incompatibleWith',
105
+ /** The property that determines the collection of classes or data ranges that build an intersection. */
106
+ 'intersectionOf': 'http://www.w3.org/2002/07/owl#intersectionOf',
107
+ /** The property that determines that two given properties are inverse. */
108
+ 'inverseOf': 'http://www.w3.org/2002/07/owl#inverseOf',
109
+ /** The property that determines the cardinality of a maximum cardinality restriction. */
110
+ 'maxCardinality': 'http://www.w3.org/2002/07/owl#maxCardinality',
111
+ /** The property that determines the cardinality of a maximum qualified cardinality restriction. */
112
+ 'maxQualifiedCardinality': 'http://www.w3.org/2002/07/owl#maxQualifiedCardinality',
113
+ /** The property that determines the collection of members in either a owl:AllDifferent, owl:AllDisjointClasses or owl:AllDisjointProperties axiom. */
114
+ 'members': 'http://www.w3.org/2002/07/owl#members',
115
+ /** The property that determines the cardinality of a minimum cardinality restriction. */
116
+ 'minCardinality': 'http://www.w3.org/2002/07/owl#minCardinality',
117
+ /** The property that determines the cardinality of a minimum qualified cardinality restriction. */
118
+ 'minQualifiedCardinality': 'http://www.w3.org/2002/07/owl#minQualifiedCardinality',
119
+ /** The property that determines the class that a qualified object cardinality restriction refers to. */
120
+ 'onClass': 'http://www.w3.org/2002/07/owl#onClass',
121
+ /** The property that determines the data range that a qualified data cardinality restriction refers to. */
122
+ 'onDataRange': 'http://www.w3.org/2002/07/owl#onDataRange',
123
+ /** The property that determines the datatype that a datatype restriction refers to. */
124
+ 'onDatatype': 'http://www.w3.org/2002/07/owl#onDatatype',
125
+ /** The property that determines the n-tuple of properties that a property restriction on an n-ary data range refers to. */
126
+ 'onProperties': 'http://www.w3.org/2002/07/owl#onProperties',
127
+ /** The property that determines the property that a property restriction refers to. */
128
+ 'onProperty': 'http://www.w3.org/2002/07/owl#onProperty',
129
+ /** The property that determines the collection of individuals or data values that build an enumeration. */
130
+ 'oneOf': 'http://www.w3.org/2002/07/owl#oneOf',
131
+ /** The annotation property that indicates the predecessor ontology of a given ontology. */
132
+ 'priorVersion': 'http://www.w3.org/2002/07/owl#priorVersion',
133
+ /** The property that determines the n-tuple of properties that build a sub property chain of a given property. */
134
+ 'propertyChainAxiom': 'http://www.w3.org/2002/07/owl#propertyChainAxiom',
135
+ /** The property that determines that two given properties are disjoint. */
136
+ 'propertyDisjointWith': 'http://www.w3.org/2002/07/owl#propertyDisjointWith',
137
+ /** The property that determines the cardinality of an exact qualified cardinality restriction. */
138
+ 'qualifiedCardinality': 'http://www.w3.org/2002/07/owl#qualifiedCardinality',
139
+ /** The property that determines that two given individuals are equal. */
140
+ 'sameAs': 'http://www.w3.org/2002/07/owl#sameAs',
141
+ /** The property that determines the class that an existential property restriction refers to. */
142
+ 'someValuesFrom': 'http://www.w3.org/2002/07/owl#someValuesFrom',
143
+ /** The property that determines the subject of a negative property assertion. */
144
+ 'sourceIndividual': 'http://www.w3.org/2002/07/owl#sourceIndividual',
145
+ /** The property that determines the object of a negative object property assertion. */
146
+ 'targetIndividual': 'http://www.w3.org/2002/07/owl#targetIndividual',
147
+ /** The property that determines the value of a negative data property assertion. */
148
+ 'targetValue': 'http://www.w3.org/2002/07/owl#targetValue',
149
+ /** The data property that relates every individual to every data value. */
150
+ 'topDataProperty': 'http://www.w3.org/2002/07/owl#topDataProperty',
151
+ /** The object property that relates every two individuals. */
152
+ 'topObjectProperty': 'http://www.w3.org/2002/07/owl#topObjectProperty',
153
+ /** The property that determines the collection of classes or data ranges that build a union. */
154
+ 'unionOf': 'http://www.w3.org/2002/07/owl#unionOf',
155
+ /** The property that identifies the version IRI of an ontology. */
156
+ 'versionIRI': 'http://www.w3.org/2002/07/owl#versionIRI',
157
+ /** The annotation property that provides version information for an ontology or another OWL construct. */
158
+ 'versionInfo': 'http://www.w3.org/2002/07/owl#versionInfo',
159
+ /** The property that determines the collection of facet-value pairs that define a datatype restriction. */
160
+ 'withRestrictions': 'http://www.w3.org/2002/07/owl#withRestrictions',
161
+ };
162
+ exports.owl = {
163
+ /** The class of collections of pairwise different individuals. */
164
+ 'AllDifferent': new n3.NamedNode('http://www.w3.org/2002/07/owl#AllDifferent'),
165
+ /** The class of collections of pairwise disjoint classes. */
166
+ 'AllDisjointClasses': new n3.NamedNode('http://www.w3.org/2002/07/owl#AllDisjointClasses'),
167
+ /** The class of collections of pairwise disjoint properties. */
168
+ 'AllDisjointProperties': new n3.NamedNode('http://www.w3.org/2002/07/owl#AllDisjointProperties'),
169
+ /** The class of annotated annotations for which the RDF serialization consists of an annotated subject, predicate and object. */
170
+ 'Annotation': new n3.NamedNode('http://www.w3.org/2002/07/owl#Annotation'),
171
+ /** The class of annotation properties. */
172
+ 'AnnotationProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#AnnotationProperty'),
173
+ /** The class of asymmetric properties. */
174
+ 'AsymmetricProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#AsymmetricProperty'),
175
+ /** The class of annotated axioms for which the RDF serialization consists of an annotated subject, predicate and object. */
176
+ 'Axiom': new n3.NamedNode('http://www.w3.org/2002/07/owl#Axiom'),
177
+ /** The class of OWL classes. */
178
+ 'Class': new n3.NamedNode('http://www.w3.org/2002/07/owl#Class'),
179
+ /** The class of OWL data ranges, which are special kinds of datatypes. Note: The use of the IRI owl:DataRange has been deprecated as of OWL 2. The IRI rdfs:Datatype SHOULD be used instead. */
180
+ 'DataRange': new n3.NamedNode('http://www.w3.org/2002/07/owl#DataRange'),
181
+ /** The class of data properties. */
182
+ 'DatatypeProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#DatatypeProperty'),
183
+ /** The class of deprecated classes. */
184
+ 'DeprecatedClass': new n3.NamedNode('http://www.w3.org/2002/07/owl#DeprecatedClass'),
185
+ /** The class of deprecated properties. */
186
+ 'DeprecatedProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#DeprecatedProperty'),
187
+ /** The class of functional properties. */
188
+ 'FunctionalProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#FunctionalProperty'),
189
+ /** The class of inverse-functional properties. */
190
+ 'InverseFunctionalProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#InverseFunctionalProperty'),
191
+ /** The class of irreflexive properties. */
192
+ 'IrreflexiveProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#IrreflexiveProperty'),
193
+ /** The class of named individuals. */
194
+ 'NamedIndividual': new n3.NamedNode('http://www.w3.org/2002/07/owl#NamedIndividual'),
195
+ /** The class of negative property assertions. */
196
+ 'NegativePropertyAssertion': new n3.NamedNode('http://www.w3.org/2002/07/owl#NegativePropertyAssertion'),
197
+ /** This is the empty class. */
198
+ 'Nothing': new n3.NamedNode('http://www.w3.org/2002/07/owl#Nothing'),
199
+ /** The class of object properties. */
200
+ 'ObjectProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#ObjectProperty'),
201
+ /** The class of ontologies. */
202
+ 'Ontology': new n3.NamedNode('http://www.w3.org/2002/07/owl#Ontology'),
203
+ /** The class of ontology properties. */
204
+ 'OntologyProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#OntologyProperty'),
205
+ /** The class of reflexive properties. */
206
+ 'ReflexiveProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#ReflexiveProperty'),
207
+ /** The class of property restrictions. */
208
+ 'Restriction': new n3.NamedNode('http://www.w3.org/2002/07/owl#Restriction'),
209
+ /** The class of symmetric properties. */
210
+ 'SymmetricProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#SymmetricProperty'),
211
+ /** The class of OWL individuals. */
212
+ 'Thing': new n3.NamedNode('http://www.w3.org/2002/07/owl#Thing'),
213
+ /** The class of transitive properties. */
214
+ 'TransitiveProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#TransitiveProperty'),
215
+ /** The property that determines the class that a universal property restriction refers to. */
216
+ 'allValuesFrom': new n3.NamedNode('http://www.w3.org/2002/07/owl#allValuesFrom'),
217
+ /** The property that determines the predicate of an annotated axiom or annotated annotation. */
218
+ 'annotatedProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#annotatedProperty'),
219
+ /** The property that determines the subject of an annotated axiom or annotated annotation. */
220
+ 'annotatedSource': new n3.NamedNode('http://www.w3.org/2002/07/owl#annotatedSource'),
221
+ /** The property that determines the object of an annotated axiom or annotated annotation. */
222
+ 'annotatedTarget': new n3.NamedNode('http://www.w3.org/2002/07/owl#annotatedTarget'),
223
+ /** The property that determines the predicate of a negative property assertion. */
224
+ 'assertionProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#assertionProperty'),
225
+ /** The annotation property that indicates that a given ontology is backward compatible with another ontology. */
226
+ 'backwardCompatibleWith': new n3.NamedNode('http://www.w3.org/2002/07/owl#backwardCompatibleWith'),
227
+ /** The data property that does not relate any individual to any data value. */
228
+ 'bottomDataProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#bottomDataProperty'),
229
+ /** The object property that does not relate any two individuals. */
230
+ 'bottomObjectProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#bottomObjectProperty'),
231
+ /** The property that determines the cardinality of an exact cardinality restriction. */
232
+ 'cardinality': new n3.NamedNode('http://www.w3.org/2002/07/owl#cardinality'),
233
+ /** The property that determines that a given class is the complement of another class. */
234
+ 'complementOf': new n3.NamedNode('http://www.w3.org/2002/07/owl#complementOf'),
235
+ /** The property that determines that a given data range is the complement of another data range with respect to the data domain. */
236
+ 'datatypeComplementOf': new n3.NamedNode('http://www.w3.org/2002/07/owl#datatypeComplementOf'),
237
+ /** The annotation property that indicates that a given entity has been deprecated. */
238
+ 'deprecated': new n3.NamedNode('http://www.w3.org/2002/07/owl#deprecated'),
239
+ /** The property that determines that two given individuals are different. */
240
+ 'differentFrom': new n3.NamedNode('http://www.w3.org/2002/07/owl#differentFrom'),
241
+ /** The property that determines that a given class is equivalent to the disjoint union of a collection of other classes. */
242
+ 'disjointUnionOf': new n3.NamedNode('http://www.w3.org/2002/07/owl#disjointUnionOf'),
243
+ /** The property that determines that two given classes are disjoint. */
244
+ 'disjointWith': new n3.NamedNode('http://www.w3.org/2002/07/owl#disjointWith'),
245
+ /** The property that determines the collection of pairwise different individuals in a owl:AllDifferent axiom. */
246
+ 'distinctMembers': new n3.NamedNode('http://www.w3.org/2002/07/owl#distinctMembers'),
247
+ /** The property that determines that two given classes are equivalent, and that is used to specify datatype definitions. */
248
+ 'equivalentClass': new n3.NamedNode('http://www.w3.org/2002/07/owl#equivalentClass'),
249
+ /** The property that determines that two given properties are equivalent. */
250
+ 'equivalentProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#equivalentProperty'),
251
+ /** The property that determines the collection of properties that jointly build a key. */
252
+ 'hasKey': new n3.NamedNode('http://www.w3.org/2002/07/owl#hasKey'),
253
+ /** The property that determines the property that a self restriction refers to. */
254
+ 'hasSelf': new n3.NamedNode('http://www.w3.org/2002/07/owl#hasSelf'),
255
+ /** The property that determines the individual that a has-value restriction refers to. */
256
+ 'hasValue': new n3.NamedNode('http://www.w3.org/2002/07/owl#hasValue'),
257
+ /** The property that is used for importing other ontologies into a given ontology. */
258
+ 'imports': new n3.NamedNode('http://www.w3.org/2002/07/owl#imports'),
259
+ /** The annotation property that indicates that a given ontology is incompatible with another ontology. */
260
+ 'incompatibleWith': new n3.NamedNode('http://www.w3.org/2002/07/owl#incompatibleWith'),
261
+ /** The property that determines the collection of classes or data ranges that build an intersection. */
262
+ 'intersectionOf': new n3.NamedNode('http://www.w3.org/2002/07/owl#intersectionOf'),
263
+ /** The property that determines that two given properties are inverse. */
264
+ 'inverseOf': new n3.NamedNode('http://www.w3.org/2002/07/owl#inverseOf'),
265
+ /** The property that determines the cardinality of a maximum cardinality restriction. */
266
+ 'maxCardinality': new n3.NamedNode('http://www.w3.org/2002/07/owl#maxCardinality'),
267
+ /** The property that determines the cardinality of a maximum qualified cardinality restriction. */
268
+ 'maxQualifiedCardinality': new n3.NamedNode('http://www.w3.org/2002/07/owl#maxQualifiedCardinality'),
269
+ /** The property that determines the collection of members in either a owl:AllDifferent, owl:AllDisjointClasses or owl:AllDisjointProperties axiom. */
270
+ 'members': new n3.NamedNode('http://www.w3.org/2002/07/owl#members'),
271
+ /** The property that determines the cardinality of a minimum cardinality restriction. */
272
+ 'minCardinality': new n3.NamedNode('http://www.w3.org/2002/07/owl#minCardinality'),
273
+ /** The property that determines the cardinality of a minimum qualified cardinality restriction. */
274
+ 'minQualifiedCardinality': new n3.NamedNode('http://www.w3.org/2002/07/owl#minQualifiedCardinality'),
275
+ /** The property that determines the class that a qualified object cardinality restriction refers to. */
276
+ 'onClass': new n3.NamedNode('http://www.w3.org/2002/07/owl#onClass'),
277
+ /** The property that determines the data range that a qualified data cardinality restriction refers to. */
278
+ 'onDataRange': new n3.NamedNode('http://www.w3.org/2002/07/owl#onDataRange'),
279
+ /** The property that determines the datatype that a datatype restriction refers to. */
280
+ 'onDatatype': new n3.NamedNode('http://www.w3.org/2002/07/owl#onDatatype'),
281
+ /** The property that determines the n-tuple of properties that a property restriction on an n-ary data range refers to. */
282
+ 'onProperties': new n3.NamedNode('http://www.w3.org/2002/07/owl#onProperties'),
283
+ /** The property that determines the property that a property restriction refers to. */
284
+ 'onProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#onProperty'),
285
+ /** The property that determines the collection of individuals or data values that build an enumeration. */
286
+ 'oneOf': new n3.NamedNode('http://www.w3.org/2002/07/owl#oneOf'),
287
+ /** The annotation property that indicates the predecessor ontology of a given ontology. */
288
+ 'priorVersion': new n3.NamedNode('http://www.w3.org/2002/07/owl#priorVersion'),
289
+ /** The property that determines the n-tuple of properties that build a sub property chain of a given property. */
290
+ 'propertyChainAxiom': new n3.NamedNode('http://www.w3.org/2002/07/owl#propertyChainAxiom'),
291
+ /** The property that determines that two given properties are disjoint. */
292
+ 'propertyDisjointWith': new n3.NamedNode('http://www.w3.org/2002/07/owl#propertyDisjointWith'),
293
+ /** The property that determines the cardinality of an exact qualified cardinality restriction. */
294
+ 'qualifiedCardinality': new n3.NamedNode('http://www.w3.org/2002/07/owl#qualifiedCardinality'),
295
+ /** The property that determines that two given individuals are equal. */
296
+ 'sameAs': new n3.NamedNode('http://www.w3.org/2002/07/owl#sameAs'),
297
+ /** The property that determines the class that an existential property restriction refers to. */
298
+ 'someValuesFrom': new n3.NamedNode('http://www.w3.org/2002/07/owl#someValuesFrom'),
299
+ /** The property that determines the subject of a negative property assertion. */
300
+ 'sourceIndividual': new n3.NamedNode('http://www.w3.org/2002/07/owl#sourceIndividual'),
301
+ /** The property that determines the object of a negative object property assertion. */
302
+ 'targetIndividual': new n3.NamedNode('http://www.w3.org/2002/07/owl#targetIndividual'),
303
+ /** The property that determines the value of a negative data property assertion. */
304
+ 'targetValue': new n3.NamedNode('http://www.w3.org/2002/07/owl#targetValue'),
305
+ /** The data property that relates every individual to every data value. */
306
+ 'topDataProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#topDataProperty'),
307
+ /** The object property that relates every two individuals. */
308
+ 'topObjectProperty': new n3.NamedNode('http://www.w3.org/2002/07/owl#topObjectProperty'),
309
+ /** The property that determines the collection of classes or data ranges that build a union. */
310
+ 'unionOf': new n3.NamedNode('http://www.w3.org/2002/07/owl#unionOf'),
311
+ /** The property that identifies the version IRI of an ontology. */
312
+ 'versionIRI': new n3.NamedNode('http://www.w3.org/2002/07/owl#versionIRI'),
313
+ /** The annotation property that provides version information for an ontology or another OWL construct. */
314
+ 'versionInfo': new n3.NamedNode('http://www.w3.org/2002/07/owl#versionInfo'),
315
+ /** The property that determines the collection of facet-value pairs that define a datatype restriction. */
316
+ 'withRestrictions': new n3.NamedNode('http://www.w3.org/2002/07/owl#withRestrictions'),
317
+ };
318
+ //# sourceMappingURL=owl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"owl.js","sourceRoot":"","sources":["../../../../src/rdf/tests/ontologies/owl.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AAEZ,QAAA,GAAG,GAAG;IAClB,kEAAkE;IAClE,cAAc,EAAE,4CAA4C;IAC5D,6DAA6D;IAC7D,oBAAoB,EAAE,kDAAkD;IACxE,gEAAgE;IAChE,uBAAuB,EAAE,qDAAqD;IAC9E,iIAAiI;IACjI,YAAY,EAAE,0CAA0C;IACxD,0CAA0C;IAC1C,oBAAoB,EAAE,kDAAkD;IACxE,0CAA0C;IAC1C,oBAAoB,EAAE,kDAAkD;IACxE,4HAA4H;IAC5H,OAAO,EAAE,qCAAqC;IAC9C,gCAAgC;IAChC,OAAO,EAAE,qCAAqC;IAC9C,gMAAgM;IAChM,WAAW,EAAE,yCAAyC;IACtD,oCAAoC;IACpC,kBAAkB,EAAE,gDAAgD;IACpE,uCAAuC;IACvC,iBAAiB,EAAE,+CAA+C;IAClE,0CAA0C;IAC1C,oBAAoB,EAAE,kDAAkD;IACxE,0CAA0C;IAC1C,oBAAoB,EAAE,kDAAkD;IACxE,kDAAkD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EAAE,CAAC,SAAS,CAAC,uCAAuC,CAAC;IACpE,mEAAmE;IACnE,YAAY,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,0CAA0C,CAAC;IAC1E,0GAA0G;IAC1G,aAAa,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,2CAA2C,CAAC;IAC5E,2GAA2G;IAC3G,kBAAkB,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,gDAAgD,CAAC;CACtF,CAAA"}
@@ -104,9 +104,11 @@ class VocabularyGenerator {
104
104
  */
105
105
  _serialize(stream, prefix, subjects) {
106
106
  stream.write(`import * as n3 from "n3";\n\n`);
107
- this._writeVocabulary(stream, prefix.toUpperCase(), subjects, s => `'${s}'`);
107
+ // Ensure that the prefix is a valid TypeScript identifier.
108
+ const p = prefix.replace('-', '_');
109
+ this._writeVocabulary(stream, p.toUpperCase(), subjects, s => `'${s}'`);
108
110
  stream.write(`\n\n`);
109
- this._writeVocabulary(stream, prefix.toLowerCase(), subjects, s => `new n3.NamedNode('${s}')`);
111
+ this._writeVocabulary(stream, p.toLowerCase(), subjects, s => `new n3.NamedNode('${s}')`);
110
112
  stream.on("end", () => {
111
113
  stream.end();
112
114
  });
@@ -1 +1 @@
1
- {"version":3,"file":"vocabulary-generator.js","sourceRoot":"","sources":["../../src/rdf/vocabulary-generator.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,+CAAyB;AACzB,+BAA+D;AAE/D,8CAA2C;AAE3C;;GAEG;AACH,MAAa,mBAAmB;IAAhC;QACI;;WAEG;QACc,yBAAoB,GAAG,IAAI,GAAG,CAAS;YACpD,MAAM;YACN,OAAO;YACP,KAAK;YACL,KAAK;YACL,KAAK;SACR,CAAC,CAAC;QAEH;;WAEG;QACc,2BAAsB,GAAG,IAAI,GAAG,CAAS;YACtD,iBAAI,CAAC,OAAO;YACZ,iBAAI,CAAC,UAAU;SAClB,CAAC,CAAC;IA2LP,CAAC;IAzLG;;;;OAIG;IACK,gBAAgB,CAAC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GAAG,CAAC,EAAE;oBACpC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAA,WAAI,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;oBAEjD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBAClB;aACJ;YAAA,CAAC;YAEF,IAAI,WAAW,EAAE;gBACb,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;aACtC;YAED,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;CACJ;AAhND,kDAgNC"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "ontology",
11
11
  "vocabulary"
12
12
  ],
13
- "version": "0.1.10",
13
+ "version": "0.1.11",
14
14
  "private": false,
15
15
  "author": {
16
16
  "name": "Sebastian Faubel"
@@ -37,6 +37,7 @@
37
37
  "scripts": {
38
38
  "prepublish": "npm run build",
39
39
  "build": "tsc -p tsconfig.app.json",
40
+ "build:ontologies": "npx ts-node build-ontologies.ts",
40
41
  "test": "npx jest"
41
42
  },
42
43
  "devDependencies": {