query-441f7f05e7f0b9c0abaebc933375682f
Not sure whether this necessarily means that you can actually use this feature. Usually I'd say that something like this should work via their endpoint:
Use at
- https://query.wikidata.org/sparql
PREFIX voc: <http://lei.info/voc/l1/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?glei ?leiCode ?legalName ?legalEntityStatus ?wdItem WHERE {
SERVICE <https://query.wikidata.org/bigdata/namespace/wdq/sparql> {
?wdItem wdt:P1278 ?leiCode .
FILTER(ISLITERAL(?leiCode)) . # to ignore unknown values
}
?glei voc:identifiedBy/voc:leiCode ?leiCode .
?glei voc:legalAddress/voc:country 'KY' . # Cayman Islands
?glei voc:legalName ?legalName .
?glei voc:legalEntityStatus ?legalEntityStatus .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?glei"):::projected
v5("?legalEntityStatus"):::projected
v4("?legalName"):::projected
v1("?leiCode"):::projected
v2("?wdItem"):::projected
a1((" "))
a2((" "))
c7(["KY"]):::literal
subgraph s1["https://query.wikidata.org/bigdata/namespace/wdq/sparql"]
style s1 stroke-width:4px;
f0[["isLiteral(?leiCode)"]]
f0 --> v1
v2 --"wdt:P1278"--> v1
end
v3 --http://lei.info/voc/l1/identifiedBy--> a1
a1 --http://lei.info/voc/l1/leiCode--> v1
v3 --http://lei.info/voc/l1/legalAddress--> a2
a2 --http://lei.info/voc/l1/country--> c7
v3 --http://lei.info/voc/l1/legalName--> v4
v3 --http://lei.info/voc/l1/legalEntityStatus--> v5