Skip to content

Commit

Permalink
fix: update siibra-python req (map.find_volumes
Browse files Browse the repository at this point in the history
add: codemeta/service meta
  • Loading branch information
xgui3783 committed Aug 28, 2024
1 parent f7f181b commit e90acc8
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 3 deletions.
37 changes: 35 additions & 2 deletions api/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,37 @@ def get_ready():
TODO: implement me"""
return "ready"

@siibra_api.get("/servicemeta.json", include_in_schema=False)
def servicemeta():
return {
"@context": "https://gitlab.ebrains.eu/lauramble/servicemeta/-/raw/main/data/contexts/servicemeta.jsonld",
"type": "WebApplication",
"alternateName": "siibra-api",
"author": [
{
"type": "Person",
"schema:affiliation": {
"type": "Organization",
"name": "Forschungszentrum Juelich"
},
"email": "[email protected]",
"familyName": "Gui",
"givenName": "Xiaoyun"
}
],
"dateModified": "2024-08-28",
"documentation": "https://siibra-api.readthedocs.io/en/latest/",
"name": "siibra-api",
"version": "0.3.18",
"inputFormat": [
"json"
],
"outputFormat": [
"nifti",
"json"
]
}

@siibra_api.get("/", include_in_schema=False)
def get_home(request: Request):
"""Return the template for the siibra landing page."""
Expand All @@ -94,17 +125,19 @@ async def read_bytes(generator) -> bytes:
do_not_cache_list = [
"metrics",
"openapi.json",
"atlas_download"
"atlas_download",
"servicemeta",
]

do_no_cache_query_list = [
"bbox=",
"find="
"find=",
]

do_not_logs = (
"/ready",
"/metrics",
"servicemeta"
)


Expand Down
57 changes: 57 additions & 0 deletions codemeta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"type": "SoftwareSourceCode",
"author": [
{
"id": "_:author_1",
"type": "Person",
"affiliation": {
"type": "Organization",
"name": "Forschungszentrum Juelich"
},
"email": "[email protected]",
"familyName": "Gui",
"givenName": "Xiaoyun"
},
{
"id": "_:author_2",
"type": "Person",
"familyName": "Marcenko",
"givenName": "Vadim"
},
{
"id": "_:author_3",
"type": "Person",
"familyName": "Simsek",
"givenName": "Ahmet Nihat"
},
{
"id": "https://orcid.org/0000-0002-9051-3701",
"type": "Person",
"affiliation": {
"type": "Organization",
"name": "Forschungszentrum Juelich"
},
"email": "[email protected]",
"familyName": "Dickscheid",
"givenName": "Timo"
}
],
"codeRepository": "git+https://github.com/fzj-inm1-bda/siibra-api.git",
"dateCreated": "2024-08-28",
"dateModified": "2024-08-28",
"datePublished": "2021-07-18",
"description": "Siibra-API provides an easy REST access to the siibra-python features.\n\n The main goal is to abstract the python functionalities in a way that they can be used via HTTP and make it more independent and accessible.",
"license": "https://spdx.org/licenses/Apache-2.0",
"name": "siibra-api",
"programmingLanguage": [
"python 3"
],
"runtimePlatform": "docker",
"version": "0.3.18",
"contIntegration": "https://github.com/FZJ-INM1-BDA/siibra-api/actions",
"codemeta:continuousIntegration": {
"id": "https://github.com/FZJ-INM1-BDA/siibra-api/actions"
},
"issueTracker": "https://github.com/fzj-inm1-bda/siibra-api/issues"
}
2 changes: 1 addition & 1 deletion requirements/v4-siibra.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# refactor_attr is... borked since dataops are being introduced
git+https://github.com/FZJ-INM1-BDA/siibra-python.git@769ab07c05555b2c66261f9a38516e247e70318a
git+https://github.com/xgui3783/siibra-python.git@aeffb478a1c98f3bec276ab820f5e50355c598a4

0 comments on commit e90acc8

Please sign in to comment.