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
@@ -1,108 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<rdf:RDF xmlns="http://www.w3.org/2002/07/owl#"
|
5
|
-
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
6
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
7
|
-
xmlns:t="http://example.com/test#">
|
8
|
-
|
9
|
-
<rdf:Description rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil">
|
10
|
-
<t:verb0 rdf:resource="http://example.com/test#object0"/>
|
11
|
-
</rdf:Description>
|
12
|
-
|
13
|
-
<rdf:Description>
|
14
|
-
<rdf:first>subj1</rdf:first>
|
15
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
16
|
-
<t:verb1 rdf:resource="http://example.com/test#object1"/>
|
17
|
-
</rdf:Description>
|
18
|
-
|
19
|
-
<rdf:Description>
|
20
|
-
<rdf:first>subj2a</rdf:first>
|
21
|
-
<rdf:rest rdf:parseType="Resource">
|
22
|
-
<rdf:first>subj2b</rdf:first>
|
23
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
24
|
-
</rdf:rest>
|
25
|
-
<t:verb2 rdf:resource="http://example.com/test#object2"/>
|
26
|
-
</rdf:Description>
|
27
|
-
|
28
|
-
<rdf:Description rdf:about="http://example.com/test#a_threebrackets">
|
29
|
-
<sameAs rdf:parseType="Resource">
|
30
|
-
<rdf:first rdf:parseType="Resource">
|
31
|
-
<rdf:first rdf:parseType="Resource">
|
32
|
-
<rdf:first rdf:resource="http://example.com/test#fff"/>
|
33
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
34
|
-
</rdf:first>
|
35
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
36
|
-
</rdf:first>
|
37
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
38
|
-
</sameAs>
|
39
|
-
</rdf:Description>
|
40
|
-
|
41
|
-
<rdf:Description rdf:about="http://example.com/test#emptyList">
|
42
|
-
<sameAs rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
43
|
-
</rdf:Description>
|
44
|
-
|
45
|
-
<rdf:Description rdf:about="http://example.com/test#listOf2Empties">
|
46
|
-
<sameAs rdf:parseType="Resource">
|
47
|
-
<rdf:first rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
48
|
-
<rdf:rest rdf:parseType="Resource">
|
49
|
-
<rdf:first rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
50
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
51
|
-
</rdf:rest>
|
52
|
-
</sameAs>
|
53
|
-
</rdf:Description>
|
54
|
-
|
55
|
-
<rdf:Description rdf:about="http://example.com/test#nested">
|
56
|
-
<sameAs rdf:parseType="Resource">
|
57
|
-
<rdf:first rdf:resource="http://example.com/test#first"/>
|
58
|
-
<rdf:rest rdf:parseType="Resource">
|
59
|
-
<rdf:first rdf:resource="http://example.com/test#second"/>
|
60
|
-
<rdf:rest rdf:parseType="Resource">
|
61
|
-
<rdf:first rdf:parseType="Resource">
|
62
|
-
<rdf:first rdf:resource="http://example.com/test#left3"/>
|
63
|
-
<rdf:rest rdf:parseType="Resource">
|
64
|
-
<rdf:first rdf:resource="http://example.com/test#right3"/>
|
65
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
66
|
-
</rdf:rest>
|
67
|
-
</rdf:first>
|
68
|
-
<rdf:rest rdf:parseType="Resource">
|
69
|
-
<rdf:first rdf:resource="http://example.com/test#fourth"/>
|
70
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
71
|
-
</rdf:rest>
|
72
|
-
</rdf:rest>
|
73
|
-
</rdf:rest>
|
74
|
-
</sameAs>
|
75
|
-
</rdf:Description>
|
76
|
-
|
77
|
-
<rdf:Description rdf:about="http://example.com/test#threeItems">
|
78
|
-
<sameAs rdf:parseType="Resource">
|
79
|
-
<rdf:first rdf:resource="http://example.com/test#b"/>
|
80
|
-
<rdf:rest rdf:parseType="Resource">
|
81
|
-
<rdf:first rdf:resource="http://example.com/test#c"/>
|
82
|
-
<rdf:rest rdf:parseType="Resource">
|
83
|
-
<rdf:first rdf:resource="http://example.com/test#d"/>
|
84
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
85
|
-
</rdf:rest>
|
86
|
-
</rdf:rest>
|
87
|
-
</sameAs>
|
88
|
-
</rdf:Description>
|
89
|
-
|
90
|
-
<rdf:Description rdf:about="http://example.com/test#twoAnons">
|
91
|
-
<sameAs rdf:parseType="Resource">
|
92
|
-
<rdf:first rdf:parseType="Resource">
|
93
|
-
<rdf:type rdf:resource="http://example.com/test#mother"/>
|
94
|
-
</rdf:first>
|
95
|
-
<rdf:rest rdf:parseType="Resource">
|
96
|
-
<rdf:first rdf:parseType="Resource">
|
97
|
-
<rdf:type rdf:resource="http://example.com/test#father"/>
|
98
|
-
</rdf:first>
|
99
|
-
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
|
100
|
-
</rdf:rest>
|
101
|
-
</sameAs>
|
102
|
-
</rdf:Description>
|
103
|
-
|
104
|
-
<rdf:Description>
|
105
|
-
<t:anonVerb12 rdf:resource="http://example.com/test#anonObj12"/>
|
106
|
-
<t:verb12 rdf:resource="http://example.com/test#obj12"/>
|
107
|
-
</rdf:Description>
|
108
|
-
</rdf:RDF>
|
data/spec/swap_test/ref/lists.n3
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
@prefix : <test#> .
|
2
|
-
|
3
|
-
() :verb0 :object0 .
|
4
|
-
( "subj1" )
|
5
|
-
:verb1 :object1 .
|
6
|
-
( "subj2a"
|
7
|
-
"subj2b" )
|
8
|
-
:verb2 :object2 .
|
9
|
-
( 1 )
|
10
|
-
<#linksEqualLists> (
|
11
|
-
1 ) .
|
12
|
-
|
13
|
-
:emptyList = () .
|
14
|
-
|
15
|
-
:listOf2Empties = (
|
16
|
-
()
|
17
|
-
() ) .
|
18
|
-
|
19
|
-
:nested = (
|
20
|
-
:first
|
21
|
-
:second
|
22
|
-
(
|
23
|
-
:left3
|
24
|
-
:right3 )
|
25
|
-
:fourth ) .
|
26
|
-
|
27
|
-
:threeItems = (
|
28
|
-
:b
|
29
|
-
:c
|
30
|
-
:d ) .
|
31
|
-
|
32
|
-
:twoAnons = (
|
33
|
-
[
|
34
|
-
a :mother ]
|
35
|
-
[
|
36
|
-
a :father ] ) .
|
37
|
-
|
38
|
-
:twoFormulae = (
|
39
|
-
{:a a :mother .
|
40
|
-
}
|
41
|
-
{:b a :father .
|
42
|
-
} ) .
|
43
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
@prefix : <#> .
|
2
|
-
|
3
|
-
""" @prefix : <http://www.w3.org/2000/10/swap/test/crypto/acc.n3#> .
|
4
|
-
@prefix crypto: <http://www.w3.org/2000/10/swap/crypto#> .
|
5
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
6
|
-
@prefix os: <http://www.w3.org/2000/10/swap/os#> .
|
7
|
-
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
8
|
-
|
9
|
-
\"""
|
10
|
-
MzE5MDcKCjM2ODkyMzAyMDE1MzgwMjY2NTU5MzgzNjMyMDQyOTM1Mjc4MDk3MzAwNzE4ODMzOTY3
|
11
|
-
NTY3NTk1Njg5MjE2Mjk0NzkyMzUyNTQ3OTQzMjI4MjM2MDEwNjQwMTAyMjcxODk0OTY2MzgzNjQ1
|
12
|
-
NDQyODQ5Njg3MzUzOTM2NzAyMTI5NDgxNDg4MzIxMzUyODEyMTc1NjIxNjE0NjE5Mzk2MDY4MjE2
|
13
|
-
Nzk1MzY0NjAxNjE0MzM5NDYzOTIyMDMwMDE4NTEyODMyMTg0NDIyMzI3MzcxNzE5MjcxMzY0ODY1
|
14
|
-
MjEzMzU1OTc4Nzk0OTIyMzQ4NDU5NTUxMTQ2MTcyNjE0MTk3ODI2NTg0NDA2Mzg2OTQwMTcwNTE4
|
15
|
-
OTY0MDQzNzMxNzEyODc1OTk3NjAyNjE4ODUzNDQ1Mw=3D=3D
|
16
|
-
\""" a :RequestKey;
|
17
|
-
:authorityName <Tiina>;
|
18
|
-
:junk "327462sjsdfjsakdhfkjsafd32164321" .
|
19
|
-
""" a :test_string .
|
20
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
@prefix : <#> .
|
2
|
-
|
3
|
-
"Le chat"@fr :is "The french phrase 'Le chat'" .
|
4
|
-
|
5
|
-
"800/600"^^<http://example.com/types#rational> :is "800/600 with datatype http://example.com/types#rational" .
|
6
|
-
|
7
|
-
2.0 :is "The number 2.0",
|
8
|
-
"The number 2.0 expressed with extra trailing zeroes" .
|
9
|
-
|
10
|
-
2000.0e+00 :is "The double precision floating point 2.0e3" .
|
11
|
-
|
12
|
-
-2 :is "The integer -2" .
|
13
|
-
|
14
|
-
0 :is "Zero" .
|
15
|
-
|
16
|
-
2 :is "The integer 2",
|
17
|
-
"The integer 2 expressed with leading zeroes" .
|
18
|
-
|
data/spec/swap_test/ref/path1.n3
DELETED
data/spec/swap_test/ref/path2.n3
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
@prefix : <#> .
|
2
|
-
@prefix fam: <http://www.daml.example.org/2001/03/fam#> .
|
3
|
-
@prefix foo: <foo.n3#> .
|
4
|
-
@prefix lang: <http://www.daml.example.org/2000/10/lang#> .
|
5
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
6
|
-
@prefix s: <http://www.w3.org/2000/01/rdf-schema#> .
|
7
|
-
|
8
|
-
@forSome :_g0,
|
9
|
-
:_g1,
|
10
|
-
:_g2,
|
11
|
-
:_g3 .
|
12
|
-
( "1"
|
13
|
-
"2" )
|
14
|
-
math:sum [
|
15
|
-
a foo:THREE ] .
|
16
|
-
( :_g2
|
17
|
-
[
|
18
|
-
<d> <c> ] )
|
19
|
-
:relatedTo (
|
20
|
-
:_g3 ) .
|
21
|
-
|
22
|
-
<a> <b> :_g2 .
|
23
|
-
|
24
|
-
<e> <f> [
|
25
|
-
<g> :_g3 ] .
|
26
|
-
|
27
|
-
foo:admires foo:converse :_g1 .
|
28
|
-
|
29
|
-
foo:albert fam:mother [
|
30
|
-
:_g0 foo:auntieAnne ];
|
31
|
-
:_g1 foo:grumpy .
|
32
|
-
|
33
|
-
foo:mentor foo:inverse :_g0 .
|
34
|
-
|
35
|
-
foo:x s:label [
|
36
|
-
lang:eng "Help!" ],
|
37
|
-
[
|
38
|
-
lang:fr "foo" ] .
|
39
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<rdf:RDF xmlns="http://nwalsh.com/pim/Palm/Calendar#"
|
5
|
-
xmlns:cal="http://nwalsh.com/pim/Palm/Calendar#"
|
6
|
-
xmlns:da="file:/home79536262/ndw/.xmlDate.rdf#"
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
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
|
-
<rdf:_4 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id193"/>
|
16
|
-
<rdf:_5 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id192"/>
|
17
|
-
<rdf:_6 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id104"/>
|
18
|
-
<rdf:_7 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id157"/>
|
19
|
-
<rdf:_8 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id32"/>
|
20
|
-
</da:appointments>
|
21
|
-
<month>2</month>
|
22
|
-
<year>2002</year>
|
23
|
-
<rdf:Seq rdf:parseType="Resource">
|
24
|
-
<rdf:_1 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_1"/>
|
25
|
-
<rdf:_2 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_2"/>
|
26
|
-
<rdf:_3 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_3"/>
|
27
|
-
<rdf:_4 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_4"/>
|
28
|
-
<rdf:_5 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_5"/>
|
29
|
-
</rdf:Seq>
|
30
|
-
</rdf:Description>
|
31
|
-
</rdf:RDF>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<rdf:RDF xmlns:cal="http://nwalsh.com/pim/Palm/Calendar#"
|
5
|
-
xmlns:da="file:/home79536262/ndw/.xmlDate.rdf#"
|
6
|
-
xmlns:log="http://www.w3.org/2000/10/swap/log#"
|
7
|
-
xmlns:palm="http://nwalsh.com/pim/Palm/DateBook#"
|
8
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
9
|
-
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
|
10
|
-
|
11
|
-
<rdf:Description rdf:about="http://nwalsh.com/pim/Palm/Calendar#_2002_2">
|
12
|
-
<da:appointments rdf:parseType="Resource">
|
13
|
-
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/>
|
14
|
-
<rdf:_1 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id166"/>
|
15
|
-
<rdf:_2 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id172"/>
|
16
|
-
<rdf:_3 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id93"/>
|
17
|
-
<rdf:_4 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id193"/>
|
18
|
-
<rdf:_5 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id192"/>
|
19
|
-
<rdf:_6 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id104"/>
|
20
|
-
<rdf:_7 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id157"/>
|
21
|
-
<rdf:_8 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id32"/>
|
22
|
-
</da:appointments>
|
23
|
-
<cal:month>2</cal:month>
|
24
|
-
<cal:year>2002</cal:year>
|
25
|
-
<rdf:Seq rdf:parseType="Resource">
|
26
|
-
<rdf:_1 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_1"/>
|
27
|
-
<rdf:_2 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_2"/>
|
28
|
-
<rdf:_3 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_3"/>
|
29
|
-
<rdf:_4 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_4"/>
|
30
|
-
<rdf:_5 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_5"/>
|
31
|
-
</rdf:Seq>
|
32
|
-
</rdf:Description>
|
33
|
-
</rdf:RDF>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<rdf:RDF xmlns="http://nwalsh.com/pim/Palm/Calendar#"
|
5
|
-
xmlns:cal="http://nwalsh.com/pim/Palm/Calendar#"
|
6
|
-
xmlns:da="file:/home79536262/ndw/.xmlDate.rdf#"
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
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
|
-
<rdf:_4 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id193"/>
|
16
|
-
<rdf:_5 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id192"/>
|
17
|
-
<rdf:_6 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id104"/>
|
18
|
-
<rdf:_7 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id157"/>
|
19
|
-
<rdf:_8 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id32"/>
|
20
|
-
</da:appointments>
|
21
|
-
<month>2</month>
|
22
|
-
<year>2002</year>
|
23
|
-
<rdf:Seq rdf:parseType="Resource">
|
24
|
-
<rdf:_1 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_1"/>
|
25
|
-
<rdf:_2 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_2"/>
|
26
|
-
<rdf:_3 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_3"/>
|
27
|
-
<rdf:_4 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_4"/>
|
28
|
-
<rdf:_5 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_5"/>
|
29
|
-
</rdf:Seq>
|
30
|
-
</rdf:Description>
|
31
|
-
</rdf:RDF>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<rdf:RDF xmlns="file://www.example.org/meeting_organization#"
|
5
|
-
xmlns:m="file://www.example.org/meeting_organization#"
|
6
|
-
xmlns:p="file://www.example.org/personal_details#"
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
8
|
-
|
9
|
-
<rdf:Description rdf:about="file://meetings.example.com/cal#m1">
|
10
|
-
<homePage rdf:resource="file://meetings.example.com/m1/hp"/>
|
11
|
-
</rdf:Description>
|
12
|
-
|
13
|
-
<rdf:Description rdf:about="file://www.example.org/people#fred">
|
14
|
-
<attending rdf:resource="file://meetings.example.com/cal#m1"/>
|
15
|
-
<p:GivenName>Fred</p:GivenName>
|
16
|
-
<p:hasEmail rdf:resource="mailto:fred@example.com"/>
|
17
|
-
</rdf:Description>
|
18
|
-
</rdf:RDF>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
@prefix : <#> .
|
2
|
-
|
3
|
-
<> <http://purl.org/dc/elements/1.1/description> """testing string parsing in N3.
|
4
|
-
Hmm... how much of this is in the primer?
|
5
|
-
How much should be there?
|
6
|
-
@@ Holding off on unicode until support
|
7
|
-
in python is sufficiently deployed
|
8
|
-
(e.g. python on tux doesn't grok,
|
9
|
-
nor does pythonwin on TimBL's laptop).
|
10
|
-
""" .
|
11
|
-
|
12
|
-
:martin :surname "D\u00FCrst" .
|
13
|
-
|
14
|
-
:x :prop "simple string" .
|
15
|
-
|
16
|
-
:y :prop """triple quoted
|
17
|
-
string with newlines in it.""" .
|
18
|
-
|
19
|
-
:z :prop """string with " escaped quote marks""" .
|
20
|
-
|
21
|
-
:zz :escapes "\\\"\a\b\f\r\t\v" .
|
22
|
-
|
@@ -1,23 +0,0 @@
|
|
1
|
-
@prefix : <#> .
|
2
|
-
|
3
|
-
<> <http://purl.org/dc/elements/1.1/description> """testing string parsing in N3.
|
4
|
-
Hmm... how much of this is in the primer?
|
5
|
-
How much should be there?
|
6
|
-
@@ Holding off on unicode until support
|
7
|
-
in python is sufficiently deployed
|
8
|
-
(e.g. python on tux doesn't grok,
|
9
|
-
nor does pythonwin on TimBL's laptop).
|
10
|
-
|
11
|
-
""" .
|
12
|
-
|
13
|
-
:martin :surname "Dürst" .
|
14
|
-
|
15
|
-
:x :prop "simple string" .
|
16
|
-
|
17
|
-
:y :prop """triple quoted
|
18
|
-
string with newlines in it.""" .
|
19
|
-
|
20
|
-
:z :prop """string with " escaped quote marks""" .
|
21
|
-
|
22
|
-
:zz :escapes "\\\"\a\b\f\r\t\v" .
|
23
|
-
|