Skip to content

Instantly share code, notes, and snippets.

@cosmin-marginean
Last active February 19, 2023 20:14
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/c633218bd2bdca04d31d91e3827c5567 to your computer and use it in GitHub Desktop.
Save cosmin-marginean/c633218bd2bdca04d31d91e3827c5567 to your computer and use it in GitHub Desktop.
BODS RDF - Outstanding mortgages for a UBO's companies
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX bods: <http://bods.openownership.org/vocabulary/>
PREFIX bodsr: <http://bods.openownership.org/resource/>
PREFIX cht: <http://www.companieshouse.gov.uk/terms/>
SELECT DISTINCT ?companyName ?mortgages ?directControl ?directControlShares
WHERE {
bodsr:openownership-register-10981547892767219580 bods:ownsOrControls+ ?company .
?company foaf:name ?companyName .
?company cht:NumMortOutstanding ?mortgages .
FILTER (?mortgages > 0)
OPTIONAL {
?ctrlStatement bods:hasInterestedParty bodsr:openownership-register-10981547892767219580 .
?ctrlStatement bods:hasSubject ?company .
?ctrlStatement bods:statesInterest ?interest .
?interest bods:sharesMin ?directControlShares .
}
BIND (IF(BOUND(?ctrlStatement), "true", "false") AS ?directControl)
}
companyName mortgages directControl directControlShares
MOVE - MAKERS LIMITED 218 true 75.0
HURST ESTATE AGENTS LLP 1 true 25.0
CHAIN-SAVERS LIMITED 20 false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment