| 1 |
## RDF Dataset Normalization tests |
| 2 |
## Distributed under both the W3C Test Suite License[1] and the W3C 3- |
| 3 |
## clause BSD License[2]. To contribute to a W3C Test Suite, see the |
| 4 |
## policies and contribution forms [3] |
| 5 |
## |
| 6 |
## 1. http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
| 7 |
## 2. http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
| 8 |
## 3. http://www.w3.org/2004/10/27-testcases |
| 9 |
## |
| 10 |
## Test types |
| 11 |
## * rdfn:Urgna2012EvalTest - Normalization using URGNA2012 |
| 12 |
## * rdfn:Urdna2015EvalTest - Normalization using URDNA2015 |
| 13 |
|
| 14 |
@prefix : <manifest-urgna2012#> . |
| 15 |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 16 |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 17 |
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . |
| 18 |
@prefix rdft: <http://www.w3.org/ns/rdftest#> . |
| 19 |
@prefix rdfn: <http://json-ld.github.io/normalization/test-vocab#> . |
| 20 |
|
| 21 |
<manifest-urgna2012> a mf:Manifest ; |
| 22 |
|
| 23 |
rdfs:label "RDF Graph Normalization (URGNA2012)"; |
| 24 |
rdfs:comment "Tests the 2012 version of RDF Graph Normalization."; |
| 25 |
mf:entries ( |
| 26 |
:test001 :test002 :test003 :test004 :test005 :test006 :test007 :test008 :test009 :test010 |
| 27 |
:test011 :test012 :test013 :test014 :test015 :test016 :test017 :test018 :test019 :test020 |
| 28 |
:test021 :test022 :test023 :test024 :test025 :test026 :test027 :test028 :test029 :test030 |
| 29 |
:test031 :test032 :test033 :test034 :test035 :test036 :test037 :test038 :test039 :test040 |
| 30 |
:test041 :test042 :test043 :test044 :test045 :test046 :test047 :test048 :test049 :test050 |
| 31 |
:test051 :test052 :test053 :test054 :test055 :test056 :test060 :test061 :test062 |
| 32 |
) . |
| 33 |
|
| 34 |
:test001 a rdfn:Urgna2012EvalTest; |
| 35 |
mf:name "simple id"; |
| 36 |
rdft:approval rdft:Proposed; |
| 37 |
mf:action <test001-in.nq>; |
| 38 |
mf:result <test001-urgna2012.nq>; |
| 39 |
. |
| 40 |
|
| 41 |
:test002 a rdfn:Urgna2012EvalTest; |
| 42 |
mf:name "duplicate property iri values"; |
| 43 |
rdft:approval rdft:Proposed; |
| 44 |
mf:action <test002-in.nq>; |
| 45 |
mf:result <test002-urgna2012.nq>; |
| 46 |
. |
| 47 |
|
| 48 |
:test003 a rdfn:Urgna2012EvalTest; |
| 49 |
mf:name "bnode"; |
| 50 |
rdft:approval rdft:Proposed; |
| 51 |
mf:action <test003-in.nq>; |
| 52 |
mf:result <test003-urgna2012.nq>; |
| 53 |
. |
| 54 |
|
| 55 |
:test004 a rdfn:Urgna2012EvalTest; |
| 56 |
mf:name "bnode plus embed w/subject"; |
| 57 |
rdft:approval rdft:Proposed; |
| 58 |
mf:action <test004-in.nq>; |
| 59 |
mf:result <test004-urgna2012.nq>; |
| 60 |
. |
| 61 |
|
| 62 |
:test005 a rdfn:Urgna2012EvalTest; |
| 63 |
mf:name "bnode embed"; |
| 64 |
rdft:approval rdft:Proposed; |
| 65 |
mf:action <test005-in.nq>; |
| 66 |
mf:result <test005-urgna2012.nq>; |
| 67 |
. |
| 68 |
|
| 69 |
:test006 a rdfn:Urgna2012EvalTest; |
| 70 |
mf:name "multiple rdf types"; |
| 71 |
rdft:approval rdft:Proposed; |
| 72 |
mf:action <test006-in.nq>; |
| 73 |
mf:result <test006-urgna2012.nq>; |
| 74 |
. |
| 75 |
|
| 76 |
:test007 a rdfn:Urgna2012EvalTest; |
| 77 |
mf:name "coerce CURIE value"; |
| 78 |
rdft:approval rdft:Proposed; |
| 79 |
mf:action <test007-in.nq>; |
| 80 |
mf:result <test007-urgna2012.nq>; |
| 81 |
. |
| 82 |
|
| 83 |
:test008 a rdfn:Urgna2012EvalTest; |
| 84 |
mf:name "single subject complex"; |
| 85 |
rdft:approval rdft:Proposed; |
| 86 |
mf:action <test008-in.nq>; |
| 87 |
mf:result <test008-urgna2012.nq>; |
| 88 |
. |
| 89 |
|
| 90 |
:test009 a rdfn:Urgna2012EvalTest; |
| 91 |
mf:name "multiple subjects - complex"; |
| 92 |
rdft:approval rdft:Proposed; |
| 93 |
mf:action <test009-in.nq>; |
| 94 |
mf:result <test009-urgna2012.nq>; |
| 95 |
. |
| 96 |
|
| 97 |
:test010 a rdfn:Urgna2012EvalTest; |
| 98 |
mf:name "type"; |
| 99 |
rdft:approval rdft:Proposed; |
| 100 |
mf:action <test010-in.nq>; |
| 101 |
mf:result <test010-urgna2012.nq>; |
| 102 |
. |
| 103 |
|
| 104 |
:test011 a rdfn:Urgna2012EvalTest; |
| 105 |
mf:name "type-coerced type"; |
| 106 |
rdft:approval rdft:Proposed; |
| 107 |
mf:action <test011-in.nq>; |
| 108 |
mf:result <test011-urgna2012.nq>; |
| 109 |
. |
| 110 |
|
| 111 |
:test012 a rdfn:Urgna2012EvalTest; |
| 112 |
mf:name "type-coerced type, remove duplicate reference"; |
| 113 |
rdft:approval rdft:Proposed; |
| 114 |
mf:action <test012-in.nq>; |
| 115 |
mf:result <test012-urgna2012.nq>; |
| 116 |
. |
| 117 |
|
| 118 |
:test013 a rdfn:Urgna2012EvalTest; |
| 119 |
mf:name "type-coerced type, cycle"; |
| 120 |
rdft:approval rdft:Proposed; |
| 121 |
mf:action <test013-in.nq>; |
| 122 |
mf:result <test013-urgna2012.nq>; |
| 123 |
. |
| 124 |
|
| 125 |
:test014 a rdfn:Urgna2012EvalTest; |
| 126 |
mf:name "check types"; |
| 127 |
rdft:approval rdft:Proposed; |
| 128 |
mf:action <test014-in.nq>; |
| 129 |
mf:result <test014-urgna2012.nq>; |
| 130 |
. |
| 131 |
|
| 132 |
:test015 a rdfn:Urgna2012EvalTest; |
| 133 |
mf:name "top level context"; |
| 134 |
rdft:approval rdft:Proposed; |
| 135 |
mf:action <test015-in.nq>; |
| 136 |
mf:result <test015-urgna2012.nq>; |
| 137 |
. |
| 138 |
|
| 139 |
:test016 a rdfn:Urgna2012EvalTest; |
| 140 |
mf:name "blank node - dual link - embed"; |
| 141 |
rdft:approval rdft:Proposed; |
| 142 |
mf:action <test016-in.nq>; |
| 143 |
mf:result <test016-urgna2012.nq>; |
| 144 |
. |
| 145 |
|
| 146 |
:test017 a rdfn:Urgna2012EvalTest; |
| 147 |
mf:name "blank node - dual link - non-embed"; |
| 148 |
rdft:approval rdft:Proposed; |
| 149 |
mf:action <test017-in.nq>; |
| 150 |
mf:result <test017-urgna2012.nq>; |
| 151 |
. |
| 152 |
|
| 153 |
:test018 a rdfn:Urgna2012EvalTest; |
| 154 |
mf:name "blank node - self link"; |
| 155 |
rdft:approval rdft:Proposed; |
| 156 |
mf:action <test018-in.nq>; |
| 157 |
mf:result <test018-urgna2012.nq>; |
| 158 |
. |
| 159 |
|
| 160 |
:test019 a rdfn:Urgna2012EvalTest; |
| 161 |
mf:name "blank node - disjoint self links"; |
| 162 |
rdft:approval rdft:Proposed; |
| 163 |
mf:action <test019-in.nq>; |
| 164 |
mf:result <test019-urgna2012.nq>; |
| 165 |
. |
| 166 |
|
| 167 |
:test020 a rdfn:Urgna2012EvalTest; |
| 168 |
mf:name "blank node - diamond"; |
| 169 |
rdft:approval rdft:Proposed; |
| 170 |
mf:action <test020-in.nq>; |
| 171 |
mf:result <test020-urgna2012.nq>; |
| 172 |
. |
| 173 |
|
| 174 |
:test021 a rdfn:Urgna2012EvalTest; |
| 175 |
mf:name "blank node - circle of 2"; |
| 176 |
rdft:approval rdft:Proposed; |
| 177 |
mf:action <test021-in.nq>; |
| 178 |
mf:result <test021-urgna2012.nq>; |
| 179 |
. |
| 180 |
|
| 181 |
:test022 a rdfn:Urgna2012EvalTest; |
| 182 |
mf:name "blank node - double circle of 2"; |
| 183 |
rdft:approval rdft:Proposed; |
| 184 |
mf:action <test022-in.nq>; |
| 185 |
mf:result <test022-urgna2012.nq>; |
| 186 |
. |
| 187 |
|
| 188 |
:test023 a rdfn:Urgna2012EvalTest; |
| 189 |
mf:name "blank node - circle of 3"; |
| 190 |
rdft:approval rdft:Proposed; |
| 191 |
mf:action <test023-in.nq>; |
| 192 |
mf:result <test023-urgna2012.nq>; |
| 193 |
. |
| 194 |
|
| 195 |
:test024 a rdfn:Urgna2012EvalTest; |
| 196 |
mf:name "blank node - double circle of 3 (1-2-3)"; |
| 197 |
rdft:approval rdft:Proposed; |
| 198 |
mf:action <test024-in.nq>; |
| 199 |
mf:result <test024-urgna2012.nq>; |
| 200 |
. |
| 201 |
|
| 202 |
:test025 a rdfn:Urgna2012EvalTest; |
| 203 |
mf:name "blank node - double circle of 3 (1-3-2)"; |
| 204 |
rdft:approval rdft:Proposed; |
| 205 |
mf:action <test025-in.nq>; |
| 206 |
mf:result <test025-urgna2012.nq>; |
| 207 |
. |
| 208 |
|
| 209 |
:test026 a rdfn:Urgna2012EvalTest; |
| 210 |
mf:name "blank node - double circle of 3 (2-1-3)"; |
| 211 |
rdft:approval rdft:Proposed; |
| 212 |
mf:action <test026-in.nq>; |
| 213 |
mf:result <test026-urgna2012.nq>; |
| 214 |
. |
| 215 |
|
| 216 |
:test027 a rdfn:Urgna2012EvalTest; |
| 217 |
mf:name "blank node - double circle of 3 (2-3-1)"; |
| 218 |
rdft:approval rdft:Proposed; |
| 219 |
mf:action <test027-in.nq>; |
| 220 |
mf:result <test027-urgna2012.nq>; |
| 221 |
. |
| 222 |
|
| 223 |
:test028 a rdfn:Urgna2012EvalTest; |
| 224 |
mf:name "blank node - double circle of 3 (3-2-1)"; |
| 225 |
rdft:approval rdft:Proposed; |
| 226 |
mf:action <test028-in.nq>; |
| 227 |
mf:result <test028-urgna2012.nq>; |
| 228 |
. |
| 229 |
|
| 230 |
:test029 a rdfn:Urgna2012EvalTest; |
| 231 |
mf:name "blank node - double circle of 3 (3-1-2)"; |
| 232 |
rdft:approval rdft:Proposed; |
| 233 |
mf:action <test029-in.nq>; |
| 234 |
mf:result <test029-urgna2012.nq>; |
| 235 |
. |
| 236 |
|
| 237 |
:test030 a rdfn:Urgna2012EvalTest; |
| 238 |
mf:name "blank node - point at circle of 3"; |
| 239 |
rdft:approval rdft:Proposed; |
| 240 |
mf:action <test030-in.nq>; |
| 241 |
mf:result <test030-urgna2012.nq>; |
| 242 |
. |
| 243 |
|
| 244 |
:test031 a rdfn:Urgna2012EvalTest; |
| 245 |
mf:name "bnode (1)"; |
| 246 |
rdft:approval rdft:Proposed; |
| 247 |
mf:action <test031-in.nq>; |
| 248 |
mf:result <test031-urgna2012.nq>; |
| 249 |
. |
| 250 |
|
| 251 |
:test032 a rdfn:Urgna2012EvalTest; |
| 252 |
mf:name "bnode (2)"; |
| 253 |
rdft:approval rdft:Proposed; |
| 254 |
mf:action <test032-in.nq>; |
| 255 |
mf:result <test032-urgna2012.nq>; |
| 256 |
. |
| 257 |
|
| 258 |
:test033 a rdfn:Urgna2012EvalTest; |
| 259 |
mf:name "disjoint identical subgraphs (1)"; |
| 260 |
rdft:approval rdft:Proposed; |
| 261 |
mf:action <test033-in.nq>; |
| 262 |
mf:result <test033-urgna2012.nq>; |
| 263 |
. |
| 264 |
|
| 265 |
:test034 a rdfn:Urgna2012EvalTest; |
| 266 |
mf:name "disjoint identical subgraphs (2)"; |
| 267 |
rdft:approval rdft:Proposed; |
| 268 |
mf:action <test034-in.nq>; |
| 269 |
mf:result <test034-urgna2012.nq>; |
| 270 |
. |
| 271 |
|
| 272 |
:test035 a rdfn:Urgna2012EvalTest; |
| 273 |
mf:name "reordered w/strings (1)"; |
| 274 |
rdft:approval rdft:Proposed; |
| 275 |
mf:action <test035-in.nq>; |
| 276 |
mf:result <test035-urgna2012.nq>; |
| 277 |
. |
| 278 |
|
| 279 |
:test036 a rdfn:Urgna2012EvalTest; |
| 280 |
mf:name "reordered w/strings (2)"; |
| 281 |
rdft:approval rdft:Proposed; |
| 282 |
mf:action <test036-in.nq>; |
| 283 |
mf:result <test036-urgna2012.nq>; |
| 284 |
. |
| 285 |
|
| 286 |
:test037 a rdfn:Urgna2012EvalTest; |
| 287 |
mf:name "reordered w/strings (3)"; |
| 288 |
rdft:approval rdft:Proposed; |
| 289 |
mf:action <test037-in.nq>; |
| 290 |
mf:result <test037-urgna2012.nq>; |
| 291 |
. |
| 292 |
|
| 293 |
:test038 a rdfn:Urgna2012EvalTest; |
| 294 |
mf:name "reordered 4 bnodes, reordered 2 properties (1)"; |
| 295 |
rdft:approval rdft:Proposed; |
| 296 |
mf:action <test038-in.nq>; |
| 297 |
mf:result <test038-urgna2012.nq>; |
| 298 |
. |
| 299 |
|
| 300 |
:test039 a rdfn:Urgna2012EvalTest; |
| 301 |
mf:name "reordered 4 bnodes, reordered 2 properties (2)"; |
| 302 |
rdft:approval rdft:Proposed; |
| 303 |
mf:action <test039-in.nq>; |
| 304 |
mf:result <test039-urgna2012.nq>; |
| 305 |
. |
| 306 |
|
| 307 |
:test040 a rdfn:Urgna2012EvalTest; |
| 308 |
mf:name "reordered 6 bnodes (1)"; |
| 309 |
rdft:approval rdft:Proposed; |
| 310 |
mf:action <test040-in.nq>; |
| 311 |
mf:result <test040-urgna2012.nq>; |
| 312 |
. |
| 313 |
|
| 314 |
:test041 a rdfn:Urgna2012EvalTest; |
| 315 |
mf:name "reordered 6 bnodes (2)"; |
| 316 |
rdft:approval rdft:Proposed; |
| 317 |
mf:action <test041-in.nq>; |
| 318 |
mf:result <test041-urgna2012.nq>; |
| 319 |
. |
| 320 |
|
| 321 |
:test042 a rdfn:Urgna2012EvalTest; |
| 322 |
mf:name "reordered 6 bnodes (3)"; |
| 323 |
rdft:approval rdft:Proposed; |
| 324 |
mf:action <test042-in.nq>; |
| 325 |
mf:result <test042-urgna2012.nq>; |
| 326 |
. |
| 327 |
|
| 328 |
:test043 a rdfn:Urgna2012EvalTest; |
| 329 |
mf:name "literal with language"; |
| 330 |
rdft:approval rdft:Proposed; |
| 331 |
mf:action <test043-in.nq>; |
| 332 |
mf:result <test043-urgna2012.nq>; |
| 333 |
. |
| 334 |
|
| 335 |
:test044 a rdfn:Urgna2012EvalTest; |
| 336 |
mf:name "evil (1)"; |
| 337 |
rdft:approval rdft:Proposed; |
| 338 |
mf:action <test044-in.nq>; |
| 339 |
mf:result <test044-urgna2012.nq>; |
| 340 |
. |
| 341 |
|
| 342 |
:test045 a rdfn:Urgna2012EvalTest; |
| 343 |
mf:name "evil (2)"; |
| 344 |
rdft:approval rdft:Proposed; |
| 345 |
mf:action <test045-in.nq>; |
| 346 |
mf:result <test045-urgna2012.nq>; |
| 347 |
. |
| 348 |
|
| 349 |
:test046 a rdfn:Urgna2012EvalTest; |
| 350 |
mf:name "evil (3)"; |
| 351 |
rdft:approval rdft:Proposed; |
| 352 |
mf:action <test046-in.nq>; |
| 353 |
mf:result <test046-urgna2012.nq>; |
| 354 |
. |
| 355 |
|
| 356 |
:test047 a rdfn:Urgna2012EvalTest; |
| 357 |
mf:name "deep diff (1)"; |
| 358 |
rdft:approval rdft:Proposed; |
| 359 |
mf:action <test047-in.nq>; |
| 360 |
mf:result <test047-urgna2012.nq>; |
| 361 |
. |
| 362 |
|
| 363 |
:test048 a rdfn:Urgna2012EvalTest; |
| 364 |
mf:name "deep diff (2)"; |
| 365 |
rdft:approval rdft:Proposed; |
| 366 |
mf:action <test048-in.nq>; |
| 367 |
mf:result <test048-urgna2012.nq>; |
| 368 |
. |
| 369 |
|
| 370 |
:test049 a rdfn:Urgna2012EvalTest; |
| 371 |
mf:name "remove null"; |
| 372 |
rdft:approval rdft:Proposed; |
| 373 |
mf:action <test049-in.nq>; |
| 374 |
mf:result <test049-urgna2012.nq>; |
| 375 |
. |
| 376 |
|
| 377 |
:test050 a rdfn:Urgna2012EvalTest; |
| 378 |
mf:name "nulls"; |
| 379 |
rdft:approval rdft:Proposed; |
| 380 |
mf:action <test050-in.nq>; |
| 381 |
mf:result <test050-urgna2012.nq>; |
| 382 |
. |
| 383 |
|
| 384 |
:test051 a rdfn:Urgna2012EvalTest; |
| 385 |
mf:name "merging subjects"; |
| 386 |
rdft:approval rdft:Proposed; |
| 387 |
mf:action <test051-in.nq>; |
| 388 |
mf:result <test051-urgna2012.nq>; |
| 389 |
. |
| 390 |
|
| 391 |
:test052 a rdfn:Urgna2012EvalTest; |
| 392 |
mf:name "alias keywords"; |
| 393 |
rdft:approval rdft:Proposed; |
| 394 |
mf:action <test052-in.nq>; |
| 395 |
mf:result <test052-urgna2012.nq>; |
| 396 |
. |
| 397 |
|
| 398 |
:test053 a rdfn:Urgna2012EvalTest; |
| 399 |
mf:name "@list"; |
| 400 |
rdft:approval rdft:Proposed; |
| 401 |
mf:action <test053-in.nq>; |
| 402 |
mf:result <test053-urgna2012.nq>; |
| 403 |
. |
| 404 |
|
| 405 |
:test054 a rdfn:Urgna2012EvalTest; |
| 406 |
mf:name "t-graph"; |
| 407 |
rdft:approval rdft:Proposed; |
| 408 |
mf:action <test054-in.nq>; |
| 409 |
mf:result <test054-urgna2012.nq>; |
| 410 |
. |
| 411 |
|
| 412 |
:test055 a rdfn:Urgna2012EvalTest; |
| 413 |
mf:name "simple reorder (1)"; |
| 414 |
rdft:approval rdft:Proposed; |
| 415 |
mf:action <test055-in.nq>; |
| 416 |
mf:result <test055-urgna2012.nq>; |
| 417 |
. |
| 418 |
|
| 419 |
:test056 a rdfn:Urgna2012EvalTest; |
| 420 |
mf:name "simple reorder (2)"; |
| 421 |
rdft:approval rdft:Proposed; |
| 422 |
mf:action <test056-in.nq>; |
| 423 |
mf:result <test056-urgna2012.nq>; |
| 424 |
. |
| 425 |
|
| 426 |
:test060 a rdfn:Urgna2012EvalTest; |
| 427 |
mf:name "n-quads escaping"; |
| 428 |
rdft:approval rdft:Proposed; |
| 429 |
mf:action <test060-in.nq>; |
| 430 |
mf:result <test060-urgna2012.nq>; |
| 431 |
. |
| 432 |
|
| 433 |
:test061 a rdfn:Urgna2012EvalTest; |
| 434 |
mf:name "same literal value with multiple languages"; |
| 435 |
rdft:approval rdft:Proposed; |
| 436 |
mf:action <test061-in.nq>; |
| 437 |
mf:result <test061-urgna2012.nq>; |
| 438 |
. |
| 439 |
|
| 440 |
:test062 a rdfn:Urgna2012EvalTest; |
| 441 |
mf:name "same literal value with multiple datatypes"; |
| 442 |
rdft:approval rdft:Proposed; |
| 443 |
mf:action <test062-in.nq>; |
| 444 |
mf:result <test062-urgna2012.nq>; |
| 445 |
. |