-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update siibra-python req (map.find_volumes
add: codemeta/service meta
- Loading branch information
Showing
3 changed files
with
93 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.""" | ||
|
@@ -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" | ||
) | ||
|
||
|
||
|
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,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" | ||
} |
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 |
---|---|---|
@@ -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 |