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

Prevent RdfNamespace::splitUri() from generating prefix:#fragment qnames #404

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nevali
Copy link

@nevali nevali commented Aug 24, 2023

it's possible to coax EasyRdf\RdfNamespace::splitUri() into generating a qname in the form prefix:#fragment, which is not valid, for example by defining a namespace as https://www.example.com/foo/ and then referring to https://www.example.com/foo/#bar; this fix prevents that

@nevali
Copy link
Author

nevali commented Aug 24, 2023

i'm keeping this as a draft for now because i'm not convinced it's not valid: throwing test cases at Protégé isn't returning the errors i was expecting, so i'm going to retrace my steps and work out what precisely was the issue with the Turtle that was being generated

@zozlak
Copy link
Collaborator

zozlak commented Aug 25, 2023

Two notes:

@nevali
Copy link
Author

nevali commented Aug 26, 2023

@zozlak thanks for the info. you're obviously more than welcome to apply these commits to your fork if you wish.

@nevali nevali marked this pull request as ready for review August 26, 2023 15:15
@zozlak
Copy link
Collaborator

zozlak commented Aug 26, 2023

The maintained fork is by @k00ni .

k00ni added a commit to sweetrdf/easyrdf that referenced this pull request Aug 28, 2023
Author: @nevali

Title: Prevent RdfNamespace::splitUri() from generating prefix:#fragment
qnames

Quote from original PR:

> it's possible to coax EasyRdf\RdfNamespace::splitUri() into generating
a qname in the form prefix:#fragment, which is not valid, for example by
defining a namespace as https://www.example.com/foo/ and then referring
to https://www.example.com/foo/#bar; this fix prevents that
k00ni added a commit to sweetrdf/easyrdf that referenced this pull request Aug 29, 2023
Author: @nevali

Title: Prevent RdfNamespace::splitUri() from generating prefix:#fragment
qnames

Quote from original PR:

> it's possible to coax EasyRdf\RdfNamespace::splitUri() into generating
a qname in the form prefix:#fragment, which is not valid, for example by
defining a namespace as https://www.example.com/foo/ and then referring
to https://www.example.com/foo/#bar; this fix prevents that
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 this pull request may close these issues.

None yet

2 participants