-
Notifications
You must be signed in to change notification settings - Fork 5
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
Create a new dynamic route for ontologies content derefrencement #545
Comments
@imadbourouche , Important to note that the redirection needs to be content negotiable also, so if we as XML don't show the Agroportal UI and directly redirect the XML content returned by the back. |
@syphax-bouazzouni , if we specify the accept format (json, ntriples, turtle, xml), the result will be the content of the resource in the format specified (it means that it will be no redirection to html page) Am I correct in this ? |
@imadbourouche yes, you are correct. |
Done in #568 |
Context
See agroportal/project-management#476
Goal
Have a human-readable URL/URI for users to access ontologies content in Agroportal, e.g https://agroportal.lirmm.fr/ontologies/INRAETHES/d_1 that will redirect to https://agroportal.lirmm.fr/ontologies/INRAETHES?p=classes&conceptid=http://opendata.inrae.fr/thesaurusINRAE/d_1
Requirements
get "ontologies/:acronym/:id"
and redirect to a new ontologies controller action called for exampleshow_redirection
:acronym
does not exist return not found:id
is not a URL, create a function that will find the full URL, using one of these methods:- use the indexed data, to URI that matches the given
:id
.- use the ontology metadata (URI, Identifier pattern, Preferred namespace URI) to deduce the full ID.
type
from the index or triple store, and by the type redirect to the correct page, follow the bellow cases:Below is a diagram summarizing the process

The text was updated successfully, but these errors were encountered: