query-58439e4fc1752b487267609b446b73c9
check items which have a FFW identifier have correct instanceof/subclassof SELECT DISTINCT ?format ?formatLabel ?ffw ?instanceof ?instanceofLabel ?subclassof ?subclassofLabel WHERE { ?format wdt:P3381 ?ffw . OPTIONAL { ?format wdt:P31 ?instanceof } . OPTIONAL { ?format wdt:P279 ?subclassof } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } ORDER BY ?ffw
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#>
#check items which have a FFW identifier have correct instanceof/subclassof
SELECT DISTINCT ?format ?formatLabel ?ffw ?instanceof ?instanceofLabel ?subclassof ?subclassofLabel
WHERE
{
?format wdt:P3381 ?ffw .
OPTIONAL { ?format wdt:P31 ?instanceof } .
OPTIONAL { ?format wdt:P279 ?subclassof }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?ffw
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?ffw"):::projected
v2("?format"):::projected
v3("?instanceof"):::projected
v4("?subclassof"):::projected
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v2 --"wdt:P3381"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P279".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end