Giter VIP home page Giter VIP logo

Comments (13)

fkoestner avatar fkoestner commented on July 22, 2024 1

I checked the configuration of the virtuoso and the proxy. The proxy was missing a setting. So, cross origin requests are possible now.

from building-navigator.

k00ni avatar k00ni commented on July 22, 2024

I got the (hopefully) final URL to the public SPARQL endpoint, which holds our place information.

SPARQL Endpoint: https://opendata.leipzig.de/virt-sparql
Graph: https://opendata.leipzig.de/bvlplaces/

Can you try these and give me feedback, if there is any problem? Thank you!

from building-navigator.

simeonackermann avatar simeonackermann commented on July 22, 2024

Sorry, I will only have time to try this on monday next week...

from building-navigator.

k00ni avatar k00ni commented on July 22, 2024

No problem, looking forward to it.

from building-navigator.

simeonackermann avatar simeonackermann commented on July 22, 2024

On my demo server asimeon.de I get this error:

Failed to load https://opendata.leipzig.de/virt-sparql/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://asimeon.de' is therefore not allowed access.

This is an error about CORS requests.
Normally this means the server needs to add the origin or all (*) as allowed request (as described here)

Do you think we can request that?
Otherwise I don't know if we can fix this...

from building-navigator.

k00ni avatar k00ni commented on July 22, 2024

The leading developer on the city-side @fkoestner posted me, that he had no problems. He used:

curl -X POST https://opendata.leipzig.de/virt-sparql --data-urlencode "query=SELECT DISTINCT * FROM https://opendata.leipzig.de/bvlplaces/ WHERE { ?s ?p ?o . } LIMIT 3" -H "Accept: application/sparql-results+json"

But he will check Virtuoso configuration and gets back to us soon.

from building-navigator.

simeonackermann avatar simeonackermann commented on July 22, 2024

Its not a problem to directly call the virtuoso endpoint for me either.
The problem occurs because the app is stored on our host behindertenverband-leipzig.de, and the request goes to another host. See here:

This cross origin request is disallowed by browsers to improve security and needs to enabled by the seconds server (I didn't found another solution).

from building-navigator.

simeonackermann avatar simeonackermann commented on July 22, 2024

Jep, I can confirm, it works like a charm now!
Thanks for the fast help.

from building-navigator.

simeonackermann avatar simeonackermann commented on July 22, 2024

Current commit in branch round-4-navigation implements the new endpoint

from building-navigator.

k00ni avatar k00ni commented on July 22, 2024

Thanks @fkoestner!

@simeonackermann: Can you merge all branches into the final one for round 4? I would like to deploy your work next week, if possible. Can i replace the icons later on by myself?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 22, 2024

@k00ni all updates are merged into branch master now. To update the icons you should simply update the files in the dist/images/bvl folder.

from building-navigator.

k00ni avatar k00ni commented on July 22, 2024

Can the other branches be deleted?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 22, 2024

Sure. I had already done this.
But we may keep the new branch rdfstorejs as standalone solution without a triple store.

from building-navigator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.