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