Created
February 5, 2023 10:04
-
-
Save cosmin-marginean/25bb4f4b51c7cf18daae6485c0ecdb85 to your computer and use it in GitHub Desktop.
BODS RDF - Find UBOs for a target
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX bods: <http://bods.openownership.org/vocabulary/> | |
PREFIX bods-res: <http://bods.openownership.org/resource/> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
SELECT ?uboName ?directCtrlCompanyName | |
WHERE { | |
?ubo rdf:type bods:Person . | |
?ubo foaf:name ?uboName . | |
?ubo bods:ownsOrControls ?directCtrlCompany . | |
?directCtrlCompany foaf:name ?directCtrlCompanyName . | |
?directCtrlCompany bods:ownsOrControls* | |
bods-res:openownership-register-7925164146744028567 . | |
} | |
ORDER BY ?uboName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment