query-a51b90d3c7d772d532eca7044598218e
TODO
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Table
SELECT ?item ?title ?novwiki ?dewiki ?istEin ?image (GROUP_CONCAT(DISTINCT ?gsprache; SEPARATOR = ", ") AS ?sprachen) ?LTAid (URI(CONCAT("https://www.librarything.com/author/", ?LTAid)) AS ?LTAurl) WHERE {
{
?item wdt:P31 ?instanz.
?novwiki schema:about ?item;
schema:isPartOf <https://nov.wikipedia.org/>;
schema:name ?title.
OPTIONAL { ?item wdt:P7400 ?LTAid. }
OPTIONAL {
?dewiki schema:about ?item;
schema:isPartOf <https://de.wikipedia.org/>;
schema:name ?de_title.
}
OPTIONAL { ?item wdt:P1412 ?sprache. }
OPTIONAL { ?item wdt:P18 ?image. }
FILTER((?instanz in ( wd:Q5, wd:Q43229)) && (!(BOUND(?LTAid))))
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?sprache rdfs:label ?gsprache.
?instanz rdfs:label ?istEin
}
}
}
GROUP BY ?item ?title ?novwiki ?dewiki ?LTAid ?istEin ?image
ORDER BY (?title)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?LTAid"):::projected
v13("?LTAurl")
v7("?de_title")
v6("?dewiki"):::projected
v10("?gsprache"):::projected
v9("?image"):::projected
v2("?instanz")
v11("?istEin"):::projected
v4("?item"):::projected
v5("?novwiki"):::projected
v8("?sprache")
v12("?sprachen")
v1("?title"):::projected
c9([https://de.wikipedia.org/]):::iri
c6([https://nov.wikipedia.org/]):::iri
c13(["bd:serviceParam"]):::iri
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
list0c1(["wd:Q5"]):::iri
list0c2(["wd:Q43229"]):::iri
list0c1 --o f0
list0c2 --o f0
f0[[" in not bound(?LTAid)"]]
f0 --> v2
f0 --> v3
v4 --"wdt:P31"--> v2
v5 --"schema:about"--> v4
v5 --"schema:isPartOf"--> c6
v5 --"schema:name"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P7400".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v6 -."schema:about".-> v4
v6 --"schema:isPartOf"--> c9
v6 --"schema:name"--> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1412".-> v8
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P18".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
v8 --"rdfs:label"--> v10
v2 --"rdfs:label"--> v11
end
bind2[/"?gsprache"/]
v10 --o bind2
bind2 --as--o v12
bind3[/"concat('https://www.librarything.com/author/',?LTAid)"/]
v3 --o bind3
bind3 --as--o v13