Skip to content

Commit

Permalink
Update search config (#4067)
Browse files Browse the repository at this point in the history
* Set explicit mapping for the values of neuronDensity, layerThickness and boutonDensity

* Add context for `startedAt` and `endedAt`

* Update to latest neuroshapes context

* Port change from prod manifest

* Expected dates as ES indexes them

---------

Co-authored-by: Simon <simon.dumas@protonmail.com>
  • Loading branch information
olivergrabinski and imsdu authored Jul 17, 2023
1 parent d5f8307 commit d51a201
Show file tree
Hide file tree
Showing 6 changed files with 210 additions and 36 deletions.
4 changes: 2 additions & 2 deletions tests/docker/config/construct-query.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ CONSTRUCT {
?protocolId schema:value ?protocolValue .
} .
} .
OPTIONAL { ?generation prov:startedAtTime / schema:value ?generationStartedAtTime . } .
OPTIONAL { ?generation prov:endedAtTime / schema:value ?generationEndedAtTime . } .
OPTIONAL { ?generation prov:startedAtTime ?generationStartedAtTime . } .
OPTIONAL { ?generation prov:endedAtTime ?generationEndedAtTime . } .
}

# Image
Expand Down
15 changes: 15 additions & 0 deletions tests/docker/config/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,21 @@
"properties": {
"value": { "type": "double" }
}
},
"neuronDensity": {
"properties": {
"value": { "type": "double" }
}
},
"layerThickness": {
"properties": {
"value": { "type": "double" }
}
},
"boutonDensity": {
"properties": {
"value": { "type": "double" }
}
}
}
}
6 changes: 6 additions & 0 deletions tests/docker/config/search-context.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
"updatedAt": {
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"startedAt": {
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"endedAt": {
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"_self": {
"@type": "@id",
"@id": "https://bluebrain.github.io/nexus/field/self"
Expand Down
4 changes: 2 additions & 2 deletions tests/src/test/resources/kg/search/activity.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"endedAtTime": {
"@type": "xsd:dateTime",
"value": "2015-05-01T00:00:00"
"@value": "2015-05-01T00:00:00"
},
"generated": {
"@id": "https://bbp.epfl.ch/neurosciencegraph/data/neuronmorphologies/da3b1e42-5f7f-4065-8be3-d2132c219bc2",
Expand All @@ -27,7 +27,7 @@
"reconstructionCompressionCorrected": "yes",
"startedAtTime": {
"@type": "xsd:dateTime",
"value": "2015-01-21T00:00:00"
"@value": "2015-01-21T00:00:00"
},
"used": {
"@id": "https://bbp.epfl.ch/neurosciencegraph/data/5d43d0ad-1edd-434d-9a08-907968ecdbc3",
Expand Down
Loading

0 comments on commit d51a201

Please sign in to comment.