Last active
February 19, 2023 20:14
-
-
Save cosmin-marginean/c633218bd2bdca04d31d91e3827c5567 to your computer and use it in GitHub Desktop.
BODS RDF - Outstanding mortgages for a UBO's companies
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 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) | |
} |
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
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