initial
This commit is contained in:
commit
9be0ed534b
4 changed files with 8350 additions and 0 deletions
11
get.py
Normal file
11
get.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import requests
|
||||
import yaml
|
||||
import json
|
||||
|
||||
with open('sources.yaml', 'r') as sfile:
|
||||
sources = yaml.safe_load(sfile)
|
||||
|
||||
for source in sources:
|
||||
schema = requests.get(source['source'])
|
||||
with open(source['target'], 'w') as jfile:
|
||||
json.dump(schema.json(), jfile, indent=2)
|
8335
linkml.json
Normal file
8335
linkml.json
Normal file
File diff suppressed because it is too large
Load diff
2
requirements.txt
Normal file
2
requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
requests
|
||||
PyYaml
|
2
sources.yaml
Normal file
2
sources.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
- source: https://raw.githubusercontent.com/linkml/linkml-model/main/linkml_model/jsonschema/meta.schema.json
|
||||
target: linkml.json
|
Loading…
Reference in a new issue