rdf-n3 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. data/.yardopts +0 -1
  2. data/History.md +6 -1
  3. data/README.md +15 -1
  4. data/Rakefile +1 -28
  5. data/VERSION +1 -1
  6. data/lib/rdf/n3/format.rb +6 -2
  7. data/lib/rdf/n3/reader/bnf-rules.n3 +134 -0
  8. data/lib/rdf/n3/reader/n3-selectors.n3 +0 -0
  9. data/lib/rdf/n3/reader/n3.n3 +261 -0
  10. data/lib/rdf/n3/reader/parser.rb +1 -1
  11. data/rdf-n3.gemspec +411 -603
  12. data/script/build_meta +20 -13
  13. data/script/parse +2 -2
  14. data/script/yard-to-rubyforge +2 -0
  15. data/spec/.gitignore +1 -0
  16. data/spec/cwm_spec.rb +8 -13
  17. data/spec/cwm_test.rb +76 -0
  18. data/spec/format_spec.rb +4 -0
  19. data/spec/spec_helper.rb +6 -0
  20. data/spec/swap_spec.rb +35 -31
  21. data/spec/swap_test.rb +79 -0
  22. data/spec/turtle_spec.rb +13 -19
  23. data/spec/turtle_test.rb +98 -0
  24. data/spec/writer_spec.rb +7 -10
  25. metadata +38 -228
  26. data/.gitignore +0 -5
  27. data/spec/rdf_helper.rb +0 -226
  28. data/spec/swap_test/animal.rdf +0 -17
  29. data/spec/swap_test/anon-prop.n3 +0 -14
  30. data/spec/swap_test/anonymous_loop.n3 +0 -2
  31. data/spec/swap_test/contexts.n3 +0 -16
  32. data/spec/swap_test/daml-pref.n3 +0 -10
  33. data/spec/swap_test/i18n/hiragana.n3 +0 -22
  34. data/spec/swap_test/i18n/n3string.n3 +0 -4
  35. data/spec/swap_test/list/itemType.rdf +0 -12
  36. data/spec/swap_test/lists-simple.n3 +0 -40
  37. data/spec/swap_test/lists.n3 +0 -35
  38. data/spec/swap_test/n3/n3parser.tests_n3_10001.nt +0 -3
  39. data/spec/swap_test/n3/n3parser.tests_n3_10002.nt +0 -7
  40. data/spec/swap_test/n3/n3parser.tests_n3_10003.nt +0 -3
  41. data/spec/swap_test/n3/n3parser.tests_n3_10004.nt +0 -119
  42. data/spec/swap_test/n3/n3parser.tests_n3_10005.nt +0 -3
  43. data/spec/swap_test/n3/n3parser.tests_n3_10006.nt +0 -225
  44. data/spec/swap_test/n3/n3parser.tests_n3_10007.nt +0 -79
  45. data/spec/swap_test/n3/n3parser.tests_n3_10008.nt +0 -5
  46. data/spec/swap_test/n3/n3parser.tests_n3_10009.nt +0 -13
  47. data/spec/swap_test/n3/n3parser.tests_n3_10010.nt +0 -21
  48. data/spec/swap_test/n3/n3parser.tests_n3_10011.nt +0 -9
  49. data/spec/swap_test/n3/n3parser.tests_n3_10012.nt +0 -53
  50. data/spec/swap_test/n3/n3parser.tests_n3_10013.nt +0 -19
  51. data/spec/swap_test/n3/n3parser.tests_n3_10014.nt +0 -103
  52. data/spec/swap_test/n3/n3parser.tests_n3_10015.nt +0 -103
  53. data/spec/swap_test/n3/n3parser.tests_n3_10016.nt +0 -3
  54. data/spec/swap_test/n3/n3parser.tests_n3_10017.nt +0 -151
  55. data/spec/swap_test/n3/n3parser.tests_n3_10018.nt +0 -9
  56. data/spec/swap_test/n3/n3parser.tests_n3_10019.nt +0 -3
  57. data/spec/swap_test/n3/n3parser.tests_n3_10020.nt +0 -13
  58. data/spec/swap_test/n3parser.tests +0 -160
  59. data/spec/swap_test/n3parser.yml +0 -174
  60. data/spec/swap_test/nodeID/classes.n3 +0 -9
  61. data/spec/swap_test/nodeID/classes.ref.rdf +0 -15
  62. data/spec/swap_test/nodeID/ex1.rdf +0 -15
  63. data/spec/swap_test/norm/fix.rdf +0 -33
  64. data/spec/swap_test/owl-ex.rdf +0 -150
  65. data/spec/swap_test/ref/animal.n3 +0 -11
  66. data/spec/swap_test/ref/anon-prop-1.n3 +0 -8
  67. data/spec/swap_test/ref/anonymous_loop.ref +0 -7
  68. data/spec/swap_test/ref/bnode.n3 +0 -6
  69. data/spec/swap_test/ref/bnode.rdf +0 -16
  70. data/spec/swap_test/ref/colon-in-uri.n3 +0 -15
  71. data/spec/swap_test/ref/contexts-1.n3 +0 -12
  72. data/spec/swap_test/ref/daml-ex.n3 +0 -103
  73. data/spec/swap_test/ref/daml-ont.n3 +0 -289
  74. data/spec/swap_test/ref/djb1a-out.n3 +0 -4
  75. data/spec/swap_test/ref/dot-dash.n3 +0 -8
  76. data/spec/swap_test/ref/in-xml-t.n3 +0 -4
  77. data/spec/swap_test/ref/itemType.n3 +0 -9
  78. data/spec/swap_test/ref/keywords1.n3 +0 -11
  79. data/spec/swap_test/ref/keywords2.n3 +0 -11
  80. data/spec/swap_test/ref/lists-simple-1.rdf +0 -108
  81. data/spec/swap_test/ref/lists.n3 +0 -43
  82. data/spec/swap_test/ref/lstring-out.n3 +0 -20
  83. data/spec/swap_test/ref/n3string.n3 +0 -13
  84. data/spec/swap_test/ref/no-last-nl.n3 +0 -3
  85. data/spec/swap_test/ref/numbers.n3 +0 -18
  86. data/spec/swap_test/ref/path1.n3 +0 -8
  87. data/spec/swap_test/ref/path2.n3 +0 -39
  88. data/spec/swap_test/ref/prefix1.rdf +0 -31
  89. data/spec/swap_test/ref/prefix2.rdf +0 -33
  90. data/spec/swap_test/ref/prefix3.rdf +0 -31
  91. data/spec/swap_test/ref/rdf-redefine.rdf +0 -11
  92. data/spec/swap_test/ref/reluri-1.rdf +0 -18
  93. data/spec/swap_test/ref/strquot.n3 +0 -22
  94. data/spec/swap_test/ref/strquot_a.n3 +0 -23
  95. data/spec/swap_test/ref/xml-base3.n3 +0 -5
  96. data/spec/swap_test/ref/xml-redefine.rdf +0 -20
  97. data/spec/swap_test/ref/xml-redefine2.rdf +0 -23
  98. data/spec/swap_test/ref/xml-syntax-basic-serialization.rdf +0 -10
  99. data/spec/swap_test/ref/xmllit.nt +0 -3
  100. data/spec/swap_test/regression.n3 +0 -231
  101. data/spec/swap_test/regression.yml +0 -256
  102. data/spec/swap_test/reluri-1.n3 +0 -10
  103. data/spec/swap_test/strquot.n3 +0 -23
  104. data/spec/swap_test/syntax/colon-in-uri.rdf +0 -27
  105. data/spec/swap_test/syntax/djb1a.n3 +0 -3
  106. data/spec/swap_test/syntax/dot-dash.n3 +0 -15
  107. data/spec/swap_test/syntax/equals1.n3 +0 -1
  108. data/spec/swap_test/syntax/equals2.n3 +0 -1
  109. data/spec/swap_test/syntax/keywords1.n3 +0 -17
  110. data/spec/swap_test/syntax/keywords2.n3 +0 -18
  111. data/spec/swap_test/syntax/lstring.n3 +0 -26
  112. data/spec/swap_test/syntax/neg-formula-predicate.n3 +0 -1
  113. data/spec/swap_test/syntax/neg-keywords3.n3 +0 -1
  114. data/spec/swap_test/syntax/neg-literal-predicate.n3 +0 -1
  115. data/spec/swap_test/syntax/neg-single-quote.n3 +0 -1
  116. data/spec/swap_test/syntax/neg-thisadoc.n3 +0 -1
  117. data/spec/swap_test/syntax/no-last-nl.n3 +0 -2
  118. data/spec/swap_test/syntax/numbers.n3 +0 -26
  119. data/spec/swap_test/syntax/path1.n3 +0 -23
  120. data/spec/swap_test/syntax/path2.n3 +0 -31
  121. data/spec/swap_test/syntax/qvars1.n3 +0 -19
  122. data/spec/swap_test/syntax/qvars2.n3 +0 -19
  123. data/spec/swap_test/syntax/this-quantifiers.n3 +0 -164
  124. data/spec/swap_test/syntax/this-rules.n3 +0 -43
  125. data/spec/swap_test/syntax/too-nested.n3 +0 -25
  126. data/spec/swap_test/syntax/trailing-semicolon.n3 +0 -12
  127. data/spec/swap_test/syntax/zero-objects.n3 +0 -1
  128. data/spec/swap_test/syntax/zero-predicates.n3 +0 -3
  129. data/spec/swap_test/tests-work.txt +0 -25
  130. data/spec/swap_test/xml-syntax/basic-serialization.n3 +0 -8
  131. data/spec/swap_test/xml-syntax/in-xml.xml +0 -13
  132. data/spec/swap_test/xml-syntax/non-ascii-pred.rdf +0 -14
  133. data/spec/swap_test/xml-syntax/rdf_prefix.n3 +0 -2
  134. data/spec/swap_test/xml-syntax/xml_prefix.n3 +0 -7
  135. data/spec/swap_test/xml-syntax/xml_prefix2.n3 +0 -9
  136. data/spec/swap_test/xml-syntax/xmlbase3.rdf +0 -10
  137. data/spec/swap_test/xml-syntax/xmllit.rdf +0 -33
  138. data/spec/turtle/README.txt +0 -20
  139. data/spec/turtle/bad-00.ttl +0 -2
  140. data/spec/turtle/bad-01.ttl +0 -3
  141. data/spec/turtle/bad-02.ttl +0 -3
  142. data/spec/turtle/bad-03.ttl +0 -3
  143. data/spec/turtle/bad-04.ttl +0 -3
  144. data/spec/turtle/bad-05.ttl +0 -4
  145. data/spec/turtle/bad-06.ttl +0 -3
  146. data/spec/turtle/bad-07.ttl +0 -4
  147. data/spec/turtle/bad-08.ttl +0 -2
  148. data/spec/turtle/bad-09.ttl +0 -3
  149. data/spec/turtle/bad-10.ttl +0 -3
  150. data/spec/turtle/bad-11.ttl +0 -3
  151. data/spec/turtle/bad-12.ttl +0 -3
  152. data/spec/turtle/bad-13.ttl +0 -3
  153. data/spec/turtle/bad-14.ttl +0 -6
  154. data/spec/turtle/manifest-bad.ttl +0 -88
  155. data/spec/turtle/manifest-bad.yml +0 -91
  156. data/spec/turtle/manifest.ttl +0 -215
  157. data/spec/turtle/manifest.yml +0 -187
  158. data/spec/turtle/rdf-schema.out +0 -126
  159. data/spec/turtle/rdf-schema.ttl +0 -156
  160. data/spec/turtle/rdfq-results.out +0 -36
  161. data/spec/turtle/rdfq-results.ttl +0 -39
  162. data/spec/turtle/rdfs-namespace.out +0 -131
  163. data/spec/turtle/rdfs-namespace.ttl +0 -160
  164. data/spec/turtle/test-00.out +0 -1
  165. data/spec/turtle/test-00.ttl +0 -2
  166. data/spec/turtle/test-01.out +0 -3
  167. data/spec/turtle/test-01.ttl +0 -7
  168. data/spec/turtle/test-02.out +0 -3
  169. data/spec/turtle/test-02.ttl +0 -5
  170. data/spec/turtle/test-03.out +0 -3
  171. data/spec/turtle/test-03.ttl +0 -5
  172. data/spec/turtle/test-04.out +0 -2
  173. data/spec/turtle/test-04.ttl +0 -4
  174. data/spec/turtle/test-05.out +0 -4
  175. data/spec/turtle/test-05.ttl +0 -4
  176. data/spec/turtle/test-06.out +0 -1
  177. data/spec/turtle/test-06.ttl +0 -3
  178. data/spec/turtle/test-07.out +0 -5
  179. data/spec/turtle/test-07.ttl +0 -3
  180. data/spec/turtle/test-08.out +0 -1
  181. data/spec/turtle/test-08.ttl +0 -3
  182. data/spec/turtle/test-09.out +0 -4
  183. data/spec/turtle/test-09.ttl +0 -10
  184. data/spec/turtle/test-10.out +0 -5
  185. data/spec/turtle/test-10.ttl +0 -5
  186. data/spec/turtle/test-11.out +0 -4
  187. data/spec/turtle/test-11.ttl +0 -10
  188. data/spec/turtle/test-12.out +0 -4
  189. data/spec/turtle/test-12.ttl +0 -9
  190. data/spec/turtle/test-13.out +0 -2
  191. data/spec/turtle/test-13.ttl +0 -7
  192. data/spec/turtle/test-14.out +0 -10000
  193. data/spec/turtle/test-14.ttl +0 -10002
  194. data/spec/turtle/test-15.out +0 -10000
  195. data/spec/turtle/test-15.ttl +0 -3
  196. data/spec/turtle/test-16.out +0 -10000
  197. data/spec/turtle/test-16.ttl +0 -10002
  198. data/spec/turtle/test-17.out +0 -1
  199. data/spec/turtle/test-17.ttl +0 -6
  200. data/spec/turtle/test-18.out +0 -2
  201. data/spec/turtle/test-18.ttl +0 -9
  202. data/spec/turtle/test-19.out +0 -1
  203. data/spec/turtle/test-19.ttl +0 -4
  204. data/spec/turtle/test-20.out +0 -2
  205. data/spec/turtle/test-20.ttl +0 -6
  206. data/spec/turtle/test-21.out +0 -3
  207. data/spec/turtle/test-21.ttl +0 -4
  208. data/spec/turtle/test-22.out +0 -3
  209. data/spec/turtle/test-22.ttl +0 -4
  210. data/spec/turtle/test-23.out +0 -1
  211. data/spec/turtle/test-23.ttl +0 -3
  212. data/spec/turtle/test-24.out +0 -2
  213. data/spec/turtle/test-24.ttl +0 -3
  214. data/spec/turtle/test-25.out +0 -7
  215. data/spec/turtle/test-25.ttl +0 -14
  216. data/spec/turtle/test-26.out +0 -1
  217. data/spec/turtle/test-26.ttl +0 -4
  218. data/spec/turtle/test-27.out +0 -1
  219. data/spec/turtle/test-27.ttl +0 -5
  220. data/spec/turtle/test-28-out.ttl +0 -6
  221. data/spec/turtle/test-28.out +0 -22
  222. data/spec/turtle/test-28.ttl +0 -22
  223. data/spec/turtle/test-29.out +0 -1
  224. data/spec/turtle/test-29.ttl +0 -1
  225. data/spec/turtle/test-30.out +0 -5
  226. data/spec/turtle/test-30.ttl +0 -12
@@ -1,5 +0,0 @@
1
-
2
- <http://www.w3.org/> <http://purl.org/dc/elements/1.1/relation> <http://example.org/test1/>;
3
- <http://purl.org/dc/elements/1.1/source> <http://example.org/test1/test2/>;
4
- <http://purl.org/dc/elements/1.1/title> "World Wide Web Consortium" .
5
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- <rdf:RDF xmlns="http://example.com/m#"
5
- xmlns:Wxml="http://example.com/xml#"
6
- xmlns:a="http://example.com/m#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
8
-
9
- <rdf:Description rdf:about="http://example.com/m#a">
10
- <b rdf:resource="http://example.com/m#c"/>
11
- </rdf:Description>
12
-
13
- <Wxml:P rdf:about="http://example.com/m#q">
14
- <Wxml:v rdf:resource="http://example.com/xml#r"/>
15
- </Wxml:P>
16
-
17
- <rdf:Description rdf:about="http://example.com/m#y">
18
- <n rdf:resource="http://example.com/m#i"/>
19
- </rdf:Description>
20
- </rdf:RDF>
@@ -1,23 +0,0 @@
1
-
2
-
3
-
4
- <rdf:RDF xmlns="http://example.com/m#"
5
- xmlns:Uxml="http://example.com/xml#"
6
- xmlns:a="http://example.com/m#"
7
- xmlns:exmlns="http://example.com/xmlns#"
8
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
9
-
10
- <rdf:Description rdf:about="http://example.com/m#a">
11
- <b rdf:resource="http://example.com/m#c"/>
12
- </rdf:Description>
13
-
14
- <P xmlns="http://example.com/swap/test/xml-syntax/xml_prefix2.n3#"
15
- rdf:about="http://example.com/m#q">
16
- <Uxml:v rdf:resource="http://example.com/xml#r"/>
17
- <exmlns:w rdf:resource="http://example.com/xmlns#t"/>
18
- </P>
19
-
20
- <rdf:Description rdf:about="http://example.com/m#y">
21
- <n rdf:resource="http://example.com/m#i"/>
22
- </rdf:Description>
23
- </rdf:RDF>
@@ -1,10 +0,0 @@
1
-
2
-
3
-
4
- <rdf:RDF xmlns="http://www.w3.org/2000/10/swap/test/xml-syntax/basic-serialization.n3#"
5
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
6
-
7
- <rdf:Description rdf:about="#s">
8
- <p rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</p>
9
- </rdf:Description>
10
- </rdf:RDF>
@@ -1,3 +0,0 @@
1
-
2
- <http://example.com/swap/test/xml-syntax/xmllit.rdf#John_Smith> <http://my.example.org/Name> "\n <html:h1 xmlns:html=\"http://NoHTML.example.org\" xmlns:my=\"http://my.example.org/\" my:thing=\"hello\">\n <b xmlns=\"http://www.w3.org/1999/xhtml\"><i>John</i></b>\n </html:h1>\n "^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
3
-
@@ -1,231 +0,0 @@
1
- @prefix : <#>.
2
- @prefix x: <#>.
3
- @prefix test: <http://www.w3.org/2000/10/swap/test.n3#>.
4
- @prefix dc: <http://purl.org/dc/elements/1.1/>. # yuk - under protest - no hash
5
- @prefix n3test: <http://www.w3.org/2004/11/n3test#> .
6
- @prefix grammar: <http://www.w3.org/2000/10/swap/grammar/> .
7
-
8
- :t1001 a test:CwmTest, test:CwmProofTest;
9
- test:referenceOutput <ref/animal.n3>;
10
- n3test:inputDocument <animal.rdf> ;
11
- n3test:description "Parse a small RDF file, generate N3";
12
- test:arguments """-rdf animal.rdf -n3""" .
13
-
14
- :t1002a a test:CwmTest;
15
- test:referenceOutput <ref/xml-redefine.rdf>;
16
- n3test:inputDocument <xml-syntax/xml_prefix.n3> ;
17
- n3test:description "Do not redefine the xml: prefix";
18
- test:arguments """--n3 xml-syntax/xml_prefix.n3 --rdf""" .
19
-
20
- :t1002b a test:CwmTest, test:CwmProofTest;
21
- test:referenceOutput <ref/xml-base3.n3>;
22
- n3test:inputDocument <xml-syntax/xmlbase3.rdf> ;
23
- n3test:description "Allow for relative xml:base";
24
- test:arguments """--rdf xml-syntax/xmlbase3.rdf --n3""" .
25
-
26
- :t1002c a test:CwmTest, test:CwmProofTest;
27
- test:referenceOutput <ref/xml-redefine2.rdf>;
28
- n3test:inputDocument <xml-syntax/xml_prefix2.n3> ;
29
- n3test:description "do not redefine xml: and xmlns: even if told told";
30
- test:arguments """--n3 xml-syntax/xml_prefix2.n3 --rdf""" .
31
-
32
- :t1002d a test:CwmTest;
33
- test:referenceOutput <ref/rdf-redefine.rdf>;
34
- n3test:inputDocument <xml-syntax/rdf_prefix.n3> ;
35
- n3test:description "Allow for redefinition of rdf:";
36
- test:arguments """--n3 xml-syntax/rdf_prefix.n3 --rdf""" .
37
-
38
- :t1002e a test:CwmTest;
39
- test:referenceOutput <ref/xmllit.nt>;
40
- n3test:inputDocument <xml-syntax/xmllit.rdf> ;
41
- n3test:description "rdf:parseType=\"Literal\"";
42
- test:arguments """--rdf xml-syntax/xmllit.rdf --ntriples""".
43
-
44
- :t1003 a test:CwmTest;
45
- test:referenceOutput <ref/in-xml-t.n3>;
46
- n3test:inputDocument <xml-syntax/in-xml.xml> ;
47
- test:description "Parse RDF embedded in foreign XML";
48
- test:arguments """--rdf=T xml-syntax/in-xml.xml -n3""".
49
-
50
- :t1005 a test:CwmTest;
51
- test:referenceOutput <ref/reluri-1.rdf>;
52
- n3test:inputDocument <reluri-1.n3> ;
53
- test:description "test generation of relative URIs";
54
- test:arguments """reluri-1.n3 --rdf""".
55
-
56
- :t1005a a test:CwmTest, test:CwmProofTest;
57
- test:referenceOutput <ref/no-last-nl.n3>;
58
- n3test:inputDocument <syntax/no-last-nl.n3> ;
59
- test:description "An N3 file with no final newline character";
60
- test:arguments "syntax/no-last-nl.n3".
61
-
62
- :t1005b a test:CwmTest, test:CwmProofTest;
63
- test:referenceOutput <ref/dot-dash.n3>;
64
- n3test:inputDocument <syntax/dot-dash.n3> ;
65
- test:description "combinations of - and _ in identifiers";
66
- test:arguments "syntax/dot-dash.n3".
67
-
68
- :t1005c a test:CwmTest, test:CwmProofTest;
69
- test:referenceOutput <ref/keywords1.n3>;
70
- n3test:inputDocument <syntax/keywords1.n3> ;
71
- test:description "@keywords in n3";
72
- test:arguments "syntax/keywords1.n3".
73
-
74
- :t1005d a test:CwmTest, test:CwmProofTest;
75
- test:referenceOutput <ref/keywords2.n3>;
76
- n3test:inputDocument <syntax/keywords2.n3> ;
77
- test:description "using no keywords in n3";
78
- test:arguments "syntax/keywords2.n3".
79
-
80
- :t1005e a test:CwmTest, test:CwmProofTest;
81
- test:referenceOutput <ref/djb1a-out.n3>;
82
- n3test:inputDocument <syntax/djb1a.n3> ;
83
- test:description "djb noticed a:b was parsed as rdf:type token";
84
- test:arguments "syntax/djb1a.n3".
85
-
86
- :t1006 a test:CwmTest, test:CwmProofTest;
87
- test:referenceOutput <ref/contexts-1.n3>;
88
- n3test:inputDocument <contexts.n3> ;
89
- test:description "Parse and generate simple contexts";
90
- test:arguments """contexts.n3""".
91
-
92
- :t1007 a test:CwmTest, test:CwmProofTest;
93
- n3test:status "pending";
94
- test:referenceOutput <ref/anon-prop-1.n3>;
95
- n3test:inputDocument <anon-prop.n3> ;
96
- test:description "Parse and regen anonymous property";
97
- test:arguments """anon-prop.n3""".
98
-
99
- :t1007a a test:CwmTest, test:CwmProofTest;
100
- test:referenceOutput <ref/bnode.n3>;
101
- n3test:inputDocument <nodeID/ex1.rdf> ;
102
- test:description "Parse RDF/XML nodeID to N3";
103
- test:arguments """--rdf nodeID/ex1.rdf --n3""".
104
-
105
- :t1007b a test:CwmTest;
106
- test:referenceOutput <ref/bnode.rdf>;
107
- n3test:inputDocument <nodeID/ex1.rdf> ;
108
- test:description "Parse RDF/XML nodeID and regen RDF/XML";
109
- test:arguments """--rdf nodeID/ex1.rdf""".
110
-
111
- :t1007c a test:CwmTest;
112
- test:referenceOutput <nodeID/classes.ref.rdf>;
113
- n3test:inputDocument <nodeID/classes.n3> ;
114
- test:description "use nodeID's with classes";
115
- test:arguments """nodeID/classes.n3 -rdf""".
116
-
117
- :t1007d a test:CwmTest, test:CwmProofTest;
118
- test:referenceOutput <ref/anonymous_loop.ref>;
119
- n3test:inputDocument <anonymous_loop.n3> ;
120
- test:description "A loop of anonymous nodes wasn't being printed at all";
121
- test:arguments """anonymous_loop.n3""".
122
-
123
- #:t1008 a test:CwmTest, test:CwmProofTest;
124
- # test:referenceOutput <ref/daml-ont.n3>;
125
- # n3test:inputDocument <daml-pref.n3> ;
126
- # test:description "Convert some RDF/XML into RDF/N3";
127
- # test:arguments """daml-pref.n3 -rdf daml-ont.rdf -n3""".
128
-
129
- :t1008a a test:CwmTest, test:CwmProofTest;
130
- test:referenceOutput <ref/colon-in-uri.n3>;
131
- n3test:inputDocument <syntax/colon-in-uri.rdf> ;
132
- test:description "When rdf/xml localnames are not valid qNames";
133
- test:arguments """--rdf syntax/colon-in-uri.rdf --n3""".
134
-
135
- :t1009 a test:CwmTest;
136
- test:referenceOutput <ref/strquot.n3>;
137
- n3test:inputDocument <strquot.n3> ;
138
- test:description "N3 string quoting with escaping";
139
- test:arguments """-n3=e strquot.n3""".
140
-
141
- :t1009aa a test:CwmTest, test:CwmProofTest;
142
- test:referenceOutput <ref/strquot_a.n3>;
143
- n3test:inputDocument <strquot.n3> ;
144
- test:description "N3 string quoting with utf-8 literals";
145
- test:arguments """-n3 strquot.n3""".
146
-
147
- :t1009ab a test:CwmTest, test:CwmProofTest;
148
- n3test:status "pending";
149
- test:referenceOutput <ref/n3string.n3>;
150
- n3test:inputDocument <i18n/n3string.n3> ;
151
- test:description "log:n3string genertating utf-8 literals was double encoding";
152
- test:arguments """-n3 i18n/n3string.n3""".
153
-
154
- :t1009b a test:CwmTest, test:CwmProofTest;
155
- test:referenceOutput <xml-syntax/non-ascii-pred.rdf>;
156
- n3test:inputDocument <xml-syntax/non-ascii-pred.rdf> ;
157
- test:description "XML to XML with utf-8 non-ascii characters";
158
- test:arguments "--rdf xml-syntax/non-ascii-pred.rdf".
159
-
160
- :t1010 a test:CwmTest, test:CwmProofTest;
161
- test:referenceOutput <ref/path1.n3>;
162
- n3test:inputDocument <syntax/path1.n3> ;
163
- test:description "Path syntax, simple";
164
- test:arguments """syntax/path1.n3""".
165
-
166
- :t1011 a test:CwmTest, test:CwmProofTest;
167
- n3test:status "pending";
168
- test:referenceOutput <ref/path2.n3>;
169
- n3test:inputDocument <syntax/path2.n3> ;
170
- test:description "Path syntax, more";
171
- test:arguments """syntax/path2.n3""".
172
-
173
- :t10115 a test:CwmTest, test:CwmProofTest;
174
- test:referenceOutput <ref/numbers.n3>;
175
- n3test:inputDocument <syntax/numbers.n3> ;
176
- test:description "Number syntax";
177
- test:arguments "syntax/numbers.n3".
178
-
179
- :t1014 a test:CwmTest, test:CwmProofTest;
180
- test:referenceOutput <ref/lstring-out.n3>;
181
- n3test:inputDocument <syntax/lstring.n3> ;
182
- test:description "N3 string nested triple quoting";
183
- test:arguments """--n3 syntax/lstring.n3""".
184
-
185
- :t1017 a test:CwmTest, test:CwmProofTest;
186
- test:referenceOutput <ref/lists.n3>;
187
- n3test:inputDocument <lists.n3> ;
188
- test:description "parsing and generation of N3 list syntax";
189
- test:arguments """-n3 lists.n3""".
190
-
191
- :t1018 a test:CwmTest;
192
- test:referenceOutput <ref/lists-simple-1.rdf>;
193
- n3test:inputDocument <lists-simple.n3> ;
194
- test:description "conversion of subset of N3 list syntax to RDF";
195
- test:arguments """-n3 lists-simple.n3 -rdf""".
196
-
197
- :t1018a1 a test:CwmTest, test:CwmProofTest;
198
- test:referenceOutput <ref/itemType.n3>;
199
- n3test:inputDocument <list/itemType.rdf> ;
200
- test:description "make sure typeNodes in RDF/XML Collections are parsed";
201
- test:arguments """-rdf list/itemType.rdf -n3""".
202
-
203
- :t1019 a test:CwmTest, test:CwmProofTest;
204
- test:referenceOutput <ref/prefix1.rdf>;
205
- n3test:inputDocument <norm/fix.rdf> ;
206
- test:description "Avoiding default namespace on attrs";
207
- test:arguments """-rdf norm/fix.rdf""".
208
-
209
- :t1020 a test:CwmTest;
210
- test:referenceOutput <ref/prefix2.rdf>;
211
- n3test:inputDocument <norm/fix.rdf> ;
212
- test:description "Avoiding default namespace on attrs";
213
- test:arguments """-rdf norm/fix.rdf -rdf=d""".
214
-
215
- :t1021 a test:CwmTest;
216
- test:referenceOutput <ref/prefix3.rdf>;
217
- n3test:inputDocument <norm/fix.rdf> ;
218
- test:description "Avoiding default namespace on attrs";
219
- test:arguments """-rdf norm/fix.rdf -rdf=p""".
220
-
221
- :t1022 a test:CwmTest, test:CwmProofTest;
222
- test:referenceOutput <ref/daml-ex.n3>;
223
- n3test:inputDocument <owl-ex.rdf> ;
224
- test:description "Early DAML (now OWL) example in XML/RDF";
225
- test:arguments """-rdf owl-ex.rdf -n3""".
226
-
227
- :t1063 a test:CwmTest;
228
- test:referenceOutput <ref/xml-syntax-basic-serialization.rdf>;
229
- n3test:inputDocument <xml-syntax/basic-serialization.n3> ;
230
- test:description "extremely basic RDF serialization test";
231
- test:arguments """xml-syntax/basic-serialization.n3 --rdf""".
@@ -1,256 +0,0 @@
1
- ---
2
- - !ruby/object:RdfHelper::TestCase
3
- about: http://www.w3.org/2000/10/swap/test/animal.rdf
4
- description: Parse a small RDF file, generate N3
5
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/animal.rdf
6
- name: t1001
7
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/animal.n3
8
- rdf_type: CwmProofTest
9
- - !ruby/object:RdfHelper::TestCase
10
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/xml_prefix.n3
11
- description: "Do not redefine the xml: prefix"
12
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/xml_prefix.n3
13
- name: t1002a
14
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/xml-redefine.rdf
15
- rdf_type: CwmTest
16
- - !ruby/object:RdfHelper::TestCase
17
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/xmlbase3.rdf
18
- description: Allow for relative xml:base
19
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/xmlbase3.rdf
20
- name: t1002b
21
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/xml-base3.n3
22
- rdf_type: CwmProofTest
23
- - !ruby/object:RdfHelper::TestCase
24
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/xml_prefix2.n3
25
- description: "do not redefine xml: and xmlns: even if told told"
26
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/xml_prefix2.n3
27
- name: t1002c
28
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/xml-redefine2.rdf
29
- rdf_type: CwmProofTest
30
- - !ruby/object:RdfHelper::TestCase
31
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/rdf_prefix.n3
32
- description: "Allow for redefinition of rdf:"
33
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/rdf_prefix.n3
34
- name: t1002d
35
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/rdf-redefine.rdf
36
- rdf_type: CwmTest
37
- - !ruby/object:RdfHelper::TestCase
38
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/xmllit.rdf
39
- description: rdf:parseType="Literal"
40
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/xmllit.rdf
41
- name: t1002e
42
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/xmllit.nt
43
- rdf_type: CwmTest
44
- - !ruby/object:RdfHelper::TestCase
45
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/in-xml.xml
46
- description: Parse RDF embedded in foreign XML
47
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/in-xml.xml
48
- name: t1003
49
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/in-xml-t.n3
50
- rdf_type: CwmTest
51
- - !ruby/object:RdfHelper::TestCase
52
- about: http://www.w3.org/2000/10/swap/test/reluri-1.n3
53
- description: test generation of relative URIs
54
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/reluri-1.n3
55
- name: t1005
56
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/reluri-1.rdf
57
- rdf_type: CwmTest
58
- - !ruby/object:RdfHelper::TestCase
59
- about: http://www.w3.org/2000/10/swap/test/syntax/no-last-nl.n3
60
- description: An N3 file with no final newline character
61
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/no-last-nl.n3
62
- name: t1005a
63
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/no-last-nl.n3
64
- rdf_type: CwmProofTest
65
- - !ruby/object:RdfHelper::TestCase
66
- about: http://www.w3.org/2000/10/swap/test/syntax/dot-dash.n3
67
- description: combinations of - and _ in identifiers
68
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/dot-dash.n3
69
- name: t1005b
70
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/dot-dash.n3
71
- rdf_type: CwmProofTest
72
- - !ruby/object:RdfHelper::TestCase
73
- about: http://www.w3.org/2000/10/swap/test/syntax/keywords1.n3
74
- description: "@keywords in n3"
75
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/keywords1.n3
76
- name: t1005c
77
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/keywords1.n3
78
- rdf_type: CwmProofTest
79
- - !ruby/object:RdfHelper::TestCase
80
- about: http://www.w3.org/2000/10/swap/test/syntax/keywords2.n3
81
- description: using no keywords in n3
82
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/keywords2.n3
83
- name: t1005d
84
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/keywords2.n3
85
- rdf_type: CwmProofTest
86
- - !ruby/object:RdfHelper::TestCase
87
- about: http://www.w3.org/2000/10/swap/test/syntax/djb1a.n3
88
- description: djb noticed a:b was parsed as rdf:type token
89
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/djb1a.n3
90
- name: t1005e
91
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/djb1a-out.n3
92
- rdf_type: CwmProofTest
93
- - !ruby/object:RdfHelper::TestCase
94
- about: http://www.w3.org/2000/10/swap/test/contexts.n3
95
- description: Parse and generate simple contexts
96
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/contexts.n3
97
- name: t1006
98
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/contexts-1.n3
99
- rdf_type: CwmProofTest
100
- - !ruby/object:RdfHelper::TestCase
101
- about: http://www.w3.org/2000/10/swap/test/anon-prop.n3
102
- description: Parse and regen anonymous property
103
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/anon-prop.n3
104
- name: t1007
105
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/anon-prop-1.n3
106
- rdf_type: CwmProofTest
107
- status: pending
108
- - !ruby/object:RdfHelper::TestCase
109
- about: http://www.w3.org/2000/10/swap/test/nodeID/ex1.rdf
110
- description: Parse RDF/XML nodeID to N3
111
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/nodeID/ex1.rdf
112
- name: t1007a
113
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/bnode.n3
114
- rdf_type: CwmProofTest
115
- - !ruby/object:RdfHelper::TestCase
116
- about: http://www.w3.org/2000/10/swap/test/nodeID/ex1.rdf
117
- description: Parse RDF/XML nodeID and regen RDF/XML
118
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/nodeID/ex1.rdf
119
- name: t1007b
120
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/bnode.rdf
121
- rdf_type: CwmTest
122
- - !ruby/object:RdfHelper::TestCase
123
- about: http://www.w3.org/2000/10/swap/test/nodeID/classes.n3
124
- description: use nodeID's with classes
125
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/nodeID/classes.n3
126
- name: t1007c
127
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/nodeID/classes.ref.rdf
128
- rdf_type: CwmTest
129
- - !ruby/object:RdfHelper::TestCase
130
- about: http://www.w3.org/2000/10/swap/test/anonymous_loop.n3
131
- description: A loop of anonymous nodes wasn't being printed at all
132
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/anonymous_loop.n3
133
- name: t1007d
134
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/anonymous_loop.ref
135
- rdf_type: CwmProofTest
136
- - !ruby/object:RdfHelper::TestCase
137
- about: http://www.w3.org/2000/10/swap/test/syntax/colon-in-uri.rdf
138
- description: When rdf/xml localnames are not valid qNames
139
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/colon-in-uri.rdf
140
- name: t1008a
141
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/colon-in-uri.n3
142
- rdf_type: CwmProofTest
143
- - !ruby/object:RdfHelper::TestCase
144
- about: http://www.w3.org/2000/10/swap/test/strquot.n3
145
- description: N3 string quoting with escaping
146
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/strquot.n3
147
- name: t1009
148
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/strquot.n3
149
- rdf_type: CwmTest
150
- - !ruby/object:RdfHelper::TestCase
151
- about: http://www.w3.org/2000/10/swap/test/strquot.n3
152
- description: N3 string quoting with utf-8 literals
153
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/strquot.n3
154
- name: t1009aa
155
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/strquot_a.n3
156
- rdf_type: CwmProofTest
157
- - !ruby/object:RdfHelper::TestCase
158
- about: http://www.w3.org/2000/10/swap/test/i18n/n3string.n3
159
- description: log:n3string genertating utf-8 literals was double encoding
160
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/i18n/n3string.n3
161
- name: t1009ab
162
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/n3string.n3
163
- rdf_type: CwmProofTest
164
- status: pending
165
- - !ruby/object:RdfHelper::TestCase
166
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/non-ascii-pred.rdf
167
- description: XML to XML with utf-8 non-ascii characters
168
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/non-ascii-pred.rdf
169
- name: t1009b
170
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/non-ascii-pred.rdf
171
- rdf_type: CwmProofTest
172
- - !ruby/object:RdfHelper::TestCase
173
- about: http://www.w3.org/2000/10/swap/test/syntax/path1.n3
174
- description: Path syntax, simple
175
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/path1.n3
176
- name: t1010
177
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/path1.n3
178
- rdf_type: CwmProofTest
179
- - !ruby/object:RdfHelper::TestCase
180
- about: http://www.w3.org/2000/10/swap/test/syntax/path2.n3
181
- description: Path syntax, more
182
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/path2.n3
183
- name: t1011
184
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/path2.n3
185
- rdf_type: CwmProofTest
186
- status: pending
187
- - !ruby/object:RdfHelper::TestCase
188
- about: http://www.w3.org/2000/10/swap/test/syntax/numbers.n3
189
- description: Number syntax
190
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/numbers.n3
191
- name: t10115
192
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/numbers.n3
193
- rdf_type: CwmProofTest
194
- - !ruby/object:RdfHelper::TestCase
195
- about: http://www.w3.org/2000/10/swap/test/syntax/lstring.n3
196
- description: N3 string nested triple quoting
197
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/lstring.n3
198
- name: t1014
199
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/lstring-out.n3
200
- rdf_type: CwmProofTest
201
- - !ruby/object:RdfHelper::TestCase
202
- about: http://www.w3.org/2000/10/swap/test/lists.n3
203
- description: parsing and generation of N3 list syntax
204
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/lists.n3
205
- name: t1017
206
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/lists.n3
207
- rdf_type: CwmProofTest
208
- - !ruby/object:RdfHelper::TestCase
209
- about: http://www.w3.org/2000/10/swap/test/lists-simple.n3
210
- description: conversion of subset of N3 list syntax to RDF
211
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/lists-simple.n3
212
- name: t1018
213
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/lists-simple-1.rdf
214
- rdf_type: CwmTest
215
- - !ruby/object:RdfHelper::TestCase
216
- about: http://www.w3.org/2000/10/swap/test/list/itemType.rdf
217
- description: make sure typeNodes in RDF/XML Collections are parsed
218
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/list/itemType.rdf
219
- name: t1018a1
220
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/itemType.n3
221
- rdf_type: CwmProofTest
222
- - !ruby/object:RdfHelper::TestCase
223
- about: http://www.w3.org/2000/10/swap/test/norm/fix.rdf
224
- description: Avoiding default namespace on attrs
225
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/norm/fix.rdf
226
- name: t1019
227
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/prefix1.rdf
228
- rdf_type: CwmProofTest
229
- - !ruby/object:RdfHelper::TestCase
230
- about: http://www.w3.org/2000/10/swap/test/norm/fix.rdf
231
- description: Avoiding default namespace on attrs
232
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/norm/fix.rdf
233
- name: t1020
234
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/prefix2.rdf
235
- rdf_type: CwmTest
236
- - !ruby/object:RdfHelper::TestCase
237
- about: http://www.w3.org/2000/10/swap/test/norm/fix.rdf
238
- description: Avoiding default namespace on attrs
239
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/norm/fix.rdf
240
- name: t1021
241
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/prefix3.rdf
242
- rdf_type: CwmTest
243
- - !ruby/object:RdfHelper::TestCase
244
- about: http://www.w3.org/2000/10/swap/test/owl-ex.rdf
245
- description: Early DAML (now OWL) example in XML/RDF
246
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/owl-ex.rdf
247
- name: t1022
248
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/daml-ex.n3
249
- rdf_type: CwmProofTest
250
- - !ruby/object:RdfHelper::TestCase
251
- about: http://www.w3.org/2000/10/swap/test/xml-syntax/basic-serialization.n3
252
- description: extremely basic RDF serialization test
253
- inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/xml-syntax/basic-serialization.n3
254
- name: t1063
255
- outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/ref/xml-syntax-basic-serialization.rdf
256
- rdf_type: CwmTest