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

reserved character escape sequences for local names #21

Closed
masao opened this issue Mar 17, 2024 · 1 comment
Closed

reserved character escape sequences for local names #21

masao opened this issue Mar 17, 2024 · 1 comment

Comments

@masao
Copy link

masao commented Mar 17, 2024

The latest combination of the rdf and rdf-turtle packages does not correctly handle the reserved character escape sequences for local names.
The combination of the past versions is fine, so some updates are causing the following problem.

gem "rdf", "3.3.1"
gem "rdf-turtle", "3.3.0"
require "rdf/turtle"
ttl = '@prefix p: <http://a.example/>. p:a\/a <http://a.example/p> <http://a.example/o> .'
rdf=RDF::Turtle::Reader.new(ttl) {|reader|
  p reader.statements
}

output:

[#<RDF::Statement:0x47964(<http://a.example/a\u005C/a> <http://a.example/p> <http://a.example/o> .)>]

The past versions (rdf 3.2.11, rdf-turtle 3.2.1):

gem "rdf", "3.2.11"
gem "rdf-turtle", "3.2.1"
require "rdf/turtle"
ttl = '@prefix p: <http://a.example/>. p:a\/a <http://a.example/p> <http://a.example/o> .'
rdf=RDF::Turtle::Reader.new(ttl) {|reader|
  p reader.statements
}

output:

[#<RDF::Statement:0x3f48(<http://a.example/a/a> <http://a.example/p> <http://a.example/o> .)>]
@gkellogg
Copy link
Member

I had actually fixed thus bug in January, but hadn't released it. It's now released in version 3.3.1 of the rdf-turtle gem.

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