Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add staging metadata for matterverse.ai #83

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions src/index-metadbs/matterverse/v1/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"meta": {
"api_version": "1.0.0",
"query": {
"representation": "/info"
},
"more_data_available": false,
"schema": "https://schemas.optimade.org/openapi/v1.0/optimade_index.json"
},
"data": {
"attributes": {
"available_api_versions": [
{
"version": "1.0.0",
"url": "http://providers.optimade.org/index-metadbs/matterverse/v1/"
}
],
"is_index": true,
"formats": [
"json"
],
"entry_types_by_format": {
"json": []
},
"available_endpoints": [
"info",
"links"
],
"api_version": "1.0.0"
},
"type": "info",
"relationships": {
"default": {
"data": {
"id": "matterverse",
"type": "links"
}
}
},
"id": "/"
}
}
35 changes: 35 additions & 0 deletions src/index-metadbs/matterverse/v1/links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"meta": {
"api_version": "1.0.0",
"query": {
"representation": "/links"
},
"more_data_available": false,
"schema": "https://schemas.optimade.org/openapi/v1.0/optimade_index.json"
},
"data": [
{
"id": "matterverse",
"type": "links",
"attributes": {
"name": "Matterverse",
"description": "Database of over 31 million hypothetical materials generated through advanced machine learning algorithms",
"base_url": null,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christen03 this is the one!

"aggregate": "staging",
"homepage": "https://matterverse.ai",
"link_type": "child"
}
},
{
"id": "optimade-providers",
"type": "links",
"attributes": {
"name": "OPTIMADE Providers Index Meta-Database",
"description": "The list of OPTIMADE providers maintained by Materials-Consortia",
"base_url": "https://providers.optimade.org",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"base_url": "https://providers.optimade.org",
"base_url": "matterverse.ai/optimade",

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base_url has to be an URL, thus either http:// or https:// will be needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also not the base_url that you want to change, this is mean to be an additional link back to the providers list. The one you want to change is currently null (I'll tag you in a comment at the correct line)

"homepage": "https://www.optimade.org",
"link_type": "providers"
}
}
]
}
31 changes: 21 additions & 10 deletions src/links/v1/providers.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"meta" : {
"api_version" : "1.0.0",
"query" : {
"representation" : "/links"
},
"more_data_available" : false,
"schema" : "https://schemas.optimade.org/openapi/v1.0/optimade_index.json"
},
"data": [
"meta": {
"api_version": "1.0.0",
"query": {
"representation": "/links"
},
"more_data_available": false,
"schema": "https://schemas.optimade.org/openapi/v1.0/optimade_index.json"
},
"data": [
{
"type": "links",
"id": "aiida",
Expand Down Expand Up @@ -118,6 +118,17 @@
"link_type": "external"
}
},
{
"type": "links",
"id": "matterverse",
"attributes": {
"name": "Matterverse",
"description": "Database of 31 million hypothetical materials generated through advanced machine learning algorithms",
"base_url": "https://providers.optimade.org/index-metadbs/matterverse",
"homepage": "https://matterverse.ai",
"link_type": "external"
}
},
{
"type": "links",
"id": "necro",
Expand Down Expand Up @@ -229,4 +240,4 @@
}
}
]
}
}