PageRenderTime 49ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/core/src/test/resources/json-ld.org/error-manifest.jsonld

https://github.com/jeenbroekstra/jsonld-java
Unknown | 313 lines | 313 code | 0 blank | 0 comment | 0 complexity | 8f5535478461d824b6f0fdfeadc5650b MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {
  2. "@context": "http://json-ld.org/test-suite/context.jsonld",
  3. "@id": "",
  4. "@type": "mf:Manifest",
  5. "description": "JSON-LD to Expansion tests use object compare",
  6. "name": "Error handling",
  7. "baseIri": "http://json-ld.org/test-suite/tests/",
  8. "sequence": [
  9. {
  10. "@id": "#t0001",
  11. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  12. "name": "Keywords cannot be aliased to other keywords",
  13. "purpose": "Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword",
  14. "input": "error-0001-in.jsonld",
  15. "expect": "keyword redefinition"
  16. }, {
  17. "@id": "#t0002",
  18. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  19. "name": "A context may not include itself recursively (direct)",
  20. "purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself",
  21. "input": "error-0002-in.jsonld",
  22. "expect": "recursive context inclusion"
  23. }, {
  24. "@id": "#t0003",
  25. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  26. "name": "A context may not include itself recursively (indirect)",
  27. "purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself indirectly",
  28. "input": "error-0003-in.jsonld",
  29. "expect": "recursive context inclusion"
  30. }, {
  31. "@id": "#t0004",
  32. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  33. "name": "Error dereferencing a remote context",
  34. "purpose": "Verifies that an exception is raised on expansion when a context dereference results in an error",
  35. "input": "error-0004-in.jsonld",
  36. "expect": "loading remote context failed"
  37. }, {
  38. "@id": "#t0005",
  39. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  40. "name": "Invalid remote context",
  41. "purpose": "Verifies that an exception is raised on expansion when a remote context is not an object containing @context",
  42. "input": "error-0005-in.jsonld",
  43. "expect": "invalid remote context"
  44. }, {
  45. "@id": "#t0006",
  46. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  47. "name": "Invalid local context",
  48. "purpose": "Verifies that an exception is raised on expansion when a context is not a string or object",
  49. "input": "error-0006-in.jsonld",
  50. "expect": "invalid local context"
  51. }, {
  52. "@id": "#t0007",
  53. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  54. "name": "Invalid base IRI",
  55. "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @base",
  56. "input": "error-0007-in.jsonld",
  57. "expect": "invalid base IRI"
  58. }, {
  59. "@id": "#t0008",
  60. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  61. "name": "Invalid vocab mapping",
  62. "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping",
  63. "input": "error-0008-in.jsonld",
  64. "expect": "invalid vocab mapping"
  65. }, {
  66. "@id": "#t0009",
  67. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  68. "name": "Invalid default language",
  69. "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @language",
  70. "input": "error-0009-in.jsonld",
  71. "expect": "invalid default language"
  72. }, {
  73. "@id": "#t0010",
  74. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  75. "name": "Cyclic IRI mapping",
  76. "purpose": "Verifies that an exception is raised on expansion when a cyclic IRI mapping is found",
  77. "input": "error-0010-in.jsonld",
  78. "expect": "cyclic IRI mapping"
  79. }, {
  80. "@id": "#t0011",
  81. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  82. "name": "Invalid term definition",
  83. "purpose": "Verifies that an exception is raised on expansion when a invalid term definition is found",
  84. "input": "error-0011-in.jsonld",
  85. "expect": "invalid term definition"
  86. }, {
  87. "@id": "#t0012",
  88. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  89. "name": "Invalid type mapping (not a string)",
  90. "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found",
  91. "input": "error-0012-in.jsonld",
  92. "expect": "invalid type mapping"
  93. }, {
  94. "@id": "#t0013",
  95. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  96. "name": "Invalid type mapping (not absolute IRI)",
  97. "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found",
  98. "input": "error-0013-in.jsonld",
  99. "expect": "invalid type mapping"
  100. }, {
  101. "@id": "#t0014",
  102. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  103. "name": "Invalid reverse property (contains @id)",
  104. "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found",
  105. "input": "error-0014-in.jsonld",
  106. "expect": "invalid reverse property"
  107. }, {
  108. "@id": "#t0015",
  109. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  110. "name": "Invalid IRI mapping (@reverse not a string)",
  111. "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
  112. "input": "error-0015-in.jsonld",
  113. "expect": "invalid IRI mapping"
  114. }, {
  115. "@id": "#t0016",
  116. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  117. "name": "Invalid IRI mapping (not an absolute IRI)",
  118. "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
  119. "input": "error-0016-in.jsonld",
  120. "expect": "invalid IRI mapping"
  121. }, {
  122. "@id": "#t0017",
  123. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  124. "name": "Invalid reverse property (invalid @container)",
  125. "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found",
  126. "input": "error-0017-in.jsonld",
  127. "expect": "invalid reverse property"
  128. }, {
  129. "@id": "#t0018",
  130. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  131. "name": "Invalid IRI mapping (@id not a string)",
  132. "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
  133. "input": "error-0018-in.jsonld",
  134. "expect": "invalid IRI mapping"
  135. }, {
  136. "@id": "#t0019",
  137. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  138. "name": "Invalid keyword alias",
  139. "purpose": "Verifies that an exception is raised on expansion when a invalid keyword alias is found",
  140. "input": "error-0019-in.jsonld",
  141. "expect": "invalid keyword alias"
  142. }, {
  143. "@id": "#t0020",
  144. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  145. "name": "Invalid IRI mapping (no vocab mapping)",
  146. "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
  147. "input": "error-0020-in.jsonld",
  148. "expect": "invalid IRI mapping"
  149. }, {
  150. "@id": "#t0021",
  151. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  152. "name": "Invalid container mapping",
  153. "purpose": "Verifies that an exception is raised on expansion when a invalid container mapping is found",
  154. "input": "error-0021-in.jsonld",
  155. "expect": "invalid container mapping"
  156. }, {
  157. "@id": "#t0022",
  158. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  159. "name": "Invalid language mapping",
  160. "purpose": "Verifies that an exception is raised on expansion when a invalid language mapping is found",
  161. "input": "error-0022-in.jsonld",
  162. "expect": "invalid language mapping"
  163. }, {
  164. "@id": "#t0023",
  165. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  166. "name": "Invalid IRI mapping (relative IRI in @type)",
  167. "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found",
  168. "input": "error-0023-in.jsonld",
  169. "expect": "invalid type mapping"
  170. }, {
  171. "@id": "#t0024",
  172. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  173. "name": "List of lists (from array)",
  174. "purpose": "Verifies that an exception is raised in Expansion when a list of lists is found",
  175. "input": "error-0024-in.jsonld",
  176. "expect": "list of lists"
  177. }, {
  178. "@id": "#t0025",
  179. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  180. "name": "Invalid reverse property map",
  181. "purpose": "Verifies that an exception is raised in Expansion when a invalid reverse property map is found",
  182. "input": "error-0025-in.jsonld",
  183. "expect": "invalid reverse property map"
  184. }, {
  185. "@id": "#t0026",
  186. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  187. "name": "Colliding keywords",
  188. "purpose": "Verifies that an exception is raised in Expansion when colliding keywords are found",
  189. "input": "error-0026-in.jsonld",
  190. "expect": "colliding keywords"
  191. }, {
  192. "@id": "#t0027",
  193. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  194. "name": "Invalid @id value",
  195. "purpose": "Verifies that an exception is raised in Expansion when an invalid @id value is found",
  196. "input": "error-0027-in.jsonld",
  197. "expect": "invalid @id value"
  198. }, {
  199. "@id": "#t0028",
  200. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  201. "name": "Invalid type value",
  202. "purpose": "Verifies that an exception is raised in Expansion when an invalid type value is found",
  203. "input": "error-0028-in.jsonld",
  204. "expect": "invalid type value"
  205. }, {
  206. "@id": "#t0029",
  207. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  208. "name": "Invalid value object value",
  209. "purpose": "Verifies that an exception is raised in Expansion when an invalid value object value is found",
  210. "input": "error-0029-in.jsonld",
  211. "expect": "invalid value object value"
  212. }, {
  213. "@id": "#t0030",
  214. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  215. "name": "Invalid language-tagged string",
  216. "purpose": "Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found",
  217. "input": "error-0030-in.jsonld",
  218. "expect": "invalid language-tagged string"
  219. }, {
  220. "@id": "#t0031",
  221. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  222. "name": "Invalid @index value",
  223. "purpose": "Verifies that an exception is raised in Expansion when an invalid @index value value is found",
  224. "input": "error-0031-in.jsonld",
  225. "expect": "invalid @index value"
  226. }, {
  227. "@id": "#t0032",
  228. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  229. "name": "List of lists (from array)",
  230. "purpose": "Verifies that an exception is raised in Expansion when a list of lists is found",
  231. "input": "error-0032-in.jsonld",
  232. "expect": "list of lists"
  233. }, {
  234. "@id": "#t0033",
  235. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  236. "name": "Invalid @reverse value",
  237. "purpose": "Verifies that an exception is raised in Expansion when an invalid @reverse value is found",
  238. "input": "error-0033-in.jsonld",
  239. "expect": "invalid @reverse value"
  240. }, {
  241. "@id": "#t0034",
  242. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  243. "name": "Invalid reverse property value (in @reverse)",
  244. "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found",
  245. "input": "error-0034-in.jsonld",
  246. "expect": "invalid reverse property value"
  247. }, {
  248. "@id": "#t0035",
  249. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  250. "name": "Invalid language map value",
  251. "purpose": "Verifies that an exception is raised in Expansion when an invalid language map value is found",
  252. "input": "error-0035-in.jsonld",
  253. "expect": "invalid language map value"
  254. }, {
  255. "@id": "#t0036",
  256. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  257. "name": "Invalid reverse property value (through coercion)",
  258. "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found",
  259. "input": "error-0036-in.jsonld",
  260. "expect": "invalid reverse property value"
  261. }, {
  262. "@id": "#t0037",
  263. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  264. "name": "Invalid value object (unexpected keyword)",
  265. "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found",
  266. "input": "error-0037-in.jsonld",
  267. "expect": "invalid value object"
  268. }, {
  269. "@id": "#t0038",
  270. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  271. "name": "Invalid value object (@type and @language)",
  272. "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found",
  273. "input": "error-0038-in.jsonld",
  274. "expect": "invalid value object"
  275. }, {
  276. "@id": "#t0039",
  277. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  278. "name": "Invalid language-tagged value",
  279. "purpose": "Verifies that an exception is raised in Expansion when an invalid language-tagged value is found",
  280. "input": "error-0039-in.jsonld",
  281. "expect": "invalid language-tagged value"
  282. }, {
  283. "@id": "#t0040",
  284. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  285. "name": "Invalid typed value",
  286. "purpose": "Verifies that an exception is raised in Expansion when an invalid typed value is found",
  287. "input": "error-0040-in.jsonld",
  288. "expect": "invalid typed value"
  289. }, {
  290. "@id": "#t0041",
  291. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  292. "name": "Invalid set or list object",
  293. "purpose": "Verifies that an exception is raised in Expansion when an invalid set or list object is found",
  294. "input": "error-0041-in.jsonld",
  295. "expect": "invalid set or list object"
  296. }, {
  297. "@id": "#t0042",
  298. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  299. "name": "Compaction to list of lists",
  300. "purpose": "Verifies that an exception is raised in Compaction when attempting to compact a list of lists",
  301. "input": "error-0042-in.jsonld",
  302. "context": "error-0042-context.jsonld",
  303. "expect": "compaction to list of lists"
  304. }, {
  305. "@id": "#t0043",
  306. "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
  307. "name": "Conflicting indexes",
  308. "purpose": "Verifies that an exception is raised in Flattening when conflicting indexes are found",
  309. "input": "error-0043-in.jsonld",
  310. "expect": "conflicting indexes"
  311. }
  312. ]
  313. }