diff --git a/src/models/Grave.js b/src/models/Grave.js index 6df6c6f..4e6f1f0 100644 --- a/src/models/Grave.js +++ b/src/models/Grave.js @@ -9,6 +9,7 @@ export default class Grave { description; birthDate; deathDate; + graveyard; constructor(grave) { this.id = grave.person.value @@ -45,6 +46,14 @@ export default class Grave { }; } catch (err) { /* safely ignore */ } + try { + this.graveyard = { + url: grave.graveyard.value, + value: grave.graveyardLabel.value, + lang: grave.graveyardLabel['xml:lang'], + }; + } catch (err) { /* safely ignore */ } + try { this.description = { value: grave.personDescription.value, diff --git a/src/views/About.vue b/src/views/About.vue index ddb3b36..2b7b31a 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -5,7 +5,7 @@
SELECT ?person ?personLabel ?personDescription ?coord ?graveImage ?image ?birthDate ?deathDate
+ SELECT ?person ?personLabel ?personDescription ?graveyard ?graveyardLabel ?coord ?graveImage ?image ?birthDate ?deathDate
WHERE {
SERVICE wikibase:box {
?statement pq:P625 ?coord.
@@ -13,6 +13,7 @@
bd:serviceParam wikibase:cornerEast <coordinates>.
}
?person p:P119 ?statement; wdt:P31 wd:Q5.
+ ?person wdt:P119 ?graveyard.
OPTIONAL { ?person wdt:P1442 ?graveImage }
OPTIONAL { ?person wdt:P18 ?image }
OPTIONAL { ?person wdt:P569 ?birthDate }
diff --git a/src/views/Map.vue b/src/views/Map.vue
index 82a9209..235a4dc 100644
--- a/src/views/Map.vue
+++ b/src/views/Map.vue
@@ -40,6 +40,13 @@