Skip to content

Instantly share code, notes, and snippets.

@jmandel
Created May 30, 2012 17:16
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 jmandel/2837723 to your computer and use it in GitHub Desktop.
Save jmandel/2837723 to your computer and use it in GitHub Desktop.
SPARQL: Problems --> Body Parts
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
PREFIX umls:<http://bioportal.bioontology.org/ontologies/umls/>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
select distinct ?xl ?bodyPartLabel {
?x rdfs:subClassOf* ?y.
?y <http://purl.bioontology.org/ontology/SNOMEDCT/has_finding_site> ?z.
?z rdfs:subClassOf* ?bodyPart.
?x skos:prefLabel ?xl.
?bodyPart skos:prefLabel ?bodyPartLabel.
} BINDINGS ?x {
(<http://purl.bioontology.org/ontology/SNOMEDCT/267024001>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/76498008>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/89164003>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/18933600>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/38341003>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/30952300>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/55822004>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/18590300>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/12692600>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/16041008>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/21329900>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/25483700>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/19358900>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/168750009>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/78809005>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/38341003>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/443092002>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/235651006>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/161591004>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/40930008>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/396275006>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/236104004>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/10601006>)
(<http://purl.bioontology.org/ontology/SNOMEDCT/84027009>)
}
Xl BodyPartLabel
"Postmenopausal state"@en "Female genital structure"@en
"Postmenopausal state"@en "Genital structure"@en
"Postmenopausal state"@en "Female genitourinary system structure"@en
"Postmenopausal state"@en "Structure of anatomical reproductive system"@en
"Postmenopausal state"@en "Structure of genitourinary system"@en
"Postmenopausal state"@en "Female structure"@en
"Postmenopausal state"@en "Pelvic structure"@en
"Postmenopausal state"@en "Body system structure"@en
"Postmenopausal state"@en "Sex structure"@en
"Postmenopausal state"@en "Lower trunk structure"@en
"Postmenopausal state"@en "Pelvis and lower extremities"@en
"Postmenopausal state"@en "Abdomen and pelvis"@en
"Postmenopausal state"@en "Anatomical structure"@en
"Postmenopausal state"@en "Structure of subregion of trunk"@en
"Postmenopausal state"@en "Lower body part structure"@en
"Postmenopausal state"@en "Neck, chest, abdomen, and pelvis"@en
"Postmenopausal state"@en "Chest, abdomen, and pelvis"@en
"Postmenopausal state"@en "Anatomical or acquired body structure"@en
"Postmenopausal state"@en "Physical anatomical entity"@en
"Postmenopausal state"@en "Trunk structure"@en
"Postmenopausal state"@en "Lower body structure"@en
"Postmenopausal state"@en "Body region structure"@en
"Postmenopausal state"@en "Body structure"@en
"Postmenopausal state"@en "Body part structure"@en
"Postmenopausal state"@en "SNOMED CT Concept"@en
"Breast lump"@en "Breast structure"@en
"Breast lump"@en "Body organ structure"@en
"Breast lump"@en "Thoracic structure"@en
"Breast lump"@en "Structure of breast and/or endocrine system"@en
"Breast lump"@en "Anatomical structure"@en
"Breast lump"@en "Upper trunk structure"@en
"Breast lump"@en "Upper body part structure"@en
"Breast lump"@en "Chest and abdomen"@en
"Breast lump"@en "Neck and chest"@en
"Breast lump"@en "Body system structure"@en
"Breast lump"@en "Anatomical or acquired body structure"@en
"Breast lump"@en "Physical anatomical entity"@en
"Breast lump"@en "Structure of subregion of trunk"@en
"Breast lump"@en "Upper body structure"@en
"Breast lump"@en "Neck, chest and abdomen"@en
"Breast lump"@en "Chest, abdomen, and pelvis"@en
"Breast lump"@en "Body structure"@en
"Breast lump"@en "Trunk structure"@en
"Breast lump"@en "Body part structure"@en
"Breast lump"@en "Neck, chest, abdomen, and pelvis"@en
"Breast lump"@en "Body region structure"@en
"Breast lump"@en "SNOMED CT Concept"@en
"Hypertensive disorder"@en "Systemic circulatory system structure"@en
"Hypertensive disorder"@en "Structure of cardiovascular system"@en
"Hypertensive disorder"@en "Body system structure"@en
"Hypertensive disorder"@en "Anatomical structure"@en
"Hypertensive disorder"@en "Anatomical or acquired body structure"@en
"Hypertensive disorder"@en "Physical anatomical entity"@en
"Hypertensive disorder"@en "Body structure"@en
"Hypertensive disorder"@en "SNOMED CT Concept"@en
"Female hypogonadism syndrome"@en "Ovarian endocrine structure"@en
"Female hypogonadism syndrome"@en "Gonadal endocrine structure"@en
"Female hypogonadism syndrome"@en "Ovarian part"@en
"Female hypogonadism syndrome"@en "Gonadal structure"@en
"Female hypogonadism syndrome"@en "Endocrine gland structure"@en
"Female hypogonadism syndrome"@en "Ovarian structure"@en
"Female hypogonadism syndrome"@en "Female genital organ part"@en
"Female hypogonadism syndrome"@en "Genital structure"@en
"Female hypogonadism syndrome"@en "Structure of endocrine system"@en
"Female hypogonadism syndrome"@en "Gland structure"@en
"Female hypogonadism syndrome"@en "Female genital tract structure"@en
"Female hypogonadism syndrome"@en "Female genital organ structure"@en
"Female hypogonadism syndrome"@en "Uterine adnexae structure"@en
"Female hypogonadism syndrome"@en "Pelvic cavity female genital structure"@en
"Female hypogonadism syndrome"@en "Structure of pelvic viscus"@en
"Female hypogonadism syndrome"@en "Ovary and/or broad ligament structures"@en
"Female hypogonadism syndrome"@en "Organ part"@en
"Female hypogonadism syndrome"@en "Female genitourinary system structure"@en
"Female hypogonadism syndrome"@en "Structure of anatomical reproductive system"@en
"Female hypogonadism syndrome"@en "Structure of breast and/or endocrine system"@en
"Female hypogonadism syndrome"@en "Body organ structure"@en
"Female hypogonadism syndrome"@en "Female genital structure"@en
"Female hypogonadism syndrome"@en "Female internal genitalia structure"@en
"Female hypogonadism syndrome"@en "Upper female genital structure"@en
"Female hypogonadism syndrome"@en "Pelvic genital structure"@en
"Female hypogonadism syndrome"@en "Pelvic structure"@en
"Female hypogonadism syndrome"@en "Structure of viscus"@en
"Female hypogonadism syndrome"@en "Structure of genitourinary system"@en
"Female hypogonadism syndrome"@en "Female structure"@en
"Female hypogonadism syndrome"@en "Body system structure"@en
"Female hypogonadism syndrome"@en "Anatomical structure"@en
"Female hypogonadism syndrome"@en "Pelvic cavity structure"@en
"Female hypogonadism syndrome"@en "Lower trunk structure"@en
"Female hypogonadism syndrome"@en "Pelvis and lower extremities"@en
"Female hypogonadism syndrome"@en "Abdomen and pelvis"@en
"Female hypogonadism syndrome"@en "Sex structure"@en
"Female hypogonadism syndrome"@en "Anatomical or acquired body structure"@en
"Female hypogonadism syndrome"@en "Physical anatomical entity"@en
"Female hypogonadism syndrome"@en "Abdominal cavity structure"@en
"Female hypogonadism syndrome"@en "Structure of body cavity subdivision"@en
"Female hypogonadism syndrome"@en "Structure of subregion of trunk"@en
"Female hypogonadism syndrome"@en "Lower body part structure"@en
"Female hypogonadism syndrome"@en "Neck, chest, abdomen, and pelvis"@en
"Female hypogonadism syndrome"@en "Chest, abdomen, and pelvis"@en
"Female hypogonadism syndrome"@en "Body structure"@en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment