rdf-turtle 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OGU0NjNjOTY4OGRhZDhlYzZlMjUxNWZlMGVkZTYzNmY1NmY3ODc4MQ==
5
- data.tar.gz: !binary |-
6
- YTVjMGZjNDI2YTBiNmQyZmY4OGMyNGFjOTkxNTVlYTYzODJmZDljMA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MWExYmZhNGI0Y2Y4YzE4NDQzY2ExNjlkZmExM2NlYzgzMjUxNWQwZTk4Mzhl
10
- YzY5NTgyZWM2NjQyZWY2NWIxNWMwNWRmNTRlYWYzMzhmMWQzNmY5YmExMjQ0
11
- ZDMyOTYzZTA5NzU1MTQxZDAyMmJjZWEyMDVkMGZjOWQwMmY1MzQ=
12
- data.tar.gz: !binary |-
13
- NDQxNzlmNGIwYjFlNmU3M2QwNGIwZmEyMWM4ZTBhMDJlMWU1OTg0YjQ4N2Ey
14
- NmEyNDlmYzZlY2Q3MmVhZjcxZDBhMmU4MjkyODRjOWVjMzE3YmU2MjE3ZWU5
15
- MmEzMjdmZDRhOTM0Mjk0Y2ZkYWI0YmQ1MjIwMGQyZjBhYjY1NGI=
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c68accbd136340b3f800311160c941f8e4a49918
4
+ data.tar.gz: cd836cf67206a0ac55fa42d24f4f86787cb9ccb9
5
+ SHA512:
6
+ metadata.gz: cc9d22cd4cf0409a63c54b0c7d866778f2edbedf3df8b1c0dc73b22ab2c95514c0fadbc02d4a20a509e04e956807355a6d859b9d23538e0d1bcdd0832ab820b9
7
+ data.tar.gz: 3598c50ae9c4d4d485b9da24ad59870d26034bd428a3b0914c6bff0708853d28b5df4fc83d674185685e67071a1eac87e2412fafe409966d4142374e62c04aa0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,4 +1,4 @@
1
- # This file is automatically generated by /Users/gregg/.rvm/gems/ruby-1.9.3-p392/bundler/gems/ebnf-af9a669d518f/bin/ebnf
1
+ # This file is automatically generated by /Users/gregg/.rvm/gems/ruby-1.9.3-p429/bundler/gems/ebnf-3f823030418a/bin/ebnf
2
2
  # BRANCH derived from etc/turtle.bnf
3
3
  module RDF::Turtle::Meta
4
4
  START = :turtleDoc
@@ -197,7 +197,6 @@ module RDF::Turtle::Meta
197
197
  :PNAME_NS => [:iri],
198
198
  },
199
199
  :predicateObjectList => {
200
- "A" => [:verb, :objectList, :_predicateObjectList_1],
201
200
  :IRIREF => [:verb, :objectList, :_predicateObjectList_1],
202
201
  :PNAME_LN => [:verb, :objectList, :_predicateObjectList_1],
203
202
  :PNAME_NS => [:verb, :objectList, :_predicateObjectList_1],
@@ -217,7 +216,6 @@ module RDF::Turtle::Meta
217
216
  :_predicateObjectList_4 => {
218
217
  "." => [],
219
218
  ";" => [],
220
- "A" => [:_predicateObjectList_5],
221
219
  :IRIREF => [:_predicateObjectList_5],
222
220
  :PNAME_LN => [:_predicateObjectList_5],
223
221
  :PNAME_NS => [:_predicateObjectList_5],
@@ -225,7 +223,6 @@ module RDF::Turtle::Meta
225
223
  "a" => [:_predicateObjectList_5],
226
224
  },
227
225
  :_predicateObjectList_5 => {
228
- "A" => [:verb, :objectList],
229
226
  :IRIREF => [:verb, :objectList],
230
227
  :PNAME_LN => [:verb, :objectList],
231
228
  :PNAME_NS => [:verb, :objectList],
@@ -296,7 +293,6 @@ module RDF::Turtle::Meta
296
293
  },
297
294
  :_triples_3 => {
298
295
  "." => [],
299
- "A" => [:predicateObjectList],
300
296
  :IRIREF => [:predicateObjectList],
301
297
  :PNAME_LN => [:predicateObjectList],
302
298
  :PNAME_NS => [:predicateObjectList],
@@ -325,7 +321,6 @@ module RDF::Turtle::Meta
325
321
  "[" => [:statement, :turtleDoc],
326
322
  },
327
323
  :verb => {
328
- "A" => ["A"],
329
324
  :IRIREF => [:predicate],
330
325
  :PNAME_LN => [:predicate],
331
326
  :PNAME_NS => [:predicate],
@@ -338,7 +333,6 @@ module RDF::Turtle::Meta
338
333
  ",",
339
334
  ".",
340
335
  ";",
341
- "A",
342
336
  :ANON,
343
337
  :BASE,
344
338
  :BLANK_NODE_LABEL,
@@ -411,7 +405,6 @@ module RDF::Turtle::Meta
411
405
  :blankNodePropertyList => [
412
406
  "["],
413
407
  :_blankNodePropertyList_1 => [
414
- "A",
415
408
  "a",
416
409
  :IRIREF,
417
410
  :PNAME_LN,
@@ -581,7 +574,6 @@ module RDF::Turtle::Meta
581
574
  :PNAME_LN,
582
575
  :PNAME_NS],
583
576
  :predicateObjectList => [
584
- "A",
585
577
  "a",
586
578
  :IRIREF,
587
579
  :PNAME_LN,
@@ -595,13 +587,11 @@ module RDF::Turtle::Meta
595
587
  ";"],
596
588
  :_predicateObjectList_4 => [
597
589
  :_eps,
598
- "A",
599
590
  "a",
600
591
  :IRIREF,
601
592
  :PNAME_LN,
602
593
  :PNAME_NS],
603
594
  :_predicateObjectList_5 => [
604
- "A",
605
595
  "a",
606
596
  :IRIREF,
607
597
  :PNAME_LN,
@@ -628,7 +618,6 @@ module RDF::Turtle::Meta
628
618
  ";"],
629
619
  :_predicateObjectList_8 => [
630
620
  :_eps,
631
- "A",
632
621
  "a",
633
622
  :IRIREF,
634
623
  :PNAME_LN,
@@ -708,20 +697,17 @@ module RDF::Turtle::Meta
708
697
  "["],
709
698
  :_triples_3 => [
710
699
  :_eps,
711
- "A",
712
700
  "a",
713
701
  :IRIREF,
714
702
  :PNAME_LN,
715
703
  :PNAME_NS],
716
704
  :_triples_4 => [
717
- "A",
718
705
  "a",
719
706
  :IRIREF,
720
707
  :PNAME_LN,
721
708
  :PNAME_NS],
722
709
  :_triples_5 => [
723
710
  :_eps,
724
- "A",
725
711
  "a",
726
712
  :IRIREF,
727
713
  :PNAME_LN,
@@ -759,7 +745,6 @@ module RDF::Turtle::Meta
759
745
  :PNAME_LN,
760
746
  :PNAME_NS],
761
747
  :verb => [
762
- "A",
763
748
  "a",
764
749
  :IRIREF,
765
750
  :PNAME_LN,
@@ -767,7 +752,6 @@ module RDF::Turtle::Meta
767
752
  }.freeze
768
753
  FOLLOW = {
769
754
  :BlankNode => [
770
- "A",
771
755
  "a",
772
756
  ")",
773
757
  ",",
@@ -835,7 +819,6 @@ module RDF::Turtle::Meta
835
819
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
836
820
  :STRING_LITERAL_LONG_QUOTE],
837
821
  :PrefixedName => [
838
- "A",
839
822
  "a",
840
823
  :IRIREF,
841
824
  :BLANK_NODE_LABEL,
@@ -1038,7 +1021,6 @@ module RDF::Turtle::Meta
1038
1021
  :PNAME_NS],
1039
1022
  :blankNodePropertyList => [
1040
1023
  ".",
1041
- "A",
1042
1024
  "a",
1043
1025
  ")",
1044
1026
  ",",
@@ -1062,7 +1044,6 @@ module RDF::Turtle::Meta
1062
1044
  :STRING_LITERAL_LONG_QUOTE],
1063
1045
  :_blankNodePropertyList_1 => [
1064
1046
  ".",
1065
- "A",
1066
1047
  "a",
1067
1048
  ")",
1068
1049
  ",",
@@ -1086,7 +1067,6 @@ module RDF::Turtle::Meta
1086
1067
  :STRING_LITERAL_LONG_QUOTE],
1087
1068
  :_blankNodePropertyList_2 => [
1088
1069
  ".",
1089
- "A",
1090
1070
  "a",
1091
1071
  ")",
1092
1072
  ",",
@@ -1109,7 +1089,6 @@ module RDF::Turtle::Meta
1109
1089
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
1110
1090
  :STRING_LITERAL_LONG_QUOTE],
1111
1091
  :collection => [
1112
- "A",
1113
1092
  "a",
1114
1093
  ")",
1115
1094
  ",",
@@ -1137,7 +1116,6 @@ module RDF::Turtle::Meta
1137
1116
  :_collection_2 => [
1138
1117
  ")"],
1139
1118
  :_collection_3 => [
1140
- "A",
1141
1119
  "a",
1142
1120
  ")",
1143
1121
  ",",
@@ -1163,7 +1141,6 @@ module RDF::Turtle::Meta
1163
1141
  :_collection_4 => [
1164
1142
  ")"],
1165
1143
  :_collection_5 => [
1166
- "A",
1167
1144
  "a",
1168
1145
  ")",
1169
1146
  ",",
@@ -1198,7 +1175,6 @@ module RDF::Turtle::Meta
1198
1175
  :PNAME_LN,
1199
1176
  :PNAME_NS],
1200
1177
  :iri => [
1201
- "A",
1202
1178
  "a",
1203
1179
  :IRIREF,
1204
1180
  :BLANK_NODE_LABEL,
@@ -1441,7 +1417,6 @@ module RDF::Turtle::Meta
1441
1417
  :PNAME_LN,
1442
1418
  :PNAME_NS],
1443
1419
  :subject => [
1444
- "A",
1445
1420
  "a",
1446
1421
  :IRIREF,
1447
1422
  :PNAME_LN,
@@ -72,15 +72,16 @@ module RDF::Turtle
72
72
  when 'A', 'a' then input[:resource] = RDF.type
73
73
  when 'true', 'false' then input[:resource] = RDF::Literal::Boolean.new(token.value)
74
74
  when '@base', '@prefix' then input[:lang] = token.value[1..-1]
75
+ when '.' then input[:terminated] = true
75
76
  else input[:string] = token.value
76
77
  end
77
78
  end
78
79
 
79
80
  terminal(:PREFIX, PREFIX) do |prod, token, input|
80
- input[:string_value] = token.value.downcase
81
+ input[:string_value] = token.value
81
82
  end
82
83
  terminal(:BASE, BASE) do |prod, token, input|
83
- input[:string_value] = token.value.downcase
84
+ input[:string_value] = token.value
84
85
  end
85
86
 
86
87
  terminal(:LANGTAG, LANGTAG) do |prod, token, input|
@@ -92,14 +93,32 @@ module RDF::Turtle
92
93
  production(:prefixID) do |input, current, callback|
93
94
  prefix = current[:prefix]
94
95
  iri = current[:resource]
96
+ lexical = current[:string_value]
97
+ terminated = current[:terminated]
95
98
  debug("prefixID") {"Defined prefix #{prefix.inspect} mapping to #{iri.inspect}"}
99
+ if lexical.start_with?('@') && lexical != '@prefix'
100
+ error(:prefixID, "should be downcased")
101
+ elsif lexical == '@prefix'
102
+ error(:prefixID, "directive not terminated") unless terminated
103
+ else
104
+ error(:prefixID, "directive should not be terminated") if terminated
105
+ end
96
106
  prefix(prefix, iri)
97
107
  end
98
108
 
99
109
  # [5] base set base_uri
100
110
  production(:base) do |input, current, callback|
101
111
  iri = current[:resource]
112
+ lexical = current[:string_value]
113
+ terminated = current[:terminated]
102
114
  debug("base") {"Defined base as #{iri}"}
115
+ if lexical.start_with?('@') && lexical != '@base'
116
+ error(:base, "should be downcased")
117
+ elsif lexical == '@base'
118
+ error(:base, "directive not terminated") unless terminated
119
+ else
120
+ error(:base, "directive should not be terminated") if terminated
121
+ end
103
122
  options[:base_uri] = iri
104
123
  end
105
124
 
metadata CHANGED
@@ -1,152 +1,118 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rdf-turtle
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.7
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.8
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-16 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2013-06-18 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: rdf
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ! '>='
18
- - !ruby/object:Gem::Version
19
- version: 1.0.7
20
- type: :runtime
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ! '>='
25
- - !ruby/object:Gem::Version
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
26
21
  version: 1.0.7
27
- - !ruby/object:Gem::Dependency
28
- name: ebnf
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: 0.3.0
34
22
  type: :runtime
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
25
+ name: ebnf
35
26
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ! '>='
39
- - !ruby/object:Gem::Version
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
40
31
  version: 0.3.0
41
- - !ruby/object:Gem::Dependency
32
+ type: :runtime
33
+ version_requirements: *id002
34
+ - !ruby/object:Gem::Dependency
42
35
  name: open-uri-cached
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ! '>='
46
- - !ruby/object:Gem::Version
47
- version: 0.0.5
48
- type: :development
49
36
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
37
+ requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
54
41
  version: 0.0.5
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: 2.12.0
62
42
  type: :development
43
+ version_requirements: *id003
44
+ - !ruby/object:Gem::Dependency
45
+ name: rspec
63
46
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
47
+ requirement: &id004 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
68
51
  version: 2.12.0
69
- - !ruby/object:Gem::Dependency
70
- name: rdf-isomorphic
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
52
  type: :development
53
+ version_requirements: *id004
54
+ - !ruby/object:Gem::Dependency
55
+ name: rdf-isomorphic
77
56
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: json-ld
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
57
+ requirement: &id005 !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - &id006
60
+ - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: "0"
90
63
  type: :development
64
+ version_requirements: *id005
65
+ - !ruby/object:Gem::Dependency
66
+ name: json-ld
91
67
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: yard
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ! '>='
102
- - !ruby/object:Gem::Version
103
- version: 0.8.3
68
+ requirement: &id007 !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - *id006
104
71
  type: :development
72
+ version_requirements: *id007
73
+ - !ruby/object:Gem::Dependency
74
+ name: yard
105
75
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
76
+ requirement: &id008 !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
110
80
  version: 0.8.3
111
- - !ruby/object:Gem::Dependency
112
- name: rdf-spec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '1.0'
118
81
  type: :development
82
+ version_requirements: *id008
83
+ - !ruby/object:Gem::Dependency
84
+ name: rdf-spec
119
85
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ! '>='
123
- - !ruby/object:Gem::Version
124
- version: '1.0'
125
- - !ruby/object:Gem::Dependency
126
- name: rake
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ! '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
86
+ requirement: &id009 !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "1.0"
132
91
  type: :development
92
+ version_requirements: *id009
93
+ - !ruby/object:Gem::Dependency
94
+ name: rake
133
95
  prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ! '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
96
+ requirement: &id010 !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - *id006
99
+ type: :development
100
+ version_requirements: *id010
139
101
  description: RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.
140
102
  email: public-rdf-ruby@w3.org
141
103
  executables: []
104
+
142
105
  extensions: []
106
+
143
107
  extra_rdoc_files: []
144
- files:
108
+
109
+ files:
145
110
  - AUTHORS
146
111
  - README.md
147
112
  - History
148
113
  - UNLICENSE
149
114
  - VERSION
115
+ - lib/rdf/turtle.rb
150
116
  - lib/rdf/turtle/format.rb
151
117
  - lib/rdf/turtle/freebase_reader.rb
152
118
  - lib/rdf/turtle/meta.rb
@@ -154,30 +120,31 @@ files:
154
120
  - lib/rdf/turtle/terminals.rb
155
121
  - lib/rdf/turtle/version.rb
156
122
  - lib/rdf/turtle/writer.rb
157
- - lib/rdf/turtle.rb
158
123
  homepage: http://ruby-rdf.github.com/rdf-turtle
159
- licenses:
124
+ licenses:
160
125
  - Public Domain
161
126
  metadata: {}
127
+
162
128
  post_install_message:
163
129
  rdoc_options: []
164
- require_paths:
130
+
131
+ require_paths:
165
132
  - lib
166
- required_ruby_version: !ruby/object:Gem::Requirement
167
- requirements:
168
- - - ! '>='
169
- - !ruby/object:Gem::Version
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
170
137
  version: 1.8.1
171
- required_rubygems_version: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - ! '>='
174
- - !ruby/object:Gem::Version
175
- version: '0'
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - *id006
176
141
  requirements: []
142
+
177
143
  rubyforge_project: rdf-turtle
178
144
  rubygems_version: 2.0.3
179
145
  signing_key:
180
146
  specification_version: 4
181
147
  summary: Turtle reader/writer for Ruby.
182
148
  test_files: []
149
+
183
150
  has_rdoc: false