Closed VladimirAlexiev closed 6 years ago
Sounds like an issue for https://github.com/eclipse/rdf4j-tools subproject.
There is a verify command in the console tool, but what is really missing (IMHO) is a way to run a command/script from the command line (e.g. Console -x verify
@barthanssens you can kinda do that though:
$ echo verify test.ttl | ./console.sh
but I agree command line switches would be useful.
We're kinda conflating issues here though. I'll keep this issue to focus on the parser bug reported, I'll add a separate feature ticket to the tools project for command line switches to do actions like verification.
I can reproduce this issue in the latest milestone.
I didn't know about console verify, thanks! Does it say the line number?
Riot reports about 50 malformed web URLs (see graphdb jira), I fixed them with a perl script but no cigar
The problem is specific to an IRI with in IP address, but no path: http://178.62.246.130 . There is a bug in ParsedIRI that expects either a port number or a path behind this. I'm working on a fix.
Btw the line on which this first occurs in this file is 6360967. Unfortunately the console also doesn't report this, due to a related error. To be clear, normally the console would report line numbers on errors.
PR up for a fix. I have verified that with this fix in place, the file parses without issues (it doesn't even require disable URI checking).
I forgot to mention that if you want to fix that Uri to parse, all you need to do is add a trailing slash: http://178.62.246.130/
Trying to load https://permid.org/sfiles/bulkDownload/OpenPermID-bulk-organization-20180805_070415.ttl.gz to GraphDB (need free registration at permid.org to obtain this file). I get this exception:
Ok, so I'll use
jena riot
to validate it. Please create anrdf4j rio
command-line utility like RIOT, so I can validate with RIO.