UNPKG
shacl-engine
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
A fast RDF/JS SHACL engine
github.com/rdf-ext/shacl-engine
rdf-ext/shacl-engine
shacl-engine
/
Factory.js
13 lines
(10 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
Validator
from
'./Validator.js'
class
Factory
{
init
() {
this
.
shacl
= {}
this
.
shacl
.
validator
=
(
dataset, options
) =>
{
return
new
Validator
(dataset, { ...options,
factory
:
this
}) } } }
export
default
Factory