Skip to content

Commit

Permalink
Make simulationReady property a construction from a quality metric an…
Browse files Browse the repository at this point in the history
…notation (#5115)

* Make simulationReady property a construction from a quality metric annotation

* added the quality measurement annotation type

* revert last change and some query fixes

* fix typo in type of annotation

* Update dependencies for 1.10.0-M19 (#5121)

Co-authored-by: Simon Dumas <[email protected]>

* fix little typo

* remove unused text

---------

Co-authored-by: Simon <[email protected]>
Co-authored-by: Simon Dumas <[email protected]>
  • Loading branch information
3 people authored Aug 27, 2024
1 parent d549955 commit 4018d37
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 31 deletions.
48 changes: 38 additions & 10 deletions tests/docker/config/construct-query.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +353,6 @@ CONSTRUCT {
)
}

OPTIONAL {
BIND(
IF(
EXISTS {?id nsg:annotation / nsg:hasBody <https://bbp.epfl.ch/ontologies/core/bmo/SimulationReady> .},
true,
false
) AS ?simulationReady
)
}

OPTIONAL {
BIND(
IF(
Expand Down Expand Up @@ -655,6 +645,44 @@ CONSTRUCT {
BIND( BNODE((CONCAT(STR(?id), '/neuronDensity'))) as ?neuronDensityBN ) .
} .

# NeuronMorphologies
OPTIONAL {
?id a nsg:NeuronMorphology ;
^nsg:hasSource / ^nsg:hasTarget ?qualityMeasurementAnnotation .

?qualityMeasurementAnnotation a nsg:QualityMeasurementAnnotation .

?qualityMeasurementAnnotation nsg:hasBody ?canBeLoadedBody .
?canBeLoadedBody nsg:isMeasurementOf bmo:CanBeLoadedWithMorphioMetric ;
schema:value ?canBeLoaded .

?qualityMeasurementAnnotation nsg:hasBody ?neuriteHasDiffDiameterBody .
?neuriteHasDiffDiameterBody nsg:isMeasurementOf bmo:NeuriteHasDifferentDiametersMetric ;
schema:value ?neuriteHasDiffDiameter .

?qualityMeasurementAnnotation nsg:hasBody ?hasNonZeroNeuriteRadiiBody .
?hasNonZeroNeuriteRadiiBody nsg:isMeasurementOf bmo:HasAllNonZeroNeuriteRadiiMetric ;
schema:value ?hasNonZeroNeuriteRadii .

?qualityMeasurementAnnotation nsg:hasBody ?hasNonZeroSectionLengthBody .
?hasNonZeroSectionLengthBody nsg:isMeasurementOf bmo:HasAllNonZeroSectionLengthsMetric ;
schema:value ?hasNonZeroSectionLength .

?qualityMeasurementAnnotation nsg:hasBody ?hasNonZeroSomaBody .
?hasNonZeroSomaBody nsg:isMeasurementOf bmo:HasNoZeroSomaRadiusMetric ;
schema:value ?hasNonZeroSoma .
BIND(
IF (?canBeLoaded &&
?neuriteHasDiffDiameter &&
?hasNonZeroNeuriteRadii &&
?hasNonZeroSectionLength &&
?hasNonZeroSoma,
true,
false
) AS ?simulationReady
)
}

# Simulation campaign configuration
OPTIONAL {
?id a bmo:SimulationCampaignConfiguration .
Expand Down
Loading

0 comments on commit 4018d37

Please sign in to comment.