diff --git a/.jupyter/api_authentication/models/column_dto.py b/.jupyter/api_authentication/models/column_dto.py index a10ab13755e5a2dc8f96502ed7e6d70f4b1d727a..7afd5f2efe895e01aae1cf6cecf11fc6fce30468 100644 --- a/.jupyter/api_authentication/models/column_dto.py +++ b/.jupyter/api_authentication/models/column_dto.py @@ -90,11 +90,13 @@ class ColumnDto(object): if references is not None: self.references = references self.internal_name = internal_name - self.date_format = date_format + if date_format is not None: + self.date_format = date_format self.auto_generated = auto_generated self.is_primary_key = is_primary_key self.column_type = column_type - self.column_concept = column_concept + if column_concept is not None: + self.column_concept = column_concept if decimal_digits_before is not None: self.decimal_digits_before = decimal_digits_before if decimal_digits_after is not None: @@ -308,11 +310,11 @@ class ColumnDto(object): if column_type is None: raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 allowed_values = ["ColumnTypeDto.ENUM", "ColumnTypeDto.NUMBER", "ColumnTypeDto.DECIMAL", "ColumnTypeDto.STRING", "ColumnTypeDto.TEXT", "ColumnTypeDto.BOOLEAN", "ColumnTypeDto.DATE", "ColumnTypeDto.TIMESTAMP", "ColumnTypeDto.BLOB"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) + #if column_type not in allowed_values: + # raise ValueError( + # "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 + # .format(column_type, allowed_values) + # ) self._column_type = column_type @@ -334,8 +336,6 @@ class ColumnDto(object): :param column_concept: The column_concept of this ColumnDto. # noqa: E501 :type: ConceptDto """ - if column_concept is None: - raise ValueError("Invalid value for `column_concept`, must not be `None`") # noqa: E501 self._column_concept = column_concept diff --git a/.jupyter/api_container/models/column_dto.py b/.jupyter/api_container/models/column_dto.py index 6bfa26fa1dd337b68320215f13f592d8dbea20f4..e7d8778b62db0a624f30d665e0eff49749468291 100644 --- a/.jupyter/api_container/models/column_dto.py +++ b/.jupyter/api_container/models/column_dto.py @@ -90,11 +90,13 @@ class ColumnDto(object): if references is not None: self.references = references self.internal_name = internal_name - self.date_format = date_format + if date_format is not None: + self.date_format = date_format self.auto_generated = auto_generated self.is_primary_key = is_primary_key self.column_type = column_type - self.column_concept = column_concept + if column_concept is not None: + self.column_concept = column_concept if decimal_digits_before is not None: self.decimal_digits_before = decimal_digits_before if decimal_digits_after is not None: @@ -308,11 +310,11 @@ class ColumnDto(object): if column_type is None: raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 allowed_values = ["ColumnTypeDto.ENUM", "ColumnTypeDto.NUMBER", "ColumnTypeDto.DECIMAL", "ColumnTypeDto.STRING", "ColumnTypeDto.TEXT", "ColumnTypeDto.BOOLEAN", "ColumnTypeDto.DATE", "ColumnTypeDto.TIMESTAMP", "ColumnTypeDto.BLOB"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) + #if column_type not in allowed_values: + # raise ValueError( + # "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 + # .format(column_type, allowed_values) + # ) self._column_type = column_type @@ -334,8 +336,6 @@ class ColumnDto(object): :param column_concept: The column_concept of this ColumnDto. # noqa: E501 :type: ConceptDto """ - if column_concept is None: - raise ValueError("Invalid value for `column_concept`, must not be `None`") # noqa: E501 self._column_concept = column_concept diff --git a/.jupyter/api_database/models/column_dto.py b/.jupyter/api_database/models/column_dto.py index 9177989e7dd3f8d7e72f4cf9d3bd3c7d8daf4ca3..10de4f2ab06f98daa42052678920eecea0bdf37f 100644 --- a/.jupyter/api_database/models/column_dto.py +++ b/.jupyter/api_database/models/column_dto.py @@ -90,11 +90,13 @@ class ColumnDto(object): if references is not None: self.references = references self.internal_name = internal_name - self.date_format = date_format + if date_format is not None: + self.date_format = date_format self.auto_generated = auto_generated self.is_primary_key = is_primary_key self.column_type = column_type - self.column_concept = column_concept + if column_concept is not None: + self.column_concept = column_concept if decimal_digits_before is not None: self.decimal_digits_before = decimal_digits_before if decimal_digits_after is not None: @@ -308,11 +310,11 @@ class ColumnDto(object): if column_type is None: raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 allowed_values = ["ColumnTypeDto.ENUM", "ColumnTypeDto.NUMBER", "ColumnTypeDto.DECIMAL", "ColumnTypeDto.STRING", "ColumnTypeDto.TEXT", "ColumnTypeDto.BOOLEAN", "ColumnTypeDto.DATE", "ColumnTypeDto.TIMESTAMP", "ColumnTypeDto.BLOB"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) + #if column_type not in allowed_values: + # raise ValueError( + # "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 + # .format(column_type, allowed_values) + # ) self._column_type = column_type @@ -334,8 +336,6 @@ class ColumnDto(object): :param column_concept: The column_concept of this ColumnDto. # noqa: E501 :type: ConceptDto """ - if column_concept is None: - raise ValueError("Invalid value for `column_concept`, must not be `None`") # noqa: E501 self._column_concept = column_concept diff --git a/.jupyter/api_query/models/column_dto.py b/.jupyter/api_query/models/column_dto.py index 4873a95e8de00c9fd8622dd19aeec1010eb97d3a..9a4b657473224c496bc37e20470158e475fbf7b7 100644 --- a/.jupyter/api_query/models/column_dto.py +++ b/.jupyter/api_query/models/column_dto.py @@ -310,11 +310,11 @@ class ColumnDto(object): if column_type is None: raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 allowed_values = ["ColumnTypeDto.ENUM", "ColumnTypeDto.NUMBER", "ColumnTypeDto.DECIMAL", "ColumnTypeDto.STRING", "ColumnTypeDto.TEXT", "ColumnTypeDto.BOOLEAN", "ColumnTypeDto.DATE", "ColumnTypeDto.TIMESTAMP", "ColumnTypeDto.BLOB"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) + #if column_type not in allowed_values: + # raise ValueError( + # "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 + # .format(column_type, allowed_values) + # ) self._column_type = column_type diff --git a/.jupyter/api_table/models/column_dto.py b/.jupyter/api_table/models/column_dto.py index 75f507814e83bc88c6cb76bd29379e3e12354d5f..5fc05d2630869af4039556e92c077f991a9c4591 100644 --- a/.jupyter/api_table/models/column_dto.py +++ b/.jupyter/api_table/models/column_dto.py @@ -310,11 +310,11 @@ class ColumnDto(object): if column_type is None: raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 allowed_values = ["ColumnTypeDto.ENUM", "ColumnTypeDto.NUMBER", "ColumnTypeDto.DECIMAL", "ColumnTypeDto.STRING", "ColumnTypeDto.TEXT", "ColumnTypeDto.BOOLEAN", "ColumnTypeDto.DATE", "ColumnTypeDto.TIMESTAMP", "ColumnTypeDto.BLOB"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) + #if column_type not in allowed_values: + # raise ValueError( + # "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 + # .format(column_type, allowed_values) + # ) self._column_type = column_type diff --git a/.jupyter/dev.py b/.jupyter/dev.py deleted file mode 100755 index 5f4cf64f3824e333372bf5ae61c811afe1e19d45..0000000000000000000000000000000000000000 --- a/.jupyter/dev.py +++ /dev/null @@ -1,10 +0,0 @@ -import csv -import time - -with open('./resources/ugz_ogd_air_h1_2021.csv', mode='r', encoding='utf-8-sig') as f: - csv_reader = csv.reader(f, delimiter=',', quotechar='"') - for row in csv_reader: - payload = {'date': row[0], 'location': row[1], 'parameter': row[2], 'interval': row[3], 'unit': row[4], - 'value': row[5], 'status': row[6]} - print('sending', payload, '...') - time.sleep(5) diff --git a/.jupyter/feature_extract.ipynb b/.jupyter/feature_extract.ipynb index dfa34c18584a7f8ae0dcb1a0dd65c3df13f780e5..904dae570346145222a45946873b702e556aa1c0 100644 --- a/.jupyter/feature_extract.ipynb +++ b/.jupyter/feature_extract.ipynb @@ -16,7 +16,7 @@ }, { "cell_type": "code", - "execution_count": 51, + "execution_count": 1, "metadata": { "pycharm": { "name": "#%%\n" @@ -54,7 +54,7 @@ }, { "cell_type": "code", - "execution_count": 52, + "execution_count": 2, "metadata": { "pycharm": { "name": "#%%\n" @@ -80,7 +80,7 @@ }, { "cell_type": "code", - "execution_count": 53, + "execution_count": 3, "metadata": { "pycharm": { "name": "#%%\n" @@ -117,7 +117,7 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": 4, "metadata": { "pycharm": { "name": "#%%\n" @@ -128,7 +128,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'created': datetime.datetime(2022, 7, 16, 23, 7, 27, 694000, tzinfo=tzutc()),\n", + "{'created': datetime.datetime(2022, 7, 18, 16, 42, 13, 567000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", @@ -142,11 +142,11 @@ " 'titles_after': None,\n", " 'titles_before': None,\n", " 'username': 'user'},\n", - " 'hash': 'e82d1959b1077dc04803c424b7860c7294bb21436df89d1bbf967ed3ce28d4e8',\n", - " 'id': 5,\n", - " 'internal_name': 'fda-userdb-ethmusmir-0fa84f08-055c-11ed-926d-6130ea600442',\n", + " 'hash': '8a1433085098edbbf017221e400eb8575262dbaf4aaa6a2f4e75178ec9fe6832',\n", + " 'id': 2,\n", + " 'internal_name': 'fda-userdb-ethmusmir-9361f062-06b8-11ed-9f94-5dbb795396e0',\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 0fa84f08-055c-11ed-926d-6130ea600442'}\n" + " 'name': 'ethmusmir 9361f062-06b8-11ed-9f94-5dbb795396e0'}\n" ] } ], @@ -162,7 +162,7 @@ }, { "cell_type": "code", - "execution_count": 55, + "execution_count": 5, "metadata": { "pycharm": { "name": "#%%\n" @@ -173,7 +173,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'created': datetime.datetime(2022, 7, 16, 23, 7, 27, 694000, tzinfo=tzutc()),\n", + "{'created': datetime.datetime(2022, 7, 18, 16, 42, 13, 567000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", @@ -187,11 +187,11 @@ " 'titles_after': None,\n", " 'titles_before': None,\n", " 'username': 'user'},\n", - " 'hash': 'e82d1959b1077dc04803c424b7860c7294bb21436df89d1bbf967ed3ce28d4e8',\n", - " 'id': 5,\n", - " 'internal_name': 'fda-userdb-ethmusmir-0fa84f08-055c-11ed-926d-6130ea600442',\n", + " 'hash': '8a1433085098edbbf017221e400eb8575262dbaf4aaa6a2f4e75178ec9fe6832',\n", + " 'id': 2,\n", + " 'internal_name': 'fda-userdb-ethmusmir-9361f062-06b8-11ed-9f94-5dbb795396e0',\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 0fa84f08-055c-11ed-926d-6130ea600442'}\n" + " 'name': 'ethmusmir 9361f062-06b8-11ed-9f94-5dbb795396e0'}\n" ] } ], @@ -205,7 +205,7 @@ }, { "cell_type": "code", - "execution_count": 56, + "execution_count": 6, "metadata": { "pycharm": { "name": "#%%\n" @@ -217,42 +217,42 @@ "output_type": "stream", "text": [ "{'contact': None,\n", - " 'container': {'created': datetime.datetime(2022, 7, 16, 23, 7, 27, 694000, tzinfo=tzutc()),\n", + " 'container': {'created': datetime.datetime(2022, 7, 18, 16, 42, 13, 567000, tzinfo=tzutc()),\n", " 'databases': None,\n", - " 'hash': 'e82d1959b1077dc04803c424b7860c7294bb21436df89d1bbf967ed3ce28d4e8',\n", - " 'id': 5,\n", + " 'hash': '8a1433085098edbbf017221e400eb8575262dbaf4aaa6a2f4e75178ec9fe6832',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 212000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 460000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d',\n", " 'example': '2022-01-30',\n", " 'has_time': False,\n", " 'id': 1,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 221000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 469000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y',\n", " 'example': '30.01.2022',\n", " 'has_time': False,\n", " 'id': 2,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 225000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 474000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%y',\n", " 'example': '30.01.22',\n", " 'has_time': False,\n", " 'id': 3,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 229000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 481000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%Y',\n", " 'example': '01/30/2022',\n", " 'has_time': False,\n", " 'id': 4,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 234000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 486000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%y',\n", " 'example': '01/30/22',\n", " 'has_time': False,\n", " 'id': 5,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 237000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 490000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S.%f',\n", " 'example': '2022-01-30 13:44:25.0',\n", @@ -260,7 +260,7 @@ " 'id': 6,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss.SSSSSS'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 240000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 497000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S',\n", " 'example': '2022-01-30 13:44:25',\n", @@ -268,7 +268,7 @@ " 'id': 7,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 244000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 501000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y '\n", " '%H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", @@ -302,13 +302,13 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'fda-userdb-ethmusmir-0fa84f08-055c-11ed-926d-6130ea600442',\n", + " 'internal_name': 'fda-userdb-ethmusmir-9361f062-06b8-11ed-9f94-5dbb795396e0',\n", " 'ip_address': None,\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 0fa84f08-055c-11ed-926d-6130ea600442',\n", - " 'port': 14458,\n", + " 'name': 'ethmusmir 9361f062-06b8-11ed-9f94-5dbb795396e0',\n", + " 'port': 25564,\n", " 'state': None},\n", - " 'created': datetime.datetime(2022, 7, 16, 23, 7, 33, 468000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 18, 16, 42, 22, 147000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", @@ -324,52 +324,52 @@ " 'username': 'user'},\n", " 'deleted': None,\n", " 'description': 'ethmusmir',\n", - " 'exchange': 'ethmusmir_12fb6852-055c-11ed-926d-6130ea600442',\n", - " 'id': 5,\n", + " 'exchange': 'ethmusmir_985e99b2-06b8-11ed-9f94-5dbb795396e0',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 212000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 460000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d',\n", " 'example': '2022-01-30',\n", " 'has_time': False,\n", " 'id': 1,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 221000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 469000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y',\n", " 'example': '30.01.2022',\n", " 'has_time': False,\n", " 'id': 2,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 225000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 474000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%y',\n", " 'example': '30.01.22',\n", " 'has_time': False,\n", " 'id': 3,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 229000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 481000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%Y',\n", " 'example': '01/30/2022',\n", " 'has_time': False,\n", " 'id': 4,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 234000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 486000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%y',\n", " 'example': '01/30/22',\n", " 'has_time': False,\n", " 'id': 5,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 237000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 490000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d %H:%i:%S.%f',\n", " 'example': '2022-01-30 13:44:25.0',\n", " 'has_time': True,\n", " 'id': 6,\n", " 'unix_format': 'yyyy-MM-dd HH:mm:ss.SSSSSS'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 240000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 497000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d %H:%i:%S',\n", " 'example': '2022-01-30 13:44:25',\n", " 'has_time': True,\n", " 'id': 7,\n", " 'unix_format': 'yyyy-MM-dd HH:mm:ss'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 244000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 501000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y %H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", " 'has_time': True,\n", @@ -401,11 +401,11 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'ethmusmir_12fb6852-055c-11ed-926d-6130ea600442',\n", + " 'internal_name': 'ethmusmir_985e99b2-06b8-11ed-9f94-5dbb795396e0',\n", " 'is_public': False,\n", " 'language': None,\n", " 'license': None,\n", - " 'name': 'ethmusmir 12fb6852-055c-11ed-926d-6130ea600442',\n", + " 'name': 'ethmusmir 985e99b2-06b8-11ed-9f94-5dbb795396e0',\n", " 'publication': None,\n", " 'publisher': None,\n", " 'subjects': None,\n", @@ -425,49 +425,54 @@ }, { "cell_type": "code", - "execution_count": 57, + "execution_count": 7, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'contact': None,\n", - " 'container': {'created': datetime.datetime(2022, 7, 16, 23, 7, 27, 694000, tzinfo=tzutc()),\n", + " 'container': {'created': datetime.datetime(2022, 7, 18, 16, 42, 13, 567000, tzinfo=tzutc()),\n", " 'databases': None,\n", - " 'hash': 'e82d1959b1077dc04803c424b7860c7294bb21436df89d1bbf967ed3ce28d4e8',\n", - " 'id': 5,\n", + " 'hash': '8a1433085098edbbf017221e400eb8575262dbaf4aaa6a2f4e75178ec9fe6832',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 212000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 460000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d',\n", " 'example': '2022-01-30',\n", " 'has_time': False,\n", " 'id': 1,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 221000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 469000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y',\n", " 'example': '30.01.2022',\n", " 'has_time': False,\n", " 'id': 2,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 225000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 474000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%y',\n", " 'example': '30.01.22',\n", " 'has_time': False,\n", " 'id': 3,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 229000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 481000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%Y',\n", " 'example': '01/30/2022',\n", " 'has_time': False,\n", " 'id': 4,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 234000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 486000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%y',\n", " 'example': '01/30/22',\n", " 'has_time': False,\n", " 'id': 5,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 237000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 490000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S.%f',\n", " 'example': '2022-01-30 13:44:25.0',\n", @@ -475,7 +480,7 @@ " 'id': 6,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss.SSSSSS'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 240000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 497000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S',\n", " 'example': '2022-01-30 13:44:25',\n", @@ -483,7 +488,7 @@ " 'id': 7,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 244000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 501000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y '\n", " '%H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", @@ -517,13 +522,13 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'fda-userdb-ethmusmir-0fa84f08-055c-11ed-926d-6130ea600442',\n", + " 'internal_name': 'fda-userdb-ethmusmir-9361f062-06b8-11ed-9f94-5dbb795396e0',\n", " 'ip_address': None,\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 0fa84f08-055c-11ed-926d-6130ea600442',\n", - " 'port': 14458,\n", + " 'name': 'ethmusmir 9361f062-06b8-11ed-9f94-5dbb795396e0',\n", + " 'port': 25564,\n", " 'state': None},\n", - " 'created': datetime.datetime(2022, 7, 16, 23, 7, 33, 468000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 18, 16, 42, 22, 147000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", @@ -542,52 +547,52 @@ " 'https://github.com/ketchupok/ethmusmir applied on a remixed '\n", " 'recording of the SeFiRe field recordings dataset '\n", " 'https://github.com/matijama/field-recording-db',\n", - " 'exchange': 'ethmusmir_12fb6852-055c-11ed-926d-6130ea600442',\n", - " 'id': 5,\n", + " 'exchange': 'ethmusmir_985e99b2-06b8-11ed-9f94-5dbb795396e0',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 212000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 460000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d',\n", " 'example': '2022-01-30',\n", " 'has_time': False,\n", " 'id': 1,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 221000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 469000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y',\n", " 'example': '30.01.2022',\n", " 'has_time': False,\n", " 'id': 2,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 225000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 474000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%y',\n", " 'example': '30.01.22',\n", " 'has_time': False,\n", " 'id': 3,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 229000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 481000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%Y',\n", " 'example': '01/30/2022',\n", " 'has_time': False,\n", " 'id': 4,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 234000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 486000, tzinfo=tzutc()),\n", " 'database_format': '%c/%d/%y',\n", " 'example': '01/30/22',\n", " 'has_time': False,\n", " 'id': 5,\n", " 'unix_format': 'yyyy-MM-dd'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 237000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 490000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d %H:%i:%S.%f',\n", " 'example': '2022-01-30 13:44:25.0',\n", " 'has_time': True,\n", " 'id': 6,\n", " 'unix_format': 'yyyy-MM-dd HH:mm:ss.SSSSSS'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 240000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 497000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d %H:%i:%S',\n", " 'example': '2022-01-30 13:44:25',\n", " 'has_time': True,\n", " 'id': 7,\n", " 'unix_format': 'yyyy-MM-dd HH:mm:ss'},\n", - " {'created_at': datetime.datetime(2022, 7, 16, 22, 53, 7, 244000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 18, 16, 37, 34, 501000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y %H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", " 'has_time': True,\n", @@ -619,12 +624,12 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'ethmusmir_12fb6852-055c-11ed-926d-6130ea600442',\n", + " 'internal_name': 'ethmusmir_985e99b2-06b8-11ed-9f94-5dbb795396e0',\n", " 'is_public': False,\n", " 'language': 'en',\n", " 'license': {'identifier': 'Apache-2.0',\n", " 'uri': 'https://opensource.org/licenses/Apache-2.0'},\n", - " 'name': 'ethmusmir 12fb6852-055c-11ed-926d-6130ea600442',\n", + " 'name': 'ethmusmir 985e99b2-06b8-11ed-9f94-5dbb795396e0',\n", " 'publication': '2022-07-17',\n", " 'publisher': 'Technical University of Vienna',\n", " 'subjects': [],\n", @@ -645,17 +650,11 @@ " \"publication\": \"2022-07-17\"\n", "}, container_id, database_id)\n", "print(response)" - ], - "metadata": { - "collapsed": false, - "pycharm": { - "name": "#%%\n" - } - } + ] }, { "cell_type": "code", - "execution_count": 58, + "execution_count": 8, "metadata": { "pycharm": { "name": "#%%\n" @@ -666,7 +665,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'id': 5, 'internal_name': 'feature_extraction', 'name': 'Feature Extraction'}\n" + "{'id': 2, 'internal_name': 'feature_extraction', 'name': 'Feature Extraction'}\n" ] } ], @@ -700,7 +699,7 @@ }, { "cell_type": "code", - "execution_count": 59, + "execution_count": 9, "metadata": { "pycharm": { "name": "#%%\n" @@ -717,7 +716,7 @@ }, { "cell_type": "code", - "execution_count": 60, + "execution_count": 10, "metadata": { "pycharm": { "name": "#%%\n" @@ -729,7 +728,7 @@ "output_type": "stream", "text": [ "... save file contents from https://test.researchdata.tuwien.ac.at/api/records/xksnz-cfg98/files/audio.wav/content\n", - "... extracted {'track': {'parts': [{'content': 'instrumental', 'duration': 5, 'start': 0}, {'content': 'speech', 'duration': 4, 'start': 5}, {'content': 'choir singing', 'duration': 6, 'start': 9}, {'content': 'solo singing', 'duration': 4, 'start': 15}], 'duration': 20.323265306122448, 'tempo': 'nan'}}\n", + "... extracted {'track': {'tempo': 'nan', 'duration': 20.323265306122448, 'parts': [{'start': 0, 'duration': 5, 'content': 'instrumental'}, {'start': 5, 'duration': 4, 'content': 'speech'}, {'start': 9, 'duration': 6, 'content': 'choir singing'}, {'start': 15, 'duration': 4, 'content': 'solo singing'}]}}\n", "1\n", "1\n", "1\n", @@ -754,7 +753,7 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": 11, "metadata": { "pycharm": { "name": "#%%\n" @@ -782,7 +781,7 @@ }, { "cell_type": "code", - "execution_count": 62, + "execution_count": 12, "metadata": { "pycharm": { "name": "#%%\n" @@ -793,8 +792,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'cid': 5,\n", - " 'created': datetime.datetime(2022, 7, 16, 23, 7, 43, 70000, tzinfo=tzutc()),\n", + "{'cid': 2,\n", + " 'created': datetime.datetime(2022, 7, 18, 16, 42, 46, 36000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", @@ -809,23 +808,23 @@ " 'titles_before': None,\n", " 'username': 'user'},\n", " 'creators': [{'affiliation': 'TU Wien',\n", - " 'created': datetime.datetime(2022, 7, 16, 23, 7, 43, 82000, tzinfo=tzutc()),\n", - " 'id': 5,\n", - " 'last_modified': datetime.datetime(2022, 7, 16, 23, 7, 43, 82000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 18, 16, 42, 46, 128000, tzinfo=tzutc()),\n", + " 'id': 1,\n", + " 'last_modified': datetime.datetime(2022, 7, 18, 16, 42, 46, 128000, tzinfo=tzutc()),\n", " 'name': 'Weise, Martin',\n", " 'orcid': '0000-0003-4216-302X'},\n", " {'affiliation': 'TU Wien',\n", - " 'created': datetime.datetime(2022, 7, 16, 23, 7, 43, 87000, tzinfo=tzutc()),\n", - " 'id': 6,\n", - " 'last_modified': datetime.datetime(2022, 7, 16, 23, 7, 43, 87000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 18, 16, 42, 46, 141000, tzinfo=tzutc()),\n", + " 'id': 2,\n", + " 'last_modified': datetime.datetime(2022, 7, 18, 16, 42, 46, 141000, tzinfo=tzutc()),\n", " 'name': 'Rauber, Andreas',\n", " 'orcid': '0000-0002-9272-6225'}],\n", - " 'dbid': 5,\n", + " 'dbid': 2,\n", " 'description': 'description',\n", " 'doi': None,\n", - " 'execution': datetime.datetime(2022, 7, 16, 23, 7, 42, tzinfo=tzutc()),\n", - " 'id': 3,\n", - " 'last_modified': datetime.datetime(2022, 7, 16, 23, 7, 43, 70000, tzinfo=tzutc()),\n", + " 'execution': datetime.datetime(2022, 7, 18, 16, 42, 44, tzinfo=tzutc()),\n", + " 'id': 1,\n", + " 'last_modified': datetime.datetime(2022, 7, 18, 16, 42, 46, 36000, tzinfo=tzutc()),\n", " 'publication': '2022-07-16',\n", " 'qid': 1,\n", " 'query': 'SELECT `content`, `start`, `duration` FROM `feature_extraction`',\n", @@ -872,25 +871,31 @@ }, { "cell_type": "code", - "execution_count": 63, + "execution_count": 13, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "http://localhost:3000/pid/3\n" + "http://localhost:3000/pid/1\n" ] } ], "source": [ "print(\"http://localhost:3000/pid/\" + str(identifier_id))" - ], - "metadata": { - "collapsed": false, - "pycharm": { - "name": "#%%\n" - } - } + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -909,9 +914,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.10.4" } }, "nbformat": 4, "nbformat_minor": 1 -} \ No newline at end of file +} diff --git a/.jupyter/requirements.txt b/.jupyter/requirements.txt index cead3141b668dc1ff86be21106936bad117b97a9..2a252d8604d7e5efc1b8b241ca1f93bb006dd87c 100644 --- a/.jupyter/requirements.txt +++ b/.jupyter/requirements.txt @@ -1 +1,2 @@ -requests==2.28.0 \ No newline at end of file +requests>=2.28.0 +pandas>=1.4.3 \ No newline at end of file