query-ae050fe31a627d6b888e74f64f8023be
Item con ID autore Edit16 e senza id autore SBN SELECT ?item ?itemLabel ?edit16ID ?SBNauthorID WHERE { ?item wdt:P5492 ?edit16ID. OPTIONAL {?item wdt:P396 ?SBNauthorID. } FILTER(!bound(?SBNauthorID)) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?itemLabel
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Item con ID autore Edit16 e senza id autore SBN
SELECT ?item ?itemLabel ?edit16ID ?SBNauthorID
WHERE
{
?item wdt:P5492 ?edit16ID.
OPTIONAL {?item wdt:P396 ?SBNauthorID. }
FILTER(!bound(?SBNauthorID))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?SBNauthorID"):::projected
v4("?edit16ID"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not bound(?SBNauthorID)"]]
f0 --> v2
v3 --"wdt:P5492"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P396".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end