Skip to content

Instantly share code, notes, and snippets.

@cosmin-marginean
Created February 19, 2023 20:22
Show Gist options
  • Save cosmin-marginean/8692baf2b647baf6e791510321ae8e35 to your computer and use it in GitHub Desktop.
Save cosmin-marginean/8692baf2b647baf6e791510321ae8e35 to your computer and use it in GitHub Desktop.
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))
}
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