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

ajout la possibilité de fournir une base_url au sparql endpoint #409

Closed
simonLouvet opened this issue Oct 27, 2020 · 1 comment
Closed
Assignees
Labels

Comments

@simonLouvet
Copy link
Contributor

Le service ldp permet de lui fournir un baseUrl ce qui permet notamment que le servuer ldp reponde à un path de type http://domaine/middleware/container.
Le service saprql_endpoint ne le permet pas.

contournement possible : https://github.com/data-players/passerelle_normandie/blob/main/server/services/api.service.js

exemple ci dessous du contournement
SEMAPPS_HOME_URL = http://domaine/middleware/
sparqlRoutes[0].path finale = http://domaine/middleware/sparql.

    const sparqlRoutes = await this.broker.call('sparqlEndpoint.getApiRoutes');
    let path=sparqlRoutes[0].path;
    if (path.indexOf('/')===0){
      path= path.substring(1);
    }
    sparqlRoutes[0].path = new URL(process.env.SEMAPPS_HOME_URL).pathname +path;
@srosset81
Copy link
Contributor

Fixed by #409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants