Commit 2b0c227f authored by Mitar's avatar Mitar

Updating data-supply paths.

parent a0cadcff
Pipeline #6 passed with stage
in 22 minutes and 5 seconds
......@@ -11,3 +11,4 @@ validation.log
upgrade*.sh
validate*.sh
d3m_data_supply
data-supply
......@@ -3,7 +3,7 @@
# This script validates that problem and dataset descriptions match
# standards and conventions (schemas, naming and directory structure, etc.).
#
# This script expects a that there is a clone of the "d3m_data_supply"
# This script expects a that there is a clone of the "data-supply"
# repository in the same directory as this script.
#
# Checks done by this script:
......@@ -85,16 +85,16 @@ EDGELIST_COLUMN_ROLES = [
'simpleEdgeTarget',
]
if not os.path.exists(os.path.join(os.path.dirname(__file__), 'd3m_data_supply')):
raise Exception("\"d3m_data_supply\" directory is missing. You should clone the repository to be in the same directory as this script.")
if not os.path.exists(os.path.join(os.path.dirname(__file__), 'data-supply')):
raise Exception("\"data-supply\" directory is missing. You should clone the repository to be in the same directory as this script.")
with open(os.path.join(os.path.dirname(__file__), 'd3m_data_supply', 'schemas', 'datasetSchema.json')) as dataset_description_schema_file:
with open(os.path.join(os.path.dirname(__file__), 'data-supply', 'schemas', 'datasetSchema.json')) as dataset_description_schema_file:
dataset_description_validator = cerberus.Validator(json.load(dataset_description_schema_file))
with open(os.path.join(os.path.dirname(__file__), 'd3m_data_supply', 'schemas', 'problemSchema.json')) as problem_description_schema_file:
with open(os.path.join(os.path.dirname(__file__), 'data-supply', 'schemas', 'problemSchema.json')) as problem_description_schema_file:
problem_description_validator = cerberus.Validator(json.load(problem_description_schema_file))
with open(os.path.join(os.path.dirname(__file__), 'd3m_data_supply', 'documentation', 'supportedResourceTypesFormats.json')) as supported_resource_types_formats_file:
with open(os.path.join(os.path.dirname(__file__), 'data-supply', 'documentation', 'supportedResourceTypesFormats.json')) as supported_resource_types_formats_file:
supported_resource_types_formats = json.load(supported_resource_types_formats_file)
res_format_to_extensions = {}
for supported_resource in supported_resource_types_formats['supported_resource_types_and_formats']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment