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

Corese wrongly interpret final period as decimal point. #23

Open
pchampin opened this issue Oct 12, 2024 · 0 comments
Open

Corese wrongly interpret final period as decimal point. #23

pchampin opened this issue Oct 12, 2024 · 0 comments

Comments

@pchampin
Copy link

Issue Description:

When an integer literal is followed immediately by the period ('.') terminating a triple,
the period is incorrectly interpreted as a decimal point.

Steps to Reproduce:

Parse the following turtle:

<tag:s> <tag:p> 42.
<tag:s> <tag:q> 43.

Expected Behavior:

It should be parsed as:

<tag:s> <tag:p> "42"^^<http://www.w3.org/2001/XMLSchema#integer> .
<tag:s> <tag:q> "43"^^<http://www.w3.org/2001/XMLSchema#integer> .

Actual Behavior:

It is actually parsed as:

<tag:s> <tag:p> "42."^^<http://www.w3.org/2001/XMLSchema#decimal> .
<tag:s> <tag:q> "43."^^<http://www.w3.org/2001/XMLSchema#decimal> .

(note that the character '.' is interpreted both as the decimal point and the period ending a triple, as the next triple is correctly parsed)

@MaillPierre MaillPierre transferred this issue from Wimmics/corese Jan 27, 2025
@MaillPierre MaillPierre transferred this issue from another repository Jan 27, 2025
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

1 participant