apply_to_grounding.schema.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "fragments-boundary": {
  7. "type": "array",
  8. "items": {
  9. "type": "object",
  10. "additionalProperties": false,
  11. "properties": {
  12. "fragment_id-ref": {
  13. "type": "string"
  14. },
  15. "apply_to": {
  16. "type": "object",
  17. "additionalProperties": false,
  18. "properties": {
  19. "实质": {
  20. "type": "array",
  21. "minItems": 1,
  22. "maxItems": 3,
  23. "items": {
  24. "type": "object",
  25. "additionalProperties": false,
  26. "properties": {
  27. "category_id-ref": {
  28. "type": "integer"
  29. },
  30. "category_path-ref": {
  31. "type": "string"
  32. },
  33. "element-ref": {
  34. "type": [
  35. "string",
  36. "null"
  37. ]
  38. },
  39. "rationale": {
  40. "type": "string"
  41. }
  42. },
  43. "required": [
  44. "category_id-ref",
  45. "category_path-ref",
  46. "rationale"
  47. ]
  48. }
  49. },
  50. "形式": {
  51. "type": "array",
  52. "minItems": 1,
  53. "maxItems": 3,
  54. "items": {
  55. "type": "object",
  56. "additionalProperties": false,
  57. "properties": {
  58. "category_id-ref": {
  59. "type": "integer"
  60. },
  61. "category_path-ref": {
  62. "type": "string"
  63. },
  64. "element-ref": {
  65. "type": [
  66. "string",
  67. "null"
  68. ]
  69. },
  70. "rationale": {
  71. "type": "string"
  72. }
  73. },
  74. "required": [
  75. "category_id-ref",
  76. "category_path-ref",
  77. "rationale"
  78. ]
  79. }
  80. }
  81. },
  82. "required": [
  83. "实质",
  84. "形式"
  85. ]
  86. },
  87. "ideal_path-ref": {
  88. "type": "string"
  89. }
  90. },
  91. "required": [
  92. "fragment_id-ref",
  93. "apply_to",
  94. "ideal_path-ref"
  95. ]
  96. }
  97. }
  98. },
  99. "required": [
  100. "fragments-boundary"
  101. ]
  102. }