rdf-n3 0.3.1.2 → 0.3.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.1.3
2
+ -----
3
+ * Normalize language tags to lower case (only when canonicalizing). SPARQL specs expect the reader
4
+ to not screw with the language case for equivalence tests.
5
+
1
6
  0.3.1.2
2
7
  -----
3
8
  * Normalize language tags to lower case.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1.2
1
+ 0.3.1.3
@@ -269,7 +269,8 @@ module RDF::N3
269
269
  def literalFinish
270
270
  lit = @prod_data.pop
271
271
  content = RDF::NTriples.unescape(lit[:string])
272
- language = lit[:langcode].downcase if lit[:langcode]
272
+ language = lit[:langcode] if lit[:langcode]
273
+ language = language.downcase if language && canonicalize?
273
274
  datatype = lit[:symbol]
274
275
 
275
276
  lit = RDF::Literal.new(content, :language => language, :datatype => datatype, :validate => validate?, :canonicalize => canonicalize?)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rdf-n3}
8
- s.version = "0.3.1.2"
8
+ s.version = "0.3.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gregg Kellogg"]
12
- s.date = %q{2011-03-30}
12
+ s.date = %q{2011-04-02}
13
13
  s.description = %q{RDF::N3 is an Notation-3 (n3-rdf) parser for Ruby using the RDF.rb library suite.}
14
14
  s.email = %q{gregg@kellogg-assoc.com}
15
15
  s.extra_rdoc_files = [
@@ -54,7 +54,6 @@ Gem::Specification.new do |s|
54
54
  "spec/cwm_test.rb",
55
55
  "spec/format_spec.rb",
56
56
  "spec/matchers.rb",
57
- "spec/n3reader_spec.rb",
58
57
  "spec/rdfcore/Manifest.rdf",
59
58
  "spec/rdfcore/amp-in-url/test001.nt",
60
59
  "spec/rdfcore/amp-in-url/test001.rdf",
@@ -407,6 +406,7 @@ Gem::Specification.new do |s|
407
406
  "spec/rdfcore/xmlsch-02/test001.rdf",
408
407
  "spec/rdfcore/xmlsch-02/test002.rdf",
409
408
  "spec/rdfcore/xmlsch-02/test003.rdf",
409
+ "spec/reader_spec.rb",
410
410
  "spec/spec.opts",
411
411
  "spec/spec_helper.rb",
412
412
  "spec/swap_spec.rb",
@@ -424,7 +424,7 @@ Gem::Specification.new do |s|
424
424
  "spec/cwm_test.rb",
425
425
  "spec/format_spec.rb",
426
426
  "spec/matchers.rb",
427
- "spec/n3reader_spec.rb",
427
+ "spec/reader_spec.rb",
428
428
  "spec/spec_helper.rb",
429
429
  "spec/swap_spec.rb",
430
430
  "spec/swap_test.rb",
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env sh
2
- rsync -azv doc/yard/ gkellogg@rubyforge.org:/var/www/gforge-projects/rdf/n3/
2
+ rsync -azv -e "ssh -i /Users/gregg/.ssh/id_dsa" doc/yard/ gkellogg@rubyforge.org:/var/www/gforge-projects/rdf/n3/
@@ -264,7 +264,7 @@ describe "RDF::N3::Reader" do
264
264
  it "should allow mixed-case language" do
265
265
  n3doc = %(:x2 :p "xyz"@EN .)
266
266
  statement = parse(n3doc).statements.first
267
- statement.object.to_ntriples.should == %("xyz"@en)
267
+ statement.object.to_ntriples.should == %("xyz"@EN)
268
268
  end
269
269
 
270
270
  it "should create typed literals" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rdf-n3
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.1.2
5
+ version: 0.3.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gregg Kellogg
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-30 00:00:00 -07:00
13
+ date: 2011-04-02 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -148,7 +148,6 @@ files:
148
148
  - spec/cwm_test.rb
149
149
  - spec/format_spec.rb
150
150
  - spec/matchers.rb
151
- - spec/n3reader_spec.rb
152
151
  - spec/rdfcore/Manifest.rdf
153
152
  - spec/rdfcore/amp-in-url/test001.nt
154
153
  - spec/rdfcore/amp-in-url/test001.rdf
@@ -501,6 +500,7 @@ files:
501
500
  - spec/rdfcore/xmlsch-02/test001.rdf
502
501
  - spec/rdfcore/xmlsch-02/test002.rdf
503
502
  - spec/rdfcore/xmlsch-02/test003.rdf
503
+ - spec/reader_spec.rb
504
504
  - spec/spec.opts
505
505
  - spec/spec_helper.rb
506
506
  - spec/swap_spec.rb
@@ -541,7 +541,7 @@ test_files:
541
541
  - spec/cwm_test.rb
542
542
  - spec/format_spec.rb
543
543
  - spec/matchers.rb
544
- - spec/n3reader_spec.rb
544
+ - spec/reader_spec.rb
545
545
  - spec/spec_helper.rb
546
546
  - spec/swap_spec.rb
547
547
  - spec/swap_test.rb