@shaclmate/shacl-ast 4.0.49 → 4.0.51
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/AbstractShapesGraph.d.ts +1 -1
- package/dist/ShapesGraph.d.ts +1 -1
- package/dist/ShapesGraph.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{generated.d.ts → shacl-ast.shaclmate.d.ts} +17 -1
- package/dist/{generated.js → shacl-ast.shaclmate.js} +255 -463
- package/dist/shacl-ast.shaclmate.ttl +521 -0
- package/package.json +19 -4
|
@@ -190,6 +190,14 @@ export var $PropertyPath;
|
|
|
190
190
|
$PropertyPath.toRdfResource = RdfxResourcePropertyPath.toResource;
|
|
191
191
|
$PropertyPath.$toString = RdfxResourcePropertyPath.toString;
|
|
192
192
|
})($PropertyPath || ($PropertyPath = {}));
|
|
193
|
+
function $rdfResourceIdentifierValues(resource) {
|
|
194
|
+
return new Resource.Value({
|
|
195
|
+
dataFactory: dataFactory,
|
|
196
|
+
focusResource: resource,
|
|
197
|
+
propertyPath: $RdfVocabularies.rdf.subject,
|
|
198
|
+
term: resource.identifier,
|
|
199
|
+
}).toValues();
|
|
200
|
+
}
|
|
193
201
|
var $RdfVocabularies;
|
|
194
202
|
(function ($RdfVocabularies) {
|
|
195
203
|
$RdfVocabularies.rdf = {
|
|
@@ -424,327 +432,252 @@ export var NodeShape;
|
|
|
424
432
|
return NodeShape.create(parameters).unsafeCoerce();
|
|
425
433
|
}
|
|
426
434
|
NodeShape.createUnsafe = createUnsafe;
|
|
427
|
-
NodeShape._fromRdfResource = (
|
|
428
|
-
? $ensureRdfResourceType(
|
|
429
|
-
graph:
|
|
435
|
+
NodeShape._fromRdfResource = (resource, options) => (!options.ignoreRdfType
|
|
436
|
+
? $ensureRdfResourceType(resource, [NodeShape.schema.fromRdfType], {
|
|
437
|
+
graph: options.graph,
|
|
430
438
|
})
|
|
431
439
|
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
432
|
-
$identifier: $identifierFromRdfResourceValues(
|
|
433
|
-
|
|
434
|
-
focusResource:
|
|
435
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
436
|
-
term: $resource.identifier,
|
|
437
|
-
}).toValues(), {
|
|
438
|
-
context: _$options.context,
|
|
439
|
-
graph: _$options.graph,
|
|
440
|
-
focusResource: $resource,
|
|
441
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
440
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
441
|
+
...options,
|
|
442
|
+
focusResource: resource,
|
|
442
443
|
propertyPath: $RdfVocabularies.rdf.subject,
|
|
443
444
|
schema: NodeShape.schema.properties.$identifier.type,
|
|
444
445
|
}).chain((values) => values.head()),
|
|
445
446
|
and: $shaclPropertyFromRdf({
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
focusResource: $resource,
|
|
447
|
+
...options,
|
|
448
|
+
focusResource: resource,
|
|
449
449
|
ignoreRdfType: true,
|
|
450
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
451
450
|
propertySchema: NodeShape.schema.properties.and,
|
|
452
451
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
453
452
|
}),
|
|
454
453
|
classes: $shaclPropertyFromRdf({
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
focusResource: $resource,
|
|
454
|
+
...options,
|
|
455
|
+
focusResource: resource,
|
|
458
456
|
ignoreRdfType: true,
|
|
459
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
460
457
|
propertySchema: NodeShape.schema.properties.classes,
|
|
461
458
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
462
459
|
}),
|
|
463
460
|
closed: $shaclPropertyFromRdf({
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
focusResource: $resource,
|
|
461
|
+
...options,
|
|
462
|
+
focusResource: resource,
|
|
467
463
|
ignoreRdfType: true,
|
|
468
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
469
464
|
propertySchema: NodeShape.schema.properties.closed,
|
|
470
465
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
471
466
|
}),
|
|
472
467
|
comment: $shaclPropertyFromRdf({
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
focusResource: $resource,
|
|
468
|
+
...options,
|
|
469
|
+
focusResource: resource,
|
|
476
470
|
ignoreRdfType: true,
|
|
477
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
478
471
|
propertySchema: NodeShape.schema.properties.comment,
|
|
479
472
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
480
473
|
}),
|
|
481
474
|
datatype: $shaclPropertyFromRdf({
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
focusResource: $resource,
|
|
475
|
+
...options,
|
|
476
|
+
focusResource: resource,
|
|
485
477
|
ignoreRdfType: true,
|
|
486
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
487
478
|
propertySchema: NodeShape.schema.properties.datatype,
|
|
488
479
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
489
480
|
}),
|
|
490
481
|
deactivated: $shaclPropertyFromRdf({
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
focusResource: $resource,
|
|
482
|
+
...options,
|
|
483
|
+
focusResource: resource,
|
|
494
484
|
ignoreRdfType: true,
|
|
495
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
496
485
|
propertySchema: NodeShape.schema.properties.deactivated,
|
|
497
486
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
498
487
|
}),
|
|
499
488
|
flags: $shaclPropertyFromRdf({
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
focusResource: $resource,
|
|
489
|
+
...options,
|
|
490
|
+
focusResource: resource,
|
|
503
491
|
ignoreRdfType: true,
|
|
504
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
505
492
|
propertySchema: NodeShape.schema.properties.flags,
|
|
506
493
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
507
494
|
}),
|
|
508
495
|
hasValues: $shaclPropertyFromRdf({
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
focusResource: $resource,
|
|
496
|
+
...options,
|
|
497
|
+
focusResource: resource,
|
|
512
498
|
ignoreRdfType: true,
|
|
513
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
514
499
|
propertySchema: NodeShape.schema.properties.hasValues,
|
|
515
500
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
516
501
|
}),
|
|
517
502
|
ignoredProperties: $shaclPropertyFromRdf({
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
focusResource: $resource,
|
|
503
|
+
...options,
|
|
504
|
+
focusResource: resource,
|
|
521
505
|
ignoreRdfType: true,
|
|
522
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
523
506
|
propertySchema: NodeShape.schema.properties.ignoredProperties,
|
|
524
507
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($iriFromRdfResourceValues))),
|
|
525
508
|
}),
|
|
526
509
|
in_: $shaclPropertyFromRdf({
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
focusResource: $resource,
|
|
510
|
+
...options,
|
|
511
|
+
focusResource: resource,
|
|
530
512
|
ignoreRdfType: true,
|
|
531
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
532
513
|
propertySchema: NodeShape.schema.properties.in_,
|
|
533
514
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($termFromRdfResourceValues))),
|
|
534
515
|
}),
|
|
535
516
|
isDefinedBy: $shaclPropertyFromRdf({
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
focusResource: $resource,
|
|
517
|
+
...options,
|
|
518
|
+
focusResource: resource,
|
|
539
519
|
ignoreRdfType: true,
|
|
540
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
541
520
|
propertySchema: NodeShape.schema.properties.isDefinedBy,
|
|
542
521
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
543
522
|
}),
|
|
544
523
|
label: $shaclPropertyFromRdf({
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
focusResource: $resource,
|
|
524
|
+
...options,
|
|
525
|
+
focusResource: resource,
|
|
548
526
|
ignoreRdfType: true,
|
|
549
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
550
527
|
propertySchema: NodeShape.schema.properties.label,
|
|
551
528
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
552
529
|
}),
|
|
553
530
|
languageIn: $shaclPropertyFromRdf({
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
focusResource: $resource,
|
|
531
|
+
...options,
|
|
532
|
+
focusResource: resource,
|
|
557
533
|
ignoreRdfType: true,
|
|
558
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
559
534
|
propertySchema: NodeShape.schema.properties.languageIn,
|
|
560
535
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($stringFromRdfResourceValues))),
|
|
561
536
|
}),
|
|
562
537
|
maxExclusive: $shaclPropertyFromRdf({
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
focusResource: $resource,
|
|
538
|
+
...options,
|
|
539
|
+
focusResource: resource,
|
|
566
540
|
ignoreRdfType: true,
|
|
567
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
568
541
|
propertySchema: NodeShape.schema.properties.maxExclusive,
|
|
569
542
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
570
543
|
}),
|
|
571
544
|
maxInclusive: $shaclPropertyFromRdf({
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
focusResource: $resource,
|
|
545
|
+
...options,
|
|
546
|
+
focusResource: resource,
|
|
575
547
|
ignoreRdfType: true,
|
|
576
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
577
548
|
propertySchema: NodeShape.schema.properties.maxInclusive,
|
|
578
549
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
579
550
|
}),
|
|
580
551
|
maxLength: $shaclPropertyFromRdf({
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
focusResource: $resource,
|
|
552
|
+
...options,
|
|
553
|
+
focusResource: resource,
|
|
584
554
|
ignoreRdfType: true,
|
|
585
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
586
555
|
propertySchema: NodeShape.schema.properties.maxLength,
|
|
587
556
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
588
557
|
}),
|
|
589
558
|
message: $shaclPropertyFromRdf({
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
focusResource: $resource,
|
|
559
|
+
...options,
|
|
560
|
+
focusResource: resource,
|
|
593
561
|
ignoreRdfType: true,
|
|
594
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
595
562
|
propertySchema: NodeShape.schema.properties.message,
|
|
596
563
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
597
564
|
}),
|
|
598
565
|
minExclusive: $shaclPropertyFromRdf({
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
focusResource: $resource,
|
|
566
|
+
...options,
|
|
567
|
+
focusResource: resource,
|
|
602
568
|
ignoreRdfType: true,
|
|
603
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
604
569
|
propertySchema: NodeShape.schema.properties.minExclusive,
|
|
605
570
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
606
571
|
}),
|
|
607
572
|
minInclusive: $shaclPropertyFromRdf({
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
focusResource: $resource,
|
|
573
|
+
...options,
|
|
574
|
+
focusResource: resource,
|
|
611
575
|
ignoreRdfType: true,
|
|
612
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
613
576
|
propertySchema: NodeShape.schema.properties.minInclusive,
|
|
614
577
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
615
578
|
}),
|
|
616
579
|
minLength: $shaclPropertyFromRdf({
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
focusResource: $resource,
|
|
580
|
+
...options,
|
|
581
|
+
focusResource: resource,
|
|
620
582
|
ignoreRdfType: true,
|
|
621
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
622
583
|
propertySchema: NodeShape.schema.properties.minLength,
|
|
623
584
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
624
585
|
}),
|
|
625
586
|
node: $shaclPropertyFromRdf({
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
focusResource: $resource,
|
|
587
|
+
...options,
|
|
588
|
+
focusResource: resource,
|
|
629
589
|
ignoreRdfType: true,
|
|
630
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
631
590
|
propertySchema: NodeShape.schema.properties.node,
|
|
632
591
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
633
592
|
}),
|
|
634
593
|
nodeKind: $shaclPropertyFromRdf({
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
focusResource: $resource,
|
|
594
|
+
...options,
|
|
595
|
+
focusResource: resource,
|
|
638
596
|
ignoreRdfType: true,
|
|
639
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
640
597
|
propertySchema: NodeShape.schema.properties.nodeKind,
|
|
641
598
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
642
599
|
}),
|
|
643
600
|
not: $shaclPropertyFromRdf({
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
focusResource: $resource,
|
|
601
|
+
...options,
|
|
602
|
+
focusResource: resource,
|
|
647
603
|
ignoreRdfType: true,
|
|
648
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
649
604
|
propertySchema: NodeShape.schema.properties.not,
|
|
650
605
|
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
651
606
|
}),
|
|
652
607
|
or: $shaclPropertyFromRdf({
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
focusResource: $resource,
|
|
608
|
+
...options,
|
|
609
|
+
focusResource: resource,
|
|
656
610
|
ignoreRdfType: true,
|
|
657
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
658
611
|
propertySchema: NodeShape.schema.properties.or,
|
|
659
612
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
660
613
|
}),
|
|
661
614
|
pattern: $shaclPropertyFromRdf({
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
focusResource: $resource,
|
|
615
|
+
...options,
|
|
616
|
+
focusResource: resource,
|
|
665
617
|
ignoreRdfType: true,
|
|
666
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
667
618
|
propertySchema: NodeShape.schema.properties.pattern,
|
|
668
619
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
669
620
|
}),
|
|
670
621
|
properties: $shaclPropertyFromRdf({
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
focusResource: $resource,
|
|
622
|
+
...options,
|
|
623
|
+
focusResource: resource,
|
|
674
624
|
ignoreRdfType: true,
|
|
675
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
676
625
|
propertySchema: NodeShape.schema.properties.properties,
|
|
677
626
|
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
678
627
|
}),
|
|
679
628
|
severity: $shaclPropertyFromRdf({
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
focusResource: $resource,
|
|
629
|
+
...options,
|
|
630
|
+
focusResource: resource,
|
|
683
631
|
ignoreRdfType: true,
|
|
684
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
685
632
|
propertySchema: NodeShape.schema.properties.severity,
|
|
686
633
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
687
634
|
}),
|
|
688
635
|
subClassOf: $shaclPropertyFromRdf({
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
focusResource: $resource,
|
|
636
|
+
...options,
|
|
637
|
+
focusResource: resource,
|
|
692
638
|
ignoreRdfType: true,
|
|
693
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
694
639
|
propertySchema: NodeShape.schema.properties.subClassOf,
|
|
695
640
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
696
641
|
}),
|
|
697
642
|
targetClasses: $shaclPropertyFromRdf({
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
focusResource: $resource,
|
|
643
|
+
...options,
|
|
644
|
+
focusResource: resource,
|
|
701
645
|
ignoreRdfType: true,
|
|
702
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
703
646
|
propertySchema: NodeShape.schema.properties.targetClasses,
|
|
704
647
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
705
648
|
}),
|
|
706
649
|
targetNodes: $shaclPropertyFromRdf({
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
focusResource: $resource,
|
|
650
|
+
...options,
|
|
651
|
+
focusResource: resource,
|
|
710
652
|
ignoreRdfType: true,
|
|
711
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
712
653
|
propertySchema: NodeShape.schema.properties.targetNodes,
|
|
713
654
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
714
655
|
}),
|
|
715
656
|
targetObjectsOf: $shaclPropertyFromRdf({
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
focusResource: $resource,
|
|
657
|
+
...options,
|
|
658
|
+
focusResource: resource,
|
|
719
659
|
ignoreRdfType: true,
|
|
720
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
721
660
|
propertySchema: NodeShape.schema.properties.targetObjectsOf,
|
|
722
661
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
723
662
|
}),
|
|
724
663
|
targetSubjectsOf: $shaclPropertyFromRdf({
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
focusResource: $resource,
|
|
664
|
+
...options,
|
|
665
|
+
focusResource: resource,
|
|
728
666
|
ignoreRdfType: true,
|
|
729
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
730
667
|
propertySchema: NodeShape.schema.properties.targetSubjectsOf,
|
|
731
668
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
732
669
|
}),
|
|
733
670
|
types: $shaclPropertyFromRdf({
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
focusResource: $resource,
|
|
671
|
+
...options,
|
|
672
|
+
focusResource: resource,
|
|
737
673
|
ignoreRdfType: true,
|
|
738
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
739
674
|
propertySchema: NodeShape.schema.properties.types,
|
|
740
675
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
741
676
|
}),
|
|
742
677
|
xone: $shaclPropertyFromRdf({
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
focusResource: $resource,
|
|
678
|
+
...options,
|
|
679
|
+
focusResource: resource,
|
|
746
680
|
ignoreRdfType: true,
|
|
747
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
748
681
|
propertySchema: NodeShape.schema.properties.xone,
|
|
749
682
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
750
683
|
}),
|
|
@@ -1063,10 +996,11 @@ export var NodeShape;
|
|
|
1063
996
|
},
|
|
1064
997
|
},
|
|
1065
998
|
},
|
|
999
|
+
toRdfTypes: [dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape")],
|
|
1066
1000
|
};
|
|
1067
1001
|
NodeShape._toRdfResource = (parameters) => {
|
|
1068
1002
|
if (!parameters.ignoreRdfType) {
|
|
1069
|
-
parameters.resource.add($RdfVocabularies.rdf.type,
|
|
1003
|
+
parameters.resource.add($RdfVocabularies.rdf.type, NodeShape.schema.toRdfTypes, parameters.graph);
|
|
1070
1004
|
}
|
|
1071
1005
|
parameters.resource.add(NodeShape.schema.properties.and.path, parameters.object.and.toList().flatMap((value) => [
|
|
1072
1006
|
value.length > 0
|
|
@@ -1276,39 +1210,28 @@ export var Ontology;
|
|
|
1276
1210
|
return Ontology.create(parameters).unsafeCoerce();
|
|
1277
1211
|
}
|
|
1278
1212
|
Ontology.createUnsafe = createUnsafe;
|
|
1279
|
-
Ontology._fromRdfResource = (
|
|
1280
|
-
? $ensureRdfResourceType(
|
|
1281
|
-
graph:
|
|
1213
|
+
Ontology._fromRdfResource = (resource, options) => (!options.ignoreRdfType
|
|
1214
|
+
? $ensureRdfResourceType(resource, [Ontology.schema.fromRdfType], {
|
|
1215
|
+
graph: options.graph,
|
|
1282
1216
|
})
|
|
1283
1217
|
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1284
|
-
$identifier: $identifierFromRdfResourceValues(
|
|
1285
|
-
|
|
1286
|
-
focusResource:
|
|
1287
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1288
|
-
term: $resource.identifier,
|
|
1289
|
-
}).toValues(), {
|
|
1290
|
-
context: _$options.context,
|
|
1291
|
-
graph: _$options.graph,
|
|
1292
|
-
focusResource: $resource,
|
|
1293
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1218
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1219
|
+
...options,
|
|
1220
|
+
focusResource: resource,
|
|
1294
1221
|
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1295
1222
|
schema: Ontology.schema.properties.$identifier.type,
|
|
1296
1223
|
}).chain((values) => values.head()),
|
|
1297
1224
|
comment: $shaclPropertyFromRdf({
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
focusResource: $resource,
|
|
1225
|
+
...options,
|
|
1226
|
+
focusResource: resource,
|
|
1301
1227
|
ignoreRdfType: true,
|
|
1302
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1303
1228
|
propertySchema: NodeShape.schema.properties.comment,
|
|
1304
1229
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1305
1230
|
}),
|
|
1306
1231
|
label: $shaclPropertyFromRdf({
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
focusResource: $resource,
|
|
1232
|
+
...options,
|
|
1233
|
+
focusResource: resource,
|
|
1310
1234
|
ignoreRdfType: true,
|
|
1311
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1312
1235
|
propertySchema: NodeShape.schema.properties.label,
|
|
1313
1236
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1314
1237
|
}),
|
|
@@ -1350,10 +1273,13 @@ export var Ontology;
|
|
|
1350
1273
|
},
|
|
1351
1274
|
},
|
|
1352
1275
|
},
|
|
1276
|
+
toRdfTypes: [
|
|
1277
|
+
dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1278
|
+
],
|
|
1353
1279
|
};
|
|
1354
1280
|
Ontology._toRdfResource = (parameters) => {
|
|
1355
1281
|
if (!parameters.ignoreRdfType) {
|
|
1356
|
-
parameters.resource.add($RdfVocabularies.rdf.type,
|
|
1282
|
+
parameters.resource.add($RdfVocabularies.rdf.type, Ontology.schema.toRdfTypes, parameters.graph);
|
|
1357
1283
|
}
|
|
1358
1284
|
parameters.resource.add(NodeShape.schema.properties.comment.path, parameters.object.comment
|
|
1359
1285
|
.toList()
|
|
@@ -1383,39 +1309,28 @@ export var PropertyGroup;
|
|
|
1383
1309
|
return PropertyGroup.create(parameters).unsafeCoerce();
|
|
1384
1310
|
}
|
|
1385
1311
|
PropertyGroup.createUnsafe = createUnsafe;
|
|
1386
|
-
PropertyGroup._fromRdfResource = (
|
|
1387
|
-
? $ensureRdfResourceType(
|
|
1388
|
-
graph:
|
|
1312
|
+
PropertyGroup._fromRdfResource = (resource, options) => (!options.ignoreRdfType
|
|
1313
|
+
? $ensureRdfResourceType(resource, [PropertyGroup.schema.fromRdfType], {
|
|
1314
|
+
graph: options.graph,
|
|
1389
1315
|
})
|
|
1390
1316
|
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1391
|
-
$identifier: $identifierFromRdfResourceValues(
|
|
1392
|
-
|
|
1393
|
-
focusResource:
|
|
1394
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1395
|
-
term: $resource.identifier,
|
|
1396
|
-
}).toValues(), {
|
|
1397
|
-
context: _$options.context,
|
|
1398
|
-
graph: _$options.graph,
|
|
1399
|
-
focusResource: $resource,
|
|
1400
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1317
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1318
|
+
...options,
|
|
1319
|
+
focusResource: resource,
|
|
1401
1320
|
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1402
1321
|
schema: PropertyGroup.schema.properties.$identifier.type,
|
|
1403
1322
|
}).chain((values) => values.head()),
|
|
1404
1323
|
comment: $shaclPropertyFromRdf({
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
focusResource: $resource,
|
|
1324
|
+
...options,
|
|
1325
|
+
focusResource: resource,
|
|
1408
1326
|
ignoreRdfType: true,
|
|
1409
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1410
1327
|
propertySchema: NodeShape.schema.properties.comment,
|
|
1411
1328
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1412
1329
|
}),
|
|
1413
1330
|
label: $shaclPropertyFromRdf({
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
focusResource: $resource,
|
|
1331
|
+
...options,
|
|
1332
|
+
focusResource: resource,
|
|
1417
1333
|
ignoreRdfType: true,
|
|
1418
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1419
1334
|
propertySchema: NodeShape.schema.properties.label,
|
|
1420
1335
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1421
1336
|
}),
|
|
@@ -1457,10 +1372,13 @@ export var PropertyGroup;
|
|
|
1457
1372
|
},
|
|
1458
1373
|
},
|
|
1459
1374
|
},
|
|
1375
|
+
toRdfTypes: [
|
|
1376
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
|
|
1377
|
+
],
|
|
1460
1378
|
};
|
|
1461
1379
|
PropertyGroup._toRdfResource = (parameters) => {
|
|
1462
1380
|
if (!parameters.ignoreRdfType) {
|
|
1463
|
-
parameters.resource.add($RdfVocabularies.rdf.type,
|
|
1381
|
+
parameters.resource.add($RdfVocabularies.rdf.type, PropertyGroup.schema.toRdfTypes, parameters.graph);
|
|
1464
1382
|
}
|
|
1465
1383
|
parameters.resource.add(NodeShape.schema.properties.comment.path, parameters.object.comment
|
|
1466
1384
|
.toList()
|
|
@@ -1534,435 +1452,336 @@ export var PropertyShape;
|
|
|
1534
1452
|
return PropertyShape.create(parameters).unsafeCoerce();
|
|
1535
1453
|
}
|
|
1536
1454
|
PropertyShape.createUnsafe = createUnsafe;
|
|
1537
|
-
PropertyShape._fromRdfResource = (
|
|
1538
|
-
? $ensureRdfResourceType(
|
|
1539
|
-
graph:
|
|
1455
|
+
PropertyShape._fromRdfResource = (resource, options) => (!options.ignoreRdfType
|
|
1456
|
+
? $ensureRdfResourceType(resource, [PropertyShape.schema.fromRdfType], {
|
|
1457
|
+
graph: options.graph,
|
|
1540
1458
|
})
|
|
1541
1459
|
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1542
|
-
$identifier: $identifierFromRdfResourceValues(
|
|
1543
|
-
|
|
1544
|
-
focusResource:
|
|
1545
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1546
|
-
term: $resource.identifier,
|
|
1547
|
-
}).toValues(), {
|
|
1548
|
-
context: _$options.context,
|
|
1549
|
-
graph: _$options.graph,
|
|
1550
|
-
focusResource: $resource,
|
|
1551
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1460
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1461
|
+
...options,
|
|
1462
|
+
focusResource: resource,
|
|
1552
1463
|
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1553
1464
|
schema: PropertyShape.schema.properties.$identifier.type,
|
|
1554
1465
|
}).chain((values) => values.head()),
|
|
1555
1466
|
and: $shaclPropertyFromRdf({
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
focusResource: $resource,
|
|
1467
|
+
...options,
|
|
1468
|
+
focusResource: resource,
|
|
1559
1469
|
ignoreRdfType: true,
|
|
1560
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1561
1470
|
propertySchema: NodeShape.schema.properties.and,
|
|
1562
1471
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
1563
1472
|
}),
|
|
1564
1473
|
classes: $shaclPropertyFromRdf({
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
focusResource: $resource,
|
|
1474
|
+
...options,
|
|
1475
|
+
focusResource: resource,
|
|
1568
1476
|
ignoreRdfType: true,
|
|
1569
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1570
1477
|
propertySchema: NodeShape.schema.properties.classes,
|
|
1571
1478
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1572
1479
|
}),
|
|
1573
1480
|
comment: $shaclPropertyFromRdf({
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
focusResource: $resource,
|
|
1481
|
+
...options,
|
|
1482
|
+
focusResource: resource,
|
|
1577
1483
|
ignoreRdfType: true,
|
|
1578
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1579
1484
|
propertySchema: NodeShape.schema.properties.comment,
|
|
1580
1485
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1581
1486
|
}),
|
|
1582
1487
|
datatype: $shaclPropertyFromRdf({
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
focusResource: $resource,
|
|
1488
|
+
...options,
|
|
1489
|
+
focusResource: resource,
|
|
1586
1490
|
ignoreRdfType: true,
|
|
1587
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1588
1491
|
propertySchema: NodeShape.schema.properties.datatype,
|
|
1589
1492
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1590
1493
|
}),
|
|
1591
1494
|
deactivated: $shaclPropertyFromRdf({
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
focusResource: $resource,
|
|
1495
|
+
...options,
|
|
1496
|
+
focusResource: resource,
|
|
1595
1497
|
ignoreRdfType: true,
|
|
1596
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1597
1498
|
propertySchema: NodeShape.schema.properties.deactivated,
|
|
1598
1499
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1599
1500
|
}),
|
|
1600
1501
|
defaultValue: $shaclPropertyFromRdf({
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
focusResource: $resource,
|
|
1502
|
+
...options,
|
|
1503
|
+
focusResource: resource,
|
|
1604
1504
|
ignoreRdfType: true,
|
|
1605
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1606
1505
|
propertySchema: PropertyShape.schema.properties.defaultValue,
|
|
1607
1506
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
1608
1507
|
}),
|
|
1609
1508
|
description: $shaclPropertyFromRdf({
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
focusResource: $resource,
|
|
1509
|
+
...options,
|
|
1510
|
+
focusResource: resource,
|
|
1613
1511
|
ignoreRdfType: true,
|
|
1614
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1615
1512
|
propertySchema: PropertyShape.schema.properties.description,
|
|
1616
1513
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1617
1514
|
}),
|
|
1618
1515
|
disjoint: $shaclPropertyFromRdf({
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
focusResource: $resource,
|
|
1516
|
+
...options,
|
|
1517
|
+
focusResource: resource,
|
|
1622
1518
|
ignoreRdfType: true,
|
|
1623
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1624
1519
|
propertySchema: PropertyShape.schema.properties.disjoint,
|
|
1625
1520
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1626
1521
|
}),
|
|
1627
1522
|
equals: $shaclPropertyFromRdf({
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
focusResource: $resource,
|
|
1523
|
+
...options,
|
|
1524
|
+
focusResource: resource,
|
|
1631
1525
|
ignoreRdfType: true,
|
|
1632
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1633
1526
|
propertySchema: PropertyShape.schema.properties.equals,
|
|
1634
1527
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1635
1528
|
}),
|
|
1636
1529
|
flags: $shaclPropertyFromRdf({
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
focusResource: $resource,
|
|
1530
|
+
...options,
|
|
1531
|
+
focusResource: resource,
|
|
1640
1532
|
ignoreRdfType: true,
|
|
1641
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1642
1533
|
propertySchema: NodeShape.schema.properties.flags,
|
|
1643
1534
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1644
1535
|
}),
|
|
1645
1536
|
groups: $shaclPropertyFromRdf({
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
focusResource: $resource,
|
|
1537
|
+
...options,
|
|
1538
|
+
focusResource: resource,
|
|
1649
1539
|
ignoreRdfType: true,
|
|
1650
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1651
1540
|
propertySchema: PropertyShape.schema.properties.groups,
|
|
1652
1541
|
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1653
1542
|
}),
|
|
1654
1543
|
hasValues: $shaclPropertyFromRdf({
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
focusResource: $resource,
|
|
1544
|
+
...options,
|
|
1545
|
+
focusResource: resource,
|
|
1658
1546
|
ignoreRdfType: true,
|
|
1659
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1660
1547
|
propertySchema: NodeShape.schema.properties.hasValues,
|
|
1661
1548
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
1662
1549
|
}),
|
|
1663
1550
|
in_: $shaclPropertyFromRdf({
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
focusResource: $resource,
|
|
1551
|
+
...options,
|
|
1552
|
+
focusResource: resource,
|
|
1667
1553
|
ignoreRdfType: true,
|
|
1668
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1669
1554
|
propertySchema: NodeShape.schema.properties.in_,
|
|
1670
1555
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($termFromRdfResourceValues))),
|
|
1671
1556
|
}),
|
|
1672
1557
|
isDefinedBy: $shaclPropertyFromRdf({
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
focusResource: $resource,
|
|
1558
|
+
...options,
|
|
1559
|
+
focusResource: resource,
|
|
1676
1560
|
ignoreRdfType: true,
|
|
1677
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1678
1561
|
propertySchema: NodeShape.schema.properties.isDefinedBy,
|
|
1679
1562
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1680
1563
|
}),
|
|
1681
1564
|
label: $shaclPropertyFromRdf({
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
focusResource: $resource,
|
|
1565
|
+
...options,
|
|
1566
|
+
focusResource: resource,
|
|
1685
1567
|
ignoreRdfType: true,
|
|
1686
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1687
1568
|
propertySchema: NodeShape.schema.properties.label,
|
|
1688
1569
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1689
1570
|
}),
|
|
1690
1571
|
languageIn: $shaclPropertyFromRdf({
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
focusResource: $resource,
|
|
1572
|
+
...options,
|
|
1573
|
+
focusResource: resource,
|
|
1694
1574
|
ignoreRdfType: true,
|
|
1695
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1696
1575
|
propertySchema: NodeShape.schema.properties.languageIn,
|
|
1697
1576
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($stringFromRdfResourceValues))),
|
|
1698
1577
|
}),
|
|
1699
1578
|
lessThan: $shaclPropertyFromRdf({
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
focusResource: $resource,
|
|
1579
|
+
...options,
|
|
1580
|
+
focusResource: resource,
|
|
1703
1581
|
ignoreRdfType: true,
|
|
1704
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1705
1582
|
propertySchema: PropertyShape.schema.properties.lessThan,
|
|
1706
1583
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1707
1584
|
}),
|
|
1708
1585
|
lessThanOrEquals: $shaclPropertyFromRdf({
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
focusResource: $resource,
|
|
1586
|
+
...options,
|
|
1587
|
+
focusResource: resource,
|
|
1712
1588
|
ignoreRdfType: true,
|
|
1713
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1714
1589
|
propertySchema: PropertyShape.schema.properties.lessThanOrEquals,
|
|
1715
1590
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1716
1591
|
}),
|
|
1717
1592
|
maxCount: $shaclPropertyFromRdf({
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
focusResource: $resource,
|
|
1593
|
+
...options,
|
|
1594
|
+
focusResource: resource,
|
|
1721
1595
|
ignoreRdfType: true,
|
|
1722
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1723
1596
|
propertySchema: PropertyShape.schema.properties.maxCount,
|
|
1724
1597
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1725
1598
|
}),
|
|
1726
1599
|
maxExclusive: $shaclPropertyFromRdf({
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
focusResource: $resource,
|
|
1600
|
+
...options,
|
|
1601
|
+
focusResource: resource,
|
|
1730
1602
|
ignoreRdfType: true,
|
|
1731
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1732
1603
|
propertySchema: NodeShape.schema.properties.maxExclusive,
|
|
1733
1604
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
1734
1605
|
}),
|
|
1735
1606
|
maxInclusive: $shaclPropertyFromRdf({
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
focusResource: $resource,
|
|
1607
|
+
...options,
|
|
1608
|
+
focusResource: resource,
|
|
1739
1609
|
ignoreRdfType: true,
|
|
1740
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1741
1610
|
propertySchema: NodeShape.schema.properties.maxInclusive,
|
|
1742
1611
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
1743
1612
|
}),
|
|
1744
1613
|
maxLength: $shaclPropertyFromRdf({
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
focusResource: $resource,
|
|
1614
|
+
...options,
|
|
1615
|
+
focusResource: resource,
|
|
1748
1616
|
ignoreRdfType: true,
|
|
1749
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1750
1617
|
propertySchema: NodeShape.schema.properties.maxLength,
|
|
1751
1618
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1752
1619
|
}),
|
|
1753
1620
|
message: $shaclPropertyFromRdf({
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
focusResource: $resource,
|
|
1621
|
+
...options,
|
|
1622
|
+
focusResource: resource,
|
|
1757
1623
|
ignoreRdfType: true,
|
|
1758
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1759
1624
|
propertySchema: NodeShape.schema.properties.message,
|
|
1760
1625
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1761
1626
|
}),
|
|
1762
1627
|
minCount: $shaclPropertyFromRdf({
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
focusResource: $resource,
|
|
1628
|
+
...options,
|
|
1629
|
+
focusResource: resource,
|
|
1766
1630
|
ignoreRdfType: true,
|
|
1767
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1768
1631
|
propertySchema: PropertyShape.schema.properties.minCount,
|
|
1769
1632
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1770
1633
|
}),
|
|
1771
1634
|
minExclusive: $shaclPropertyFromRdf({
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
focusResource: $resource,
|
|
1635
|
+
...options,
|
|
1636
|
+
focusResource: resource,
|
|
1775
1637
|
ignoreRdfType: true,
|
|
1776
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1777
1638
|
propertySchema: NodeShape.schema.properties.minExclusive,
|
|
1778
1639
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
1779
1640
|
}),
|
|
1780
1641
|
minInclusive: $shaclPropertyFromRdf({
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
focusResource: $resource,
|
|
1642
|
+
...options,
|
|
1643
|
+
focusResource: resource,
|
|
1784
1644
|
ignoreRdfType: true,
|
|
1785
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1786
1645
|
propertySchema: NodeShape.schema.properties.minInclusive,
|
|
1787
1646
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
1788
1647
|
}),
|
|
1789
1648
|
minLength: $shaclPropertyFromRdf({
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
focusResource: $resource,
|
|
1649
|
+
...options,
|
|
1650
|
+
focusResource: resource,
|
|
1793
1651
|
ignoreRdfType: true,
|
|
1794
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1795
1652
|
propertySchema: NodeShape.schema.properties.minLength,
|
|
1796
1653
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1797
1654
|
}),
|
|
1798
1655
|
name: $shaclPropertyFromRdf({
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
focusResource: $resource,
|
|
1656
|
+
...options,
|
|
1657
|
+
focusResource: resource,
|
|
1802
1658
|
ignoreRdfType: true,
|
|
1803
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1804
1659
|
propertySchema: PropertyShape.schema.properties.name,
|
|
1805
1660
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1806
1661
|
}),
|
|
1807
1662
|
node: $shaclPropertyFromRdf({
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
focusResource: $resource,
|
|
1663
|
+
...options,
|
|
1664
|
+
focusResource: resource,
|
|
1811
1665
|
ignoreRdfType: true,
|
|
1812
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1813
1666
|
propertySchema: NodeShape.schema.properties.node,
|
|
1814
1667
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1815
1668
|
}),
|
|
1816
1669
|
nodeKind: $shaclPropertyFromRdf({
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
focusResource: $resource,
|
|
1670
|
+
...options,
|
|
1671
|
+
focusResource: resource,
|
|
1820
1672
|
ignoreRdfType: true,
|
|
1821
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1822
1673
|
propertySchema: NodeShape.schema.properties.nodeKind,
|
|
1823
1674
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1824
1675
|
}),
|
|
1825
1676
|
not: $shaclPropertyFromRdf({
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
focusResource: $resource,
|
|
1677
|
+
...options,
|
|
1678
|
+
focusResource: resource,
|
|
1829
1679
|
ignoreRdfType: true,
|
|
1830
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1831
1680
|
propertySchema: NodeShape.schema.properties.not,
|
|
1832
1681
|
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1833
1682
|
}),
|
|
1834
1683
|
or: $shaclPropertyFromRdf({
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
focusResource: $resource,
|
|
1684
|
+
...options,
|
|
1685
|
+
focusResource: resource,
|
|
1838
1686
|
ignoreRdfType: true,
|
|
1839
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1840
1687
|
propertySchema: NodeShape.schema.properties.or,
|
|
1841
1688
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
1842
1689
|
}),
|
|
1843
1690
|
order: $shaclPropertyFromRdf({
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
focusResource: $resource,
|
|
1691
|
+
...options,
|
|
1692
|
+
focusResource: resource,
|
|
1847
1693
|
ignoreRdfType: true,
|
|
1848
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1849
1694
|
propertySchema: PropertyShape.schema.properties.order,
|
|
1850
1695
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($floatFromRdfResourceValues)),
|
|
1851
1696
|
}),
|
|
1852
1697
|
path: $shaclPropertyFromRdf({
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
focusResource: $resource,
|
|
1698
|
+
...options,
|
|
1699
|
+
focusResource: resource,
|
|
1856
1700
|
ignoreRdfType: true,
|
|
1857
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1858
1701
|
propertySchema: PropertyShape.schema.properties.path,
|
|
1859
1702
|
typeFromRdfResourceValues: $PropertyPath.fromRdfResourceValues,
|
|
1860
1703
|
}),
|
|
1861
1704
|
pattern: $shaclPropertyFromRdf({
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
focusResource: $resource,
|
|
1705
|
+
...options,
|
|
1706
|
+
focusResource: resource,
|
|
1865
1707
|
ignoreRdfType: true,
|
|
1866
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1867
1708
|
propertySchema: NodeShape.schema.properties.pattern,
|
|
1868
1709
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1869
1710
|
}),
|
|
1870
1711
|
qualifiedMaxCount: $shaclPropertyFromRdf({
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
focusResource: $resource,
|
|
1712
|
+
...options,
|
|
1713
|
+
focusResource: resource,
|
|
1874
1714
|
ignoreRdfType: true,
|
|
1875
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1876
1715
|
propertySchema: PropertyShape.schema.properties.qualifiedMaxCount,
|
|
1877
1716
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1878
1717
|
}),
|
|
1879
1718
|
qualifiedMinCount: $shaclPropertyFromRdf({
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
focusResource: $resource,
|
|
1719
|
+
...options,
|
|
1720
|
+
focusResource: resource,
|
|
1883
1721
|
ignoreRdfType: true,
|
|
1884
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1885
1722
|
propertySchema: PropertyShape.schema.properties.qualifiedMinCount,
|
|
1886
1723
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1887
1724
|
}),
|
|
1888
1725
|
qualifiedValueShape: $shaclPropertyFromRdf({
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
focusResource: $resource,
|
|
1726
|
+
...options,
|
|
1727
|
+
focusResource: resource,
|
|
1892
1728
|
ignoreRdfType: true,
|
|
1893
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1894
1729
|
propertySchema: PropertyShape.schema.properties.qualifiedValueShape,
|
|
1895
1730
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1896
1731
|
}),
|
|
1897
1732
|
qualifiedValueShapesDisjoint: $shaclPropertyFromRdf({
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
focusResource: $resource,
|
|
1733
|
+
...options,
|
|
1734
|
+
focusResource: resource,
|
|
1901
1735
|
ignoreRdfType: true,
|
|
1902
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1903
1736
|
propertySchema: PropertyShape.schema.properties.qualifiedValueShapesDisjoint,
|
|
1904
1737
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1905
1738
|
}),
|
|
1906
1739
|
severity: $shaclPropertyFromRdf({
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
focusResource: $resource,
|
|
1740
|
+
...options,
|
|
1741
|
+
focusResource: resource,
|
|
1910
1742
|
ignoreRdfType: true,
|
|
1911
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1912
1743
|
propertySchema: NodeShape.schema.properties.severity,
|
|
1913
1744
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1914
1745
|
}),
|
|
1915
1746
|
targetClasses: $shaclPropertyFromRdf({
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
focusResource: $resource,
|
|
1747
|
+
...options,
|
|
1748
|
+
focusResource: resource,
|
|
1919
1749
|
ignoreRdfType: true,
|
|
1920
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1921
1750
|
propertySchema: NodeShape.schema.properties.targetClasses,
|
|
1922
1751
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1923
1752
|
}),
|
|
1924
1753
|
targetNodes: $shaclPropertyFromRdf({
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
focusResource: $resource,
|
|
1754
|
+
...options,
|
|
1755
|
+
focusResource: resource,
|
|
1928
1756
|
ignoreRdfType: true,
|
|
1929
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1930
1757
|
propertySchema: NodeShape.schema.properties.targetNodes,
|
|
1931
1758
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
1932
1759
|
}),
|
|
1933
1760
|
targetObjectsOf: $shaclPropertyFromRdf({
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
focusResource: $resource,
|
|
1761
|
+
...options,
|
|
1762
|
+
focusResource: resource,
|
|
1937
1763
|
ignoreRdfType: true,
|
|
1938
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1939
1764
|
propertySchema: NodeShape.schema.properties.targetObjectsOf,
|
|
1940
1765
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1941
1766
|
}),
|
|
1942
1767
|
targetSubjectsOf: $shaclPropertyFromRdf({
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
focusResource: $resource,
|
|
1768
|
+
...options,
|
|
1769
|
+
focusResource: resource,
|
|
1946
1770
|
ignoreRdfType: true,
|
|
1947
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1948
1771
|
propertySchema: NodeShape.schema.properties.targetSubjectsOf,
|
|
1949
1772
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1950
1773
|
}),
|
|
1951
1774
|
uniqueLang: $shaclPropertyFromRdf({
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
focusResource: $resource,
|
|
1775
|
+
...options,
|
|
1776
|
+
focusResource: resource,
|
|
1955
1777
|
ignoreRdfType: true,
|
|
1956
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1957
1778
|
propertySchema: PropertyShape.schema.properties.uniqueLang,
|
|
1958
1779
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1959
1780
|
}),
|
|
1960
1781
|
xone: $shaclPropertyFromRdf({
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
focusResource: $resource,
|
|
1782
|
+
...options,
|
|
1783
|
+
focusResource: resource,
|
|
1964
1784
|
ignoreRdfType: true,
|
|
1965
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1966
1785
|
propertySchema: NodeShape.schema.properties.xone,
|
|
1967
1786
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
1968
1787
|
}),
|
|
@@ -2364,10 +2183,13 @@ export var PropertyShape;
|
|
|
2364
2183
|
},
|
|
2365
2184
|
},
|
|
2366
2185
|
},
|
|
2186
|
+
toRdfTypes: [
|
|
2187
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
|
|
2188
|
+
],
|
|
2367
2189
|
};
|
|
2368
2190
|
PropertyShape._toRdfResource = (parameters) => {
|
|
2369
2191
|
if (!parameters.ignoreRdfType) {
|
|
2370
|
-
parameters.resource.add($RdfVocabularies.rdf.type,
|
|
2192
|
+
parameters.resource.add($RdfVocabularies.rdf.type, PropertyShape.schema.toRdfTypes, parameters.graph);
|
|
2371
2193
|
}
|
|
2372
2194
|
parameters.resource.add(NodeShape.schema.properties.and.path, parameters.object.and.toList().flatMap((value) => [
|
|
2373
2195
|
value.length > 0
|
|
@@ -2607,46 +2429,33 @@ export var ValidationReport;
|
|
|
2607
2429
|
return ValidationReport.create(parameters).unsafeCoerce();
|
|
2608
2430
|
}
|
|
2609
2431
|
ValidationReport.createUnsafe = createUnsafe;
|
|
2610
|
-
ValidationReport._fromRdfResource = (
|
|
2611
|
-
? $ensureRdfResourceType(
|
|
2432
|
+
ValidationReport._fromRdfResource = (resource, options) => (!options.ignoreRdfType
|
|
2433
|
+
? $ensureRdfResourceType(resource, [ValidationReport.schema.fromRdfType], { graph: options.graph })
|
|
2612
2434
|
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
2613
|
-
$identifier: $identifierFromRdfResourceValues(
|
|
2614
|
-
|
|
2615
|
-
focusResource:
|
|
2616
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
2617
|
-
term: $resource.identifier,
|
|
2618
|
-
}).toValues(), {
|
|
2619
|
-
context: _$options.context,
|
|
2620
|
-
graph: _$options.graph,
|
|
2621
|
-
focusResource: $resource,
|
|
2622
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2435
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
2436
|
+
...options,
|
|
2437
|
+
focusResource: resource,
|
|
2623
2438
|
propertyPath: $RdfVocabularies.rdf.subject,
|
|
2624
2439
|
schema: ValidationReport.schema.properties.$identifier.type,
|
|
2625
2440
|
}).chain((values) => values.head()),
|
|
2626
2441
|
conforms: $shaclPropertyFromRdf({
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
focusResource: $resource,
|
|
2442
|
+
...options,
|
|
2443
|
+
focusResource: resource,
|
|
2630
2444
|
ignoreRdfType: true,
|
|
2631
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2632
2445
|
propertySchema: ValidationReport.schema.properties.conforms,
|
|
2633
2446
|
typeFromRdfResourceValues: ($booleanFromRdfResourceValues),
|
|
2634
2447
|
}),
|
|
2635
2448
|
results: $shaclPropertyFromRdf({
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
focusResource: $resource,
|
|
2449
|
+
...options,
|
|
2450
|
+
focusResource: resource,
|
|
2639
2451
|
ignoreRdfType: true,
|
|
2640
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2641
2452
|
propertySchema: ValidationReport.schema.properties.results,
|
|
2642
2453
|
typeFromRdfResourceValues: $setFromRdfResourceValues(ValidationResult.fromRdfResourceValues),
|
|
2643
2454
|
}),
|
|
2644
2455
|
shapesGraphWellFormed: $shaclPropertyFromRdf({
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
focusResource: $resource,
|
|
2456
|
+
...options,
|
|
2457
|
+
focusResource: resource,
|
|
2648
2458
|
ignoreRdfType: true,
|
|
2649
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2650
2459
|
propertySchema: ValidationReport.schema.properties.shapesGraphWellFormed,
|
|
2651
2460
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
2652
2461
|
}),
|
|
@@ -2697,10 +2506,13 @@ export var ValidationReport;
|
|
|
2697
2506
|
},
|
|
2698
2507
|
},
|
|
2699
2508
|
},
|
|
2509
|
+
toRdfTypes: [
|
|
2510
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
|
|
2511
|
+
],
|
|
2700
2512
|
};
|
|
2701
2513
|
ValidationReport._toRdfResource = (parameters) => {
|
|
2702
2514
|
if (!parameters.ignoreRdfType) {
|
|
2703
|
-
parameters.resource.add($RdfVocabularies.rdf.type,
|
|
2515
|
+
parameters.resource.add($RdfVocabularies.rdf.type, ValidationReport.schema.toRdfTypes, parameters.graph);
|
|
2704
2516
|
}
|
|
2705
2517
|
parameters.resource.add(ValidationReport.schema.properties.conforms.path, [
|
|
2706
2518
|
$literalFactory.boolean(parameters.object.conforms, $RdfVocabularies.xsd.boolean),
|
|
@@ -2744,91 +2556,68 @@ export var ValidationResult;
|
|
|
2744
2556
|
return ValidationResult.create(parameters).unsafeCoerce();
|
|
2745
2557
|
}
|
|
2746
2558
|
ValidationResult.createUnsafe = createUnsafe;
|
|
2747
|
-
ValidationResult._fromRdfResource = (
|
|
2748
|
-
? $ensureRdfResourceType(
|
|
2559
|
+
ValidationResult._fromRdfResource = (resource, options) => (!options.ignoreRdfType
|
|
2560
|
+
? $ensureRdfResourceType(resource, [ValidationResult.schema.fromRdfType], { graph: options.graph })
|
|
2749
2561
|
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
2750
|
-
$identifier: $identifierFromRdfResourceValues(
|
|
2751
|
-
|
|
2752
|
-
focusResource:
|
|
2753
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
2754
|
-
term: $resource.identifier,
|
|
2755
|
-
}).toValues(), {
|
|
2756
|
-
context: _$options.context,
|
|
2757
|
-
graph: _$options.graph,
|
|
2758
|
-
focusResource: $resource,
|
|
2759
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2562
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
2563
|
+
...options,
|
|
2564
|
+
focusResource: resource,
|
|
2760
2565
|
propertyPath: $RdfVocabularies.rdf.subject,
|
|
2761
2566
|
schema: ValidationResult.schema.properties.$identifier.type,
|
|
2762
2567
|
}).chain((values) => values.head()),
|
|
2763
2568
|
details: $shaclPropertyFromRdf({
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
focusResource: $resource,
|
|
2569
|
+
...options,
|
|
2570
|
+
focusResource: resource,
|
|
2767
2571
|
ignoreRdfType: true,
|
|
2768
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2769
2572
|
propertySchema: ValidationResult.schema.properties.details,
|
|
2770
2573
|
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
2771
2574
|
}),
|
|
2772
2575
|
focusNode: $shaclPropertyFromRdf({
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
focusResource: $resource,
|
|
2576
|
+
...options,
|
|
2577
|
+
focusResource: resource,
|
|
2776
2578
|
ignoreRdfType: true,
|
|
2777
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2778
2579
|
propertySchema: ValidationResult.schema.properties.focusNode,
|
|
2779
2580
|
typeFromRdfResourceValues: ($termFromRdfResourceValues),
|
|
2780
2581
|
}),
|
|
2781
2582
|
message: $shaclPropertyFromRdf({
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
focusResource: $resource,
|
|
2583
|
+
...options,
|
|
2584
|
+
focusResource: resource,
|
|
2785
2585
|
ignoreRdfType: true,
|
|
2786
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2787
2586
|
propertySchema: ValidationResult.schema.properties.message,
|
|
2788
2587
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
2789
2588
|
}),
|
|
2790
2589
|
path: $shaclPropertyFromRdf({
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
focusResource: $resource,
|
|
2590
|
+
...options,
|
|
2591
|
+
focusResource: resource,
|
|
2794
2592
|
ignoreRdfType: true,
|
|
2795
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2796
2593
|
propertySchema: ValidationResult.schema.properties.path,
|
|
2797
2594
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($PropertyPath.fromRdfResourceValues),
|
|
2798
2595
|
}),
|
|
2799
2596
|
severity: $shaclPropertyFromRdf({
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
focusResource: $resource,
|
|
2597
|
+
...options,
|
|
2598
|
+
focusResource: resource,
|
|
2803
2599
|
ignoreRdfType: true,
|
|
2804
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2805
2600
|
propertySchema: ValidationResult.schema.properties.severity,
|
|
2806
2601
|
typeFromRdfResourceValues: ($iriFromRdfResourceValues),
|
|
2807
2602
|
}),
|
|
2808
2603
|
sourceConstraintComponent: $shaclPropertyFromRdf({
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
focusResource: $resource,
|
|
2604
|
+
...options,
|
|
2605
|
+
focusResource: resource,
|
|
2812
2606
|
ignoreRdfType: true,
|
|
2813
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2814
2607
|
propertySchema: ValidationResult.schema.properties.sourceConstraintComponent,
|
|
2815
2608
|
typeFromRdfResourceValues: ($iriFromRdfResourceValues),
|
|
2816
2609
|
}),
|
|
2817
2610
|
sourceShape: $shaclPropertyFromRdf({
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
focusResource: $resource,
|
|
2611
|
+
...options,
|
|
2612
|
+
focusResource: resource,
|
|
2821
2613
|
ignoreRdfType: true,
|
|
2822
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2823
2614
|
propertySchema: ValidationResult.schema.properties.sourceShape,
|
|
2824
2615
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
2825
2616
|
}),
|
|
2826
2617
|
value: $shaclPropertyFromRdf({
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
focusResource: $resource,
|
|
2618
|
+
...options,
|
|
2619
|
+
focusResource: resource,
|
|
2830
2620
|
ignoreRdfType: true,
|
|
2831
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2832
2621
|
propertySchema: ValidationResult.schema.properties.value,
|
|
2833
2622
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
2834
2623
|
}),
|
|
@@ -2931,10 +2720,13 @@ export var ValidationResult;
|
|
|
2931
2720
|
},
|
|
2932
2721
|
},
|
|
2933
2722
|
},
|
|
2723
|
+
toRdfTypes: [
|
|
2724
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
|
|
2725
|
+
],
|
|
2934
2726
|
};
|
|
2935
2727
|
ValidationResult._toRdfResource = (parameters) => {
|
|
2936
2728
|
if (!parameters.ignoreRdfType) {
|
|
2937
|
-
parameters.resource.add($RdfVocabularies.rdf.type,
|
|
2729
|
+
parameters.resource.add($RdfVocabularies.rdf.type, ValidationResult.schema.toRdfTypes, parameters.graph);
|
|
2938
2730
|
}
|
|
2939
2731
|
parameters.resource.add(ValidationResult.schema.properties.details.path, parameters.object.details.flatMap((item) => [item]), parameters.graph);
|
|
2940
2732
|
parameters.resource.add(ValidationResult.schema.properties.focusNode.path, [parameters.object.focusNode], parameters.graph);
|
|
@@ -3470,4 +3262,4 @@ export var $Object;
|
|
|
3470
3262
|
throw new Error("unable to serialize to RDF");
|
|
3471
3263
|
});
|
|
3472
3264
|
})($Object || ($Object = {}));
|
|
3473
|
-
//# sourceMappingURL=
|
|
3265
|
+
//# sourceMappingURL=shacl-ast.shaclmate.js.map
|