Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
metadata-tools
Commits
c0084d2b
Commit
c0084d2b
authored
Apr 23, 2021
by
Vilem Ded
Browse files
update of URLs to new location
parent
3c90cca4
Changes
5
Show whitespace changes
Inline
Side-by-side
metadata_tools/importxls/export_utils.py
View file @
c0084d2b
...
...
@@ -144,7 +144,7 @@ def save_exported_datasets_to_file(exported_dataset, output_file):
else
:
items
=
[
exported_dataset
]
obj
=
{
"$schema"
:
"https://
git-r3lab.uni.lu/pinar.alper/metadata-tools/raw/master/metadata_tools/resource
s/elu-dataset.json"
,
"$schema"
:
"https://
raw.githubusercontent.com/elixir-luxembourg/json-schemas/master/schema
s/elu-dataset.json"
,
"items"
:
items
}
return
json
.
dump
(
obj
,
output_file
,
ensure_ascii
=
False
,
indent
=
4
)
tests/schemas/data/datasets.json
View file @
c0084d2b
{
"$schema"
:
"https://
git-r3lab.uni.lu/pinar.alper/metadata-tools/raw/master/metadata_tools/resource
s/elu-dataset.json"
,
"$schema"
:
"https://
raw.githubusercontent.com/elixir-luxembourg/json-schemas/master/schema
s/elu-dataset.json"
,
"items"
:
[
{
"source"
:
"example.com"
,
...
...
tests/schemas/data/partners.json
View file @
c0084d2b
{
"$schema"
:
"https://
git-r3lab.uni.lu/pinar.alper/metadata-tools/raw/master/metadata_tools/resource
s/elu-institution.json"
,
"$schema"
:
"https://
raw.githubusercontent.com/elixir-luxembourg/json-schemas/master/schema
s/elu-institution.json"
,
"items"
:
[
{
"pk"
:
"12"
,
...
...
tests/schemas/data/projects.json
View file @
c0084d2b
{
"$schema"
:
"https://
git-r3lab.uni.lu/pinar.alper/metadata-tools/raw/master/metadata_tools/resource
s/elu-project.json"
,
"$schema"
:
"https://
raw.githubusercontent.com/elixir-luxembourg/json-schemas/master/schema
s/elu-project.json"
,
"items"
:
[
{
"source"
:
"example.com"
,
...
...
tests/schemas/test_elx_schemas.py
View file @
c0084d2b
...
...
@@ -7,7 +7,7 @@ import os
# Fixtures
dirname
=
os
.
path
.
dirname
(
__file__
)
testdata_dir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
dirname
,
"data/"
))
schema_dir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
dirname
,
"../../metadata_tools/resources/"
))
schema_dir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
dirname
,
"../../metadata_tools/resources/
json-schemas/schemas
"
))
schema_testdata_filename_map
=
[
(
'elu-dataset.json'
,
'datasets.json'
),
#('elu-project.json', 'projects.json'),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment