query-c73393f19375f7930ba2543462693572
Propertiestitle (P1476)
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
DISTINCT
?item ?title
(REPLACE(STR(?item), ".*Q", "Q") AS ?qid)
("P921" AS ?property)
("Q446911" AS ?ReplaceWithYourTargetID)
("S887" AS ?heuristic)
("Q69652283" AS ?deduced)
WHERE {
{ SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch "biological invasion haswbstatement:P31=Q13442814 -haswbstatement:P921=Q446911".
?page_title wikibase:apiOutput mwapi:title.
}
}
BIND(IRI(CONCAT(STR(wd:), ?page_title)) AS ?item)
?item wdt:P1476 ?title.
FILTER REGEX(LCASE(?title), "biological(.)invasion").
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?ReplaceWithYourTargetID")
v8("?deduced")
v7("?heuristic")
v3("?item"):::projected
v2("?page_title")
v5("?property")
v4("?qid")
v1("?title"):::projected
c7(["www.wikidata.org"]):::literal
c3(["bd:serviceParam"]):::iri
c9(["biological invasion haswbstatement:P31=Q13442814 -haswbstatement:P921=Q446911"]):::literal
c5(["Search"]):::literal
c11(["mwapi:title"]):::iri
f0[["regex(lower-case(?title),'biological(.)invasion')"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:api"--> c5
c3 --"mwapi:endpoint"--> c7
c3 --"mwapi:srsearch"--> c9
v2 --"mwapi:apiOutput"--> c11
end
bind1[/"concat(str('wd:'),?page_title)"/]
v2 --o bind1
bind1 --as--o v3
v3 --"wdt:P1476"--> v1
bind2[/"replace(str(?item),'.*Q','Q')"/]
v3 --o bind2
bind2 --as--o v4
bind3[/"'P921'"/]
bind3 --as--o v5
bind4[/"'Q446911'"/]
bind4 --as--o v6
bind5[/"'S887'"/]
bind5 --as--o v7
bind6[/"'Q69652283'"/]
bind6 --as--o v8