Debian Codegraph @

src/prov/tests/schemas/prov-json.schema.json

raw
1 {
2 "id": "http://provenance.ecs.soton.ac.uk/prov-json/schema#",
3 "$schema": "http://json-schema.org/draft-04/schema#",
4 "description": "Schema for a PROV-JSON document",
5 "type": "object",
6 "additionalProperties": false,
7 "properties": {
8 "prefix": {
9 "type": "object",
10 "patternProperties": {
11 "^[a-zA-Z0-9_\\-]+$": {
12 "type": "string",
13 "format": "uri"
14 }
15 }
16 },
17 "entity": {
18 "type": "object",
19 "additionalProperties": {
20 "$ref": "#/definitions/entity"
21 }
22 },
23 "activity": {
24 "type": "object",
25 "additionalProperties": {
26 "$ref": "#/definitions/activity"
27 }
28 },
29 "agent": {
30 "type": "object",
31 "additionalProperties": {
32 "$ref": "#/definitions/agent"
33 }
34 },
35 "wasGeneratedBy": {
36 "type": "object",
37 "additionalProperties": {
38 "$ref": "#/definitions/generation"
39 }
40 },
41 "used": {
42 "type": "object",
43 "additionalProperties": {
44 "$ref": "#/definitions/usage"
45 }
46 },
47 "wasInformedBy": {
48 "type": "object",
49 "additionalProperties": {
50 "$ref": "#/definitions/communication"
51 }
52 },
53 "wasStartedBy": {
54 "type": "object",
55 "additionalProperties": {
56 "$ref": "#/definitions/start"
57 }
58 },
59 "wasEndedby": {
60 "type": "object",
61 "additionalProperties": {
62 "$ref": "#/definitions/end"
63 }
64 },
65 "wasInvalidatedBy": {
66 "type": "object",
67 "additionalProperties": {
68 "$ref": "#/definitions/invalidation"
69 }
70 },
71 "wasDerivedFrom": {
72 "type": "object",
73 "additionalProperties": {
74 "$ref": "#/definitions/derivation"
75 }
76 },
77 "wasAttributedTo": {
78 "type": "object",
79 "additionalProperties": {
80 "$ref": "#/definitions/attribution"
81 }
82 },
83 "wasAssociatedWith": {
84 "type": "object",
85 "additionalProperties": {
86 "$ref": "#/definitions/association"
87 }
88 },
89 "actedOnBehalfOf": {
90 "type": "object",
91 "additionalProperties": {
92 "$ref": "#/definitions/delegation"
93 }
94 },
95 "wasInfluencedBy": {
96 "type": "object",
97 "additionalProperties": {
98 "$ref": "#/definitions/influence"
99 }
100 },
101 "specializationOf": {
102 "type": "object",
103 "additionalProperties": {
104 "$ref": "#/definitions/specialization"
105 }
106 },
107 "alternateOf": {
108 "type": "object",
109 "additionalProperties": {
110 "$ref": "#/definitions/alternate"
111 }
112 },
113 "hadMember": {
114 "type": "object",
115 "additionalProperties": {
116 "$ref": "#/definitions/membership"
117 }
118 },
119 "bundle": {
120 "type": "object",
121 "additionalProperties": {
122 "$ref": "#/definitions/bundle"
123 }
124 }
125 },
126 "definitions": {
127 "typedLiteral": {
128 "title": "PROV-JSON Typed Literal",
129 "type": "object",
130 "properties": {
131 "$": {
132 "type": "string"
133 },
134 "type": {
135 "type": "string",
136 "format": "uri"
137 },
138 "lang": {
139 "type": "string"
140 }
141 },
142 "required": [
143 "$"
144 ],
145 "additionalProperties": false
146 },
147 "stringLiteral": {
148 "type": "string"
149 },
150 "numberLiteral": {
151 "type": "number"
152 },
153 "booleanLiteral": {
154 "type": "boolean"
155 },
156 "literalArray": {
157 "type": "array",
158 "minItems": 1,
159 "items": {
160 "anyOf": [
161 {
162 "$ref": "#/definitions/stringLiteral"
163 },
164 {
165 "$ref": "#/definitions/numberLiteral"
166 },
167 {
168 "$ref": "#/definitions/booleanLiteral"
169 },
170 {
171 "$ref": "#/definitions/typedLiteral"
172 }
173 ]
174 }
175 },
176 "attributeValues": {
177 "anyOf": [
178 {
179 "$ref": "#/definitions/stringLiteral"
180 },
181 {
182 "$ref": "#/definitions/numberLiteral"
183 },
184 {
185 "$ref": "#/definitions/booleanLiteral"
186 },
187 {
188 "$ref": "#/definitions/typedLiteral"
189 },
190 {
191 "$ref": "#/definitions/literalArray"
192 }
193 ]
194 },
195 "entity": {
196 "type": "object",
197 "title": "entity",
198 "additionalProperties": {
199 "$ref": "#/definitions/attributeValues"
200 }
201 },
202 "agent": {
203 "$ref": "#/definitions/entity"
204 },
205 "activity": {
206 "type": "object",
207 "title": "activity",
208 "prov:startTime": {
209 "type": "string",
210 "format": "date-time"
211 },
212 "prov:endTime": {
213 "type": "string",
214 "format": "date-time"
215 },
216 "additionalProperties": {
217 "$ref": "#/definitions/attributeValues"
218 }
219 },
220 "generation": {
221 "type": "object",
222 "title": "generation/usage",
223 "properties": {
224 "prov:entity": {
225 "type": "string",
226 "format": "uri"
227 },
228 "prov:activity": {
229 "type": "string",
230 "format": "uri"
231 },
232 "prov:time": {
233 "type": "string",
234 "format": "date-time"
235 }
236 },
237 "required": [
238 "prov:entity"
239 ],
240 "additionalProperties": {
241 "$ref": "#/definitions/attributeValues"
242 }
243 },
244 "usage": {
245 "$ref": "#/definitions/generation"
246 },
247 "communication": {
248 "type": "object",
249 "title": "communication",
250 "properties": {
251 "prov:informant": {
252 "type": "string",
253 "format": "uri"
254 },
255 "prov:informed": {
256 "type": "string",
257 "format": "uri"
258 }
259 },
260 "required": [
261 "prov:informant",
262 "prov:informed"
263 ],
264 "additionalProperties": {
265 "$ref": "#/definitions/attributeValues"
266 }
267 },
268 "start": {
269 "type": "object",
270 "title": "start/end",
271 "properties": {
272 "prov:activity": {
273 "type": "string",
274 "format": "uri"
275 },
276 "prov:time": {
277 "type": "string",
278 "format": "date-time"
279 },
280 "prov:trigger": {
281 "type": "string",
282 "format": "uri"
283 }
284 },
285 "required": [
286 "prov:activity"
287 ],
288 "additionalProperties": {
289 "$ref": "#/definitions/attributeValues"
290 }
291 },
292 "end": {
293 "$ref": "#/definitions/start"
294 },
295 "invalidation": {
296 "type": "object",
297 "title": "invalidation",
298 "properties": {
299 "prov:entity": {
300 "type": "string",
301 "format": "uri"
302 },
303 "prov:time": {
304 "type": "string",
305 "format": "date-time"
306 },
307 "prov:activity": {
308 "type": "string",
309 "format": "uri"
310 }
311 },
312 "required": [
313 "prov:entity"
314 ],
315 "additionalProperties": {
316 "$ref": "#/definitions/attributeValues"
317 }
318 },
319 "derivation": {
320 "type": "object",
321 "title": "derivation",
322 "properties": {
323 "prov:generatedEntity": {
324 "type": "string",
325 "format": "uri"
326 },
327 "prov:usedEntity": {
328 "type": "string",
329 "format": "uri"
330 },
331 "prov:activity": {
332 "type": "string",
333 "format": "uri"
334 },
335 "prov:generation": {
336 "type": "string",
337 "format": "uri"
338 },
339 "prov:usage": {
340 "type": "string",
341 "format": "uri"
342 }
343 },
344 "required": [
345 "prov:generatedEntity",
346 "prov:usedEntity"
347 ],
348 "additionalProperties": {
349 "$ref": "#/definitions/attributeValues"
350 }
351 },
352 "attribution": {
353 "type": "object",
354 "title": "attribution",
355 "properties": {
356 "prov:entity": {
357 "type": "string",
358 "format": "uri"
359 },
360 "prov:agent": {
361 "type": "string",
362 "format": "uri"
363 }
364 },
365 "required": [
366 "prov:entity",
367 "prov:agent"
368 ],
369 "additionalProperties": {
370 "$ref": "#/definitions/attributeValues"
371 }
372 },
373 "association": {
374 "type": "object",
375 "title": "association",
376 "properties": {
377 "prov:activity": {
378 "type": "string",
379 "format": "uri"
380 },
381 "prov:agent": {
382 "type": "string",
383 "format": "uri"
384 },
385 "prov:plan": {
386 "type": "string",
387 "format": "uri"
388 }
389 },
390 "required": [
391 "prov:activity"
392 ],
393 "additionalProperties": {
394 "$ref": "#/definitions/attributeValues"
395 }
396 },
397 "delegation": {
398 "type": "object",
399 "title": "delegation",
400 "properties": {
401 "prov:delegate": {
402 "type": "string",
403 "format": "uri"
404 },
405 "prov:responsible": {
406 "type": "string",
407 "format": "uri"
408 },
409 "prov:activity": {
410 "type": "string",
411 "format": "uri"
412 }
413 },
414 "required": [
415 "prov:delegate",
416 "prov:responsible"
417 ],
418 "additionalProperties": {
419 "$ref": "#/definitions/attributeValues"
420 }
421 },
422 "influence": {
423 "type": "object",
424 "title": "",
425 "properties": {
426 "prov:influencer": {
427 "type": "string",
428 "format": "uri"
429 },
430 "prov:influencee": {
431 "type": "string",
432 "format": "uri"
433 }
434 },
435 "required": [
436 "prov:influencer",
437 "prov:influencee"
438 ],
439 "additionalProperties": {
440 "$ref": "#/definitions/attributeValues"
441 }
442 },
443 "specialization": {
444 "type": "object",
445 "title": "specialization",
446 "properties": {
447 "prov:generalEntity": {
448 "type": "string",
449 "format": "uri"
450 },
451 "prov:specificEntity": {
452 "type": "string",
453 "format": "uri"
454 }
455 },
456 "required": [
457 "prov:generalEntity",
458 "prov:specificEntity"
459 ],
460 "additionalProperties": {
461 "$ref": "#/definitions/attributeValues"
462 }
463 },
464 "alternate": {
465 "type": "object",
466 "title": "alternate",
467 "properties": {
468 "prov:alternate1": {
469 "type": "string",
470 "format": "uri"
471 },
472 "prov:alternate2": {
473 "type": "string",
474 "format": "uri"
475 }
476 },
477 "required": [
478 "prov:alternate1",
479 "prov:alternate2"
480 ],
481 "additionalProperties": {
482 "$ref": "#/definitions/attributeValues"
483 }
484 },
485 "membership": {
486 "type": "object",
487 "title": "membership",
488 "properties": {
489 "prov:collection": {
490 "type": "string",
491 "format": "uri"
492 },
493 "prov:entity": {
494 "type": "string",
495 "format": "uri"
496 }
497 },
498 "required": [
499 "prov:collection",
500 "prov:entity"
501 ],
502 "additionalProperties": {
503 "$ref": "#/definitions/attributeValues"
504 }
505 },
506 "bundle": {
507 "type": "object",
508 "title": "bundle",
509 "properties": {
510 "prefix": {
511 "type": "object",
512 "patternProperties": {
513 "^[a-zA-Z0-9_\\-]+$": {
514 "type": "string",
515 "format": "uri"
516 }
517 }
518 },
519 "entity": {
520 "type": "object",
521 "additionalProperties": {
522 "$ref": "#/definitions/entity"
523 }
524 },
525 "activity": {
526 "type": "object",
527 "additionalProperties": {
528 "$ref": "#/definitions/activity"
529 }
530 },
531 "agent": {
532 "type": "object",
533 "additionalProperties": {
534 "$ref": "#/definitions/agent"
535 }
536 },
537 "wasGeneratedBy": {
538 "type": "object",
539 "additionalProperties": {
540 "$ref": "#/definitions/generation"
541 }
542 },
543 "used": {
544 "type": "object",
545 "additionalProperties": {
546 "$ref": "#/definitions/usage"
547 }
548 },
549 "wasInformedBy": {
550 "type": "object",
551 "additionalProperties": {
552 "$ref": "#/definitions/communication"
553 }
554 },
555 "wasStartedBy": {
556 "type": "object",
557 "additionalProperties": {
558 "$ref": "#/definitions/start"
559 }
560 },
561 "wasEndedby": {
562 "type": "object",
563 "additionalProperties": {
564 "$ref": "#/definitions/end"
565 }
566 },
567 "wasInvalidatedBy": {
568 "type": "object",
569 "additionalProperties": {
570 "$ref": "#/definitions/invalidation"
571 }
572 },
573 "wasDerivedFrom": {
574 "type": "object",
575 "additionalProperties": {
576 "$ref": "#/definitions/derivation"
577 }
578 },
579 "wasAttributedTo": {
580 "type": "object",
581 "additionalProperties": {
582 "$ref": "#/definitions/attribution"
583 }
584 },
585 "wasAssociatedWith": {
586 "type": "object",
587 "additionalProperties": {
588 "$ref": "#/definitions/association"
589 }
590 },
591 "actedOnBehalfOf": {
592 "type": "object",
593 "additionalProperties": {
594 "$ref": "#/definitions/delegation"
595 }
596 },
597 "wasInfluencedBy": {
598 "type": "object",
599 "additionalProperties": {
600 "$ref": "#/definitions/influence"
601 }
602 },
603 "specializationOf": {
604 "type": "object",
605 "additionalProperties": {
606 "$ref": "#/definitions/specialization"
607 }
608 },
609 "alternateOf": {
610 "type": "object",
611 "additionalProperties": {
612 "$ref": "#/definitions/alternate"
613 }
614 },
615 "hadMember": {
616 "type": "object",
617 "additionalProperties": {
618 "$ref": "#/definitions/membership"
619 }
620 }
621 }
622 }
623 }
624 }