query-56db2639d0b91f4cc6b25c2d04f882c9
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 skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?desc WHERE {
?item wdt:P31 ?typeOfOrg .
VALUES ?superclasses { wd:Q43229 }
?typeOfOrg wdt:P279 * ?superclasses .
VALUES ?label { rdfs:label skos:altLabel }
?item ?label "Apple"@en .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
?item rdfs:label ?itemLabel .
?typeOfOrg rdfs:label ?typeOfOrgLabel .
?item schema:description ?desc .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?desc"):::projected
v1("?item"):::projected
v5("?itemLabel"):::projected
v4("?label")
v3("?superclasses")
v2("?typeOfOrg")
v6("?typeOfOrgLabel")
c3([sApple^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v1 --"wdt:P31"--> v2
bind0[/VALUES ?superclasses/]
bind0-->v3
bind00(["wd:Q43229"])
bind00 --> bind0
v2 --"wdt:P279"--> v3
bind1[/VALUES ?label/]
bind1-->v4
bind10(["rdfs:label"])
bind10 --> bind1
bind11(["skos:altLabel"])
bind11 --> bind1
v1 -->v4--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v1 --"rdfs:label"--> v5
v2 --"rdfs:label"--> v6
v1 --"schema:description"--> v7
end