You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- By default the "pragmatic" mode is used (scheme validation + no invalid char according to RDF Turtle)
- The iriValidationStrategy option allows to customize the validation strategy
Benchmark using the GeoSpecies Knowledge Base (1.8M triples).
- no IRI validation: 8.338s
- pragmatic IRI validation: 9.116s
- full IRI validation: 12.053s
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,12 +90,13 @@ myParser.import(myTextStream)
90
90
Optionally, the following parameters can be set in the `RdfXmlParser` constructor:
91
91
92
92
*`dataFactory`: A custom [RDFJS DataFactory](http://rdf.js.org/#datafactory-interface) to construct terms and triples. _(Default: `require('@rdfjs/data-model')`)_
93
-
*`baseIRI`: An initital default base IRI. _(Default: `''`)_
93
+
*`baseIRI`: An initial default base IRI. _(Default: `''`)_
94
94
*`defaultGraph`: The default graph for constructing [quads](http://rdf.js.org/#dom-datafactory-quad). _(Default: `defaultGraph()`)_
95
95
*`strict`: If the internal SAX parser should parse XML in strict mode, and error if it is invalid. _(Default: `false`)_
96
96
*`trackPosition`: If the internal position (line, column) should be tracked an emitted in error messages. _(Default: `false`)_
97
97
*`allowDuplicateRdfIds`: By default [multiple occurrences of the same `rdf:ID` value are not allowed](https://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-ID-xml-base). By setting this option to `true`, this uniqueness check can be disabled. _(Default: `false`)_
98
98
*`validateUri`: By default, the parser validates each URI. _(Default: `true`)_
99
+
*`iriValidationStrategy`: Allows to customize the used IRI validation strategy using the `IriValidationStrategy` enumeration. _(Default: `IriValidationStrategy.Pragmatic`)_
0 commit comments