@faubulous/mentor-rdf 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +457 -61
- package/dist/index.js.map +2 -2
- package/dist/ontologies/src.d.ts +3 -3
- package/dist/ontologies/xsd.d.ts +116 -12
- package/dist/rdf/dataset-view.d.ts +12 -3
- package/dist/rdf/reasoners/reasoner.d.ts +6 -0
- package/dist/rdf/store.d.ts +27 -6
- package/package.json +2 -2
- package/src/ontologies/xsd.ttl +270 -35
package/dist/ontologies/xsd.d.ts
CHANGED
|
@@ -2,9 +2,23 @@ import { NamedNode } from '@rdfjs/types';
|
|
|
2
2
|
/** Namespace URI of the XSD vocabulary. */
|
|
3
3
|
export declare const _XSD = "http://www.w3.org/2001/XMLSchema#";
|
|
4
4
|
export declare const XSD: {
|
|
5
|
-
/**
|
|
5
|
+
/** ENTITY represents the ENTITY attribute type from [XML]. The ·value space· of ENTITY is the set of all strings that ·match· the NCName production in [Namespaces in XML] and have been declared as an unparsed entity in a document type definition. The ·lexical space· of ENTITY is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of ENTITY is NCName. */
|
|
6
|
+
ENTITY: string;
|
|
7
|
+
/** ID represents the ID attribute type from [XML]. The ·value space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·lexical space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of ID is NCName. */
|
|
8
|
+
ID: string;
|
|
9
|
+
/** IDREF represents the IDREF attribute type from [XML]. The ·value space· of IDREF is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·lexical space· of IDREF is the set of strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of IDREF is NCName. */
|
|
10
|
+
IDREF: string;
|
|
11
|
+
NCName: string;
|
|
12
|
+
/** NMTOKEN represents the NMTOKEN attribute type from [XML]. The ·value space· of NMTOKEN is the set of tokens that ·match· the Nmtoken production in [XML]. The ·lexical space· of NMTOKEN is the set of strings that ·match· the Nmtoken production in [XML]. The ·base type· of NMTOKEN is token. */
|
|
13
|
+
NMTOKEN: string;
|
|
14
|
+
Name: string;
|
|
15
|
+
/** QName represents XML qualified names. The ·value space· of QName is the set of tuples {namespace name, local part}, where namespace name is an anyURI and local part is an NCName. The ·lexical space· of QName is the set of strings that ·match· the QName production of [Namespaces in XML]. */
|
|
16
|
+
QName: string;
|
|
17
|
+
/** The base class of any primitive XSD dataype. */
|
|
18
|
+
anySimpleType: string;
|
|
19
|
+
/** 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. */
|
|
6
20
|
anyURI: string;
|
|
7
|
-
/** base64Binary represents arbitrary Base64-encoded binary data.
|
|
21
|
+
/** 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]. */
|
|
8
22
|
base64Binary: string;
|
|
9
23
|
/** boolean represents the values of two-valued logic. */
|
|
10
24
|
boolean: string;
|
|
@@ -14,6 +28,8 @@ export declare const XSD: {
|
|
|
14
28
|
date: string;
|
|
15
29
|
/** 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. */
|
|
16
30
|
dateTime: string;
|
|
31
|
+
/** The dateTimeStamp datatype is ·derived· from dateTime by giving the value required to its explicitTimezone facet. The result is that all values of dateTimeStamp are required to have explicit time zone offsets and the datatype is totally ordered. */
|
|
32
|
+
dateTimeStamp: string;
|
|
17
33
|
/** 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. */
|
|
18
34
|
decimal: string;
|
|
19
35
|
/** 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. */
|
|
@@ -22,17 +38,47 @@ export declare const XSD: {
|
|
|
22
38
|
duration: string;
|
|
23
39
|
/** 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. */
|
|
24
40
|
float: string;
|
|
41
|
+
/** fractionDigits controls the size of the minimum difference between values in the value space of datatypes derived from decimal, by restricting the value space to numbers that are expressible as i x 10^-n where i and n are integers and 0 <= n <= fractionDigits. */
|
|
42
|
+
fractionDigits: string;
|
|
43
|
+
gDay: string;
|
|
44
|
+
gMonth: string;
|
|
45
|
+
gMonthDay: string;
|
|
46
|
+
gYear: string;
|
|
47
|
+
gYearMonth: string;
|
|
48
|
+
/** Hex-encoded arbitrary binary data. */
|
|
49
|
+
hexBinary: string;
|
|
25
50
|
/** 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. */
|
|
26
51
|
int: string;
|
|
27
52
|
/** 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. */
|
|
28
53
|
integer: string;
|
|
54
|
+
/** llanguage represents natural language identifiers as defined by by [RFC 3066] . The ·value space· of language is the set of all strings that are valid language identifiers as defined [RFC 3066] . The ·lexical space· of language is the set of all strings that conform to the pattern [a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})* . The ·base type· of language is token. */
|
|
55
|
+
language: string;
|
|
56
|
+
/** length is the number of units of length, where units of length varies depending on the type that is being derived from. */
|
|
57
|
+
length: string;
|
|
29
58
|
/** 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. */
|
|
30
59
|
long: string;
|
|
60
|
+
/** maxExclusive is the exclusive upper bound of the value space for a datatype with the ordered property. The value of maxExclusive must be in the value space of the base type or be equal to {value} in {base type definition}. */
|
|
61
|
+
maxExclusive: string;
|
|
62
|
+
/** maxInclusive is the inclusive upper bound of the value space for a datatype with the ordered property. The value of maxInclusive must be in the value space of the base type. */
|
|
63
|
+
maxInclusive: string;
|
|
64
|
+
/** minLength is the minimum number of units of length, where units of length varies depending on the type that is being derived from. */
|
|
65
|
+
maxLength: string;
|
|
66
|
+
/** minExclusive is the exclusive lower bound of the value space for a datatype with the ordered property. The value of minExclusive must be in the value space of the base type or be equal to {value} in {base type definition}. */
|
|
67
|
+
minExclusive: string;
|
|
68
|
+
/** minInclusive is the inclusive lower bound of the value space for a datatype with the ordered property. The value of minInclusive must be in the value space of the base type. */
|
|
69
|
+
minInclusive: string;
|
|
70
|
+
/** maxLength is the maximum number of units of length, where units of length varies depending on the type that is being derived from. */
|
|
71
|
+
minLength: string;
|
|
31
72
|
/** 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. */
|
|
32
73
|
negativeInteger: string;
|
|
74
|
+
/** 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. */
|
|
33
75
|
nonNegativeInteger: string;
|
|
34
76
|
/** 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. */
|
|
35
77
|
nonPositiveInteger: string;
|
|
78
|
+
/** The set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters. */
|
|
79
|
+
normalizedString: string;
|
|
80
|
+
/** pattern is a constraint on the value space of a datatype which is achieved by constraining the lexical space to literals which match a specific pattern. The value of pattern must be a regular expression. */
|
|
81
|
+
pattern: string;
|
|
36
82
|
/** 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. */
|
|
37
83
|
positiveInteger: string;
|
|
38
84
|
/** 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. */
|
|
@@ -41,21 +87,41 @@ export declare const XSD: {
|
|
|
41
87
|
string: string;
|
|
42
88
|
/** time represents instants of time that recur at the same point in each calendar day, or that occur in some arbitrary calendar day. */
|
|
43
89
|
time: string;
|
|
90
|
+
/** The set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces. */
|
|
91
|
+
token: string;
|
|
92
|
+
/** totalDigits controls the maximum number of values in the value space of datatypes derived from decimal, by restricting it to numbers that are expressible as i x 10^-n where i and n are integers such that |i| < 10^totalDigits and 0 <= n <= totalDigits. */
|
|
93
|
+
totalDigits: string;
|
|
94
|
+
/** unsignedByte is ·derived· from unsignedShort by setting the value of ·maxInclusive· to be 255. The ·base type· of unsignedByte is unsignedShort. */
|
|
95
|
+
unsignedByte: string;
|
|
44
96
|
/** unsignedInt is ·derived· from unsignedLong by setting the value of ·maxInclusive· to be 4294967295. The ·base type· of unsignedInt is unsignedLong. */
|
|
45
97
|
unsignedInt: string;
|
|
98
|
+
/** unsignedLong is ·derived· from nonNegativeInteger by setting the value of ·maxInclusive· to be 18446744073709551615. The ·base type· of unsignedLong is nonNegativeInteger. */
|
|
99
|
+
unsignedLong: string;
|
|
46
100
|
/** unsignedShort is ·derived· from unsignedInt by setting the value of ·maxInclusive· to be 65535. The ·base type· of unsignedShort is unsignedInt. */
|
|
47
101
|
unsignedShort: string;
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
/** unsignedByte is ·derived· from unsignedShort by setting the value of ·maxInclusive· to be 255. The ·base type· of unsignedByte is unsignedShort. */
|
|
51
|
-
usignedByte: string;
|
|
102
|
+
/** A string that describes whitespace normalization for a string type. */
|
|
103
|
+
whiteSpace: string;
|
|
52
104
|
};
|
|
53
105
|
/** Namespace URI of the xsd vocabulary. */
|
|
54
106
|
export declare const _xsd: NamedNode;
|
|
55
107
|
export declare const xsd: {
|
|
56
|
-
/**
|
|
108
|
+
/** ENTITY represents the ENTITY attribute type from [XML]. The ·value space· of ENTITY is the set of all strings that ·match· the NCName production in [Namespaces in XML] and have been declared as an unparsed entity in a document type definition. The ·lexical space· of ENTITY is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of ENTITY is NCName. */
|
|
109
|
+
ENTITY: NamedNode;
|
|
110
|
+
/** ID represents the ID attribute type from [XML]. The ·value space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·lexical space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of ID is NCName. */
|
|
111
|
+
ID: NamedNode;
|
|
112
|
+
/** IDREF represents the IDREF attribute type from [XML]. The ·value space· of IDREF is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·lexical space· of IDREF is the set of strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of IDREF is NCName. */
|
|
113
|
+
IDREF: NamedNode;
|
|
114
|
+
NCName: NamedNode;
|
|
115
|
+
/** NMTOKEN represents the NMTOKEN attribute type from [XML]. The ·value space· of NMTOKEN is the set of tokens that ·match· the Nmtoken production in [XML]. The ·lexical space· of NMTOKEN is the set of strings that ·match· the Nmtoken production in [XML]. The ·base type· of NMTOKEN is token. */
|
|
116
|
+
NMTOKEN: NamedNode;
|
|
117
|
+
Name: NamedNode;
|
|
118
|
+
/** QName represents XML qualified names. The ·value space· of QName is the set of tuples {namespace name, local part}, where namespace name is an anyURI and local part is an NCName. The ·lexical space· of QName is the set of strings that ·match· the QName production of [Namespaces in XML]. */
|
|
119
|
+
QName: NamedNode;
|
|
120
|
+
/** The base class of any primitive XSD dataype. */
|
|
121
|
+
anySimpleType: NamedNode;
|
|
122
|
+
/** 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. */
|
|
57
123
|
anyURI: NamedNode;
|
|
58
|
-
/** base64Binary represents arbitrary Base64-encoded binary data.
|
|
124
|
+
/** 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]. */
|
|
59
125
|
base64Binary: NamedNode;
|
|
60
126
|
/** boolean represents the values of two-valued logic. */
|
|
61
127
|
boolean: NamedNode;
|
|
@@ -65,6 +131,8 @@ export declare const xsd: {
|
|
|
65
131
|
date: NamedNode;
|
|
66
132
|
/** 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. */
|
|
67
133
|
dateTime: NamedNode;
|
|
134
|
+
/** The dateTimeStamp datatype is ·derived· from dateTime by giving the value required to its explicitTimezone facet. The result is that all values of dateTimeStamp are required to have explicit time zone offsets and the datatype is totally ordered. */
|
|
135
|
+
dateTimeStamp: NamedNode;
|
|
68
136
|
/** 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. */
|
|
69
137
|
decimal: NamedNode;
|
|
70
138
|
/** 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. */
|
|
@@ -73,17 +141,47 @@ export declare const xsd: {
|
|
|
73
141
|
duration: NamedNode;
|
|
74
142
|
/** 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. */
|
|
75
143
|
float: NamedNode;
|
|
144
|
+
/** fractionDigits controls the size of the minimum difference between values in the value space of datatypes derived from decimal, by restricting the value space to numbers that are expressible as i x 10^-n where i and n are integers and 0 <= n <= fractionDigits. */
|
|
145
|
+
fractionDigits: NamedNode;
|
|
146
|
+
gDay: NamedNode;
|
|
147
|
+
gMonth: NamedNode;
|
|
148
|
+
gMonthDay: NamedNode;
|
|
149
|
+
gYear: NamedNode;
|
|
150
|
+
gYearMonth: NamedNode;
|
|
151
|
+
/** Hex-encoded arbitrary binary data. */
|
|
152
|
+
hexBinary: NamedNode;
|
|
76
153
|
/** 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. */
|
|
77
154
|
int: NamedNode;
|
|
78
155
|
/** 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. */
|
|
79
156
|
integer: NamedNode;
|
|
157
|
+
/** llanguage represents natural language identifiers as defined by by [RFC 3066] . The ·value space· of language is the set of all strings that are valid language identifiers as defined [RFC 3066] . The ·lexical space· of language is the set of all strings that conform to the pattern [a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})* . The ·base type· of language is token. */
|
|
158
|
+
language: NamedNode;
|
|
159
|
+
/** length is the number of units of length, where units of length varies depending on the type that is being derived from. */
|
|
160
|
+
length: NamedNode;
|
|
80
161
|
/** 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. */
|
|
81
162
|
long: NamedNode;
|
|
163
|
+
/** maxExclusive is the exclusive upper bound of the value space for a datatype with the ordered property. The value of maxExclusive must be in the value space of the base type or be equal to {value} in {base type definition}. */
|
|
164
|
+
maxExclusive: NamedNode;
|
|
165
|
+
/** maxInclusive is the inclusive upper bound of the value space for a datatype with the ordered property. The value of maxInclusive must be in the value space of the base type. */
|
|
166
|
+
maxInclusive: NamedNode;
|
|
167
|
+
/** minLength is the minimum number of units of length, where units of length varies depending on the type that is being derived from. */
|
|
168
|
+
maxLength: NamedNode;
|
|
169
|
+
/** minExclusive is the exclusive lower bound of the value space for a datatype with the ordered property. The value of minExclusive must be in the value space of the base type or be equal to {value} in {base type definition}. */
|
|
170
|
+
minExclusive: NamedNode;
|
|
171
|
+
/** minInclusive is the inclusive lower bound of the value space for a datatype with the ordered property. The value of minInclusive must be in the value space of the base type. */
|
|
172
|
+
minInclusive: NamedNode;
|
|
173
|
+
/** maxLength is the maximum number of units of length, where units of length varies depending on the type that is being derived from. */
|
|
174
|
+
minLength: NamedNode;
|
|
82
175
|
/** 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. */
|
|
83
176
|
negativeInteger: NamedNode;
|
|
177
|
+
/** 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. */
|
|
84
178
|
nonNegativeInteger: NamedNode;
|
|
85
179
|
/** 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. */
|
|
86
180
|
nonPositiveInteger: NamedNode;
|
|
181
|
+
/** The set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters. */
|
|
182
|
+
normalizedString: NamedNode;
|
|
183
|
+
/** pattern is a constraint on the value space of a datatype which is achieved by constraining the lexical space to literals which match a specific pattern. The value of pattern must be a regular expression. */
|
|
184
|
+
pattern: NamedNode;
|
|
87
185
|
/** 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. */
|
|
88
186
|
positiveInteger: NamedNode;
|
|
89
187
|
/** 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. */
|
|
@@ -92,12 +190,18 @@ export declare const xsd: {
|
|
|
92
190
|
string: NamedNode;
|
|
93
191
|
/** time represents instants of time that recur at the same point in each calendar day, or that occur in some arbitrary calendar day. */
|
|
94
192
|
time: NamedNode;
|
|
193
|
+
/** The set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces. */
|
|
194
|
+
token: NamedNode;
|
|
195
|
+
/** totalDigits controls the maximum number of values in the value space of datatypes derived from decimal, by restricting it to numbers that are expressible as i x 10^-n where i and n are integers such that |i| < 10^totalDigits and 0 <= n <= totalDigits. */
|
|
196
|
+
totalDigits: NamedNode;
|
|
197
|
+
/** unsignedByte is ·derived· from unsignedShort by setting the value of ·maxInclusive· to be 255. The ·base type· of unsignedByte is unsignedShort. */
|
|
198
|
+
unsignedByte: NamedNode;
|
|
95
199
|
/** unsignedInt is ·derived· from unsignedLong by setting the value of ·maxInclusive· to be 4294967295. The ·base type· of unsignedInt is unsignedLong. */
|
|
96
200
|
unsignedInt: NamedNode;
|
|
201
|
+
/** unsignedLong is ·derived· from nonNegativeInteger by setting the value of ·maxInclusive· to be 18446744073709551615. The ·base type· of unsignedLong is nonNegativeInteger. */
|
|
202
|
+
unsignedLong: NamedNode;
|
|
97
203
|
/** unsignedShort is ·derived· from unsignedInt by setting the value of ·maxInclusive· to be 65535. The ·base type· of unsignedShort is unsignedInt. */
|
|
98
204
|
unsignedShort: NamedNode;
|
|
99
|
-
/**
|
|
100
|
-
|
|
101
|
-
/** unsignedByte is ·derived· from unsignedShort by setting the value of ·maxInclusive· to be 255. The ·base type· of unsignedByte is unsignedShort. */
|
|
102
|
-
usignedByte: NamedNode;
|
|
205
|
+
/** A string that describes whitespace normalization for a string type. */
|
|
206
|
+
whiteSpace: NamedNode;
|
|
103
207
|
};
|
|
@@ -26,9 +26,10 @@ export interface DatasetViewOptions {
|
|
|
26
26
|
*/
|
|
27
27
|
object?: rdfjs.Term | null;
|
|
28
28
|
/**
|
|
29
|
-
* Whether to include inferred triples
|
|
30
|
-
*
|
|
31
|
-
*
|
|
29
|
+
* Whether to include inferred triples. If undefined, inferred triples are included when a
|
|
30
|
+
* reasoner is available. With graphs, `false` leaves their inference graphs out; without
|
|
31
|
+
* graphs, the view spans every graph of the store and `false` leaves every inference graph
|
|
32
|
+
* out. If `true` without a reasoner, an error is thrown.
|
|
32
33
|
*/
|
|
33
34
|
includeInferred?: boolean;
|
|
34
35
|
}
|
|
@@ -48,6 +49,10 @@ export declare class DatasetView implements rdfjs.DatasetCore<rdfjs.Quad> {
|
|
|
48
49
|
* `undefined` means the view spans all graphs; an empty array means the view is provably empty.
|
|
49
50
|
*/
|
|
50
51
|
private readonly _scope?;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the quads of the inference graphs are left out of a view that spans all graphs.
|
|
54
|
+
*/
|
|
55
|
+
private readonly _excludeInferred;
|
|
51
56
|
private _cachedSize?;
|
|
52
57
|
private _cachedSizeVersion;
|
|
53
58
|
constructor(store: Store, options?: DatasetViewOptions);
|
|
@@ -57,6 +62,10 @@ export declare class DatasetView implements rdfjs.DatasetCore<rdfjs.Quad> {
|
|
|
57
62
|
* until the store is modified.
|
|
58
63
|
*/
|
|
59
64
|
get size(): number;
|
|
65
|
+
/**
|
|
66
|
+
* Count the quads of the view's pattern in the inference graphs of the store.
|
|
67
|
+
*/
|
|
68
|
+
private _countInferred;
|
|
60
69
|
/**
|
|
61
70
|
* Not supported: the view is read-only.
|
|
62
71
|
* @throws An error indicating that the view is read-only.
|
|
@@ -8,6 +8,12 @@ export interface GraphUriGenerator {
|
|
|
8
8
|
* @param uri A URI.
|
|
9
9
|
*/
|
|
10
10
|
getGraphUri(uri: string | rdfjs.Quad_Graph): string;
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given URI is the URI of an inference graph generated by this handler.
|
|
13
|
+
* @param uri A URI.
|
|
14
|
+
* @returns `true` if the URI is an inference graph URI, `false` otherwise.
|
|
15
|
+
*/
|
|
16
|
+
isInferenceGraphUri(uri: string | rdfjs.Quad_Graph): boolean;
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
19
|
* Default implementation of the InferenceGraphHandler interface. It generates URIs
|
package/dist/rdf/store.d.ts
CHANGED
|
@@ -180,6 +180,20 @@ export declare class Store implements rdfjs.DatasetCore<rdfjs.Quad> {
|
|
|
180
180
|
* @returns `true` if the store contains triples in the graph URI, `false` otherwise.
|
|
181
181
|
*/
|
|
182
182
|
hasGraph(graphUri: rdfjs.Quad_Graph | string): boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Indicates whether a graph holds the triples the reasoner inferred from another graph.
|
|
185
|
+
* @param graph A graph term or URI.
|
|
186
|
+
* @returns `true` if the graph is an inference graph of the reasoner of this store, `false` otherwise or without a reasoner.
|
|
187
|
+
*/
|
|
188
|
+
isInferenceGraph(graph: rdfjs.Quad_Graph | string): boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Indicates whether a quad was inferred by the reasoner, i.e. whether it is stored in an inference
|
|
191
|
+
* graph. A triple that is asserted and inferred exists as two quads; only the quad in the inference
|
|
192
|
+
* graph is inferred.
|
|
193
|
+
* @param quad A quad.
|
|
194
|
+
* @returns `true` if the quad is stored in an inference graph, `false` otherwise.
|
|
195
|
+
*/
|
|
196
|
+
isInferred(quad: rdfjs.Quad): boolean;
|
|
183
197
|
/**
|
|
184
198
|
* Apply inference to the given graph and store the triples in the associated inference graph.
|
|
185
199
|
* @param graphUri A graph URI.
|
|
@@ -223,10 +237,11 @@ export declare class Store implements rdfjs.DatasetCore<rdfjs.Quad> {
|
|
|
223
237
|
countQuads(subject?: rdfjs.Term | null, predicate?: rdfjs.Term | null, object?: rdfjs.Term | null, graph?: rdfjs.Term | null): number;
|
|
224
238
|
/**
|
|
225
239
|
* Returns a lazy, read-only dataset view of the quads matching the given pattern.
|
|
226
|
-
* Implements the RDF/JS `DatasetCore.match` semantics:
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
240
|
+
* Implements the RDF/JS `DatasetCore.match` semantics: a graph names exactly that
|
|
241
|
+
* graph and no graph means every graph of the store, inference graphs included.
|
|
242
|
+
* The result reflects the current contents of the store and does not copy any
|
|
243
|
+
* quads. Because the view iterates the live indexes, do not add or delete quads
|
|
244
|
+
* while iterating it; take a snapshot with `Array.from(...)` first.
|
|
230
245
|
* @param subject The optional subject.
|
|
231
246
|
* @param predicate The optional predicate.
|
|
232
247
|
* @param object The optional object.
|
|
@@ -257,6 +272,10 @@ export declare class Store implements rdfjs.DatasetCore<rdfjs.Quad> {
|
|
|
257
272
|
* @param subject A subject URI or null to match any subject.
|
|
258
273
|
* @param predicate A predicate URI or null to match any predicate.
|
|
259
274
|
* @param object An object URI or null to match any object.
|
|
275
|
+
* @param includeInferred Whether to read the inference graphs. With graphs given, `undefined` and
|
|
276
|
+
* `true` add the inference graph of each graph when a reasoner is available and `false` reads only
|
|
277
|
+
* the given graphs. Without graphs, `undefined` and `true` read every graph of the store and `false`
|
|
278
|
+
* reads every graph except the inference graphs. `true` without a reasoner throws.
|
|
260
279
|
*/
|
|
261
280
|
matchAll(graphUris: string | string[] | undefined, subject: rdfjs.Quad_Subject | null, predicate: rdfjs.Quad_Predicate | null, object: rdfjs.Quad_Object | null, includeInferred?: boolean): Generator<rdfjs.Quad, void, any>;
|
|
262
281
|
/**
|
|
@@ -273,9 +292,11 @@ export declare class Store implements rdfjs.DatasetCore<rdfjs.Quad> {
|
|
|
273
292
|
* The view is lazy and live: it reflects the current contents of the store without
|
|
274
293
|
* copying any quads. If you need an immutable snapshot, copy the view into a new
|
|
275
294
|
* dataset, e.g. `RdfStore.createDefault().asDataset()`.
|
|
276
|
-
* @param graphUris Optional graph URI or array of graph URIs. If undefined, all
|
|
295
|
+
* @param graphUris Optional graph URI or array of graph URIs. If undefined, all graphs are included.
|
|
277
296
|
* @param includeInferred Whether to include inferred triples. If undefined, inferred triples
|
|
278
|
-
* are included when a reasoner is available. If `
|
|
297
|
+
* are included when a reasoner is available. If `false`, the inference graphs of the given
|
|
298
|
+
* graphs are left out, or, without graphs, every inference graph of the store. If `true`
|
|
299
|
+
* without a reasoner, an error is thrown.
|
|
279
300
|
* @returns A read-only dataset view of the matching quads.
|
|
280
301
|
*/
|
|
281
302
|
getDataset(graphUris?: string | string[], includeInferred?: boolean): DatasetView;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"ontology",
|
|
11
11
|
"vocabulary"
|
|
12
12
|
],
|
|
13
|
-
"version": "2.
|
|
13
|
+
"version": "2.5.0",
|
|
14
14
|
"private": false,
|
|
15
15
|
"author": {
|
|
16
16
|
"name": "Sebastian Faubel"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"serve:docs": "npx --yes serve docs"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@faubulous/mentor-cli": "^0.2.
|
|
57
|
+
"@faubulous/mentor-cli": "^0.2.3",
|
|
58
58
|
"@types/node": "^26.6.5",
|
|
59
59
|
"@vitest/coverage-v8": "^5.0.5",
|
|
60
60
|
"esbuild": "^0.28.2",
|