Created
February 5, 2023 10:05
BODS RDF - Find UBOs ownership chain
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 ?parent ?child | |
WHERE { | |
?ubo bods:ownsOrControls* ?a . | |
?ubo foaf:name ?uboName . | |
?ubo rdf:type bods:Person . | |
?a foaf:name ?parent . | |
?a bods:ownsOrControls ?b . | |
?b foaf:name ?child . | |
?b bods:ownsOrControls* | |
bods-res:openownership-register-6295574063848670981 . | |
} | |
ORDER BY ?uboName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment