Skip to content

Instantly share code, notes, and snippets.

@cosmin-marginean
Created February 5, 2023 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosmin-marginean/25bb4f4b51c7cf18daae6485c0ecdb85 to your computer and use it in GitHub Desktop.
Save cosmin-marginean/25bb4f4b51c7cf18daae6485c0ecdb85 to your computer and use it in GitHub Desktop.
BODS RDF - Find UBOs for a target
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