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.
- data/.yardopts +0 -1
- data/History.md +6 -1
- data/README.md +15 -1
- data/Rakefile +1 -28
- data/VERSION +1 -1
- data/lib/rdf/n3/format.rb +6 -2
- data/lib/rdf/n3/reader/bnf-rules.n3 +134 -0
- data/lib/rdf/n3/reader/n3-selectors.n3 +0 -0
- data/lib/rdf/n3/reader/n3.n3 +261 -0
- data/lib/rdf/n3/reader/parser.rb +1 -1
- data/rdf-n3.gemspec +411 -603
- data/script/build_meta +20 -13
- data/script/parse +2 -2
- data/script/yard-to-rubyforge +2 -0
- data/spec/.gitignore +1 -0
- data/spec/cwm_spec.rb +8 -13
- data/spec/cwm_test.rb +76 -0
- data/spec/format_spec.rb +4 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/swap_spec.rb +35 -31
- data/spec/swap_test.rb +79 -0
- data/spec/turtle_spec.rb +13 -19
- data/spec/turtle_test.rb +98 -0
- data/spec/writer_spec.rb +7 -10
- metadata +38 -228
- data/.gitignore +0 -5
- data/spec/rdf_helper.rb +0 -226
- data/spec/swap_test/animal.rdf +0 -17
- data/spec/swap_test/anon-prop.n3 +0 -14
- data/spec/swap_test/anonymous_loop.n3 +0 -2
- data/spec/swap_test/contexts.n3 +0 -16
- data/spec/swap_test/daml-pref.n3 +0 -10
- data/spec/swap_test/i18n/hiragana.n3 +0 -22
- data/spec/swap_test/i18n/n3string.n3 +0 -4
- data/spec/swap_test/list/itemType.rdf +0 -12
- data/spec/swap_test/lists-simple.n3 +0 -40
- data/spec/swap_test/lists.n3 +0 -35
- data/spec/swap_test/n3/n3parser.tests_n3_10001.nt +0 -3
- data/spec/swap_test/n3/n3parser.tests_n3_10002.nt +0 -7
- data/spec/swap_test/n3/n3parser.tests_n3_10003.nt +0 -3
- data/spec/swap_test/n3/n3parser.tests_n3_10004.nt +0 -119
- data/spec/swap_test/n3/n3parser.tests_n3_10005.nt +0 -3
- data/spec/swap_test/n3/n3parser.tests_n3_10006.nt +0 -225
- data/spec/swap_test/n3/n3parser.tests_n3_10007.nt +0 -79
- data/spec/swap_test/n3/n3parser.tests_n3_10008.nt +0 -5
- data/spec/swap_test/n3/n3parser.tests_n3_10009.nt +0 -13
- data/spec/swap_test/n3/n3parser.tests_n3_10010.nt +0 -21
- data/spec/swap_test/n3/n3parser.tests_n3_10011.nt +0 -9
- data/spec/swap_test/n3/n3parser.tests_n3_10012.nt +0 -53
- data/spec/swap_test/n3/n3parser.tests_n3_10013.nt +0 -19
- data/spec/swap_test/n3/n3parser.tests_n3_10014.nt +0 -103
- data/spec/swap_test/n3/n3parser.tests_n3_10015.nt +0 -103
- data/spec/swap_test/n3/n3parser.tests_n3_10016.nt +0 -3
- data/spec/swap_test/n3/n3parser.tests_n3_10017.nt +0 -151
- data/spec/swap_test/n3/n3parser.tests_n3_10018.nt +0 -9
- data/spec/swap_test/n3/n3parser.tests_n3_10019.nt +0 -3
- data/spec/swap_test/n3/n3parser.tests_n3_10020.nt +0 -13
- data/spec/swap_test/n3parser.tests +0 -160
- data/spec/swap_test/n3parser.yml +0 -174
- data/spec/swap_test/nodeID/classes.n3 +0 -9
- data/spec/swap_test/nodeID/classes.ref.rdf +0 -15
- data/spec/swap_test/nodeID/ex1.rdf +0 -15
- data/spec/swap_test/norm/fix.rdf +0 -33
- data/spec/swap_test/owl-ex.rdf +0 -150
- data/spec/swap_test/ref/animal.n3 +0 -11
- data/spec/swap_test/ref/anon-prop-1.n3 +0 -8
- data/spec/swap_test/ref/anonymous_loop.ref +0 -7
- data/spec/swap_test/ref/bnode.n3 +0 -6
- data/spec/swap_test/ref/bnode.rdf +0 -16
- data/spec/swap_test/ref/colon-in-uri.n3 +0 -15
- data/spec/swap_test/ref/contexts-1.n3 +0 -12
- data/spec/swap_test/ref/daml-ex.n3 +0 -103
- data/spec/swap_test/ref/daml-ont.n3 +0 -289
- data/spec/swap_test/ref/djb1a-out.n3 +0 -4
- data/spec/swap_test/ref/dot-dash.n3 +0 -8
- data/spec/swap_test/ref/in-xml-t.n3 +0 -4
- data/spec/swap_test/ref/itemType.n3 +0 -9
- data/spec/swap_test/ref/keywords1.n3 +0 -11
- data/spec/swap_test/ref/keywords2.n3 +0 -11
- data/spec/swap_test/ref/lists-simple-1.rdf +0 -108
- data/spec/swap_test/ref/lists.n3 +0 -43
- data/spec/swap_test/ref/lstring-out.n3 +0 -20
- data/spec/swap_test/ref/n3string.n3 +0 -13
- data/spec/swap_test/ref/no-last-nl.n3 +0 -3
- data/spec/swap_test/ref/numbers.n3 +0 -18
- data/spec/swap_test/ref/path1.n3 +0 -8
- data/spec/swap_test/ref/path2.n3 +0 -39
- data/spec/swap_test/ref/prefix1.rdf +0 -31
- data/spec/swap_test/ref/prefix2.rdf +0 -33
- data/spec/swap_test/ref/prefix3.rdf +0 -31
- data/spec/swap_test/ref/rdf-redefine.rdf +0 -11
- data/spec/swap_test/ref/reluri-1.rdf +0 -18
- data/spec/swap_test/ref/strquot.n3 +0 -22
- data/spec/swap_test/ref/strquot_a.n3 +0 -23
- data/spec/swap_test/ref/xml-base3.n3 +0 -5
- data/spec/swap_test/ref/xml-redefine.rdf +0 -20
- data/spec/swap_test/ref/xml-redefine2.rdf +0 -23
- data/spec/swap_test/ref/xml-syntax-basic-serialization.rdf +0 -10
- data/spec/swap_test/ref/xmllit.nt +0 -3
- data/spec/swap_test/regression.n3 +0 -231
- data/spec/swap_test/regression.yml +0 -256
- data/spec/swap_test/reluri-1.n3 +0 -10
- data/spec/swap_test/strquot.n3 +0 -23
- data/spec/swap_test/syntax/colon-in-uri.rdf +0 -27
- data/spec/swap_test/syntax/djb1a.n3 +0 -3
- data/spec/swap_test/syntax/dot-dash.n3 +0 -15
- data/spec/swap_test/syntax/equals1.n3 +0 -1
- data/spec/swap_test/syntax/equals2.n3 +0 -1
- data/spec/swap_test/syntax/keywords1.n3 +0 -17
- data/spec/swap_test/syntax/keywords2.n3 +0 -18
- data/spec/swap_test/syntax/lstring.n3 +0 -26
- data/spec/swap_test/syntax/neg-formula-predicate.n3 +0 -1
- data/spec/swap_test/syntax/neg-keywords3.n3 +0 -1
- data/spec/swap_test/syntax/neg-literal-predicate.n3 +0 -1
- data/spec/swap_test/syntax/neg-single-quote.n3 +0 -1
- data/spec/swap_test/syntax/neg-thisadoc.n3 +0 -1
- data/spec/swap_test/syntax/no-last-nl.n3 +0 -2
- data/spec/swap_test/syntax/numbers.n3 +0 -26
- data/spec/swap_test/syntax/path1.n3 +0 -23
- data/spec/swap_test/syntax/path2.n3 +0 -31
- data/spec/swap_test/syntax/qvars1.n3 +0 -19
- data/spec/swap_test/syntax/qvars2.n3 +0 -19
- data/spec/swap_test/syntax/this-quantifiers.n3 +0 -164
- data/spec/swap_test/syntax/this-rules.n3 +0 -43
- data/spec/swap_test/syntax/too-nested.n3 +0 -25
- data/spec/swap_test/syntax/trailing-semicolon.n3 +0 -12
- data/spec/swap_test/syntax/zero-objects.n3 +0 -1
- data/spec/swap_test/syntax/zero-predicates.n3 +0 -3
- data/spec/swap_test/tests-work.txt +0 -25
- data/spec/swap_test/xml-syntax/basic-serialization.n3 +0 -8
- data/spec/swap_test/xml-syntax/in-xml.xml +0 -13
- data/spec/swap_test/xml-syntax/non-ascii-pred.rdf +0 -14
- data/spec/swap_test/xml-syntax/rdf_prefix.n3 +0 -2
- data/spec/swap_test/xml-syntax/xml_prefix.n3 +0 -7
- data/spec/swap_test/xml-syntax/xml_prefix2.n3 +0 -9
- data/spec/swap_test/xml-syntax/xmlbase3.rdf +0 -10
- data/spec/swap_test/xml-syntax/xmllit.rdf +0 -33
- data/spec/turtle/README.txt +0 -20
- data/spec/turtle/bad-00.ttl +0 -2
- data/spec/turtle/bad-01.ttl +0 -3
- data/spec/turtle/bad-02.ttl +0 -3
- data/spec/turtle/bad-03.ttl +0 -3
- data/spec/turtle/bad-04.ttl +0 -3
- data/spec/turtle/bad-05.ttl +0 -4
- data/spec/turtle/bad-06.ttl +0 -3
- data/spec/turtle/bad-07.ttl +0 -4
- data/spec/turtle/bad-08.ttl +0 -2
- data/spec/turtle/bad-09.ttl +0 -3
- data/spec/turtle/bad-10.ttl +0 -3
- data/spec/turtle/bad-11.ttl +0 -3
- data/spec/turtle/bad-12.ttl +0 -3
- data/spec/turtle/bad-13.ttl +0 -3
- data/spec/turtle/bad-14.ttl +0 -6
- data/spec/turtle/manifest-bad.ttl +0 -88
- data/spec/turtle/manifest-bad.yml +0 -91
- data/spec/turtle/manifest.ttl +0 -215
- data/spec/turtle/manifest.yml +0 -187
- data/spec/turtle/rdf-schema.out +0 -126
- data/spec/turtle/rdf-schema.ttl +0 -156
- data/spec/turtle/rdfq-results.out +0 -36
- data/spec/turtle/rdfq-results.ttl +0 -39
- data/spec/turtle/rdfs-namespace.out +0 -131
- data/spec/turtle/rdfs-namespace.ttl +0 -160
- data/spec/turtle/test-00.out +0 -1
- data/spec/turtle/test-00.ttl +0 -2
- data/spec/turtle/test-01.out +0 -3
- data/spec/turtle/test-01.ttl +0 -7
- data/spec/turtle/test-02.out +0 -3
- data/spec/turtle/test-02.ttl +0 -5
- data/spec/turtle/test-03.out +0 -3
- data/spec/turtle/test-03.ttl +0 -5
- data/spec/turtle/test-04.out +0 -2
- data/spec/turtle/test-04.ttl +0 -4
- data/spec/turtle/test-05.out +0 -4
- data/spec/turtle/test-05.ttl +0 -4
- data/spec/turtle/test-06.out +0 -1
- data/spec/turtle/test-06.ttl +0 -3
- data/spec/turtle/test-07.out +0 -5
- data/spec/turtle/test-07.ttl +0 -3
- data/spec/turtle/test-08.out +0 -1
- data/spec/turtle/test-08.ttl +0 -3
- data/spec/turtle/test-09.out +0 -4
- data/spec/turtle/test-09.ttl +0 -10
- data/spec/turtle/test-10.out +0 -5
- data/spec/turtle/test-10.ttl +0 -5
- data/spec/turtle/test-11.out +0 -4
- data/spec/turtle/test-11.ttl +0 -10
- data/spec/turtle/test-12.out +0 -4
- data/spec/turtle/test-12.ttl +0 -9
- data/spec/turtle/test-13.out +0 -2
- data/spec/turtle/test-13.ttl +0 -7
- data/spec/turtle/test-14.out +0 -10000
- data/spec/turtle/test-14.ttl +0 -10002
- data/spec/turtle/test-15.out +0 -10000
- data/spec/turtle/test-15.ttl +0 -3
- data/spec/turtle/test-16.out +0 -10000
- data/spec/turtle/test-16.ttl +0 -10002
- data/spec/turtle/test-17.out +0 -1
- data/spec/turtle/test-17.ttl +0 -6
- data/spec/turtle/test-18.out +0 -2
- data/spec/turtle/test-18.ttl +0 -9
- data/spec/turtle/test-19.out +0 -1
- data/spec/turtle/test-19.ttl +0 -4
- data/spec/turtle/test-20.out +0 -2
- data/spec/turtle/test-20.ttl +0 -6
- data/spec/turtle/test-21.out +0 -3
- data/spec/turtle/test-21.ttl +0 -4
- data/spec/turtle/test-22.out +0 -3
- data/spec/turtle/test-22.ttl +0 -4
- data/spec/turtle/test-23.out +0 -1
- data/spec/turtle/test-23.ttl +0 -3
- data/spec/turtle/test-24.out +0 -2
- data/spec/turtle/test-24.ttl +0 -3
- data/spec/turtle/test-25.out +0 -7
- data/spec/turtle/test-25.ttl +0 -14
- data/spec/turtle/test-26.out +0 -1
- data/spec/turtle/test-26.ttl +0 -4
- data/spec/turtle/test-27.out +0 -1
- data/spec/turtle/test-27.ttl +0 -5
- data/spec/turtle/test-28-out.ttl +0 -6
- data/spec/turtle/test-28.out +0 -22
- data/spec/turtle/test-28.ttl +0 -22
- data/spec/turtle/test-29.out +0 -1
- data/spec/turtle/test-29.ttl +0 -1
- data/spec/turtle/test-30.out +0 -5
- data/spec/turtle/test-30.ttl +0 -12
data/spec/swap_test/n3parser.yml
DELETED
@@ -1,174 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/object:RdfHelper::TestCase
|
3
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/no-last-nl.n3
|
4
|
-
description: An N3 file with no final newline character
|
5
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/no-last-nl.n3
|
6
|
-
name: n3_10001
|
7
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10001.nt
|
8
|
-
rdf_type: PositiveParserTest
|
9
|
-
- !ruby/object:RdfHelper::TestCase
|
10
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/dot-dash.n3
|
11
|
-
description: combinations of - and _ in identifiers
|
12
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/dot-dash.n3
|
13
|
-
name: n3_10002
|
14
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10002.nt
|
15
|
-
rdf_type: PositiveParserTest
|
16
|
-
- !ruby/object:RdfHelper::TestCase
|
17
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/keywords1.n3
|
18
|
-
description: "@keywords in n3"
|
19
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/keywords1.n3
|
20
|
-
name: n3_10003
|
21
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10003.nt
|
22
|
-
rdf_type: PositiveParserTest
|
23
|
-
- !ruby/object:RdfHelper::TestCase
|
24
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/keywords2.n3
|
25
|
-
description: using no keywords in n3
|
26
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/keywords2.n3
|
27
|
-
name: n3_10004
|
28
|
-
rdf_type: PositiveParserTest
|
29
|
-
- !ruby/object:RdfHelper::TestCase
|
30
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/djb1a.n3
|
31
|
-
description: djb noticed a:b was parsed as rdf:type token
|
32
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/djb1a.n3
|
33
|
-
name: n3_10005
|
34
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10005.nt
|
35
|
-
rdf_type: PositiveParserTest
|
36
|
-
- !ruby/object:RdfHelper::TestCase
|
37
|
-
about: http://www.w3.org/2000/10/swap/test/contexts.n3
|
38
|
-
description: Parse and generate simple contexts
|
39
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/contexts.n3
|
40
|
-
name: n3_10007
|
41
|
-
rdf_type: PositiveParserTest
|
42
|
-
- !ruby/object:RdfHelper::TestCase
|
43
|
-
about: http://www.w3.org/2000/10/swap/test/anon-prop.n3
|
44
|
-
description: Parse and regen anonymous property
|
45
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/anon-prop.n3
|
46
|
-
name: n3_10008
|
47
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10008.nt
|
48
|
-
rdf_type: PositiveParserTest
|
49
|
-
- !ruby/object:RdfHelper::TestCase
|
50
|
-
about: http://www.w3.org/2000/10/swap/test/strquot.n3
|
51
|
-
description: N3 string quoting with escaping
|
52
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/strquot.n3
|
53
|
-
name: n3_10009
|
54
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10009.nt
|
55
|
-
rdf_type: PositiveParserTest
|
56
|
-
- !ruby/object:RdfHelper::TestCase
|
57
|
-
about: http://www.w3.org/2000/10/swap/test/i18n/hiragana.n3
|
58
|
-
description: N3 string, qname and IRI with utf-8 non-ascii characters
|
59
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/i18n/hiragana.n3
|
60
|
-
name: n3_10010
|
61
|
-
rdf_type: PositiveParserTest
|
62
|
-
- !ruby/object:RdfHelper::TestCase
|
63
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/path1.n3
|
64
|
-
description: Path syntax, simple
|
65
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/path1.n3
|
66
|
-
name: n3_10011
|
67
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10011.nt
|
68
|
-
rdf_type: PositiveParserTest
|
69
|
-
- !ruby/object:RdfHelper::TestCase
|
70
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/path2.n3
|
71
|
-
description: Path syntax, more
|
72
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/path2.n3
|
73
|
-
name: n3_10012
|
74
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10012.nt
|
75
|
-
rdf_type: PositiveParserTest
|
76
|
-
- !ruby/object:RdfHelper::TestCase
|
77
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/numbers.n3
|
78
|
-
description: Number syntax
|
79
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/numbers.n3
|
80
|
-
name: n3_10013
|
81
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10013.nt
|
82
|
-
rdf_type: PositiveParserTest
|
83
|
-
- !ruby/object:RdfHelper::TestCase
|
84
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/qvars1.n3
|
85
|
-
description: Quick variable syntax, simple
|
86
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/qvars1.n3
|
87
|
-
name: n3_10014
|
88
|
-
rdf_type: PositiveParserTest
|
89
|
-
- !ruby/object:RdfHelper::TestCase
|
90
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/qvars2.n3
|
91
|
-
description: Quick variable syntax, more
|
92
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/qvars2.n3
|
93
|
-
name: n3_10015
|
94
|
-
rdf_type: PositiveParserTest
|
95
|
-
- !ruby/object:RdfHelper::TestCase
|
96
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/lstring.n3
|
97
|
-
description: N3 string nested triple quoting
|
98
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/lstring.n3
|
99
|
-
name: n3_10016
|
100
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10016.nt
|
101
|
-
rdf_type: PositiveParserTest
|
102
|
-
- !ruby/object:RdfHelper::TestCase
|
103
|
-
about: http://www.w3.org/2000/10/swap/test/lists.n3
|
104
|
-
description: parsing and generation of N3 list syntax
|
105
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/lists.n3
|
106
|
-
name: n3_10017
|
107
|
-
rdf_type: PositiveParserTest
|
108
|
-
- !ruby/object:RdfHelper::TestCase
|
109
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/trailing-semicolon.n3
|
110
|
-
description: Propertylists can end in trailing semicolon.
|
111
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/trailing-semicolon.n3
|
112
|
-
name: n3_10018
|
113
|
-
outputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/n3/n3parser.tests_n3_10018.nt
|
114
|
-
rdf_type: PositiveParserTest
|
115
|
-
- !ruby/object:RdfHelper::TestCase
|
116
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/equals1.n3
|
117
|
-
description: The = keyword
|
118
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/equals1.n3
|
119
|
-
name: n3_10025
|
120
|
-
rdf_type: PositiveParserTest
|
121
|
-
- !ruby/object:RdfHelper::TestCase
|
122
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/equals2.n3
|
123
|
-
description: The = keyword
|
124
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/equals2.n3
|
125
|
-
name: n3_10026
|
126
|
-
rdf_type: PositiveParserTest
|
127
|
-
- !ruby/object:RdfHelper::TestCase
|
128
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/zero-predicates.n3
|
129
|
-
description: A statement that says nothing at all
|
130
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/zero-predicates.n3
|
131
|
-
name: n3_10027
|
132
|
-
rdf_type: PositiveParserTest
|
133
|
-
- !ruby/object:RdfHelper::TestCase
|
134
|
-
about: http://www.w3.org/2000/10/swap/test/tests-work.txt
|
135
|
-
description: something that isn't n3
|
136
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/tests-work.txt
|
137
|
-
name: n3_20000
|
138
|
-
rdf_type: NegativeParserTest
|
139
|
-
- !ruby/object:RdfHelper::TestCase
|
140
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/neg-keywords3.n3
|
141
|
-
description: "@keywords is not a valid predicate"
|
142
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/neg-keywords3.n3
|
143
|
-
name: n3_20001
|
144
|
-
rdf_type: NegativeParserTest
|
145
|
-
- !ruby/object:RdfHelper::TestCase
|
146
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/neg-single-quote.n3
|
147
|
-
description: single quoted strings are illegal
|
148
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/neg-single-quote.n3
|
149
|
-
name: n3_20002
|
150
|
-
rdf_type: NegativeParserTest
|
151
|
-
- !ruby/object:RdfHelper::TestCase
|
152
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/neg-thisadoc.n3
|
153
|
-
description: "The `this' keyword is no longer legal "
|
154
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/neg-thisadoc.n3
|
155
|
-
name: n3_20003
|
156
|
-
rdf_type: NegativeParserTest
|
157
|
-
- !ruby/object:RdfHelper::TestCase
|
158
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/neg-literal-predicate.n3
|
159
|
-
description: A predicate cannot be a literal, I hope
|
160
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/neg-literal-predicate.n3
|
161
|
-
name: n3_20004
|
162
|
-
rdf_type: NegativeParserTest
|
163
|
-
- !ruby/object:RdfHelper::TestCase
|
164
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/neg-formula-predicate.n3
|
165
|
-
description: A predicate cannot be a formula, I hope
|
166
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/neg-formula-predicate.n3
|
167
|
-
name: n3_20005
|
168
|
-
rdf_type: NegativeParserTest
|
169
|
-
- !ruby/object:RdfHelper::TestCase
|
170
|
-
about: http://www.w3.org/2000/10/swap/test/syntax/zero-objects.n3
|
171
|
-
description: A statement that says nothing at all
|
172
|
-
inputDocument: /Users/gregg/Projects/rdf-n3/spec/swap_test/syntax/zero-objects.n3
|
173
|
-
name: n3_20028
|
174
|
-
rdf_type: NegativeParserTest
|
@@ -1,15 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<rdf:RDF xmlns="http://www.w3.org/2000/10/swap/test/nodeID/classes.n3#"
|
5
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
6
|
-
|
7
|
-
<Thing rdf:nodeID="b1">
|
8
|
-
<color rdf:resource="#red"/>
|
9
|
-
</Thing>
|
10
|
-
|
11
|
-
<rdf:Description rdf:about="#yosi">
|
12
|
-
<eats rdf:nodeID="b1"/>
|
13
|
-
<likes rdf:nodeID="b1"/>
|
14
|
-
</rdf:Description>
|
15
|
-
</rdf:RDF>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
3
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
-
xmlns:ex="http://example.org/stuff/1.0/">
|
5
|
-
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"
|
6
|
-
dc:title="RDF/XML Syntax Specification (Revised)">
|
7
|
-
<ex:editor rdf:nodeID="abc"/>
|
8
|
-
</rdf:Description>
|
9
|
-
|
10
|
-
<rdf:Description rdf:nodeID="abc"
|
11
|
-
ex:fullName="Dave Beckett">
|
12
|
-
<ex:homePage rdf:resource="http://purl.org/net/dajobe/"/>
|
13
|
-
</rdf:Description>
|
14
|
-
</rdf:RDF>
|
15
|
-
|
data/spec/swap_test/norm/fix.rdf
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
2
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
3
|
-
xmlns:cal="http://nwalsh.com/pim/Palm/Calendar#"
|
4
|
-
xmlns:da="file:/home79536262/ndw/.xmlDate.rdf#"
|
5
|
-
xmlns:log="http://www.w3.org/2000/10/swap/log#"
|
6
|
-
xmlns:palm="http://nwalsh.com/pim/Palm/DateBook#"
|
7
|
-
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
|
8
|
-
|
9
|
-
<rdf:Description rdf:about="http://nwalsh.com/pim/Palm/Calendar#_2002_2">
|
10
|
-
<da:appointments rdf:parseType="Resource">
|
11
|
-
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/>
|
12
|
-
<rdf:_1 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id166"/>
|
13
|
-
<rdf:_2 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id172"/>
|
14
|
-
<rdf:_3 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id93"/>
|
15
|
-
<_4 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id193"/>
|
16
|
-
<_5 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id192"/>
|
17
|
-
<_6 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id104"/>
|
18
|
-
<_7 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id157"/>
|
19
|
-
<_8 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id32"/>
|
20
|
-
</da:appointments>
|
21
|
-
<cal:month>2</cal:month>
|
22
|
-
<cal:year>2002</cal:year>
|
23
|
-
<Seq rdf:parseType="Resource">
|
24
|
-
<_1 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_1"/>
|
25
|
-
<_2 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_2"/>
|
26
|
-
<_3 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_3"/>
|
27
|
-
<_4 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_4"/>
|
28
|
-
<_5 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_5"/>
|
29
|
-
</Seq>
|
30
|
-
</rdf:Description>
|
31
|
-
</RDF>
|
32
|
-
|
33
|
-
|
data/spec/swap_test/owl-ex.rdf
DELETED
@@ -1,150 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Derived from daml-ex.rdf which used old namespaces, but was an early common test
|
3
|
-
|
4
|
-
The following message was in this daml-ex.rdf, dunno what it refers to - tbl
|
5
|
-
@@@ WARNING THIS ATTRIBUES ATE SCREWED UP IN this daml-ex.rdf
|
6
|
-
-->
|
7
|
-
<rdf:RDF
|
8
|
-
xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
9
|
-
xmlns ="http://www.w3.org/2002/07/owl#"
|
10
|
-
xmlns:dpo ="http://www.w3.org/2002/07/owl#"
|
11
|
-
xmlns:ex ="#"
|
12
|
-
>
|
13
|
-
|
14
|
-
<Ontology about="">
|
15
|
-
<versionInfo>$Id: owl-ex.rdf,v 1.3 2004-06-21 16:53:34 syosi Exp $</versionInfo>
|
16
|
-
<comment>An example ontology</comment>
|
17
|
-
<imports resource="http://www.daml.org/2000/10/daml-ont"/>
|
18
|
-
</Ontology>
|
19
|
-
|
20
|
-
<Class ID="Animal">
|
21
|
-
<label>Animal</label>
|
22
|
-
<comment>This class of animals is illustrative of a number of
|
23
|
-
ontological idioms.</comment>
|
24
|
-
</Class>
|
25
|
-
|
26
|
-
<Class ID="Male">
|
27
|
-
<subClassOf resource="#Animal"/>
|
28
|
-
</Class>
|
29
|
-
|
30
|
-
<Class ID="Female">
|
31
|
-
<subClassOf resource="#Animal"/>
|
32
|
-
<disjointFrom resource="#Male"/>
|
33
|
-
</Class>
|
34
|
-
|
35
|
-
<Property ID="parent">
|
36
|
-
<domain resource="#Animal"/>
|
37
|
-
<cardinality>2</cardinality>
|
38
|
-
</Property>
|
39
|
-
|
40
|
-
<Class ID="Person">
|
41
|
-
<subClassOf resource="#Animal"/>
|
42
|
-
<restrictedBy>
|
43
|
-
<Restriction>
|
44
|
-
<onProperty resource="#parent"/>
|
45
|
-
<toClass resource="#Person"/>
|
46
|
-
</Restriction>
|
47
|
-
</restrictedBy>
|
48
|
-
</Class>
|
49
|
-
|
50
|
-
<Property ID="father">
|
51
|
-
<subProperty resource="#parent"/>
|
52
|
-
<range resource="#Man"/>
|
53
|
-
<cardinality>1</cardinality>
|
54
|
-
</Property>
|
55
|
-
|
56
|
-
<UniqueProperty ID="mother">
|
57
|
-
<subProperty resource="#parent"/>
|
58
|
-
<range resource="#Woman"/>
|
59
|
-
</UniqueProperty>
|
60
|
-
|
61
|
-
<!-- need an example for UnambiguousProperty -->
|
62
|
-
|
63
|
-
<Property ID="child">
|
64
|
-
<inverseOf resource="#parent"/>
|
65
|
-
</Property>
|
66
|
-
|
67
|
-
<TransitiveProperty ID="ancestor">
|
68
|
-
<label>ancestor</label>
|
69
|
-
</TransitiveProperty>
|
70
|
-
|
71
|
-
<TransitiveProperty ID="descendant"/>
|
72
|
-
|
73
|
-
<Property ID="mom">
|
74
|
-
<sameAs resource="#mother"/>
|
75
|
-
</Property>
|
76
|
-
|
77
|
-
<Property ID="occupation">
|
78
|
-
<maxCardinality>1</maxCardinality>
|
79
|
-
</Property>
|
80
|
-
|
81
|
-
<Class ID="Car">
|
82
|
-
<comment>no car is a person</comment>
|
83
|
-
<subClassOf>
|
84
|
-
<Class>
|
85
|
-
<complementOf resource="#Person"/>
|
86
|
-
</Class>
|
87
|
-
</subClassOf>
|
88
|
-
</Class>
|
89
|
-
|
90
|
-
<Class ID="Man">
|
91
|
-
<subClassOf resource="#Person"/>
|
92
|
-
<subClassOf resource="#Male"/>
|
93
|
-
</Class>
|
94
|
-
|
95
|
-
<Class ID="Woman">
|
96
|
-
<subClassOf resource="#Person"/>
|
97
|
-
<subClassOf resource="#Female"/>
|
98
|
-
</Class>
|
99
|
-
|
100
|
-
<Class about="#Person">
|
101
|
-
<comment>every person is a man or a woman</comment>
|
102
|
-
<disjointUnionOf parseType="rdf:collection">
|
103
|
-
<Class about="#Man"/>
|
104
|
-
<Class about="#Woman"/>
|
105
|
-
</disjointUnionOf>
|
106
|
-
</Class>
|
107
|
-
|
108
|
-
<Person ID="Adam">
|
109
|
-
<label>Adam</label>
|
110
|
-
<comment>Adam is a person.</comment>
|
111
|
-
</Person>
|
112
|
-
|
113
|
-
<Property ID="height">
|
114
|
-
<domain resource="#Person"/>
|
115
|
-
<range resource="#Height"/>
|
116
|
-
</Property>
|
117
|
-
|
118
|
-
<Class ID="Height">
|
119
|
-
<oneOf rdf:parseType="Collection">
|
120
|
-
<Height ID="short"/>
|
121
|
-
<Height ID="medium"/>
|
122
|
-
<Height ID="tall"/>
|
123
|
-
</oneOf>
|
124
|
-
</Class>
|
125
|
-
|
126
|
-
<Class ID="TallThing">
|
127
|
-
<restrictedBy>
|
128
|
-
<Restriction>
|
129
|
-
<onProperty resource="#height"/>
|
130
|
-
<toValue resource="#tall"/>
|
131
|
-
</Restriction>
|
132
|
-
</restrictedBy>
|
133
|
-
</Class>
|
134
|
-
|
135
|
-
<!-- @@ need example of hasValue qualification -->
|
136
|
-
|
137
|
-
<!-- @@ lack Disjoint example -->
|
138
|
-
|
139
|
-
<Class ID="TallMan">
|
140
|
-
<intersectionOf rdf:parseType="Collection">
|
141
|
-
<Class about="#TallThing"/>
|
142
|
-
<Class about="#Man"/>
|
143
|
-
</intersectionOf>
|
144
|
-
</Class>
|
145
|
-
|
146
|
-
<!-- @@ example of subProperty, label, comment, etc. from RDF/RDFS -->
|
147
|
-
|
148
|
-
</rdf:RDF>
|
149
|
-
|
150
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
@prefix : <http://www.daml.org/2000/12/daml+oil#> .
|
2
|
-
@prefix ani: <#> .
|
3
|
-
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
4
|
-
|
5
|
-
ani:Animal a rdfs:Class;
|
6
|
-
:restrictedBy [
|
7
|
-
a :Restriction;
|
8
|
-
:cardinality "2";
|
9
|
-
:onProperty ani:parent ];
|
10
|
-
rdfs:label "Animal" .
|
11
|
-
|
data/spec/swap_test/ref/bnode.n3
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
|
2
|
-
<http://www.w3.org/TR/rdf-syntax-grammar> <http://example.org/stuff/1.0/editor> [
|
3
|
-
<http://example.org/stuff/1.0/fullName> "Dave Beckett";
|
4
|
-
<http://example.org/stuff/1.0/homePage> <http://purl.org/net/dajobe/> ];
|
5
|
-
<http://purl.org/dc/elements/1.1/title> "RDF/XML Syntax Specification (Revised)" .
|
6
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<rdf:RDF xmlns="http://example.org/stuff/1.0/"
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
6
|
-
xmlns:ex="http://example.org/stuff/1.0/"
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
8
|
-
|
9
|
-
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
|
10
|
-
<editor rdf:parseType="Resource">
|
11
|
-
<fullName>Dave Beckett</fullName>
|
12
|
-
<homePage rdf:resource="http://purl.org/net/dajobe/"/>
|
13
|
-
</editor>
|
14
|
-
<dc:title>RDF/XML Syntax Specification (Revised)</dc:title>
|
15
|
-
</rdf:Description>
|
16
|
-
</rdf:RDF>
|