You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.
For everything except the 303-redirecting resource handler, instead of the relative URI resource-id we could have an absolute one, to support browsing resources not hosted by Pubby:
Value pages, showing the values of a property on a certain resource, with possibility to invert the direction to show incoming arcs (/i/). Again, there is a content negotiated resource and then format specific variants.
Again, the resource can be identified via full URI:
/!values/ex:prefixed/http://example/resource-id
We need a way of doing these value pages even if no prefix is declared for ex. The challenge is to find a way of indicating where the property URI ends and the resource identifier part starts. This could be done in a number of ways. (1) encoding the length of the URI in the address; (2) %-encoding the entire property URI; (3) using a delimiter such as /// that is unlikely to occur in a property URI.
Finally, the “home” resource will be 302-redirected to conf:indexResource if that is defined:
/
Implementation
Do our own URL routing. Let RootServlet handle the entire URI space except for /static/. Then pull all the logic of creating or interpreting URIs from the various places (HypermediaControls, servlets, web.xml) into a single class. There could actually be multiple versions of that class, like a legacy URI router that implements the “old” behaviour.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The current design of the URI space is pretty bad and really should be re-done. Examples of problems:
/data/
in certain places in the URI.?output=xxx
and that's just ugly.New URI space structure
A resource hosted by Pubby, 303-redirects to
/!about/resouce-id
:The information resource describing such a resource. First one does content negotiation, the others are format-specific variants:
For everything except the 303-redirecting resource handler, instead of the relative URI
resource-id
we could have an absolute one, to support browsing resources not hosted by Pubby:Value pages, showing the values of a property on a certain resource, with possibility to invert the direction to show incoming arcs (
/i/
). Again, there is a content negotiated resource and then format specific variants.Again, the resource can be identified via full URI:
We need a way of doing these value pages even if no prefix is declared for
ex
. The challenge is to find a way of indicating where the property URI ends and the resource identifier part starts. This could be done in a number of ways. (1) encoding the length of the URI in the address; (2) %-encoding the entire property URI; (3) using a delimiter such as///
that is unlikely to occur in a property URI.Finally, the “home” resource will be 302-redirected to
conf:indexResource
if that is defined:Implementation
Do our own URL routing. Let
RootServlet
handle the entire URI space except for/static/
. Then pull all the logic of creating or interpreting URIs from the various places (HypermediaControls
, servlets,web.xml
) into a single class. There could actually be multiple versions of that class, like a legacy URI router that implements the “old” behaviour.The text was updated successfully, but these errors were encountered: