rdflib 2.2.34 → 2.2.35-2bb9ed0b

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 (100) hide show
  1. package/dist/515.rdflib.min.js +3 -0
  2. package/dist/515.rdflib.min.js.map +1 -0
  3. package/dist/789.rdflib.min.js +1 -0
  4. package/dist/rdflib.min.js +1 -1
  5. package/dist/rdflib.min.js.LICENSE.txt +0 -2
  6. package/dist/rdflib.min.js.map +1 -1
  7. package/esm/blank-node.js +57 -85
  8. package/esm/class-order.js +1 -1
  9. package/esm/collection.js +70 -106
  10. package/esm/default-graph.js +13 -33
  11. package/esm/empty.js +8 -26
  12. package/esm/factories/canonical-data-factory.js +33 -30
  13. package/esm/factories/extended-term-factory.js +18 -14
  14. package/esm/factories/factory-types.js +1 -1
  15. package/esm/factories/rdflib-data-factory.js +9 -11
  16. package/esm/fetcher.js +1364 -1668
  17. package/esm/formula.js +631 -739
  18. package/esm/index.js +31 -51
  19. package/esm/jsonldparser.js +19 -26
  20. package/esm/jsonparser.js +1 -1
  21. package/esm/lists.js +41 -86
  22. package/esm/literal.js +120 -157
  23. package/esm/log.js +7 -7
  24. package/esm/n3parser.js +1008 -1090
  25. package/esm/named-node.js +69 -99
  26. package/esm/namespace.js +2 -4
  27. package/esm/node-internal.js +73 -97
  28. package/esm/node.js +1 -2
  29. package/esm/parse.js +3 -3
  30. package/esm/patch-parser.js +1 -2
  31. package/esm/query.js +15 -30
  32. package/esm/rdfaparser.js +775 -846
  33. package/esm/rdfxmlparser.js +348 -365
  34. package/esm/serialize.js +2 -3
  35. package/esm/serializer.js +834 -889
  36. package/esm/sparql-to-query.js +0 -2
  37. package/esm/statement.js +52 -72
  38. package/esm/store.js +852 -963
  39. package/esm/types.js +26 -21
  40. package/esm/update-manager.js +963 -1104
  41. package/esm/updates-via.js +104 -134
  42. package/esm/uri.js +3 -3
  43. package/esm/utils/default-graph-uri.js +2 -2
  44. package/esm/utils/terms.js +4 -5
  45. package/esm/utils-js.js +5 -6
  46. package/esm/utils.js +7 -6
  47. package/esm/variable.js +32 -58
  48. package/esm/xsd.js +2 -2
  49. package/lib/blank-node.js +56 -83
  50. package/lib/class-order.js +2 -3
  51. package/lib/collection.js +69 -104
  52. package/lib/default-graph.js +13 -32
  53. package/lib/empty.js +8 -25
  54. package/lib/factories/canonical-data-factory.js +36 -34
  55. package/lib/factories/extended-term-factory.js +19 -16
  56. package/lib/factories/factory-types.js +2 -3
  57. package/lib/factories/rdflib-data-factory.js +10 -13
  58. package/lib/fetcher.js +1394 -1693
  59. package/lib/formula.js +631 -738
  60. package/lib/index.js +66 -89
  61. package/lib/jsonldparser.js +21 -32
  62. package/lib/jsonparser.js +3 -4
  63. package/lib/lists.js +47 -87
  64. package/lib/literal.js +120 -156
  65. package/lib/log.js +8 -9
  66. package/lib/n3parser.js +1011 -1096
  67. package/lib/named-node.js +69 -98
  68. package/lib/namespace.js +2 -4
  69. package/lib/node-internal.js +72 -95
  70. package/lib/node.js +2 -4
  71. package/lib/parse.js +5 -6
  72. package/lib/patch-parser.js +1 -2
  73. package/lib/query.js +19 -32
  74. package/lib/rdfaparser.js +777 -849
  75. package/lib/rdfxmlparser.js +350 -366
  76. package/lib/serialize.js +2 -3
  77. package/lib/serializer.js +838 -892
  78. package/lib/sparql-to-query.js +0 -2
  79. package/lib/statement.js +54 -74
  80. package/lib/store.js +873 -978
  81. package/lib/types.js +22 -43
  82. package/lib/update-manager.js +972 -1111
  83. package/lib/updates-via.js +105 -134
  84. package/lib/uri.js +3 -3
  85. package/lib/utils/default-graph-uri.js +2 -4
  86. package/lib/utils/terms.js +4 -6
  87. package/lib/utils-js.js +11 -13
  88. package/lib/utils.js +6 -7
  89. package/lib/variable.js +34 -60
  90. package/lib/xsd-internal.js +2 -3
  91. package/lib/xsd.js +3 -4
  92. package/package.json +31 -31
  93. package/src/n3parser.js +1 -1
  94. package/src/rdfxmlparser.js +2 -1
  95. package/src/serializer.js +1 -1
  96. package/.babelrc +0 -20
  97. package/dist/670.rdflib.min.js +0 -1
  98. package/dist/730.rdflib.min.js +0 -3
  99. package/dist/730.rdflib.min.js.map +0 -1
  100. /package/dist/{730.rdflib.min.js.LICENSE.txt → 515.rdflib.min.js.LICENSE.txt} +0 -0
package/esm/types.js CHANGED
@@ -1,25 +1,25 @@
1
- export var NamedNodeTermType = "NamedNode";
2
- export var BlankNodeTermType = "BlankNode";
3
- export var LiteralTermType = "Literal";
4
- export var VariableTermType = "Variable";
5
- export var DefaultGraphTermType = "DefaultGraph";
1
+ export const NamedNodeTermType = "NamedNode";
2
+ export const BlankNodeTermType = "BlankNode";
3
+ export const LiteralTermType = "Literal";
4
+ export const VariableTermType = "Variable";
5
+ export const DefaultGraphTermType = "DefaultGraph";
6
6
  // Non-RDF/JS types:
7
- export var CollectionTermType = "Collection";
8
- export var EmptyTermType = "Empty";
9
- export var GraphTermType = "Graph";
10
- export var HTMLContentType = "text/html";
11
- export var JSONLDContentType = "application/ld+json";
12
- export var N3ContentType = "text/n3";
13
- export var N3LegacyContentType = "application/n3";
14
- export var NQuadsAltContentType = "application/nquads";
15
- export var NQuadsContentType = "application/n-quads";
16
- export var NTriplesContentType = "application/n-triples";
17
- export var RDFXMLContentType = "application/rdf+xml";
18
- export var SPARQLUpdateContentType = "application/sparql-update";
19
- export var SPARQLUpdateSingleMatchContentType = "application/sparql-update-single-match";
20
- export var TurtleContentType = "text/turtle";
21
- export var TurtleLegacyContentType = "application/x-turtle";
22
- export var XHTMLContentType = "application/xhtml+xml";
7
+ export const CollectionTermType = "Collection";
8
+ export const EmptyTermType = "Empty";
9
+ export const GraphTermType = "Graph";
10
+ export const HTMLContentType = "text/html";
11
+ export const JSONLDContentType = "application/ld+json";
12
+ export const N3ContentType = "text/n3";
13
+ export const N3LegacyContentType = "application/n3";
14
+ export const NQuadsAltContentType = "application/nquads";
15
+ export const NQuadsContentType = "application/n-quads";
16
+ export const NTriplesContentType = "application/n-triples";
17
+ export const RDFXMLContentType = "application/rdf+xml";
18
+ export const SPARQLUpdateContentType = "application/sparql-update";
19
+ export const SPARQLUpdateSingleMatchContentType = "application/sparql-update-single-match";
20
+ export const TurtleContentType = "text/turtle";
21
+ export const TurtleLegacyContentType = "application/x-turtle";
22
+ export const XHTMLContentType = "application/xhtml+xml";
23
23
 
24
24
  /**
25
25
  * A valid mime type header
@@ -35,9 +35,14 @@ export var XHTMLContentType = "application/xhtml+xml";
35
35
  * In some ways, the TF types in here are a bit more strict.
36
36
  * Variables are missing, and the statement requires specific types of terms (e.g. NamedNode instead of Term).
37
37
  */
38
+
38
39
  /** An RDF/JS Subject */
40
+
39
41
  /** An RDF/JS Predicate */
42
+
40
43
  /** An RDF/JS Object */
44
+
41
45
  /** An RDF/JS Graph */
42
46
  // | Formula
47
+
43
48
  /** All the types that a .fromValue() method might return */