Created
November 14, 2010 00:25
-
-
Save bhuga/675777 to your computer and use it in GitHub Desktop.
Local copy of the file works, fetching directly over remote fails. Something wrong with standard library?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ip-10-251-122-82:/home/lavender/spocq/src/test/rspec/tests/data-r2/i18n# curl http://tmp.datagraph.org.s3.amazonaws.com/import/33f361f0-d1b2-012d-f3cf-0023df827da6 > curl | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
113 795 113 795 0 0 47522 0 --:--:-- --:--:-- --:--:-- 56785 | |
root@ip-10-251-122-82:/home/lavender/spocq/src/test/rspec/tests/data-r2/i18n# diff curl normalization-01.ttl | |
root@ip-10-251-122-82:/home/lavender/spocq/src/test/rspec/tests/data-r2/i18n# ls -al curl normalization-01.ttl | |
-rw-r--r-- 1 root root 795 2010-11-14 00:21 curl | |
-rw-r--r-- 1 lavender lavender 795 2010-10-29 05:46 normalization-01.ttl | |
root@ip-10-251-122-82:/home/lavender/spocq/src/test/rspec/tests/data-r2/i18n# irb1.9 | |
irb(main):001:0> require 'rdf/n3' | |
=> true | |
irb(main):002:0> RDF::Repository.load('./normalization-01.ttl', :format => :n3) | |
=> #<RDF::Repository:0x46b749e()> | |
irb(main):003:0> RDF::Repository.load('http://tmp.datagraph.org.s3.amazonaws.com/import/33f361f0-d1b2-012d-f3cf-0023df827da6', :format => :n3) | |
Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8 | |
from /var/lib/gems/1.9.1/gems/treetop-1.4.8/lib/treetop/runtime/compiled_parser.rb:97:in `index' | |
from /var/lib/gems/1.9.1/gems/treetop-1.4.8/lib/treetop/runtime/compiled_parser.rb:97:in `has_terminal?' | |
from (eval):85:in `_nt_barename_start' | |
from (eval):46:in `_nt_barename' | |
from (eval):1504:in `_nt_nprefix' | |
from (eval):744:in `_nt_declaration' | |
from (eval):2609:in `_nt_statement' | |
from (eval):2666:in `block in _nt_statements' | |
from (eval):2659:in `loop' | |
from (eval):2659:in `_nt_statements' | |
from (eval):20:in `_nt_document' | |
from /var/lib/gems/1.9.1/gems/treetop-1.4.8/lib/treetop/runtime/compiled_parser.rb:18:in `parse' | |
from /var/lib/gems/1.9.1/gems/rdf-n3-0.2.3.2/lib/rdf/n3/reader.rb:76:in `each_statement' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/mixin/writable.rb:124:in `insert_statements' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/mixin/mutable.rb:50:in `block in load' | |
from /var/lib/gems/1.9.1/gems/rdf-n3-0.2.3.2/lib/rdf/n3/reader.rb:56:in `call' | |
... 5 levels... | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/reader.rb:114:in `block in open' | |
from /usr/lib/ruby/1.9.1/open-uri.rb:150:in `open_uri' | |
from /usr/lib/ruby/1.9.1/open-uri.rb:669:in `open' | |
from /usr/lib/ruby/1.9.1/open-uri.rb:33:in `open' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/util/file.rb:28:in `open_file' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/reader.rb:109:in `open' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/mixin/mutable.rb:40:in `load' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/repository.rb:78:in `block (2 levels) in load' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/repository.rb:77:in `each' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/repository.rb:77:in `block in load' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/repository.rb:108:in `call' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/repository.rb:108:in `initialize' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/repository.rb:76:in `new' | |
from /var/lib/gems/1.9.1/gems/rdf-0.2.4.pre2/lib/rdf/repository.rb:76:in `load' | |
from (irb):3 | |
from /usrirb(main):005:0* | |
RDF::Repository.load('curl', :format => :n3) | |
=> #<RDF::Repository:0x459541c()> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment