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

Relative URIs do not work #6

Closed
ghost opened this issue Feb 20, 2012 · 1 comment
Closed

Relative URIs do not work #6

ghost opened this issue Feb 20, 2012 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request in-resolution

Comments

@ghost
Copy link

ghost commented Feb 20, 2012

nsla...@gmail.com, 2007-12-11T15:05:37.000Z

I would like to use relative URIs for my subjects and rdflib curently
prevents this, to the best of my understanding.

When using an empty rdflib.Namespace("") object for my subjects the URI is
sometimes prepended with "file://".

This breaks relative URIs for publishing to the web etc.

Comment 1 by eike...@gmail.com

RDF makes it a bit hard to work with relative URIs as it doesn't really have a concept of them. It used to annoy
me greatly when bits didn't support relative identifiers / paths etc... so it took me some time to adjust to
absolutizing on the way in and relativizing on the way out when you want to keep things relative. But I think that
might be what needs to be done.

Could you provide more specifics on when your relative URIs were being absolutized?

Comment 3 by gromgull

As the concept of relative URIs do not exist for RDF I propose closing this.

Unless some eager soul provides a patch for doing it at serialize time?

Comment 5 by gromgull

Old issues never die.

Related is this delightful thread on lod-mailinglist: http://lists.w3.org/Archives/Public/public-lod/2011Jan/0134.html

Timbl says CWM canonicalizes URIs on import: http://lists.w3.org/Archives/Public/public-lod/2011Jan/0152.html

Shall we follow suit?

Comment 6 by salsedol...@yahoo.com

Good

Comment 7 by gklyn...@gmail.com

I find that relative URIs do work in RDF/XML input/output, in situations where they make sense (e.g. rdf:about). The serializer can also generate them, though care is needed to set the correct base URI.

Comment 8 by gerhard.weis@gmail.com

Yes they do work for XML. But the XML standard then says, when interpreting relative URIs you have to canonicalize them with the help of xml:base etc.. However this is rather a functionality of the XML parser and not something that RDF needs to know about. (just my 2 cents)

@ghost
Copy link
Author

ghost commented Mar 27, 2012

Recognising the general consensus that relative URIs do work appropriately in RDFLib, closing.

@ghost ghost closed this as completed Mar 27, 2012
nicholascar pushed a commit that referenced this issue Apr 28, 2022
Fix handling of blank CURIE reference and references with multiple colons
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request in-resolution
Projects
None yet
Development

No branches or pull requests

0 participants