query-d6cb24da65380d1275b384b4c7ff044a
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT (?name AS ?Searched_name) (?title AS ?ENwiki_found_title) (?item AS ?WD_item) ?incorp_date {
VALUES ?name {"Elpida Memory" "Etron Technology" "Fairchild Semiconductor" "Freescale Semiconductor" "Fuji Film" "Genesys Logic" "CEC Huada Electronic Design" "Integrated Silicon Solution" "Intersil" "IXYS" "Linear Technology" "Lite-On Technology" }
BIND(CONCAT('intitle:"', ?name, '"' ) AS ?intitle)
OPTIONAL {?item wdt:P10786 ?incorp_date .}
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "en.wikipedia.org";
wikibase:api "Generator";
mwapi:generator "search";
mwapi:gsrsearch ?intitle;
mwapi:gsrnamespace "0".
?title wikibase:apiOutput mwapi:title .
?item wikibase:apiOutputItem mwapi:item.
}
}
ORDER BY ?name
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?ENwiki_found_title")
v6("?Searched_name")
v8("?WD_item")
v4("?incorp_date"):::projected
v2("?intitle")
v3("?item"):::projected
v2("?name"):::projected
v5("?title"):::projected
c16(["mwapi:item"]):::iri
c12(["0"]):::literal
c5(["en.wikipedia.org"]):::literal
c9(["search"]):::literal
c3(["bd:serviceParam"]):::iri
c14(["mwapi:title"]):::iri
c7(["Generator"]):::literal
bind0[/VALUES ?name/]
bind0-->v2
bind00(["Elpida Memory"])
bind00 --> bind0
bind01(["Etron Technology"])
bind01 --> bind0
bind02(["Fairchild Semiconductor"])
bind02 --> bind0
bind03(["Freescale Semiconductor"])
bind03 --> bind0
bind04(["Fuji Film"])
bind04 --> bind0
bind05(["Genesys Logic"])
bind05 --> bind0
bind06(["CEC Huada Electronic Design"])
bind06 --> bind0
bind07(["Integrated Silicon Solution"])
bind07 --> bind0
bind08(["Intersil"])
bind08 --> bind0
bind09(["IXYS"])
bind09 --> bind0
bind010(["Linear Technology"])
bind010 --> bind0
bind011(["Lite-On Technology"])
bind011 --> bind0
bind1[/"concat('intitle:"',?name,'"')"/]
v2 --o bind1
bind1 --as--o v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P10786".-> v4
end
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:endpoint"--> c5
c3 --"mwapi:api"--> c7
c3 --"mwapi:generator"--> c9
c3 --"mwapi:gsrsearch"--> v2
c3 --"mwapi:gsrnamespace"--> c12
v5 --"mwapi:apiOutput"--> c14
v3 --"mwapi:apiOutputItem"--> c16
end
bind2[/"?name"/]
v2 --o bind2
bind2 --as--o v6
bind3[/"?title"/]
v5 --o bind3
bind3 --as--o v7
bind4[/"?item"/]
v3 --o bind4
bind4 --as--o v8