Comments (10)
Line 322 is a call to Kernel.open
.
Lines 322 to 330 in a083623
So, it seems the error is that the format of the path you're giving to Kernel.open
(/C:/Tools/rubyinstaller-3.1.1-1-x64/bin/1.csv-metadata.json
) needs to be something that Ruby on Windows can handle. Perhaps without the leading /
? I'm afraid I don't have a windows system available to me for testing.
from rdf.
Depending on the table reference in 1.csv-metadata.json, it could be that there's some errant code that expands it to a non-relative path, but it would likely use File.expand_path
. Sorry I can't be of more immediate help, but if you can identify where it needs to do something different, I'd be happy to look further.
from rdf.
That slash at the beginning of the path definitely seems suspect. Unfortunately, I do not code in ruby, so I am not able to debug this efficiently.
from rdf.
Maybe you could send a link to your 1.csv-metadata.json and a couple of lines from the referenced 1.csv, I might be able to see where the code is making assumptions that don't work on MS.
from rdf.
I have these files in C:\Tools
(but I guess any other windows path would do). I added the .txt
extension just so that it can be uploaded to GitHub. I use this in class, so it is not a long file. Just note that the same error is triggered also by just validating the CSV file, even without the JSON descriptor in place - as it crashes on the same error even when just trying to locate the descriptor.
from rdf.
It will be later next week before I can look into this properly, as I’m actually holiday for the next several days, and I need to figure out an MSWIn environment to use.
from rdf.
That is perfectly fine, thank you. Fortunately, there is a couple of workarounds:
- Use WSL (Windows Subsystem for Linux) or a Linux VM
- Upload the files somewhere they get an http(s) based URL - local webserver or GitHub, etc.
from rdf.
There is a fix that addresses this released in RDF.rb 3.2.7, but there is also a change on the develop branch of the rdf-tabular gem. If you can clone the rdf-tabular gem, do a bundle install
and try again from that project using bundle exec rdf serialize --input-format tabular 1.csv
to see if that fixes the issue.
The problem is that expressed using forward slashes, C:/Tools/rubyinstaller-3.1.1-1-x64/bin/1.csv-metadata.json
looks like an absolute URI using the "C" URI scheme. There is a non-standard provision for treating this as a component of the URI path instead (see RFC8089 Appendix E), so I added code for checking absolute or relative IRIs in RDF.rb to include this variation when working on the windows platform, and improved code in rdf-tabular for checking for relative IRIs.
from rdf.
@gkellogg Thank you, I can confirm that it works with the code from develop
.
from rdf.
Great, I’ll release an update of rdf-tabular tomorrow.
from rdf.
Related Issues (20)
- Ruby 2.7.1, URI.decode is obsolete
- bad behaviour in RDF::List HOT 7
- blank nodes reuse memory addresses, causing problems for persistent stores HOT 3
- Is there a "prettier" HOT 1
- Is there a more 'elegant' way to do this? HOT 3
- Strange "file missing" error with 3.1.14 release HOT 6
- Comparing two repositories HOT 2
- Verbose warnings on 2.7+ Ruby HOT 2
- 3.2.1 removes `RDF::Repository::Implementation::SerializedTransaction` HOT 5
- Is it possible to change the standard prefixes? HOT 7
- docmentation: how to create new vocabs, and langage-tagged strings in vocabs HOT 3
- Weird `require 'enumerator'` issue caused by this gem HOT 5
- change from DateTime < Literal to DateTime < Temporal breaks downstream customization HOT 5
- RDF::Vocabulary.find on RDF vocab returns RDF class HOT 5
- Ruby regexp warning: character class has duplicated range HOT 10
- Errno::EINVAL using `each_statement` with a LARGE, local NTriples file HOT 1
- RDF::Query#graph_name does not behave has documented HOT 3
- Error when using local files on Windows HOT 1
- FrozenError during concurrent activity in 3.2.11 HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdf.