Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using local files on Windows #443

Open
jakubklimek opened this issue Dec 4, 2023 · 14 comments
Open

Error when using local files on Windows #443

jakubklimek opened this issue Dec 4, 2023 · 14 comments

Comments

@jakubklimek
Copy link

jakubklimek commented Dec 4, 2023

When trying to work with CSV on the Web (rdf-tabular) on Windows, I get an error connected to how Windows paths are processed:

> rdf validate --input-format tabular 1.csv-metadata.json

C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:335:in `rescue in open_file': No such file or directory @ rb_sysopen - C%3A/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/1.csv (RDF::ReaderError)

Note that the file C:\Users\jakub\Downloads\rubyinstaller-3.2.2-1-x64\rubyinstaller-3.2.2-1-x64\bin\1.csv actually exists, but also note the path in the error starting with C%3A.

This may be related to #435 and may be reproduced with the same files as in #435 (comment)

Version info:

>ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]
>rdf --version
3.3.1

This definitely worked a year ago - and works fine with these versions:

gem install rdf:3.2.7 rdf-xsd:3.2.1 rdf-vocab:3.2.7 rdf-tabular:3.2.1

Full error:

C:\Users\jakub\Downloads\rubyinstaller-3.2.2-1-x64\rubyinstaller-3.2.2-1-x64\bin>rdf validate --input-format tabular 1.csv-metadata.json
C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:335:in `rescue in open_file': No such file or directory @ rb_sysopen - C%3A/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/1.csv (RDF::ReaderError)
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:317:in `open_file'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:221:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:218:in `block (2 levels) in each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1347:in `block in each_table'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1346:in `each'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1346:in `each_table'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:208:in `block in each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:264:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:198:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:177:in `each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:554:in `block in exec'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:157:in `block (2 levels) in initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:264:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:198:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:319:in `instance_eval'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:319:in `initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:76:in `initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:244:in `new'        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:244:in `block in open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:340:in `open_file'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:221:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:212:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:708:in `block in parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:707:in `each'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:707:in `parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:553:in `exec'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/bin/rdf:13:in `<top (required)>'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/rdf:32:in `load'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/rdf:32:in `<main>'
C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:335:in `rescue in open_file': No such file or directory @ rb_sysopen - C%3A/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/1.csv (IOError)
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:317:in `open_file'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:221:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:218:in `block (2 levels) in each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1347:in `block in each_table'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1346:in `each'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1346:in `each_table'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:208:in `block in each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:264:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:198:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:177:in `each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:554:in `block in exec'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:157:in `block (2 levels) in initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:264:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:198:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:319:in `instance_eval'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:319:in `initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:76:in `initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:244:in `new'        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:244:in `block in open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:340:in `open_file'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:221:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:212:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:708:in `block in parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:707:in `each'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:707:in `parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:553:in `exec'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/bin/rdf:13:in `<top (required)>'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/rdf:32:in `load'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/rdf:32:in `<main>'
C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:322:in `initialize': No such file or directory @ rb_sysopen - C%3A/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/1.csv (Errno::ENOENT)
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:322:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:322:in `open_file'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:221:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:218:in `block (2 levels) in each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1347:in `block in each_table'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1346:in `each'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/metadata.rb:1346:in `each_table'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:208:in `block in each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:264:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:198:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:177:in `each_statement'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:554:in `block in exec'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:157:in `block (2 levels) in initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:264:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/logger.rb:198:in `log_depth'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:319:in `instance_eval'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:319:in `initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-tabular-3.3.0/lib/rdf/tabular/reader.rb:76:in `initialize'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:244:in `new'        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:244:in `block in open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/util/file.rb:340:in `open_file'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:221:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/reader.rb:212:in `open'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:708:in `block in parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:707:in `each'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:707:in `parse'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/lib/rdf/cli.rb:553:in `exec'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/lib/ruby/gems/3.2.0/gems/rdf-3.3.1/bin/rdf:13:in `<top (required)>'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/rdf:32:in `load'
        from C:/Users/jakub/Downloads/rubyinstaller-3.2.2-1-x64/rubyinstaller-3.2.2-1-x64/bin/rdf:32:in `<main>'
@gkellogg
Copy link
Member

gkellogg commented Dec 4, 2023

From the trace, it's hard to see where the confusion is introduced. There is code in RDF::URI to not use the C: bit as a URI scheme on windows platforms, and this generally seems to work, as both the RDF and the rdf-tabular gems run CI on Windows. But, there may be some case where it's dealing with multiple tables and not taking the proper path. That might be in rdf/tabular/read.rb someplace around line 210. I'm handicapped by not having a Windows platform to try this out on, so if you're able to get in there with a debugger you might be able to see where it happens. I suspect the issue lies entirely in the rdf-tabular gem, and not the RDF.rb gem.

@jakubklimek
Copy link
Author

jakubklimek commented Oct 7, 2024

@gkellogg Sorry for the delay, but only now I managed to get the debugger up and running (I have never coded in Ruby before).
I traced the problem to https://github.com/ruby-rdf/rdf-tabular/blob/develop/lib/rdf/tabular/reader.rb#L83-L84:

file_uri = "file:" + File.expand_path(@options[:base])
@options[:base] = RDF::URI(file_uri.to_s).normalize

where file_uri is file:D:/Downloads/rdf-develop/1.csv-metadata.json - I am not sure this is correct, as the Windows file: URL should be: file:///D:/Downloads/rdf-develop/1.csv-metadata.json.

Then the result of RDF::URI(file_uri.to_s).normalize is file:D%3A/Downloads/rdf-develop/1.csv-metadata.json.

Digging further into uri.rb, functionnormalized_path - the URI is split into segments:
{E58EA0CC-B2EE-4111-BA56-E5B37B4A668C}

On https://github.com/ruby-rdf/rdf/blob/develop/lib/rdf/model/uri.rb#L1099 normalize_segment is called on the D: segment.
On https://github.com/ruby-rdf/rdf/blob/develop/lib/rdf/model/uri.rb#L1360, URI.encode is called on the segment D:, producing D%3A.

I am not sure what the proper solution should be and where exactly.

@gkellogg
Copy link
Member

gkellogg commented Oct 7, 2024

I fixed some handling for the file scheme, and other windows-specific drive letter handling on the develop branch. Please try building with develop from GitHub to see if that fixes your problem; otherwise, you can re-open this issue with further details.

@jakubklimek
Copy link
Author

Thanks, now I get an error elsewhere:

Uncaught exception: loading remote context failed: file:/D:/Downloads/rdf-develop/etc/csvw.jsonld: Invalid argument @ rb_sysopen - /D:/Downloads/rdf-develop/etc/csvw.jsonld
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `initialize'
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `open'
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `open_file'
        D:/Downloads/rdf-develop/lib/json/ld/api.rb:752:in `documentLoader'
        D:/Downloads/rdf-develop/lib/json/ld/api.rb:642:in `call'
        D:/Downloads/rdf-develop/lib/json/ld/api.rb:642:in `loadRemoteDocument'
        D:/Downloads/rdf-develop/lib/json/ld/context.rb:326:in `block (2 levels) in parse'
        D:/Downloads/rdf-develop/lib/json/ld/context.rb:257:in `each'
        D:/Downloads/rdf-develop/lib/json/ld/context.rb:257:in `block in parse'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        D:/Downloads/rdf-develop/lib/json/ld/context.rb:256:in `parse'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:112:in `<class:Metadata>'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:21:in `<module:Tabular>'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:20:in `<top (required)>'
        C:/Tools/Ruby33-x64/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        C:/Tools/Ruby33-x64/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:102:in `block (2 levels) in initialize'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:350:in `open_file'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `initialize': loading remote context failed: file:/D:/Downloads/rdf-develop/etc/csvw.jsonld: Invalid argument @ rb_sysopen - /D:/Downloads/rdf-develop/etc/csvw.jsonld (JSON::LD::JsonLdError::LoadingRemoteContextFailed)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `open_file'
        from D:/Downloads/rdf-develop/lib/json/ld/api.rb:752:in `documentLoader'
        from D:/Downloads/rdf-develop/lib/json/ld/api.rb:642:in `call'
        from D:/Downloads/rdf-develop/lib/json/ld/api.rb:642:in `loadRemoteDocument'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:326:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:257:in `each'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:257:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:256:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:112:in `<class:Metadata>'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:21:in `<module:Tabular>'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:20:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        from C:/Tools/Ruby33-x64/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:102:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:350:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `initialize': Invalid argument @ rb_sysopen - /D:/Downloads/rdf-develop/etc/csvw.jsonld (Errno::EINVAL)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:332:in `open_file'
        from D:/Downloads/rdf-develop/lib/json/ld/api.rb:752:in `documentLoader'
        from D:/Downloads/rdf-develop/lib/json/ld/api.rb:642:in `call'
        from D:/Downloads/rdf-develop/lib/json/ld/api.rb:642:in `loadRemoteDocument'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:326:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:257:in `each'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:257:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/json/ld/context.rb:256:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:112:in `<class:Metadata>'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:21:in `<module:Tabular>'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:20:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        from C:/Tools/Ruby33-x64/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:102:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:350:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'

Process finished with exit code 1

@jakubklimek
Copy link
Author

(and I do not have permission to re-open the issue)

@gkellogg gkellogg reopened this Oct 8, 2024
@gkellogg
Copy link
Member

gkellogg commented Oct 8, 2024

I may have fixed that but already; see if you get more commits on a git pull.

@jakubklimek
Copy link
Author

This is based on 71f70d5 - the latest commit

@jakubklimek
Copy link
Author

But the problem seems to be on this line in rdf-tabular now.

@gkellogg
Copy link
Member

gkellogg commented Oct 9, 2024

I pushed up some more changes to the "rdf" gem, as well as "rdf-tabular". I'm getting some errors in rdf-tabular tests, which I'll continue to work on, but it may be worth getting the latest versions of these gems from GitHub to see what that does for you.

I'm handicapped by not having a Windows development platform, so I've been leaning on GitHub actions to see results, which are inadequate for development.

@jakubklimek
Copy link
Author

OK, now I get yet another error.
My working directory, from where rdf is run as D:\Downloads\rdf-develop\bin\rdf validate --input-format tabular 1.csv-metadata.json, and which contains the files 1.csv-metadata.json and 1.csv, is D:\Downloads\rdf-develop. However, apparently, the base URL for some reason is D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb/, i .e. the lib/rdf/tabular/reader.rb/ should not be there:

Uncaught exception: No such file or directory @ rb_sysopen - D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb/1.csv
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:344:in `rescue in open_file'
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:316:in `open_file'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:223:in `block (2 levels) in each_statement'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1354:in `block in each_table'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each_table'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:213:in `block in each_statement'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:182:in `each_statement'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:162:in `block (2 levels) in initialize'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:103:in `block in initialize'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:344:in `rescue in open_file': No such file or directory @ rb_sysopen - D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb/1.csv (RDF::ReaderError)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:316:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:223:in `block (2 levels) in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1354:in `block in each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:213:in `block in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:182:in `each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:162:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:103:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:344:in `rescue in open_file': No such file or directory @ rb_sysopen - D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb/1.csv (IOError)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:316:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:223:in `block (2 levels) in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1354:in `block in each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:213:in `block in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:182:in `each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:162:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:103:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:331:in `initialize': No such file or directory @ rb_sysopen - D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb/1.csv (Errno::ENOENT)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:331:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:331:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:223:in `block (2 levels) in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1354:in `block in each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1353:in `each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:213:in `block in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:182:in `each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:162:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:103:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'

Process finished with exit code 1

@gkellogg
Copy link
Member

gkellogg commented Oct 9, 2024

I had modified the expand_path to include __FILE__, which was a mistake, at least on Windows. Try again.

@jakubklimek
Copy link
Author

Now I get this - no path, and an extra / if it is supposed to be relative to the working dir:

Uncaught exception: No such file or directory @ rb_sysopen - /1.csv
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:344:in `rescue in open_file'
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:316:in `open_file'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:218:in `block (2 levels) in each_statement'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1349:in `block in each_table'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each'
        D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each_table'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:208:in `block in each_statement'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:177:in `each_statement'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:157:in `block (2 levels) in initialize'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:344:in `rescue in open_file': No such file or directory @ rb_sysopen - /1.csv (RDF::ReaderError)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:316:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:218:in `block (2 levels) in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1349:in `block in each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:208:in `block in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:177:in `each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:157:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:344:in `rescue in open_file': No such file or directory @ rb_sysopen - /1.csv (IOError)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:316:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:218:in `block (2 levels) in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1349:in `block in each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:208:in `block in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:177:in `each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:157:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'
D:/Downloads/rdf-develop/lib/rdf/util/file.rb:331:in `initialize': No such file or directory @ rb_sysopen - /1.csv (Errno::ENOENT)
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:331:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:331:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:218:in `block (2 levels) in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1349:in `block in each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/metadata.rb:1348:in `each_table'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:208:in `block in each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:177:in `each_statement'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:554:in `block in exec'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:710:in `block (2 levels) in parse'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:157:in `block (2 levels) in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:264:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/util/logger.rb:198:in `log_depth'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:98:in `block in initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `instance_eval'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:319:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/tabular/reader.rb:76:in `initialize'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `new'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:244:in `block in open'
        from D:/Downloads/rdf-develop/lib/rdf/util/file.rb:349:in `open_file'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:221:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/reader.rb:212:in `open'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:708:in `block in parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `each'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:707:in `parse'
        from D:/Downloads/rdf-develop/lib/rdf/cli.rb:553:in `exec'
        from D:/Downloads/rdf-develop/bin/rdf:13:in `<top (required)>'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `load_protect'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/debase-3.0.0.beta.12/lib/debase.rb:248:in `debug_load'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/lib/ruby-debug-ide.rb:129:in `debug_program'
        from C:/Tools/Ruby33-x64/lib/ruby/gems/3.3.0/gems/ruby-debug-ide-3.0.0.beta.18/bin/rdebug-ide:202:in `<main>'

@gkellogg
Copy link
Member

Can you tell me how you're invoking the gem that results in this problem? If you use an absolute path name, does it work properly?

@jakubklimek
Copy link
Author

I run rdf validate --input-format tabular 1.csv-metadata.json or rdf serialize --input-format tabular 1.csv-metadata.json where in 1.csv-metadata.json there is a table with "url": "1.csv". Both the .csv and the .json file are in the same folder, where I run the command.

When I change it to "url": "D:\\Downloads\\rdf-develop\\1.csv", it works, but it says the input is invalid for validate and it crashes in RDF writer for serialize.

When I change it to "url": "D:/Downloads/rdf-develop/1.csv", it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants