query-238f3f1137e9c9d10da94d4b43712b82
Name for a URL linkHi! I need your help. I get this query with a link to a URL of Tabakalera. How could I replace the URL with a linking term? In html language is something like "Term Thank you
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?TabakaleraLabel ?TabakaleraURL ?lugar ?coord
WHERE
{
?item wdt:P31 wd:Q5.
?item wdt:P1344 wd:Q9081343.
?item wdt:P10069 ?Tabakalera.
?item wdt:P19 ?lugar.
?lugar wdt:P625 ?coord.
OPTIONAL{?item wdt:P569 ?birthdate .} # P569 : Date de naissance
BIND(year(?birthdate) as ?year)
FILTER(?year > 1800)
wd:P10069 wdt:P1630 ?formatterurl .
BIND(IRI(REPLACE(?Tabakalera, '^(.+)$', ?formatterurl)) AS ?TabakaleraURL).
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?Tabakalera")
v8("?TabakaleraURL"):::projected
v6("?birthdate")
v5("?coord"):::projected
v7("?formatterurl")
v2("?item"):::projected
v4("?lugar"):::projected
v7("?year")
c10(["wd:P10069"]):::iri
c13(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q9081343"]):::iri
f0[["?year > '1800^^xsd:integer'"]]
f0 --> v7
v2 --"wdt:P31"--> c3
v2 --"wdt:P1344"--> c5
v2 --"wdt:P10069"--> v3
v2 --"wdt:P19"--> v4
v4 --"wdt:P625"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v6
end
bind1[/"year-from-dateTime(?birthdate)"/]
v6 --o bind1
bind1 --as--o v7
c10 --"wdt:P1630"--> v7
bind2[/"replace(?Tabakalera,'^(.+)$',?formatterurl)"/]
v3 --o bind2
v7 --o bind2
bind2 --as--o v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end