@faubulous/mentor-rdf 0.2.49 → 0.2.50

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.
Files changed (154) hide show
  1. package/out/index.d.ts +0 -0
  2. package/out/index.js +1 -1
  3. package/out/ontologies/index.d.ts +0 -0
  4. package/out/ontologies/owl.d.ts +0 -0
  5. package/out/ontologies/rdf.d.ts +0 -0
  6. package/out/ontologies/rdfa.d.ts +0 -0
  7. package/out/ontologies/rdfs.d.ts +0 -0
  8. package/out/ontologies/sh.d.ts +0 -0
  9. package/out/ontologies/skos-xl.d.ts +0 -0
  10. package/out/ontologies/skos.d.ts +0 -0
  11. package/out/ontologies/src.d.ts +0 -0
  12. package/out/ontologies/xsd.d.ts +0 -0
  13. package/out/rdf/class-repository.d.ts +0 -0
  14. package/out/rdf/concept-repository.d.ts +0 -0
  15. package/out/rdf/index.d.ts +0 -0
  16. package/out/rdf/individual-repository.d.ts +0 -0
  17. package/out/rdf/parsers/rdf-syntax.d.ts +0 -0
  18. package/out/rdf/parsers/sparql-syntax-parser.d.ts +0 -0
  19. package/out/rdf/parsers/syntax-parser.d.ts +0 -0
  20. package/out/rdf/parsers/trig-syntax-parser.d.ts +0 -0
  21. package/out/rdf/parsers/turtle-syntax-parser.d.ts +0 -0
  22. package/out/rdf/property-repository.d.ts +0 -0
  23. package/out/rdf/reasoners/owl-reasoner.d.ts +0 -0
  24. package/out/rdf/reasoners/rdfs-reasoner.d.ts +0 -0
  25. package/out/rdf/reasoners/reasoner.d.ts +0 -0
  26. package/out/rdf/reasoners/shacl-reasoner.d.ts +0 -0
  27. package/out/rdf/reasoners/skos-reasoner.d.ts +0 -0
  28. package/out/rdf/resource-repository.d.ts +31 -15
  29. package/out/rdf/shape-repository.d.ts +0 -0
  30. package/out/rdf/store.d.ts +0 -0
  31. package/out/rdf/uri.d.ts +0 -0
  32. package/out/rdf/vocabulary-repository.d.ts +0 -0
  33. package/package.json +66 -66
  34. package/out/index.js.map +0 -1
  35. package/out/ontologies/index.js +0 -44
  36. package/out/ontologies/index.js.map +0 -1
  37. package/out/ontologies/owl.js +0 -322
  38. package/out/ontologies/owl.js.map +0 -1
  39. package/out/ontologies/rdf.js +0 -102
  40. package/out/ontologies/rdf.js.map +0 -1
  41. package/out/ontologies/rdfa.js +0 -56
  42. package/out/ontologies/rdfa.js.map +0 -1
  43. package/out/ontologies/rdfs.js +0 -76
  44. package/out/ontologies/rdfs.js.map +0 -1
  45. package/out/ontologies/sh.js +0 -822
  46. package/out/ontologies/sh.js.map +0 -1
  47. package/out/ontologies/skos-xl.js +0 -40
  48. package/out/ontologies/skos-xl.js.map +0 -1
  49. package/out/ontologies/skos.js +0 -144
  50. package/out/ontologies/skos.js.map +0 -1
  51. package/out/ontologies/src.js +0 -3016
  52. package/out/ontologies/src.js.map +0 -1
  53. package/out/ontologies/xsd.js +0 -108
  54. package/out/ontologies/xsd.js.map +0 -1
  55. package/out/rdf/class-repository.js +0 -324
  56. package/out/rdf/class-repository.js.map +0 -1
  57. package/out/rdf/concept-repository.js +0 -220
  58. package/out/rdf/concept-repository.js.map +0 -1
  59. package/out/rdf/index.js +0 -18
  60. package/out/rdf/index.js.map +0 -1
  61. package/out/rdf/individual-repository.js +0 -77
  62. package/out/rdf/individual-repository.js.map +0 -1
  63. package/out/rdf/parsers/rdf-syntax.js +0 -19
  64. package/out/rdf/parsers/rdf-syntax.js.map +0 -1
  65. package/out/rdf/parsers/sparql-syntax-parser.js +0 -61
  66. package/out/rdf/parsers/sparql-syntax-parser.js.map +0 -1
  67. package/out/rdf/parsers/syntax-parser.js +0 -3
  68. package/out/rdf/parsers/syntax-parser.js.map +0 -1
  69. package/out/rdf/parsers/trig-syntax-parser.js +0 -30
  70. package/out/rdf/parsers/trig-syntax-parser.js.map +0 -1
  71. package/out/rdf/parsers/turtle-syntax-parser.js +0 -30
  72. package/out/rdf/parsers/turtle-syntax-parser.js.map +0 -1
  73. package/out/rdf/property-repository.js +0 -257
  74. package/out/rdf/property-repository.js.map +0 -1
  75. package/out/rdf/reasoners/owl-reasoner.js +0 -218
  76. package/out/rdf/reasoners/owl-reasoner.js.map +0 -1
  77. package/out/rdf/reasoners/rdfs-reasoner.js +0 -144
  78. package/out/rdf/reasoners/rdfs-reasoner.js.map +0 -1
  79. package/out/rdf/reasoners/reasoner.js +0 -106
  80. package/out/rdf/reasoners/reasoner.js.map +0 -1
  81. package/out/rdf/reasoners/shacl-reasoner.js +0 -170
  82. package/out/rdf/reasoners/shacl-reasoner.js.map +0 -1
  83. package/out/rdf/reasoners/skos-reasoner.js +0 -109
  84. package/out/rdf/reasoners/skos-reasoner.js.map +0 -1
  85. package/out/rdf/resource-repository.js +0 -136
  86. package/out/rdf/resource-repository.js.map +0 -1
  87. package/out/rdf/shape-repository.js +0 -298
  88. package/out/rdf/shape-repository.js.map +0 -1
  89. package/out/rdf/store.js +0 -240
  90. package/out/rdf/store.js.map +0 -1
  91. package/out/rdf/tests/helpers.d.ts +0 -39
  92. package/out/rdf/tests/helpers.js +0 -85
  93. package/out/rdf/tests/helpers.js.map +0 -1
  94. package/out/rdf/tests/vocabularies/bfo.d.ts +0 -413
  95. package/out/rdf/tests/vocabularies/bfo.js +0 -418
  96. package/out/rdf/tests/vocabularies/bfo.js.map +0 -1
  97. package/out/rdf/tests/vocabularies/cidoc-crm.d.ts +0 -2101
  98. package/out/rdf/tests/vocabularies/cidoc-crm.js +0 -2106
  99. package/out/rdf/tests/vocabularies/cidoc-crm.js.map +0 -1
  100. package/out/rdf/tests/vocabularies/emmo.d.ts +0 -5525
  101. package/out/rdf/tests/vocabularies/emmo.js +0 -5530
  102. package/out/rdf/tests/vocabularies/emmo.js.map +0 -1
  103. package/out/rdf/tests/vocabularies/fibo-agents.d.ts +0 -17
  104. package/out/rdf/tests/vocabularies/fibo-agents.js +0 -22
  105. package/out/rdf/tests/vocabularies/fibo-agents.js.map +0 -1
  106. package/out/rdf/tests/vocabularies/fibo-organization.d.ts +0 -69
  107. package/out/rdf/tests/vocabularies/fibo-organization.js +0 -74
  108. package/out/rdf/tests/vocabularies/fibo-organization.js.map +0 -1
  109. package/out/rdf/tests/vocabularies/gist.d.ts +0 -1071
  110. package/out/rdf/tests/vocabularies/gist.js +0 -1076
  111. package/out/rdf/tests/vocabularies/gist.js.map +0 -1
  112. package/out/rdf/tests/vocabularies/index.d.ts +0 -17
  113. package/out/rdf/tests/vocabularies/index.js +0 -90
  114. package/out/rdf/tests/vocabularies/index.js.map +0 -1
  115. package/out/rdf/tests/vocabularies/lob.d.ts +0 -5669
  116. package/out/rdf/tests/vocabularies/lob.js +0 -5674
  117. package/out/rdf/tests/vocabularies/lob.js.map +0 -1
  118. package/out/rdf/tests/vocabularies/multi.d.ts +0 -29
  119. package/out/rdf/tests/vocabularies/multi.js +0 -34
  120. package/out/rdf/tests/vocabularies/multi.js.map +0 -1
  121. package/out/rdf/tests/vocabularies/org.d.ts +0 -193
  122. package/out/rdf/tests/vocabularies/org.js +0 -198
  123. package/out/rdf/tests/vocabularies/org.js.map +0 -1
  124. package/out/rdf/tests/vocabularies/owl.d.ts +0 -317
  125. package/out/rdf/tests/vocabularies/owl.js +0 -322
  126. package/out/rdf/tests/vocabularies/owl.js.map +0 -1
  127. package/out/rdf/tests/vocabularies/prov-o.d.ts +0 -391
  128. package/out/rdf/tests/vocabularies/prov-o.js +0 -396
  129. package/out/rdf/tests/vocabularies/prov-o.js.map +0 -1
  130. package/out/rdf/tests/vocabularies/schema-nq.d.ts +0 -12079
  131. package/out/rdf/tests/vocabularies/schema-nq.js +0 -12084
  132. package/out/rdf/tests/vocabularies/schema-nq.js.map +0 -1
  133. package/out/rdf/tests/vocabularies/schema-nt.d.ts +0 -12079
  134. package/out/rdf/tests/vocabularies/schema-nt.js +0 -12084
  135. package/out/rdf/tests/vocabularies/schema-nt.js.map +0 -1
  136. package/out/rdf/tests/vocabularies/schema.d.ts +0 -12079
  137. package/out/rdf/tests/vocabularies/schema.js +0 -12084
  138. package/out/rdf/tests/vocabularies/schema.js.map +0 -1
  139. package/out/rdf/tests/vocabularies/shapes.d.ts +0 -53
  140. package/out/rdf/tests/vocabularies/shapes.js +0 -58
  141. package/out/rdf/tests/vocabularies/shapes.js.map +0 -1
  142. package/out/rdf/tests/vocabularies/skos.d.ts +0 -139
  143. package/out/rdf/tests/vocabularies/skos.js +0 -144
  144. package/out/rdf/tests/vocabularies/skos.js.map +0 -1
  145. package/out/rdf/tests/vocabularies/unesco.d.ts +0 -10517
  146. package/out/rdf/tests/vocabularies/unesco.js +0 -10522
  147. package/out/rdf/tests/vocabularies/unesco.js.map +0 -1
  148. package/out/rdf/uri.js +0 -84
  149. package/out/rdf/uri.js.map +0 -1
  150. package/out/rdf/vocabulary-generator.d.ts +0 -86
  151. package/out/rdf/vocabulary-generator.js +0 -294
  152. package/out/rdf/vocabulary-generator.js.map +0 -1
  153. package/out/rdf/vocabulary-repository.js +0 -121
  154. package/out/rdf/vocabulary-repository.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"src.js","sourceRoot":"","sources":["../../src/ontologies/src.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAioDjB,CAAC;AAEW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEtB,CAAC;AAEW,QAAA,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAqRwB,CAAC;AAEhC,QAAA,GAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uKA+EoJ,CAAC"}
@@ -1,108 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.xsd = exports._xsd = exports.XSD = exports._XSD = void 0;
4
- const tslib_1 = require("tslib");
5
- const n3 = tslib_1.__importStar(require("n3"));
6
- /** Namespace URI of the XSD vocabulary. */
7
- exports._XSD = 'http://www.w3.org/2001/XMLSchema#';
8
- exports.XSD = {
9
- /** anyURI represents an Internationalized Resource Identifier Reference (IRI). An anyURI value can be absolute or relative, and may have an optional fragment identifier (i.e., it may be an IRI Reference). This type should be used when the value fulfills the role of an IRI, as defined in [RFC 3987] or its successor(s) in the IETF Standards Track. */
10
- 'anyURI': 'http://www.w3.org/2001/XMLSchema#anyURI',
11
- /** base64Binary represents arbitrary Base64-encoded binary data. For base64Binary data the entire binary stream is encoded using the Base64 Encoding defined in [RFC 3548], which is derived from the encoding described in [RFC 2045]. */
12
- 'base64Binary': 'http://www.w3.org/2001/XMLSchema#base64Binary',
13
- /** boolean represents the values of two-valued logic. */
14
- 'boolean': 'http://www.w3.org/2001/XMLSchema#boolean',
15
- /** byte is ·derived· from short by setting the value of ·maxInclusive· to be 127 and ·minInclusive· to be -128. The ·base type· of byte is short. */
16
- 'byte': 'http://www.w3.org/2001/XMLSchema#byte',
17
- /** date represents top-open intervals of exactly one day in length on the timelines of dateTime, beginning on the beginning moment of each day, up to but not including the beginning moment of the next day). For non-timezoned values, the top-open intervals disjointly cover the non-timezoned timeline, one per day. For timezoned values, the intervals begin at every minute and therefore overlap. */
18
- 'date': 'http://www.w3.org/2001/XMLSchema#date',
19
- /** dateTime represents instants of time, optionally marked with a particular time zone offset. Values representing the same instant but having different time zone offsets are equal but not identical. */
20
- 'dateTime': 'http://www.w3.org/2001/XMLSchema#dateTime',
21
- /** decimal represents a subset of the real numbers, which can be represented by decimal numerals. The ·value space· of decimal is the set of numbers that can be obtained by dividing an integer by a non-negative power of ten, i.e., expressible as i / 10n where i and n are integers and n ≥ 0. Precision is not reflected in this value space; the number 2.0 is not distinct from the number 2.00. The order relation on decimal is the order relation on real numbers, restricted to this subset. */
22
- 'decimal': 'http://www.w3.org/2001/XMLSchema#decimal',
23
- /** The double datatype is patterned after the IEEE double-precision 64-bit floating point datatype [IEEE 754-2008]. Each floating point datatype has a value space that is a subset of the rational numbers. Floating point numbers are often used to approximate arbitrary real numbers. */
24
- 'double': 'http://www.w3.org/2001/XMLSchema#double',
25
- /** duration is a datatype that represents durations of time. The concept of duration being captured is drawn from those of [ISO 8601], specifically durations without fixed endpoints. */
26
- 'duration': 'http://www.w3.org/2001/XMLSchema#duration',
27
- /** The float datatype is patterned after the IEEE single-precision 32-bit floating point datatype [IEEE 754-2008]. Its value space is a subset of the rational numbers. Floating point numbers are often used to approximate arbitrary real numbers. */
28
- 'float': 'http://www.w3.org/2001/XMLSchema#float',
29
- /** int is ·derived· from long by setting the value of ·maxInclusive· to be 2147483647 and ·minInclusive· to be -2147483648. The ·base type· of int is long. */
30
- 'int': 'http://www.w3.org/2001/XMLSchema#int',
31
- /** integer is ·derived· from decimal by fixing the value of ·fractionDigits· to be 0 and disallowing the trailing decimal point. This results in the standard mathematical concept of the integer numbers. The ·value space· of integer is the infinite set {...,-2,-1,0,1,2,...}. The ·base type· of integer is decimal. */
32
- 'integer': 'http://www.w3.org/2001/XMLSchema#integer',
33
- /** long is ·derived· from integer by setting the value of ·maxInclusive· to be 9223372036854775807 and ·minInclusive· to be -9223372036854775808. The ·base type· of long is integer. */
34
- 'long': 'http://www.w3.org/2001/XMLSchema#long',
35
- /** negativeInteger is ·derived· from nonPositiveInteger by setting the value of ·maxInclusive· to be -1. This results in the standard mathematical concept of the negative integers. The ·value space· of negativeInteger is the infinite set {...,-2,-1}. The ·base type· of negativeInteger is nonPositiveInteger. */
36
- 'negativeInteger': 'http://www.w3.org/2001/XMLSchema#negativeInteger',
37
- 'nonNegativeInteger': 'http://www.w3.org/2001/XMLSchema#nonNegativeInteger',
38
- /** nonPositiveInteger is ·derived· from integer by setting the value of ·maxInclusive· to be 0. This results in the standard mathematical concept of the non-positive integers. The ·value space· of nonPositiveInteger is the infinite set {...,-2,-1,0}. The ·base type· of nonPositiveInteger is integer. */
39
- 'nonPositiveInteger': 'http://www.w3.org/2001/XMLSchema#nonPositiveInteger',
40
- /** nonNegativeInteger is ·derived· from integer by setting the value of ·minInclusive· to be 0. This results in the standard mathematical concept of the non-negative integers. The ·value space· of nonNegativeInteger is the infinite set {0,1,2,...}. The ·base type· of nonNegativeInteger is integer. */
41
- 'positiveInteger': 'http://www.w3.org/2001/XMLSchema#positiveInteger',
42
- /** short is ·derived· from int by setting the value of ·maxInclusive· to be 32767 and ·minInclusive· to be -32768. The ·base type· of short is int. */
43
- 'short': 'http://www.w3.org/2001/XMLSchema#short',
44
- /** The string datatype represents character strings in XML. */
45
- 'string': 'http://www.w3.org/2001/XMLSchema#string',
46
- /** time represents instants of time that recur at the same point in each calendar day, or that occur in some arbitrary calendar day. */
47
- 'time': 'http://www.w3.org/2001/XMLSchema#time',
48
- /** unsignedInt is ·derived· from unsignedLong by setting the value of ·maxInclusive· to be 4294967295. The ·base type· of unsignedInt is unsignedLong. */
49
- 'unsignedInt': 'http://www.w3.org/2001/XMLSchema#unsignedInt',
50
- /** unsignedShort is ·derived· from unsignedInt by setting the value of ·maxInclusive· to be 65535. The ·base type· of unsignedShort is unsignedInt. */
51
- 'unsignedShort': 'http://www.w3.org/2001/XMLSchema#unsignedShort',
52
- /** unsignedLong is ·derived· from nonNegativeInteger by setting the value of ·maxInclusive· to be 18446744073709551615. The ·base type· of unsignedLong is nonNegativeInteger. */
53
- 'unsingedLong': 'http://www.w3.org/2001/XMLSchema#unsingedLong',
54
- /** unsignedByte is ·derived· from unsignedShort by setting the value of ·maxInclusive· to be 255. The ·base type· of unsignedByte is unsignedShort. */
55
- 'usignedByte': 'http://www.w3.org/2001/XMLSchema#usignedByte',
56
- };
57
- /** Namespace URI of the xsd vocabulary. */
58
- exports._xsd = new n3.NamedNode('http://www.w3.org/2001/XMLSchema#');
59
- exports.xsd = {
60
- /** anyURI represents an Internationalized Resource Identifier Reference (IRI). An anyURI value can be absolute or relative, and may have an optional fragment identifier (i.e., it may be an IRI Reference). This type should be used when the value fulfills the role of an IRI, as defined in [RFC 3987] or its successor(s) in the IETF Standards Track. */
61
- 'anyURI': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#anyURI'),
62
- /** base64Binary represents arbitrary Base64-encoded binary data. For base64Binary data the entire binary stream is encoded using the Base64 Encoding defined in [RFC 3548], which is derived from the encoding described in [RFC 2045]. */
63
- 'base64Binary': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#base64Binary'),
64
- /** boolean represents the values of two-valued logic. */
65
- 'boolean': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#boolean'),
66
- /** byte is ·derived· from short by setting the value of ·maxInclusive· to be 127 and ·minInclusive· to be -128. The ·base type· of byte is short. */
67
- 'byte': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#byte'),
68
- /** date represents top-open intervals of exactly one day in length on the timelines of dateTime, beginning on the beginning moment of each day, up to but not including the beginning moment of the next day). For non-timezoned values, the top-open intervals disjointly cover the non-timezoned timeline, one per day. For timezoned values, the intervals begin at every minute and therefore overlap. */
69
- 'date': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#date'),
70
- /** dateTime represents instants of time, optionally marked with a particular time zone offset. Values representing the same instant but having different time zone offsets are equal but not identical. */
71
- 'dateTime': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#dateTime'),
72
- /** decimal represents a subset of the real numbers, which can be represented by decimal numerals. The ·value space· of decimal is the set of numbers that can be obtained by dividing an integer by a non-negative power of ten, i.e., expressible as i / 10n where i and n are integers and n ≥ 0. Precision is not reflected in this value space; the number 2.0 is not distinct from the number 2.00. The order relation on decimal is the order relation on real numbers, restricted to this subset. */
73
- 'decimal': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#decimal'),
74
- /** The double datatype is patterned after the IEEE double-precision 64-bit floating point datatype [IEEE 754-2008]. Each floating point datatype has a value space that is a subset of the rational numbers. Floating point numbers are often used to approximate arbitrary real numbers. */
75
- 'double': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#double'),
76
- /** duration is a datatype that represents durations of time. The concept of duration being captured is drawn from those of [ISO 8601], specifically durations without fixed endpoints. */
77
- 'duration': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#duration'),
78
- /** The float datatype is patterned after the IEEE single-precision 32-bit floating point datatype [IEEE 754-2008]. Its value space is a subset of the rational numbers. Floating point numbers are often used to approximate arbitrary real numbers. */
79
- 'float': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#float'),
80
- /** int is ·derived· from long by setting the value of ·maxInclusive· to be 2147483647 and ·minInclusive· to be -2147483648. The ·base type· of int is long. */
81
- 'int': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#int'),
82
- /** integer is ·derived· from decimal by fixing the value of ·fractionDigits· to be 0 and disallowing the trailing decimal point. This results in the standard mathematical concept of the integer numbers. The ·value space· of integer is the infinite set {...,-2,-1,0,1,2,...}. The ·base type· of integer is decimal. */
83
- 'integer': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#integer'),
84
- /** long is ·derived· from integer by setting the value of ·maxInclusive· to be 9223372036854775807 and ·minInclusive· to be -9223372036854775808. The ·base type· of long is integer. */
85
- 'long': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#long'),
86
- /** negativeInteger is ·derived· from nonPositiveInteger by setting the value of ·maxInclusive· to be -1. This results in the standard mathematical concept of the negative integers. The ·value space· of negativeInteger is the infinite set {...,-2,-1}. The ·base type· of negativeInteger is nonPositiveInteger. */
87
- 'negativeInteger': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#negativeInteger'),
88
- 'nonNegativeInteger': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#nonNegativeInteger'),
89
- /** nonPositiveInteger is ·derived· from integer by setting the value of ·maxInclusive· to be 0. This results in the standard mathematical concept of the non-positive integers. The ·value space· of nonPositiveInteger is the infinite set {...,-2,-1,0}. The ·base type· of nonPositiveInteger is integer. */
90
- 'nonPositiveInteger': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#nonPositiveInteger'),
91
- /** nonNegativeInteger is ·derived· from integer by setting the value of ·minInclusive· to be 0. This results in the standard mathematical concept of the non-negative integers. The ·value space· of nonNegativeInteger is the infinite set {0,1,2,...}. The ·base type· of nonNegativeInteger is integer. */
92
- 'positiveInteger': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#positiveInteger'),
93
- /** short is ·derived· from int by setting the value of ·maxInclusive· to be 32767 and ·minInclusive· to be -32768. The ·base type· of short is int. */
94
- 'short': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#short'),
95
- /** The string datatype represents character strings in XML. */
96
- 'string': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#string'),
97
- /** time represents instants of time that recur at the same point in each calendar day, or that occur in some arbitrary calendar day. */
98
- 'time': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#time'),
99
- /** unsignedInt is ·derived· from unsignedLong by setting the value of ·maxInclusive· to be 4294967295. The ·base type· of unsignedInt is unsignedLong. */
100
- 'unsignedInt': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#unsignedInt'),
101
- /** unsignedShort is ·derived· from unsignedInt by setting the value of ·maxInclusive· to be 65535. The ·base type· of unsignedShort is unsignedInt. */
102
- 'unsignedShort': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#unsignedShort'),
103
- /** unsignedLong is ·derived· from nonNegativeInteger by setting the value of ·maxInclusive· to be 18446744073709551615. The ·base type· of unsignedLong is nonNegativeInteger. */
104
- 'unsingedLong': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#unsingedLong'),
105
- /** unsignedByte is ·derived· from unsignedShort by setting the value of ·maxInclusive· to be 255. The ·base type· of unsignedByte is unsignedShort. */
106
- 'usignedByte': new n3.NamedNode('http://www.w3.org/2001/XMLSchema#usignedByte'),
107
- };
108
- //# sourceMappingURL=xsd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xsd.js","sourceRoot":"","sources":["../../src/ontologies/xsd.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AAEzB,2CAA2C;AAC9B,QAAA,IAAI,GAAG,mCAAmC,CAAC;AAE3C,QAAA,GAAG,GAAG;IAClB,iWAAiW;IACjW,QAAQ,EAAE,yCAAyC;IACnD,4OAA4O;IAC5O,cAAc,EAAE,+CAA+C;IAC/D,yDAAyD;IACzD,SAAS,EAAE,0CAA0C;IACrD,qJAAqJ;IACrJ,MAAM,EAA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C;IACrE,wIAAwI;IACxI,MAAM,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,uCAAuC,CAAC;IACjE,2JAA2J;IAC3J,aAAa,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,8CAA8C,CAAC;IAC/E,wJAAwJ;IACxJ,eAAe,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,gDAAgD,CAAC;IACnF,mLAAmL;IACnL,cAAc,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,+CAA+C,CAAC;IACjF,wJAAwJ;IACxJ,aAAa,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,8CAA8C,CAAC;CAC/E,CAAA"}
@@ -1,324 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClassRepository = void 0;
4
- const tslib_1 = require("tslib");
5
- const n3 = tslib_1.__importStar(require("n3"));
6
- const ontologies_1 = require("../ontologies");
7
- const concept_repository_1 = require("./concept-repository");
8
- /**
9
- * A repository for retrieving classes from graphs.
10
- */
11
- class ClassRepository extends concept_repository_1.ConceptRepository {
12
- constructor(store) { super(store); }
13
- /**
14
- * Get all classes in the repository.
15
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
16
- * @param options Optional query parameters.
17
- * @returns A list of all classes in the repository.
18
- */
19
- getClasses(graphUris, options) {
20
- const result = new Set();
21
- for (let q of this.store.match(graphUris, null, ontologies_1.rdf.type, ontologies_1.rdfs.Class, options === null || options === void 0 ? void 0 : options.includeInferred)) {
22
- if (!this.skip(graphUris, q.subject, options)) {
23
- result.add(q.subject.value);
24
- }
25
- }
26
- return Array.from(result);
27
- }
28
- /**
29
- * Get the super classes of a given class.
30
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
31
- * @param subjectUri URI of a class.
32
- * @param options Optional query parameters.
33
- * @returns An array of super classes of the given class, an empty array if the class has no super classes.
34
- */
35
- getSuperClasses(graphUris, subjectUri, options) {
36
- const result = new Set();
37
- const s = n3.DataFactory.namedNode(subjectUri);
38
- for (let q of this.store.match(graphUris, s, ontologies_1.rdfs.subClassOf, null, options === null || options === void 0 ? void 0 : options.includeInferred)) {
39
- if (!this.skip(graphUris, q.object, options)) {
40
- result.add(q.object.value);
41
- }
42
- }
43
- return Array.from(result);
44
- }
45
- /**
46
- * Get the first discovered path from a given class to a root class.
47
- * @param subjectUri URI of a class.
48
- * @returns A string array containing the first path that is found from the given class to a root class.
49
- */
50
- getRootClassPath(graphUris, subjectUri, options) {
51
- return this._getRootClassPath(graphUris, subjectUri, [], new Set(), options);
52
- }
53
- /**
54
- * Recursively find the first path from a given class to a root class.
55
- * @param subjectUri URI of a class.
56
- * @param path The current class path.
57
- * @param backtrack Set of URIs that have already been visited.
58
- * @returns The first path that is found from the given class to a root class.
59
- */
60
- _getRootClassPath(graphUris, subjectUri, path, backtrack, options) {
61
- const superClasses = this.getSuperClasses(graphUris, subjectUri, options);
62
- for (let o of superClasses.filter(o => !backtrack.has(o))) {
63
- return this._getRootClassPath(graphUris, o, [...path, o], backtrack, options);
64
- }
65
- return path;
66
- }
67
- /**
68
- * Indicate if there are sub classes of a given class.
69
- * @param subjectUri URI of a class.
70
- * @returns true if the class has sub classes, false otherwise.
71
- */
72
- hasSubClasses(graphUris, subjectUri, options) {
73
- const o = n3.DataFactory.namedNode(subjectUri);
74
- for (let q of this.store.match(graphUris, null, ontologies_1.rdfs.subClassOf, o)) {
75
- if (!this.skip(graphUris, q.subject, options)) {
76
- return true;
77
- }
78
- }
79
- return false;
80
- }
81
- /**
82
- * Get the sub classes of a given class or all root classes.
83
- * @param subjectUri URI of a class or undefined to get all root classes.
84
- * @returns An array of sub classes of the given class, an empty array if the class has no sub classes.
85
- */
86
- getSubClasses(graphUris, subjectUri, options) {
87
- if (subjectUri) {
88
- const result = new Set();
89
- const o = n3.DataFactory.namedNode(subjectUri);
90
- for (let q of this.store.match(graphUris, null, ontologies_1.rdfs.subClassOf, o, options === null || options === void 0 ? void 0 : options.includeInferred)) {
91
- if (!this.skip(graphUris, q.subject, options)) {
92
- result.add(q.subject.value);
93
- }
94
- }
95
- return Array.from(result);
96
- }
97
- else {
98
- return this.getRootClasses(graphUris, options);
99
- }
100
- }
101
- /**
102
- * Recursively traverse all sub classes of a given class and invoke a callback.
103
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
104
- * @param superClass The super class to start the traversal from.
105
- * @param callback A function to call for each sub class. If the function returns `false`, the traversal stops.
106
- * @param options Optional query parameters.
107
- * @param visited A set of visited URIs.
108
- * @returns `true` if the traversal was completed, `false` if it was stopped by the callback.
109
- */
110
- _traverseSubClasses(graphUris, superClass, callback, options, visited = new Set()) {
111
- // Enumerate all sub classes of the given super class.
112
- for (let q of this.store.match(graphUris, null, ontologies_1.rdfs.subClassOf, superClass, options === null || options === void 0 ? void 0 : options.includeInferred)) {
113
- // If it is not skipped and has not been visited yet, we call the callback function.
114
- if (!this.skip(graphUris, q.subject, options) && !visited.has(q.subject.value)) {
115
- visited.add(q.subject.value);
116
- // If the callback returns false, we stop the traversal.
117
- if (callback(q.subject)) {
118
- this._traverseSubClasses(graphUris, q.subject, callback, options, visited);
119
- }
120
- else {
121
- return false;
122
- }
123
- }
124
- }
125
- return true;
126
- }
127
- /**
128
- * Get all sub classes of a given class, including indirect sub classes.
129
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
130
- * @param subjectUri URI of a class.
131
- * @param options Optional query parameters.
132
- * @returns An array of all sub classes of the given class.
133
- */
134
- getAllSubClasses(graphUris, subjectUri, options) {
135
- const result = new Set();
136
- this._traverseSubClasses(graphUris, n3.DataFactory.namedNode(subjectUri), s => { result.add(s.value); return true; }, options);
137
- return Array.from(result);
138
- }
139
- /**
140
- * Indicate if there are instances of a given class or any of its sub classes.
141
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
142
- * @param typeUri URI of the class.
143
- * @param options Optional query parameters.
144
- * @returns `true` if the class has instances, `false` otherwise.
145
- */
146
- hasSubjectsOfType(graphUris, typeUri, options) {
147
- // TODO: Optimize implementation.
148
- return this.getSubjectsOfType(graphUris, typeUri, options).length > 0;
149
- }
150
- /**
151
- * Get all subjects of a given class in the repository.
152
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
153
- * @param typeUri URI of the class.
154
- * @param options Optional query parameters.
155
- * @returns A list of all shapes in the repository.
156
- */
157
- getSubjectsOfType(graphUris, typeUri, options) {
158
- const result = new Set();
159
- if ((options === null || options === void 0 ? void 0 : options.includeSubTypes) === false) {
160
- // 1. Get all subclasses of the given type from the repository -> ClassRepository.
161
- const subclasses = new Set(this.getAllSubClasses(graphUris, typeUri));
162
- // 2. Then get all triples that have a rdf:type predicate.
163
- // a) if the object matches the given type, add it to the result.
164
- // b) if the object is a subclass of the given type, remove it from the result.
165
- const filtered = new Set();
166
- for (let q of this.store.match(graphUris, null, ontologies_1.rdf.type, null, options === null || options === void 0 ? void 0 : options.includeInferred)) {
167
- if (q.object.value == typeUri && !this.skip(graphUris, q.subject, options)) {
168
- result.add(q.subject.value);
169
- }
170
- else if (subclasses.has(q.object.value)) {
171
- filtered.add(q.subject.value);
172
- }
173
- }
174
- return Array.from(result).filter(x => !filtered.has(x));
175
- }
176
- else {
177
- // TODO: This does not explicitly check the sub classes. Implement a unit test.
178
- for (let q of this.store.match(graphUris, null, ontologies_1.rdf.type, new n3.NamedNode(typeUri), options === null || options === void 0 ? void 0 : options.includeInferred)) {
179
- if (!this.skip(graphUris, q.subject, options)) {
180
- result.add(q.subject.value);
181
- }
182
- }
183
- return Array.from(result);
184
- }
185
- }
186
- /**
187
- * Indicate if a given class is direct or indirect (inferred) sub class of another class.
188
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
189
- * @param subjectUri URI of the sub class.
190
- * @param classUri URI of the super class.
191
- * @param options Optional query parameters.
192
- * @returns `true` if the class is a sub class of the other class, false otherwise.
193
- */
194
- isSubClassOf(graphUris, subjectUri, classUri, options) {
195
- return this.getRootClassPath(graphUris, subjectUri, options).includes(classUri);
196
- }
197
- /**
198
- * Indicate if a given class is the intersection of classes.
199
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
200
- * @param subjectUri URI of a class.
201
- * @returns `true` if the class is the intersection of classes, `false` otherwise.
202
- */
203
- isIntersectionOfClasses(graphUris, subjectUri) {
204
- const s = n3.DataFactory.namedNode(subjectUri);
205
- if (this._isIntersectionOfClasses(graphUris, s)) {
206
- return true;
207
- }
208
- // Note: The intersection must be defined in the original graphs, so inference is not required.
209
- for (let q of this.store.match(graphUris, s, ontologies_1.owl.equivalentClass, null, false)) {
210
- if (this._isIntersectionOfClasses(graphUris, q.object)) {
211
- return true;
212
- }
213
- }
214
- return false;
215
- }
216
- _isIntersectionOfClasses(graphUris, subject) {
217
- if (subject instanceof n3.BlankNode || subject instanceof n3.NamedNode) {
218
- for (let _ of this.store.match(graphUris, subject, ontologies_1.owl.intersectionOf, null, false)) {
219
- return true;
220
- }
221
- }
222
- return false;
223
- }
224
- /**
225
- * Indicate if a given class is a (disjoint) union of classes.
226
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
227
- * @param subjectUri URI of a class.
228
- * @returns `true` if the class is a (disjoint) union of classes, `false` otherwise.
229
- */
230
- isUnionOfClasses(graphUris, subjectUri) {
231
- const s = n3.DataFactory.namedNode(subjectUri);
232
- if (this._isUnionOfClasses(graphUris, s)) {
233
- return true;
234
- }
235
- // Note: The union must be defined in the original graphs, so inference is not required.
236
- for (let q of this.store.match(graphUris, s, ontologies_1.owl.equivalentClass, null, false)) {
237
- if (this._isUnionOfClasses(graphUris, q.object)) {
238
- return true;
239
- }
240
- }
241
- return false;
242
- }
243
- _isUnionOfClasses(graphUris, subject) {
244
- if (subject instanceof n3.BlankNode || subject instanceof n3.NamedNode) {
245
- for (let _ of this.store.match(graphUris, subject, ontologies_1.owl.unionOf, null, false)) {
246
- return true;
247
- }
248
- for (let _ of this.store.match(graphUris, subject, ontologies_1.owl.disjointUnionOf, null, false)) {
249
- return true;
250
- }
251
- }
252
- return false;
253
- }
254
- /**
255
- * Get all classes from the repository that have no super classes.
256
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
257
- * @param options Optional query parameters.
258
- * @returns An array of root classes in the repository.
259
- */
260
- getRootClasses(graphUris, options) {
261
- var _a;
262
- const result = new Set();
263
- const classes = new Set(this.getClasses(graphUris, options));
264
- for (let c of classes) {
265
- let hasSuperClass = false;
266
- for (let q of this.store.match(graphUris, new n3.NamedNode(c), ontologies_1.rdfs.subClassOf, null, options === null || options === void 0 ? void 0 : options.includeInferred)) {
267
- const includeReferenced = (_a = options === null || options === void 0 ? void 0 : options.includeReferenced) !== null && _a !== void 0 ? _a : false;
268
- const skip = this.skip(graphUris, q.object, options);
269
- // Do not skip the super property if it is only referenced and the includeReferenced option is set.
270
- if (q.object.termType != "NamedNode" || skip && (!includeReferenced || includeReferenced && this.hasSubject(graphUris, q.object.value))) {
271
- continue;
272
- }
273
- hasSuperClass = true;
274
- // If we have a super property that is not in the list of properties and not excluded by the options, we add it to the result.
275
- if (!classes.has(q.object.value)) {
276
- result.add(q.object.value);
277
- }
278
- break;
279
- }
280
- if (!hasSuperClass) {
281
- result.add(c);
282
- }
283
- }
284
- return Array.from(result);
285
- }
286
- /**
287
- * Indicate if there is an equivalent class of a given class.
288
- * @param graphUris URIs of the graphs to search, `undefined` for the default graph.
289
- * @param subjectUri URI of a class.
290
- * @param options Optional query parameters.
291
- * @returns `true` if the class has an equivalent class, `false` otherwise.
292
- */
293
- hasEquivalentClass(graphUris, subjectUri, options) {
294
- const s = n3.DataFactory.namedNode(subjectUri);
295
- // The OWL resoner will assert the equivalent class relationship in both directions.
296
- for (let _ of this.store.match(graphUris, s, ontologies_1.owl.equivalentClass, null, options === null || options === void 0 ? void 0 : options.includeInferred)) {
297
- return true;
298
- }
299
- return false;
300
- }
301
- /**
302
- * Indicate if a given class has at least one individual defined for it or for one of its sub classes.
303
- * @param graphUris Graph URIs to search in, undefined for the default graph.
304
- * @param classUri URI of a class.
305
- * @param options Optional query parameters.
306
- * @returns `true` if the class has individuals, `false` otherwise.
307
- */
308
- hasIndividuals(graphUris, classUri, options) {
309
- const s = n3.DataFactory.namedNode(classUri);
310
- for (let q of this.store.match(graphUris, null, ontologies_1.rdf.type, s, options === null || options === void 0 ? void 0 : options.includeInferred)) {
311
- if (!this.skip(graphUris, q.subject, options)) {
312
- return true;
313
- }
314
- }
315
- for (let c of this.getSubClasses(graphUris, classUri, options)) {
316
- if (this.hasIndividuals(graphUris, c)) {
317
- return true;
318
- }
319
- }
320
- return false;
321
- }
322
- }
323
- exports.ClassRepository = ClassRepository;
324
- //# sourceMappingURL=class-repository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class-repository.js","sourceRoot":"","sources":["../../src/rdf/class-repository.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AAEzB,8CAA+C;AAG/C,6DAAyD;AAEzD;;GAEG;AACH,MAAa,eAAgB,SAAQ,sCAAiB;IAClD,YAAY,KAAY,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE3C;;;;;OAKG;IACH,UAAU,CAAC,SAAwC,EAAE,OAAgC;QACjF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;QAEjC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAG,CAAC,IAAI,EAAE,iBAAI,CAAC,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CAAC,EAAE,CAAC;YAC9F,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;gBAC5C,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAChC,CAAC;QACL,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,eAAe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