diff --git a/.invenio/deposit.ipynb b/.invenio/deposit.ipynb index 51e38b383e73509bed91452e8b030ded50280cab..cde9c4e905e3754dcdce9b718cc288504de90734 100644 --- a/.invenio/deposit.ipynb +++ b/.invenio/deposit.ipynb @@ -16,7 +16,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 9, "outputs": [], "source": [ "import re\n", @@ -35,7 +35,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 10, "outputs": [], "source": [ "headers = {\n", @@ -64,13 +64,13 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 11, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft', 'self_html': 'https://test.researchdata.tuwien.ac.at/uploads/eym2v-nwy33', 'files': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files', 'record': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33', 'record_html': 'https://test.researchdata.tuwien.ac.at/records/eym2v-nwy33', 'publish': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/actions/publish', 'review': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/review', 'versions': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/versions', 'access_links': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/access/links', 'reserve_doi': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/pids/doi'}, 'created': '2022-07-14T17:58:59.447725+00:00', 'is_draft': True, 'expires_at': '2022-07-14 17:58:59.447768', 'is_published': False, 'metadata': {'title': 'The SeFiRe field recording dataset', 'resource_type': {'title': {'de': 'Audio', 'en': 'Audio'}, 'id': 'sound'}, 'creators': [{'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matija', 'name': 'Marolt, Matija', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-0619-8789'}], 'type': 'personal', 'family_name': 'Marolt'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Ciril', 'name': 'Bohak, Ciril', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-9015-2897'}], 'type': 'personal', 'family_name': 'Bohak'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Alenka', 'name': 'Kavčič, Alenka', 'type': 'personal', 'family_name': 'Kavčič'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matevž', 'name': 'Pesek, Matevž', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0001-9101-0471'}], 'type': 'personal', 'family_name': 'Pesek'}}], 'publication_date': '2019-01-28'}, 'id': 'eym2v-nwy33', 'updated': '2022-07-14T17:58:59.481065+00:00', 'pids': {}, 'parent': {'communities': {}, 'id': 'wya7c-jmd64', 'access': {'links': [], 'owned_by': [{'user': 47}]}}, 'revision_id': 4, 'files': {'enabled': True, 'order': []}, 'versions': {'index': 1, 'is_latest': False, 'is_latest_draft': True}, 'access': {'files': 'public', 'record': 'public', 'embargo': {'reason': None, 'active': False}, 'status': 'metadata-only'}, 'errors': [{'field': 'access.embargo', 'messages': ['Field may not be null.']}]}\n" + "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft', 'self_html': 'https://test.researchdata.tuwien.ac.at/uploads/ntvp4-wxb61', 'files': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files', 'record': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61', 'record_html': 'https://test.researchdata.tuwien.ac.at/records/ntvp4-wxb61', 'publish': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/actions/publish', 'review': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/review', 'versions': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/versions', 'access_links': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/access/links', 'reserve_doi': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/pids/doi'}, 'created': '2022-07-14T23:53:15.774790+00:00', 'is_draft': True, 'expires_at': '2022-07-14 23:53:15.774814', 'is_published': False, 'metadata': {'title': 'The SeFiRe field recording dataset', 'resource_type': {'title': {'de': 'Audio', 'en': 'Audio'}, 'id': 'sound'}, 'creators': [{'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matija', 'name': 'Marolt, Matija', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-0619-8789'}], 'type': 'personal', 'family_name': 'Marolt'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Ciril', 'name': 'Bohak, Ciril', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-9015-2897'}], 'type': 'personal', 'family_name': 'Bohak'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Alenka', 'name': 'Kavčič, Alenka', 'type': 'personal', 'family_name': 'Kavčič'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matevž', 'name': 'Pesek, Matevž', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0001-9101-0471'}], 'type': 'personal', 'family_name': 'Pesek'}}], 'publication_date': '2019-01-28'}, 'id': 'ntvp4-wxb61', 'updated': '2022-07-14T23:53:15.795909+00:00', 'pids': {}, 'parent': {'communities': {}, 'id': '55306-c9n52', 'access': {'links': [], 'owned_by': [{'user': 47}]}}, 'revision_id': 4, 'files': {'enabled': True, 'order': []}, 'versions': {'index': 1, 'is_latest': False, 'is_latest_draft': True}, 'access': {'files': 'public', 'record': 'public', 'embargo': {'reason': None, 'active': False}, 'status': 'metadata-only'}, 'errors': [{'field': 'access.embargo', 'messages': ['Field may not be null.']}]}\n" ] } ], @@ -184,13 +184,13 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 12, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "{'enabled': True, 'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files'}, 'entries': [{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav', 'content': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav/content', 'commit': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav/commit'}, 'created': '2022-07-14T17:59:00.613349+00:00', 'metadata': None, 'updated': '2022-07-14T17:59:00.615141+00:00', 'key': 'audio.wav', 'status': 'pending'}], 'default_preview': None, 'order': []}\n" + "{'enabled': True, 'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files'}, 'entries': [{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav', 'content': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav/content', 'commit': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav/commit'}, 'created': '2022-07-14T23:53:16.546481+00:00', 'metadata': None, 'updated': '2022-07-14T23:53:16.547835+00:00', 'key': 'audio.wav', 'status': 'pending'}], 'default_preview': None, 'order': []}\n" ] } ], @@ -221,13 +221,13 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 13, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav', 'content': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav/content', 'commit': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav/commit'}, 'created': '2022-07-14T17:59:00.613349+00:00', 'metadata': None, 'updated': '2022-07-14T17:59:00.615141+00:00', 'key': 'audio.wav', 'status': 'pending'}\n" + "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav', 'content': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav/content', 'commit': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav/commit'}, 'created': '2022-07-14T23:53:16.546481+00:00', 'metadata': None, 'updated': '2022-07-14T23:53:16.547835+00:00', 'key': 'audio.wav', 'status': 'pending'}\n" ] } ], @@ -258,13 +258,13 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 14, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav', 'content': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav/content', 'commit': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/files/audio.wav/commit'}, 'created': '2022-07-14T17:59:00.613349+00:00', 'checksum': 'md5:1e9f213a91e95bc4c54eac7c9ea7564d', 'mimetype': 'audio/x-wav', 'metadata': None, 'storage_class': 'S', 'updated': '2022-07-14T17:59:03.562199+00:00', 'file_id': '5e4d1191-2ba5-49ba-b895-afb10ec197d8', 'key': 'audio.wav', 'size': 1792556, 'version_id': '636e7b7d-5d32-4243-b05f-3dee2b8bb937', 'status': 'completed', 'bucket_id': '1dbba9d9-fc36-4d1e-92ca-2b976c7801a6'}\n" + "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav', 'content': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav/content', 'commit': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/files/audio.wav/commit'}, 'created': '2022-07-14T23:53:16.546481+00:00', 'checksum': 'md5:1e9f213a91e95bc4c54eac7c9ea7564d', 'mimetype': 'audio/x-wav', 'metadata': None, 'storage_class': 'S', 'updated': '2022-07-14T23:53:20.255204+00:00', 'file_id': 'b0eeecfe-ffa9-4c4d-9862-ac913c18e491', 'key': 'audio.wav', 'size': 1792556, 'version_id': '5c420ee0-0661-43a7-85f5-c2e305657ccf', 'status': 'completed', 'bucket_id': '4a3db64e-74d7-4c42-b22d-13e6e653da17'}\n" ] } ], @@ -293,13 +293,13 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 15, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33', 'self_html': 'https://test.researchdata.tuwien.ac.at/records/eym2v-nwy33', 'self_doi': 'https://test.researchdata.tuwien.ac.at/doi/10.70124/eym2v-nwy33', 'doi': 'https://doi.org/10.70124/eym2v-nwy33', 'files': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/files', 'latest': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/versions/latest', 'latest_html': 'https://test.researchdata.tuwien.ac.at/records/eym2v-nwy33/latest', 'draft': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft', 'versions': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/versions', 'access_links': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/access/links', 'reserve_doi': 'https://test.researchdata.tuwien.ac.at/api/records/eym2v-nwy33/draft/pids/doi'}, 'created': '2022-07-14T17:59:04.325647+00:00', 'is_draft': False, 'is_published': True, 'metadata': {'title': 'The SeFiRe field recording dataset', 'resource_type': {'title': {'de': 'Audio', 'en': 'Audio'}, 'id': 'sound'}, 'creators': [{'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matija', 'name': 'Marolt, Matija', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-0619-8789'}], 'type': 'personal', 'family_name': 'Marolt'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Ciril', 'name': 'Bohak, Ciril', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-9015-2897'}], 'type': 'personal', 'family_name': 'Bohak'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Alenka', 'name': 'Kavčič, Alenka', 'type': 'personal', 'family_name': 'Kavčič'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matevž', 'name': 'Pesek, Matevž', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0001-9101-0471'}], 'type': 'personal', 'family_name': 'Pesek'}}], 'publication_date': '2019-01-28'}, 'id': 'eym2v-nwy33', 'updated': '2022-07-14T17:59:04.383284+00:00', 'pids': {'oai': {'provider': 'oai', 'identifier': 'oai:test.researchdata.tuwien.ac.at:eym2v-nwy33'}, 'doi': {'client': 'datacite', 'provider': 'datacite', 'identifier': '10.70124/eym2v-nwy33'}}, 'parent': {'communities': {}, 'id': 'wya7c-jmd64', 'access': {'links': [], 'owned_by': [{'user': 47}]}}, 'revision_id': 3, 'files': {'enabled': True, 'order': []}, 'versions': {'index': 1, 'is_latest': True, 'is_latest_draft': True}, 'access': {'files': 'public', 'record': 'public', 'embargo': {'reason': None, 'active': False}, 'status': 'open'}}\n" + "{'links': {'self': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61', 'self_html': 'https://test.researchdata.tuwien.ac.at/records/ntvp4-wxb61', 'self_doi': 'https://test.researchdata.tuwien.ac.at/doi/10.70124/ntvp4-wxb61', 'doi': 'https://doi.org/10.70124/ntvp4-wxb61', 'files': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/files', 'latest': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/versions/latest', 'latest_html': 'https://test.researchdata.tuwien.ac.at/records/ntvp4-wxb61/latest', 'draft': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft', 'versions': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/versions', 'access_links': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/access/links', 'reserve_doi': 'https://test.researchdata.tuwien.ac.at/api/records/ntvp4-wxb61/draft/pids/doi'}, 'created': '2022-07-14T23:53:20.950531+00:00', 'is_draft': False, 'is_published': True, 'metadata': {'title': 'The SeFiRe field recording dataset', 'resource_type': {'title': {'de': 'Audio', 'en': 'Audio'}, 'id': 'sound'}, 'creators': [{'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matija', 'name': 'Marolt, Matija', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-0619-8789'}], 'type': 'personal', 'family_name': 'Marolt'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Ciril', 'name': 'Bohak, Ciril', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-9015-2897'}], 'type': 'personal', 'family_name': 'Bohak'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Alenka', 'name': 'Kavčič, Alenka', 'type': 'personal', 'family_name': 'Kavčič'}}, {'affiliations': [{'name': 'University of Ljubljana'}], 'person_or_org': {'given_name': 'Matevž', 'name': 'Pesek, Matevž', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0001-9101-0471'}], 'type': 'personal', 'family_name': 'Pesek'}}], 'publication_date': '2019-01-28'}, 'id': 'ntvp4-wxb61', 'updated': '2022-07-14T23:53:20.996629+00:00', 'pids': {'oai': {'provider': 'oai', 'identifier': 'oai:test.researchdata.tuwien.ac.at:ntvp4-wxb61'}, 'doi': {'client': 'datacite', 'provider': 'datacite', 'identifier': '10.70124/ntvp4-wxb61'}}, 'parent': {'communities': {}, 'id': '55306-c9n52', 'access': {'links': [], 'owned_by': [{'user': 47}]}}, 'revision_id': 3, 'files': {'enabled': True, 'order': []}, 'versions': {'index': 1, 'is_latest': True, 'is_latest_draft': True}, 'access': {'files': 'public', 'record': 'public', 'embargo': {'reason': None, 'active': False}, 'status': 'open'}}\n" ] } ], @@ -316,13 +316,13 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 16, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "https://test.researchdata.tuwien.ac.at/doi/10.70124/eym2v-nwy33\n" + "https://test.researchdata.tuwien.ac.at/doi/10.70124/ntvp4-wxb61\n" ] } ], diff --git a/.invenio/feature_extract.ipynb b/.invenio/feature_extract.ipynb index f8298a19d8a429e4c0af78ebd10fd584b0e7364f..b684c8426b14f3fc5e7bcc3fa79987c823a68b7a 100644 --- a/.invenio/feature_extract.ipynb +++ b/.invenio/feature_extract.ipynb @@ -16,7 +16,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 23, "metadata": { "pycharm": { "name": "#%%\n" @@ -52,7 +52,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 24, "metadata": { "pycharm": { "name": "#%%\n" @@ -77,7 +77,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 25, "metadata": { "pycharm": { "name": "#%%\n" @@ -91,15 +91,15 @@ "{'authorities': [{'authority': 'ROLE_RESEARCHER'}],\n", " 'containers': None,\n", " 'databases': None,\n", - " 'email': 'martinweiseat@gmail.com',\n", + " 'email': 'martin.weise@tuwien.ac.at',\n", " 'email_verified': False,\n", " 'firstname': 'Martin',\n", " 'has_invenio_token': False,\n", - " 'id': 3,\n", + " 'id': 2,\n", " 'identifiers': None,\n", " 'lastname': 'Weise',\n", " 'titles_after': None,\n", - " 'titles_before': 'DI',\n", + " 'titles_before': None,\n", " 'username': 'user'}\n" ] } @@ -107,15 +107,14 @@ "source": [ "response = user.update({\n", " \"firstname\": \"Martin\",\n", - " \"lastname\": \"Weise\",\n", - " \"titles_before\": \"DI\"\n", + " \"lastname\": \"Weise\"\n", "}, user_id)\n", "print(response)" ] }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 26, "metadata": { "pycharm": { "name": "#%%\n" @@ -126,25 +125,25 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'created': datetime.datetime(2022, 7, 14, 18, 3, 44, 505000, tzinfo=tzutc()),\n", + "{'created': datetime.datetime(2022, 7, 14, 23, 58, 37, 55000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", - " 'email': 'martinweiseat@gmail.com',\n", + " 'email': 'martin.weise@tuwien.ac.at',\n", " 'email_verified': False,\n", " 'firstname': 'Martin',\n", " 'has_invenio_token': None,\n", - " 'id': 3,\n", + " 'id': 2,\n", " 'identifiers': None,\n", " 'lastname': 'Weise',\n", " 'titles_after': None,\n", - " 'titles_before': 'DI',\n", + " 'titles_before': None,\n", " 'username': 'user'},\n", - " 'hash': 'b536194d429a987cfa76b7cbd7e07ff53c209b012055bca3630f63c42d3cefe1',\n", - " 'id': 3,\n", - " 'internal_name': 'fda-userdb-ethmusmir-4cfa7728-039f-11ed-9856-f3afdf8405f0',\n", + " 'hash': 'a0a30c3275251b0d1dfb890b7d1675b28042370a822205260c580f4507577a87',\n", + " 'id': 2,\n", + " 'internal_name': 'fda-userdb-ethmusmir-e053e4b0-03d0-11ed-9856-f3afdf8405f0',\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 4cfa7728-039f-11ed-9856-f3afdf8405f0'}\n" + " 'name': 'ethmusmir e053e4b0-03d0-11ed-9856-f3afdf8405f0'}\n" ] } ], @@ -160,7 +159,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 27, "metadata": { "pycharm": { "name": "#%%\n" @@ -171,25 +170,25 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'created': datetime.datetime(2022, 7, 14, 18, 3, 44, 505000, tzinfo=tzutc()),\n", + "{'created': datetime.datetime(2022, 7, 14, 23, 58, 37, 55000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", - " 'email': 'martinweiseat@gmail.com',\n", + " 'email': 'martin.weise@tuwien.ac.at',\n", " 'email_verified': False,\n", " 'firstname': 'Martin',\n", " 'has_invenio_token': None,\n", - " 'id': 3,\n", + " 'id': 2,\n", " 'identifiers': None,\n", " 'lastname': 'Weise',\n", " 'titles_after': None,\n", - " 'titles_before': 'DI',\n", + " 'titles_before': None,\n", " 'username': 'user'},\n", - " 'hash': 'b536194d429a987cfa76b7cbd7e07ff53c209b012055bca3630f63c42d3cefe1',\n", - " 'id': 3,\n", - " 'internal_name': 'fda-userdb-ethmusmir-4cfa7728-039f-11ed-9856-f3afdf8405f0',\n", + " 'hash': 'a0a30c3275251b0d1dfb890b7d1675b28042370a822205260c580f4507577a87',\n", + " 'id': 2,\n", + " 'internal_name': 'fda-userdb-ethmusmir-e053e4b0-03d0-11ed-9856-f3afdf8405f0',\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 4cfa7728-039f-11ed-9856-f3afdf8405f0'}\n" + " 'name': 'ethmusmir e053e4b0-03d0-11ed-9856-f3afdf8405f0'}\n" ] } ], @@ -203,7 +202,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 28, "metadata": { "pycharm": { "name": "#%%\n" @@ -215,42 +214,42 @@ "output_type": "stream", "text": [ "{'contact': None,\n", - " 'container': {'created': datetime.datetime(2022, 7, 14, 18, 3, 44, 505000, tzinfo=tzutc()),\n", + " 'container': {'created': datetime.datetime(2022, 7, 14, 23, 58, 37, 55000, tzinfo=tzutc()),\n", " 'databases': None,\n", - " 'hash': 'b536194d429a987cfa76b7cbd7e07ff53c209b012055bca3630f63c42d3cefe1',\n", - " 'id': 3,\n", + " 'hash': 'a0a30c3275251b0d1dfb890b7d1675b28042370a822205260c580f4507577a87',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 255000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 323000, 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, 14, 17, 49, 32, 264000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 333000, 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, 14, 17, 49, 32, 268000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 337000, 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, 14, 17, 49, 32, 271000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 341000, 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, 14, 17, 49, 32, 275000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 345000, 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, 14, 17, 49, 32, 278000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 348000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S.%f',\n", " 'example': '2022-01-30 13:44:25.0',\n", @@ -258,7 +257,7 @@ " 'id': 6,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss.SSSSSS'},\n", - " {'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 281000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 352000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S',\n", " 'example': '2022-01-30 13:44:25',\n", @@ -266,7 +265,7 @@ " 'id': 7,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss'},\n", - " {'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 284000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 355000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y '\n", " '%H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", @@ -300,74 +299,74 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'fda-userdb-ethmusmir-4cfa7728-039f-11ed-9856-f3afdf8405f0',\n", + " 'internal_name': 'fda-userdb-ethmusmir-e053e4b0-03d0-11ed-9856-f3afdf8405f0',\n", " 'ip_address': None,\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 4cfa7728-039f-11ed-9856-f3afdf8405f0',\n", - " 'port': 14527,\n", + " 'name': 'ethmusmir e053e4b0-03d0-11ed-9856-f3afdf8405f0',\n", + " 'port': 17684,\n", " 'state': None},\n", - " 'created': datetime.datetime(2022, 7, 14, 18, 3, 50, 80000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 14, 23, 58, 42, 682000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", - " 'email': 'martinweiseat@gmail.com',\n", + " 'email': 'martin.weise@tuwien.ac.at',\n", " 'email_verified': False,\n", " 'firstname': 'Martin',\n", " 'has_invenio_token': None,\n", - " 'id': 3,\n", + " 'id': 2,\n", " 'identifiers': None,\n", " 'lastname': 'Weise',\n", " 'titles_after': None,\n", - " 'titles_before': 'DI',\n", + " 'titles_before': None,\n", " 'username': 'user'},\n", " 'deleted': None,\n", " 'description': 'ethmusmir',\n", - " 'exchange': 'ethmusmir_503cf4ba-039f-11ed-9856-f3afdf8405f0',\n", - " 'id': 3,\n", + " 'exchange': 'ethmusmir_e39bb846-03d0-11ed-9856-f3afdf8405f0',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 255000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 323000, 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, 14, 17, 49, 32, 264000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 333000, 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, 14, 17, 49, 32, 268000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 337000, 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, 14, 17, 49, 32, 271000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 341000, 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, 14, 17, 49, 32, 275000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 345000, 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, 14, 17, 49, 32, 278000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 348000, 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, 14, 17, 49, 32, 281000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 352000, 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, 14, 17, 49, 32, 284000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 355000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y %H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", " 'has_time': True,\n", @@ -399,11 +398,11 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'ethmusmir_503cf4ba-039f-11ed-9856-f3afdf8405f0',\n", + " 'internal_name': 'ethmusmir_e39bb846-03d0-11ed-9856-f3afdf8405f0',\n", " 'is_public': True,\n", " 'language': None,\n", " 'license': None,\n", - " 'name': 'ethmusmir 503cf4ba-039f-11ed-9856-f3afdf8405f0',\n", + " 'name': 'ethmusmir e39bb846-03d0-11ed-9856-f3afdf8405f0',\n", " 'publication': None,\n", " 'publisher': None,\n", " 'subjects': None,\n", @@ -423,49 +422,49 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 29, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'contact': None,\n", - " 'container': {'created': datetime.datetime(2022, 7, 14, 18, 3, 44, 505000, tzinfo=tzutc()),\n", + " 'container': {'created': datetime.datetime(2022, 7, 14, 23, 58, 37, 55000, tzinfo=tzutc()),\n", " 'databases': None,\n", - " 'hash': 'b536194d429a987cfa76b7cbd7e07ff53c209b012055bca3630f63c42d3cefe1',\n", - " 'id': 3,\n", + " 'hash': 'a0a30c3275251b0d1dfb890b7d1675b28042370a822205260c580f4507577a87',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 255000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 323000, 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, 14, 17, 49, 32, 264000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 333000, 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, 14, 17, 49, 32, 268000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 337000, 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, 14, 17, 49, 32, 271000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 341000, 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, 14, 17, 49, 32, 275000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 345000, 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, 14, 17, 49, 32, 278000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 348000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S.%f',\n", " 'example': '2022-01-30 13:44:25.0',\n", @@ -473,7 +472,7 @@ " 'id': 6,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss.SSSSSS'},\n", - " {'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 281000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 352000, tzinfo=tzutc()),\n", " 'database_format': '%Y-%c-%d '\n", " '%H:%i:%S',\n", " 'example': '2022-01-30 13:44:25',\n", @@ -481,7 +480,7 @@ " 'id': 7,\n", " 'unix_format': 'yyyy-MM-dd '\n", " 'HH:mm:ss'},\n", - " {'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 284000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 355000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y '\n", " '%H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", @@ -515,77 +514,77 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'fda-userdb-ethmusmir-4cfa7728-039f-11ed-9856-f3afdf8405f0',\n", + " 'internal_name': 'fda-userdb-ethmusmir-e053e4b0-03d0-11ed-9856-f3afdf8405f0',\n", " 'ip_address': None,\n", " 'is_public': None,\n", - " 'name': 'ethmusmir 4cfa7728-039f-11ed-9856-f3afdf8405f0',\n", - " 'port': 14527,\n", + " 'name': 'ethmusmir e053e4b0-03d0-11ed-9856-f3afdf8405f0',\n", + " 'port': 17684,\n", " 'state': None},\n", - " 'created': datetime.datetime(2022, 7, 14, 18, 3, 50, 80000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 14, 23, 58, 42, 682000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", - " 'email': 'martinweiseat@gmail.com',\n", + " 'email': 'martin.weise@tuwien.ac.at',\n", " 'email_verified': False,\n", " 'firstname': 'Martin',\n", " 'has_invenio_token': None,\n", - " 'id': 3,\n", + " 'id': 2,\n", " 'identifiers': None,\n", " 'lastname': 'Weise',\n", " 'titles_after': None,\n", - " 'titles_before': 'DI',\n", + " 'titles_before': None,\n", " 'username': 'user'},\n", " 'deleted': None,\n", " 'description': 'Feature Vectors extracted with the EthMusMIR Analysis Server '\n", " '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_503cf4ba-039f-11ed-9856-f3afdf8405f0',\n", - " 'id': 3,\n", + " 'exchange': 'ethmusmir_e39bb846-03d0-11ed-9856-f3afdf8405f0',\n", + " 'id': 2,\n", " 'image': {'compiled': None,\n", - " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 17, 49, 32, 255000, tzinfo=tzutc()),\n", + " 'date_formats': [{'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 323000, 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, 14, 17, 49, 32, 264000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 333000, 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, 14, 17, 49, 32, 268000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 337000, 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, 14, 17, 49, 32, 271000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 341000, 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, 14, 17, 49, 32, 275000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 345000, 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, 14, 17, 49, 32, 278000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 348000, 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, 14, 17, 49, 32, 281000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 352000, 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, 14, 17, 49, 32, 284000, tzinfo=tzutc()),\n", + " {'created_at': datetime.datetime(2022, 7, 14, 18, 9, 48, 355000, tzinfo=tzutc()),\n", " 'database_format': '%d.%c.%Y %H:%i:%S',\n", " 'example': '30.01.2022 13:44:25',\n", " 'has_time': True,\n", @@ -617,12 +616,12 @@ " 'repository': 'mariadb',\n", " 'size': None,\n", " 'tag': '10.5'},\n", - " 'internal_name': 'ethmusmir_503cf4ba-039f-11ed-9856-f3afdf8405f0',\n", + " 'internal_name': 'ethmusmir_e39bb846-03d0-11ed-9856-f3afdf8405f0',\n", " 'is_public': True,\n", " 'language': 'en',\n", " 'license': {'identifier': 'Apache-2.0',\n", " 'uri': 'https://opensource.org/licenses/Apache-2.0'},\n", - " 'name': 'ethmusmir 503cf4ba-039f-11ed-9856-f3afdf8405f0',\n", + " 'name': 'ethmusmir e39bb846-03d0-11ed-9856-f3afdf8405f0',\n", " 'publication': '2022-07-17',\n", " 'publisher': 'Technical University of Vienna',\n", " 'subjects': [],\n", @@ -653,7 +652,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 30, "metadata": { "pycharm": { "name": "#%%\n" @@ -664,7 +663,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'id': 2, 'internal_name': 'feature_extraction', 'name': 'Feature Extraction'}\n" + "{'id': 3, 'internal_name': 'feature_extraction', 'name': 'Feature Extraction'}\n" ] } ], @@ -698,7 +697,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 31, "metadata": { "pycharm": { "name": "#%%\n" @@ -715,7 +714,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 32, "metadata": { "pycharm": { "name": "#%%\n" @@ -752,7 +751,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 33, "metadata": { "pycharm": { "name": "#%%\n" @@ -780,7 +779,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 34, "metadata": { "pycharm": { "name": "#%%\n" @@ -791,39 +790,39 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'cid': 3,\n", - " 'created': datetime.datetime(2022, 7, 14, 18, 3, 56, 64000, tzinfo=tzutc()),\n", + "{'cid': 2,\n", + " 'created': datetime.datetime(2022, 7, 14, 23, 58, 47, 614000, tzinfo=tzutc()),\n", " 'creator': {'authorities': None,\n", " 'containers': None,\n", " 'databases': None,\n", - " 'email': 'martinweiseat@gmail.com',\n", + " 'email': 'martin.weise@tuwien.ac.at',\n", " 'email_verified': False,\n", " 'firstname': 'Martin',\n", " 'has_invenio_token': None,\n", - " 'id': 3,\n", + " 'id': 2,\n", " 'identifiers': None,\n", " 'lastname': 'Weise',\n", " 'titles_after': None,\n", - " 'titles_before': 'DI',\n", + " 'titles_before': None,\n", " 'username': 'user'},\n", " 'creators': [{'affiliation': 'TU Wien',\n", - " 'created': datetime.datetime(2022, 7, 14, 18, 3, 56, 93000, tzinfo=tzutc()),\n", - " 'id': 2,\n", - " 'last_modified': datetime.datetime(2022, 7, 14, 18, 3, 56, 93000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 14, 23, 58, 47, 622000, tzinfo=tzutc()),\n", + " 'id': 3,\n", + " 'last_modified': datetime.datetime(2022, 7, 14, 23, 58, 47, 622000, tzinfo=tzutc()),\n", " 'name': 'Weise, Martin',\n", " 'orcid': '0000-0003-4216-302X'},\n", " {'affiliation': 'TU Wien',\n", - " 'created': datetime.datetime(2022, 7, 14, 18, 3, 56, 99000, tzinfo=tzutc()),\n", - " 'id': 3,\n", - " 'last_modified': datetime.datetime(2022, 7, 14, 18, 3, 56, 99000, tzinfo=tzutc()),\n", + " 'created': datetime.datetime(2022, 7, 14, 23, 58, 47, 626000, tzinfo=tzutc()),\n", + " 'id': 4,\n", + " 'last_modified': datetime.datetime(2022, 7, 14, 23, 58, 47, 626000, tzinfo=tzutc()),\n", " 'name': 'Rauber, Andreas',\n", " 'orcid': '0000-0002-9272-6225'}],\n", - " 'dbid': 3,\n", + " 'dbid': 2,\n", " 'description': 'description',\n", " 'doi': None,\n", - " 'execution': datetime.datetime(2022, 7, 14, 16, 3, 55, tzinfo=tzutc()),\n", - " 'id': 2,\n", - " 'last_modified': datetime.datetime(2022, 7, 14, 18, 3, 56, 64000, tzinfo=tzutc()),\n", + " 'execution': datetime.datetime(2022, 7, 14, 21, 58, 47, tzinfo=tzutc()),\n", + " 'id': 3,\n", + " 'last_modified': datetime.datetime(2022, 7, 14, 23, 58, 47, 614000, tzinfo=tzutc()),\n", " 'publication': '2022-07-16',\n", " 'qid': 1,\n", " 'query': 'SELECT `content`, `start`, `duration` FROM `feature_extraction`',\n", diff --git a/fda-ui/components/TableList.vue b/fda-ui/components/TableList.vue index 0ae53b17102c2fb6867bb03d697d610ee663b3bc..e51e98b3ae43357df4bb578fdd1d2a02fb4fd755 100644 --- a/fda-ui/components/TableList.vue +++ b/fda-ui/components/TableList.vue @@ -84,7 +84,7 @@ View Data </v-btn> <v-btn color="secondary" class="ml-2" :to="`/container/${$route.params.container_id}/database/${$route.params.database_id}/query/create?tid=${item.id}`"> - Build Query + Create Subset </v-btn> </v-col> <v-col class="align-right"> diff --git a/fda-ui/components/dialogs/EditTuple.vue b/fda-ui/components/dialogs/EditTuple.vue index b38b876f09d6b2218424781dd0eb20d62aa7e85a..f2149c7d2d625fbec0d8e5f168907edcf4d51621 100644 --- a/fda-ui/components/dialogs/EditTuple.vue +++ b/fda-ui/components/dialogs/EditTuple.vue @@ -29,7 +29,7 @@ <v-text-field v-if="attr.column_type === 'DATE'" v-model="tuple[attr.internal_name]" - suffix="CET" + suffix="UTC" class="mb-2" :required="!attr.is_null_allowed" :label="attr.name" @@ -37,7 +37,7 @@ <v-text-field v-if="attr.column_type === 'TIMESTAMP'" v-model="tuple[attr.internal_name]" - suffix="CET" + suffix="UTC" class="mb-2" :required="!attr.is_null_allowed" :label="attr.name" diff --git a/fda-ui/pages/container/_container_id/database/_database_id/table/_table_id/index.vue b/fda-ui/pages/container/_container_id/database/_database_id/table/_table_id/index.vue index aa73a9f7303e723cdc9067db1d98a3798876cbff..fa4401151e34eb8a736f754fb1d209ae78a27761 100644 --- a/fda-ui/pages/container/_container_id/database/_database_id/table/_table_id/index.vue +++ b/fda-ui/pages/container/_container_id/database/_database_id/table/_table_id/index.vue @@ -74,6 +74,7 @@ <script> import EditTuple from '@/components/dialogs/EditTuple' import TimeTravel from '@/components/dialogs/TimeTravel' +import { format } from 'date-fns' export default { components: { @@ -250,6 +251,9 @@ export default { this.$toast.error('Could not load table data.') } this.loadingData = false + }, + formatDate (d) { + return format(new Date(d), 'yyyy-MM-dd HH:mm:ss') } } }