-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from MaastrichtU-CDS/release/0.3
Release/0.3
- Loading branch information
Showing
18 changed files
with
631 additions
and
80 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX ldcm: <https://johanvansoest.nl/ontologies/LinkedDicom/> | ||
|
||
select * | ||
where { | ||
?rtDose rdf:type ldcm:Radiotherapy_Dose_Object; | ||
ldcm:T300C0002 [ | ||
ldcm:has_sequence_item [ | ||
ldcm:R00081155 ?rtPlan; | ||
]; | ||
]. | ||
|
||
?rtPlan rdf:type ldcm:Radiotherapy_Plan_Object; | ||
ldcm:T300C0060 [ | ||
ldcm:has_sequence_item [ | ||
ldcm:R00081155 ?rtStruct; | ||
]; | ||
]. | ||
|
||
?rtStruct rdf:type ldcm:Radiotherapy_Structure_Object; | ||
ldcm:T30060010 [ | ||
ldcm:has_sequence_item [ | ||
ldcm:T30060012 [ | ||
ldcm:has_sequence_item [ | ||
ldcm:T30060014 [ | ||
ldcm:has_sequence_item [ | ||
ldcm:R0020000E ?ctSeries; | ||
]; | ||
]; | ||
]; | ||
]; | ||
]; | ||
]. | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX schema: <https://schema.org/> | ||
prefix ldcm-dvh: <https://johanvansoest.nl/ontologies/LinkedDicom-dvh/> | ||
PREFIX ou: <http://purl.obolibrary.org/obo/UO_> | ||
|
||
select ?calculation_job ?softwareUsed ?dateTime ?structureName ?sRGB ?minDose ?meanDose ?maxDose ?volumeCC | ||
where { | ||
?calculation_job rdf:type ldcm-dvh:CalculationResult; | ||
ldcm-dvh:containsStructureDose ?structureDose; | ||
schema:SoftwareApplication ?softwareUsed; | ||
schema:dateCreated ?dateTime. | ||
|
||
?structureDose ldcm-dvh:structureName ?structureName; | ||
<https://www.wikidata.org/wiki/Q284140> ?sRGB; | ||
ldcm-dvh:min [ schema:value ?minDose; ]; | ||
ldcm-dvh:mean [ schema:value ?meanDose; ]; | ||
ldcm-dvh:max [ schema:value ?maxDose; ]; | ||
ldcm-dvh:volume [ schema:value ?volumeCC; rdf:type ou:0000097; ]; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX schema: <https://schema.org/> | ||
prefix ldcm-dvh: <https://johanvansoest.nl/ontologies/LinkedDicom-dvh/> | ||
PREFIX ou: <http://purl.obolibrary.org/obo/UO_> | ||
|
||
select * | ||
where { | ||
?calculation_job rdf:type ldcm-dvh:CalculationResult; | ||
ldcm-dvh:containsStructureDose ?structureDose. | ||
|
||
?structureDose ldcm-dvh:structureName "Lung_L"; | ||
<https://www.wikidata.org/wiki/Q284140> ?sRGB; | ||
ldcm-dvh:dvh_curve ?curve. | ||
?curve ldcm-dvh:dvh_point [ | ||
ldcm-dvh:dvh_d_point ?d_value; | ||
ldcm-dvh:dvh_v_point ?v_value; | ||
]; | ||
} | ||
ORDER BY ?d_value |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX schema: <https://schema.org/> | ||
prefix ldcm-dvh: <https://johanvansoest.nl/ontologies/LinkedDicom-dvh/> | ||
PREFIX ou: <http://purl.obolibrary.org/obo/UO_> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
select ?calculation_job (xsd:int(round(avg(?v_value))) as ?v) | ||
where { | ||
BIND(xsd:double(30) AS ?d_point). | ||
BIND(xsd:double(0.01) AS ?tolerance). | ||
BIND("Heart" AS ?structureName) | ||
|
||
?calculation_job rdf:type ldcm-dvh:CalculationResult; | ||
ldcm-dvh:containsStructureDose ?structureDose. | ||
|
||
?structureDose ldcm-dvh:structureName ?structureName; | ||
ldcm-dvh:dvh_curve ?curve. | ||
?curve ldcm-dvh:dvh_point [ | ||
ldcm-dvh:dvh_d_point ?d_value; | ||
ldcm-dvh:dvh_v_point ?v_value; | ||
]; | ||
filter ((?d_value > (?d_point - ?tolerance)) && (?d_value < (?d_point + ?tolerance))) | ||
} | ||
GROUP BY ?calculation_job |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX schema: <https://schema.org/> | ||
prefix ldcm-dvh: <https://johanvansoest.nl/ontologies/LinkedDicom-dvh/> | ||
PREFIX ou: <http://purl.obolibrary.org/obo/UO_> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
select ?calculation_job ((round(avg(?d_value*10))/10) as ?d) | ||
where { | ||
BIND(xsd:double(10) AS ?v_point). | ||
BIND(xsd:double(0.1) AS ?tolerance). | ||
BIND("Heart" AS ?structureName) | ||
|
||
?calculation_job rdf:type ldcm-dvh:CalculationResult; | ||
ldcm-dvh:containsStructureDose ?structureDose. | ||
|
||
?structureDose ldcm-dvh:structureName ?structureName; | ||
ldcm-dvh:dvh_curve ?curve. | ||
?curve ldcm-dvh:dvh_point [ | ||
ldcm-dvh:dvh_d_point ?d_value; | ||
ldcm-dvh:dvh_v_point ?v_value; | ||
]; | ||
filter ((?v_value > (?v_point - ?tolerance)) && (?v_value < (?v_point + ?tolerance))) | ||
} | ||
GROUP BY ?calculation_job |
Oops, something went wrong.