@shaclmate/compiler 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/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +7 -2
- package/dist/generators/ts/ObjectType.d.ts +1 -0
- package/dist/generators/ts/ObjectType.js +12 -1
- package/dist/generators/ts/Snippets.d.ts +3 -0
- package/dist/generators/ts/Snippets.js +21 -0
- package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +1 -4
- package/dist/generators/ts/_ObjectType/IdentifierProperty.js +2 -13
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.js +6 -2
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.js +6 -11
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +4 -1
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +3 -3
- package/dist/generators/ts/_ObjectType/ShaclProperty.js +8 -16
- package/dist/generators/ts/_snippets/snippets_EqualsFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_EqualsFunction.js +4 -0
- package/dist/generators/ts/_snippets/snippets_propertyEquals.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_propertyEquals.js +11 -0
- package/dist/generators/ts/_snippets/snippets_rdfResourceIdentifierValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_rdfResourceIdentifierValues.js +12 -0
- package/dist/input/ShapesGraph.d.ts +1 -1
- package/dist/input/ShapesGraph.js +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input/{generated.d.ts → input.shaclmate.d.ts} +536 -43
- package/dist/input/{generated.js → input.shaclmate.js} +673 -495
- package/dist/input/input.shaclmate.ttl +85 -0
- package/package.json +602 -19
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
5
|
+
@prefix shaclmate: <http://purl.org/shaclmate/ontology#> .
|
|
6
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
7
|
+
|
|
8
|
+
shaclmate:NodeShape
|
|
9
|
+
sh:property shaclmate:NodeShape-discriminantValue, shaclmate:NodeShape-extern, shaclmate:NodeShape-fromRdfType, shaclmate:NodeShape-rdfType, shaclmate:NodeShape-toRdfTypes, shaclmate:NodeShape-tsImports, shaclmate:Shape-ignore, shaclmate:Shape-mutable, shaclmate:Shape-shaclmateName .
|
|
10
|
+
|
|
11
|
+
shaclmate:NodeShape-discriminantValue
|
|
12
|
+
a sh:PropertyShape ;
|
|
13
|
+
sh:datatype xsd:string ;
|
|
14
|
+
sh:maxCount 1 ;
|
|
15
|
+
sh:path shaclmate:discriminantValue .
|
|
16
|
+
|
|
17
|
+
shaclmate:NodeShape-extern
|
|
18
|
+
a sh:PropertyShape ;
|
|
19
|
+
sh:datatype xsd:boolean ;
|
|
20
|
+
sh:maxCount 1 ;
|
|
21
|
+
sh:path shaclmate:extern .
|
|
22
|
+
|
|
23
|
+
shaclmate:NodeShape-fromRdfType
|
|
24
|
+
a sh:PropertyShape ;
|
|
25
|
+
sh:maxCount 1 ;
|
|
26
|
+
sh:nodeKind sh:IRI ;
|
|
27
|
+
sh:path shaclmate:fromRdfType .
|
|
28
|
+
|
|
29
|
+
shaclmate:NodeShape-rdfType
|
|
30
|
+
a sh:PropertyShape ;
|
|
31
|
+
sh:maxCount 1 ;
|
|
32
|
+
sh:nodeKind sh:IRI ;
|
|
33
|
+
sh:path shaclmate:rdfType .
|
|
34
|
+
|
|
35
|
+
shaclmate:NodeShape-toRdfTypes
|
|
36
|
+
a sh:PropertyShape ;
|
|
37
|
+
sh:nodeKind sh:IRI ;
|
|
38
|
+
sh:path shaclmate:toRdfType .
|
|
39
|
+
|
|
40
|
+
shaclmate:NodeShape-tsImports
|
|
41
|
+
a sh:PropertyShape ;
|
|
42
|
+
sh:datatype xsd:string ;
|
|
43
|
+
sh:name "tsImports" ;
|
|
44
|
+
sh:path shaclmate:tsImport .
|
|
45
|
+
|
|
46
|
+
shaclmate:PropertyShape
|
|
47
|
+
sh:property shaclmate:PropertyShape-display, shaclmate:PropertyShape-resolve, shaclmate:Shape-ignore, shaclmate:Shape-mutable, shaclmate:Shape-shaclmateName .
|
|
48
|
+
|
|
49
|
+
shaclmate:PropertyShape-display
|
|
50
|
+
a sh:PropertyShape ;
|
|
51
|
+
rdfs:comment "Whether to include this property in a toString()-type display, defaults to false" ;
|
|
52
|
+
sh:datatype xsd:boolean ;
|
|
53
|
+
sh:defaultValue false ;
|
|
54
|
+
sh:maxCount 1 ;
|
|
55
|
+
sh:path shaclmate:display .
|
|
56
|
+
|
|
57
|
+
shaclmate:PropertyShape-resolve
|
|
58
|
+
a sh:PropertyShape ;
|
|
59
|
+
sh:maxCount 1 ;
|
|
60
|
+
sh:name "resolve" ;
|
|
61
|
+
sh:nodeKind sh:BlankNodeOrIRI ;
|
|
62
|
+
sh:path shaclmate:resolve .
|
|
63
|
+
|
|
64
|
+
shaclmate:Shape-ignore
|
|
65
|
+
a sh:PropertyShape ;
|
|
66
|
+
rdfs:comment "Whether to ignore this shape in code generation, defaults to false" ;
|
|
67
|
+
sh:datatype xsd:boolean ;
|
|
68
|
+
sh:defaultValue false ;
|
|
69
|
+
sh:maxCount 1 ;
|
|
70
|
+
sh:path shaclmate:ignore .
|
|
71
|
+
|
|
72
|
+
shaclmate:Shape-mutable
|
|
73
|
+
a sh:PropertyShape ;
|
|
74
|
+
sh:datatype xsd:boolean ;
|
|
75
|
+
sh:maxCount 1 ;
|
|
76
|
+
sh:path shaclmate:mutable .
|
|
77
|
+
|
|
78
|
+
shaclmate:Shape-shaclmateName
|
|
79
|
+
shaclmate:display true ;
|
|
80
|
+
a sh:PropertyShape ;
|
|
81
|
+
sh:datatype xsd:string ;
|
|
82
|
+
sh:maxCount 1 ;
|
|
83
|
+
sh:name "shaclmateName" ;
|
|
84
|
+
sh:path shaclmate:name .
|
|
85
|
+
|