query-8585d65cdf04cb3d52fdc9b547a61a0d

rq turtle/ttl

Modify the displayed Sitelink in the Infolayers on map viewIs there a possibility to change the way how a sitelink to another wikimedia project is displayed in the infoboxes of a map view? E.g. in the following query i parse the links to the German Wikisource - but i would prefer, that instead of the whole sitelink only schema:name of the wikisource page including a link functionality is displayed. Is there a way to realize this in SPARQL?

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX schema: <http://schema.org/>

SELECT  ?mainSubjLabel ?coordinates ?Bild ?wspage ?article WHERE {
  wd:Q19172509 wdt:P527 ?Baeume.
  ?Baeume wdt:P921 ?mainSubj.
  ?mainSubj wdt:P625 ?coordinates.
  OPTIONAL { ?Baeume wdt:P18 ?Bild. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?article schema:about ?Baeume.
  ?article schema:isPartOf <https://de.wikisource.org/>.
  ?article schema:name ?wspage.

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?Baeume") v4("?Bild"):::projected v5("?article"):::projected v3("?coordinates"):::projected v2("?mainSubj") v6("?wspage"):::projected c12([https://de.wikisource.org/]):::iri c1(["wd:Q19172509"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c1 --"wdt:P527"--> v1 v1 --"wdt:P921"--> v2 v2 --"wdt:P625"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end v5 --"schema:about"--> v1 v5 --"schema:isPartOf"--> c12 v5 --"schema:name"--> v6