Comments (6)
Improved in cfb250d, loading notes and category only if first toggle details
from building-navigator.
👍
Loading long shouldn't be normal behavior, but i find your solution good. Is it possible to render and build the UI and after everything is "ready", you load all remaining information anyways? Or is that to much stuff to store on the client, regardless of its usage?
from building-navigator.
Closed because new behavior with Virtuoso and dynamically loading.
from building-navigator.
Also with Virtuoso I've problems with the perfomance. E.g. the query for fetch max 30 places with its properties and elevator accessibility info needs about 3 - 7 seconds.
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/>
PREFIX plcOnt: <http://behindertenverband-leipzig.de/place-ontology/>
PREFIX elvOnt: <https://github.com/AKSW/leds-asp-f-ontologies/blob/master/ontologies/elevator/ontology.ttl#>
PREFIX unitMeas: <https://github.com/AKSW/leds-asp-f-ontologies/blob/master/ontologies/unit-and-measurements/ontology.ttl#>
PREFIX lePlace: <http://le-online.de/place/>
PREFIX leNs: <http://le-online.de/ontology/place/ns#>
SELECT ?uri ?id ?title ?long AS ?lng ?lat
?elevatorCabineIsAvailable ?elevatorCabineLength ?elevatorCabineWidth ?elevatorDoorWidth ?elevatorCabineHighestButtonOutside ?elevatorCabineHighestButtonInside
FROM <http://building-navigator.de/>
WHERE {
?uri rdf:type plcOnt:place ;
plcOnt:ID ?id ;
dc:title ?title ;
geo:long ?long ;
geo:lat ?lat ;
elvOnt:hasElevatorCabine ?elevatorCabineUri .
?elevatorCabineUri elvOnt:isAvailable ?elevatorCabineIsAvailable ;
unitMeas:length ?elevatorCabineLengthUri ;
unitMeas:width ?elevatorCabineWidthUri ;
elvOnt:hasDoorWidth ?elevatorDoorWidthUri ;
elvOnt:highestDistanceOfControlPanelButtonFromGroundInside ?elevatorCabineHighestButtonOutsideUri ;
elvOnt:highestDistanceOfControlPanelButtonFromGroundOutside ?elevatorCabineHighestButtonInsideUri .
?elevatorCabineLengthUri unitMeas:cm ?elevatorCabineLength .
?elevatorCabineWidthUri unitMeas:cm ?elevatorCabineWidth .
?elevatorDoorWidthUri unitMeas:cm ?elevatorDoorWidth .
?elevatorCabineHighestButtonOutsideUri unitMeas:cm ?elevatorCabineHighestButtonOutside .
?elevatorCabineHighestButtonInsideUri unitMeas:cm ?elevatorCabineHighestButtonInside .
}
LIMIT 30
from building-navigator.
Its strange.
I added the elevator information as property to each place to avoid joins, and get good perfomance. The query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/>
PREFIX plcOnt: <http://behindertenverband-leipzig.de/place-ontology/>
SELECT ?uri ?id ?category ?title ?long AS ?lng ?lat
?elevatorCabineIsAvailable ?elevatorIsWheelchairAccessible
FROM <http://building-navigator.de/>
WHERE {
?uri rdf:type plcOnt:place .
?uri plcOnt:ID ?id .
?uri plcOnt:category ?category .
?uri plcOnt:elevatorCabineIsAvailable ?elevatorCabineIsAvailable .
?uri plcOnt:elevatorIsWheelchairAccessible ?elevatorIsWheelchairAccessible .
?uri dc:title ?title .
?uri geo:long ?long .
?uri geo:lat ?lat .
}
LIMIT 30
But with just some more query variables its again very bad, e.g. add to query:
?uri <http://schema.org/streetAddress> ?streetAddress .
?uri <http://schema.org/postalCode> ?postalCode .
?uri <http://schema.org/addressLocality> ?addressLocality .
from building-navigator.
Close with usage of #16
from building-navigator.
Related Issues (20)
- Improve current building highlighting (or remove) in results list HOT 2
- Use react-router for Routing HOT 1
- Vectorized BVL icons HOT 7
- Enable SPARQL endpoints as data sources
- Create Docker based development environment HOT 1
- add reference to used packages (e.g. Fontawesome, ...)
- Test backend Fuseki HOT 1
- BUG: pagination- > back to search -> search
- Perfomance issues on change route. Is this a development-only issue? HOT 10
- Acc-Icons, Toggle Tooltip onClick
- RDFStore-JS Demo HOT 6
- Please use only entries marked as "publicly available"
- Fix wrong elevator information HOT 1
- Double results (eg baptisten, stelzenhaus HOT 2
- Optimized main.min.js HOT 6
- Connect Buildingnavigator to final city-infrastructure. HOT 13
- Navigation component HOT 22
- Navigation component open TODOs/features HOT 2
- Navigation on mobile devices ist not available
- Check if view is in/near Leipzig on startup HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from building-navigator.