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

URI schemes containing digits cause parse error #176

Closed
balhoff opened this issue Aug 9, 2024 · 0 comments · Fixed by #177
Closed

URI schemes containing digits cause parse error #176

balhoff opened this issue Aug 9, 2024 · 0 comments · Fixed by #177

Comments

@balhoff
Copy link
Contributor

balhoff commented Aug 9, 2024

I have some RDF data autoconverted from a Neo4j database. It creates URIs using a neo4j:// scheme like this:

<neo4j://graph.individuals#n4ind:389638>  <neo4j://graph.schema#knows>  <neo4j://graph.individuals#145613> .

Using this data with Comunica throws an error in SPARQL query parsing:

Cannot resolve relative IRI neo4j://graph.individuals#105029 because no base IRI was set.

It looks like this is caused by the regex here:

if (/^[a-z]+:/i.test(iri))

which only allows letters. I haven't found anything that says a scheme can't contain a digit, and Wikipedia also mentions s3:// as a commonly used scheme.

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

Successfully merging a pull request may close this issue.

1 participant