Skip to content

Instantly share code, notes, and snippets.

@jvsoest
Last active June 7, 2017 14:03
Show Gist options
  • Save jvsoest/31d13cb2da6dabce75e8b6a2cbbc5354 to your computer and use it in GitHub Desktop.
Save jvsoest/31d13cb2da6dabce75e8b6a2cbbc5354 to your computer and use it in GitHub Desktop.
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix icd: <http://purl.bioontology.org/ontology/ICD10/>
prefix uo: <http://purl.obolibrary.org/obo/UO_>
prefix sedi: <http://semantic-dicom.org/dcm#>
prefix seq: <http://semantic-dicom.org/seq#>
SELECT ?dicom_series ?institute ?machine ?anatomicRegionSeq
WHERE {
?patient sedi:hasStudy ?dicom_study.
# get all DICOM series (scans) for this patient
?dicom_study sedi:containsSeries ?dicom_series.
?dicom_series sedi:containsImage ?dicom_image.
#get the modality per DICOM serie
?dicom_series sedi:ATT00080060 ?modality.
?series_equipment sedi:isEquipmentOf ?dicom_series.
OPTIONAL { ?series_equipment sedi:ATT00080080 ?institute }
OPTIONAL { ?series_equipment sedi:ATT00081010 ?machine }
OPTIONAL { ?dicom_series sedi:ATT00082218 ?anatomicRegionSeq. }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment