-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProperty.json
More file actions
159 lines (159 loc) · 4.12 KB
/
Copy pathProperty.json
File metadata and controls
159 lines (159 loc) · 4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://product-information-graph.org/schema/2026-07-03/jsonld/Property.json",
"title": "CASCaRA Property Schema for JSON-LD",
"description": "Validates Property class definitions that specify attributes for entities and relationships. May include datatype specifications (string, integer, double, boolean, dateTime, etc.), cardinality constraints (sh:minCount, sh:maxCount, value constraints (sh:minInclusive, sh:maxInclusive, sh:maxLength, sh:pattern), default values, measurement units, and support for composed properties.",
"type": "object",
"properties": {
"@id": {
"$ref": "#/$defs/idString"
},
"@type": {
"type": "string",
"enum": [ "owl:DatatypeProperty" ]
},
"cas:specializes": {
"$ref": "#/$defs/idObject"
},
"cas:itemType": {
"type": "object",
"required": [
"@id"
],
"properties": {
"@id": {
"type": "string",
"enum": [ "cas:Property" ],
"description": "The CASCaRA metamodel item type for cas:Property"
}
},
"additionalProperties": false
},
"cas:revision": {
"type": "string",
"description": "Revision identifier for version control"
},
"cas:priorRevision": {
"type": "array",
"description": "Array of prior revision identifiers",
"maxItems": 2,
"items": {
"type": "string"
}
},
"dcterms:modified": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp of last modification"
},
"dcterms:creator": {
"type": "string",
"description": "Creator/author of this relationship instance"
},
"dcterms:title": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/languageValue"
}
},
"dcterms:description": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/languageValue"
}
},
"skos:definition": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/languageValue"
}
},
"sh:datatype": {
"$ref": "#/$defs/idObject"
},
"sh:minCount": {
"type": "integer",
"minimum": 0
},
"sh:maxCount": {
"type": "integer",
"minimum": 1
},
"sh:maxLength": {
"type": "integer",
"minimum": 1
},
"sh:minInclusive": {
"type": "number"
},
"sh:maxInclusive": {
"type": "number"
},
"sh:pattern": {
"type": "string",
"description": "Regular expression pattern for string validation"
},
"sh:defaultValue": {
"type": "string",
"description": "Default value for this property"
},
"cas:composedProperty": {
"type": "array",
"description": "References to other properties that compose this property",
"items": {
"$ref": "#/$defs/idObject"
}
}
},
"required": [
"@id",
"@type",
"cas:itemType",
"dcterms:title",
"sh:datatype"
],
"additionalProperties": false,
"$defs": {
"idString": {
"type": "string",
"pattern": "^(?:[A-Za-z_][A-Za-z0-9_-]*:[^:\\s]+|https?://[^\\s]+)$",
"description": "A valid ID string: either a namespaced identifier (prefix:name) or a URL"
},
"idObject": {
"type": "object",
"required": [
"@id"
],
"properties": {
"@id": {
"$ref": "#/$defs/idString"
}
},
"additionalProperties": false,
"description": "JSON-LD ID object wrapper"
},
"languageValue": {
"type": "object",
"required": [
"@value"
],
"properties": {
"@value": {
"type": "string",
"minLength": 1,
"description": "The actual text content"
},
"@language": {
"type": "string",
"pattern": "^[a-z]{2}(-[A-Z]{2})?$",
"description": "IETF language tag (e.g., 'en', 'de', 'en-US')"
}
},
"additionalProperties": false,
"description": "Multi-language text value with optional language tag"
}
}
}