@faubulous/mentor-rdf 0.1.20 → 0.1.22

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,15 +1,5 @@
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
- }
13
3
  /**
14
4
  * A repository for retrieving properties from graphs.
15
5
  */
@@ -23,20 +13,26 @@ export declare class PropertyRepository extends ResourceRepository {
23
13
  */
24
14
  rangePredicate: n3.NamedNode<"http://www.w3.org/2000/01/rdf-schema#range">;
25
15
  constructor(store: n3.Store);
26
- private _skip;
27
16
  /**
28
17
  * Get all properties in the repository.
29
18
  * @param options Optional options for retrieving properties.
30
19
  * @returns A list of all properties in the repository.
31
20
  */
32
- getProperties(options?: PropertyRetrievalOptions): string[];
21
+ getProperties(): string[];
22
+ /**
23
+ * Get properties of a given type.
24
+ * @param typeUri URI of a property type.
25
+ * @param includeInferred Indicate if properties of a more specific type should be included in the result.
26
+ * @returns A list of properties of the given type.
27
+ */
28
+ getPropertiesOfType(typeUri: string, includeInferred?: boolean): string[];
33
29
  /**
34
30
  * Get the super properties of a given property.
35
31
  * @param subject URI of a property.
36
32
  * @param options Optional options for retrieving properties.
37
33
  * @returns An array of super properties of the given property, an empty array if the property has no super properties.
38
34
  */
39
- getSuperProperties(subject: string, options?: PropertyRetrievalOptions): string[];
35
+ getSuperProperties(subject: string): string[];
40
36
  /**
41
37
  * Recursively find the first path from a given property to a root property.
42
38
  * @param subject URI of a property.
@@ -52,27 +48,27 @@ export declare class PropertyRepository extends ResourceRepository {
52
48
  * @param options Optional options for retrieving properties.
53
49
  * @returns A string array containing the first path that is found from the given property to a root property.
54
50
  */
55
- getRootPropertiesPath(subject: string, options?: PropertyRetrievalOptions): string[];
51
+ getRootPropertiesPath(subject: string): string[];
56
52
  /**
57
53
  * Indicate if there are sub properties of a given property.
58
54
  * @param subject URI of a property.
59
55
  * @param options Optional options for retrieving properties.
60
56
  * @returns true if the property has sub properties, false otherwise.
61
57
  */
62
- hasSubProperties(subject: string, options?: PropertyRetrievalOptions): boolean;
58
+ hasSubProperties(subject: string): boolean;
63
59
  /**
64
60
  * Get the sub properties of a given property or all root properties.
65
61
  * @param subject URI of a property or undefined to get all root properties.
66
62
  * @param options Optional options for retrieving properties.
67
63
  * @returns An array of sub properties of the given property, an empty array if the property has no sub properties.
68
64
  */
69
- getSubProperties(subject?: string, options?: PropertyRetrievalOptions): string[];
65
+ getSubProperties(subject?: string): string[];
70
66
  /**
71
67
  * Get all properties from the repository that have no super properties.
72
68
  * @param options Optional options for retrieving properties.
73
69
  * @returns An array of root properties in the repository.
74
70
  */
75
- getRootProperties(options?: PropertyRetrievalOptions): string[];
71
+ getRootProperties(): string[];
76
72
  /**
77
73
  * Indicate if there is an equivalent property of a given property.
78
74
  * @param uri URI of a property.
@@ -97,4 +93,3 @@ export declare class PropertyRepository extends ResourceRepository {
97
93
  */
98
94
  getPropertyTypes(): string[];
99
95
  }
100
- export {};
@@ -20,43 +20,56 @@ 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
- }
37
23
  /**
38
24
  * Get all properties in the repository.
39
25
  * @param options Optional options for retrieving properties.
40
26
  * @returns A list of all properties in the repository.
41
27
  */
42
- getProperties(options) {
28
+ getProperties() {
43
29
  const result = new Set();
44
30
  for (let q of this.store.match(null, ontologies_1.rdf.type, ontologies_1.rdf.Property)) {
45
31
  const s = q.subject;
46
- if (this._skip(s, options)) {
32
+ if (s.termType != "NamedNode") {
47
33
  continue;
48
34
  }
49
35
  result.add(s.value);
50
36
  }
51
37
  return Array.from(result);
52
38
  }
39
+ /**
40
+ * Get properties of a given type.
41
+ * @param typeUri URI of a property type.
42
+ * @param includeInferred Indicate if properties of a more specific type should be included in the result.
43
+ * @returns A list of properties of the given type.
44
+ */
45
+ getPropertiesOfType(typeUri, includeInferred = true) {
46
+ const result = new Set();
47
+ const type = new n3.NamedNode(typeUri);
48
+ for (let q of this.store.match(null, ontologies_1.rdf.type, type)) {
49
+ const s = q.subject;
50
+ if (s.termType != "NamedNode") {
51
+ continue;
52
+ }
53
+ if (includeInferred || typeUri != ontologies_1.rdf.Property.id) {
54
+ result.add(s.value);
55
+ }
56
+ else {
57
+ // In the case of rdf:Property, we do not want to include properties that have a more specific type.
58
+ const t = new Set(Array.from(this.store.match(new n3.NamedNode(s.value), ontologies_1.rdf.type, null)).map(q => q.object.value));
59
+ if (t.size == 1) {
60
+ result.add(s.value);
61
+ }
62
+ }
63
+ }
64
+ return Array.from(result);
65
+ }
53
66
  /**
54
67
  * Get the super properties of a given property.
55
68
  * @param subject URI of a property.
56
69
  * @param options Optional options for retrieving properties.
57
70
  * @returns An array of super properties of the given property, an empty array if the property has no super properties.
58
71
  */
59
- getSuperProperties(subject, options) {
72
+ getSuperProperties(subject) {
60
73
  const result = [];
61
74
  const s = n3.DataFactory.namedNode(subject);
62
75
  for (let q of this.store.match(s, ontologies_1.rdfs.subPropertyOf, null)) {
@@ -76,7 +89,7 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
76
89
  * @param options Optional options for retrieving properties.
77
90
  * @returns The first path that is found from the given property to a root class.
78
91
  */
79
- _getRootPropertyPath(subject, path, backtrack, options) {
92
+ _getRootPropertyPath(subject, path, backtrack) {
80
93
  const superClasses = this.getSuperProperties(subject);
81
94
  for (let o of superClasses.filter(o => !backtrack.has(o))) {
82
95
  return this._getRootPropertyPath(o, [...path, o], backtrack);
@@ -89,7 +102,7 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
89
102
  * @param options Optional options for retrieving properties.
90
103
  * @returns A string array containing the first path that is found from the given property to a root property.
91
104
  */
92
- getRootPropertiesPath(subject, options) {
105
+ getRootPropertiesPath(subject) {
93
106
  return this._getRootPropertyPath(subject, [], new Set());
94
107
  }
95
108
  /**
@@ -98,7 +111,7 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
98
111
  * @param options Optional options for retrieving properties.
99
112
  * @returns true if the property has sub properties, false otherwise.
100
113
  */
101
- hasSubProperties(subject, options) {
114
+ hasSubProperties(subject) {
102
115
  const o = n3.DataFactory.namedNode(subject);
103
116
  for (let _q of this.store.match(null, ontologies_1.rdfs.subPropertyOf, o)) {
104
117
  return true;
@@ -111,7 +124,7 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
111
124
  * @param options Optional options for retrieving properties.
112
125
  * @returns An array of sub properties of the given property, an empty array if the property has no sub properties.
113
126
  */
114
- getSubProperties(subject, options) {
127
+ getSubProperties(subject) {
115
128
  if (subject) {
116
129
  const result = new Set();
117
130
  const o = n3.DataFactory.namedNode(subject);
@@ -133,7 +146,7 @@ class PropertyRepository extends resource_repository_1.ResourceRepository {
133
146
  * @param options Optional options for retrieving properties.
134
147
  * @returns An array of root properties in the repository.
135
148
  */
136
- getRootProperties(options) {
149
+ getRootProperties() {
137
150
  const properties = new Set();
138
151
  const subproperties = new Set();
139
152
  for (let q of this.store.match(null, ontologies_1.rdf.type, ontologies_1.rdf.Property)) {
@@ -1 +1 @@
1
- {"version":3,"file":"property-repository.js","sourceRoot":"","sources":["../../src/rdf/property-repository.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AAEzB,8CAA+C;AAC/C,+DAA2D;AAc3D;;GAEG;AACH,MAAa,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,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;IAED;;;OAGG;IACI,gBAAgB;QACnB,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;QAEjC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;YAC9D,MAAM,KAAK,GAAG,IAAI,GAAG,CAAS,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAExG,KAAK,IAAI,CAAC,IAAI,KAAK,EAAE;gBACjB,sEAAsE;gBACtE,IAAI,CAAC,IAAI,gBAAG,CAAC,QAAQ,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,GAAG,CAAC,EAAE;oBAC3C,SAAS;iBACZ;gBAED,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aACjB;SACJ;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;CACJ;AAxQD,gDAwQC"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "ontology",
11
11
  "vocabulary"
12
12
  ],
13
- "version": "0.1.20",
13
+ "version": "0.1.22",
14
14
  "private": false,
15
15
  "author": {
16
16
  "name": "Sebastian Faubel"