Created
February 19, 2023 20:22
-
-
Save cosmin-marginean/8692baf2b647baf6e791510321ae8e35 to your computer and use it in GitHub Desktop.
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 | |
WHERE { | |
?parent bods:ownsOrControls+ ?company . | |
?parent bods:ownsOrControls+ bodsr:openownership-register-8251351163712700915 . | |
?company foaf:name ?companyName . | |
?company cht:NumMortOutstanding ?mortgages . | |
FILTER (?mortgages > 0) | |
FILTER (!sameTerm(?company, bodsr:openownership-register-8251351163712700915)) | |
} |
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 | |
---|---|---|
FOSTER JENKINS DEVELOPMENTS LIMITED | 6 | |
PLEDREAM PROPERTIES LIMITED | 224 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment