query-baa05d66a87d7966fe7b3f22b2a7e5c1
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch "Professional".
?title wikibase:apiOutput mwapi:title.
}
BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
?item rdfs:label ?itemLabel. filter(lang(?itemLabel)="en")
?item schema:description ?itemDescription. filter(lang(?itemDescription)="en")
filter (contains(?itemDescription,"Professional"))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?item"):::projected
v1("?itemDescription"):::projected
v2("?itemLabel"):::projected
v3("?title")
c8(["www.wikidata.org"]):::literal
c4(["bd:serviceParam"]):::iri
c1(["Professional"]):::literal
c6(["Search"]):::literal
c11(["mwapi:title"]):::iri
f0[["contains(?itemDescription,'Professional')"]]
f0 --> v1
f1[["?itemDescription = 'en'"]]
f1 --> v1
f2[["?itemLabel = 'en'"]]
f2 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c4 --"mwapi:api"--> c6
c4 --"mwapi:endpoint"--> c8
c4 --"mwapi:srsearch"--> c1
v3 --"mwapi:apiOutput"--> c11
end
bind3[/"concat(str('wd:'),?title)"/]
v3 --o bind3
bind3 --as--o v4
v4 --"rdfs:label"--> v2
v4 --"schema:description"--> v1