query-ad756374f6d309b83064b7f117082d9e
Synia: Publisher
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#>
PREFIX target: <http://www.wikidata.org/entity/Q7894897>
SELECT DISTINCT
?description ?descriptionLabel ?descriptionUrl
?value ?valueLabel ?valueUrl
?wikidata ?wikidataUrl
?scholia ?scholiaUrl
WHERE {
{
BIND(1 AS ?order)
BIND("Publisher" AS ?description)
BIND("#publisher/" AS ?descriptionUrl)
BIND(target: AS ?value)
BIND(CONCAT(SUBSTR(STR(target:), 32), " ↗") AS ?wikidata)
BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(target:), 32)) AS ?wikidataUrl)
BIND("Scholia ↗" AS ?scholia)
BIND(CONCAT("https://scholia.toolforge.org/publisher/", SUBSTR(STR(target:), 32)) AS ?scholiaUrl)
}
UNION
{
BIND(11 AS ?order)
BIND("Homepage" AS ?description)
target: wdt:P856 ?valueUrl .
BIND(CONCAT(STR(?valueUrl), " ↗") AS ?value)
}
UNION
{
BIND(21 AS ?order)
BIND(wd:Q6256 AS ?description)
BIND("#country" AS ?descriptionUrl)
target: wdt:P17 ?value .
BIND(CONCAT("#country/", SUBSTR(STR(?value), 32)) AS ?valueUrl)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?order
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v10("?description"):::projected
v10("?descriptionUrl"):::projected
v10("?order")
v7("?scholia"):::projected
v8("?scholiaUrl"):::projected
v10("?value"):::projected
v10("?valueUrl"):::projected
v5("?wikidata"):::projected
v6("?wikidataUrl"):::projected
c5(["bd:serviceParam"]):::iri
c1(["wd:Q7894897"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
bind0[/"'21^^xsd:integer'"/]
bind0 --as--o v10
bind1[/"'wd:Q6256'"/]
bind1 --as--o v10
bind2[/"'#country'"/]
bind2 --as--o v10
c1 --"wdt:P17"--> v10
bind3[/"concat('#country/',substring(str(?value),'32^^xsd:integer'))"/]
v10 --o bind3
bind3 --as--o v10
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
bind4[/"'11^^xsd:integer'"/]
bind4 --as--o v10
bind5[/"'Homepage'"/]
bind5 --as--o v10
c1 --"wdt:P856"--> v10
bind6[/"concat(str(?valueUrl),' ↗')"/]
v10 --o bind6
bind6 --as--o v10
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind7[/"'1^^xsd:integer'"/]
bind7 --as--o v10
bind8[/"'Publisher'"/]
bind8 --as--o v10
bind9[/"'#publisher/'"/]
bind9 --as--o v10
bind10[/"'wd:Q7894897'"/]
bind10 --as--o v10
bind11[/"concat(substring(str('wd:Q7894897'),'32^^xsd:integer'),' ↗')"/]
bind11 --as--o v5
bind12[/"concat('https://www.wikidata.org/wiki/',substring(str('wd:Q7894897'),'32^^xsd:integer'))"/]
bind12 --as--o v6
bind13[/"'Scholia ↗'"/]
bind13 --as--o v7
bind14[/"concat('https://scholia.toolforge.org/publisher/',substring(str('wd:Q7894897'),'32^^xsd:integer'))"/]
bind14 --as--o v8
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end