|
51 | 51 | "# The DC block only requires a title and author.\n", |
52 | 52 | "mdfcc.create_dc_block(title=\"Simple Test Dataset\", authors=\"A. Person\")\n", |
53 | 53 | "# The data field requires one data location.\n", |
54 | | - "mdfcc.add_data(\"https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F\")" |
| 54 | + "mdfcc.add_data_source(\"https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F\")" |
55 | 55 | ] |
56 | 56 | }, |
57 | 57 | { |
|
61 | 61 | "outputs": [], |
62 | 62 | "source": [ |
63 | 63 | "# Next, we'll add some optional settings.\n", |
64 | | - "# The 'globus_publish' service will get us a permanent publication and a DOI.\n", |
65 | | - "mdfcc.add_service(\"globus_publish\")\n", |
| 64 | + "# The 'mdf_publish' service will get us a publication and a DOI.\n", |
| 65 | + "mdfcc.add_service(\"mdf_publish\")\n", |
66 | 66 | "# Since this is just an example and not a real submission, we'll set the 'test' flag to True.\n", |
| 67 | + "# The DOI we will get with a test submission is a sandbox DOI, which is not permanent.\n", |
67 | 68 | "mdfcc.set_test(True)" |
68 | 69 | ] |
69 | 70 | }, |
|
75 | 76 | { |
76 | 77 | "data": { |
77 | 78 | "text/plain": [ |
78 | | - "{'data': ['https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F'],\n", |
| 79 | + "{'data_sources': ['https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F'],\n", |
79 | 80 | " 'dc': {'creators': [{'creatorName': 'Person, A.',\n", |
80 | 81 | " 'familyName': 'Person',\n", |
81 | 82 | " 'givenName': 'A.'}],\n", |
82 | | - " 'publicationYear': '2018',\n", |
| 83 | + " 'publicationYear': '2019',\n", |
83 | 84 | " 'publisher': 'Materials Data Facility',\n", |
84 | 85 | " 'resourceType': {'resourceType': 'Dataset',\n", |
85 | 86 | " 'resourceTypeGeneral': 'Dataset'},\n", |
86 | 87 | " 'titles': [{'title': 'Simple Test Dataset'}]},\n", |
87 | | - " 'services': {'globus_publish': True},\n", |
88 | | - " 'test': True}" |
| 88 | + " 'services': {'mdf_publish': True},\n", |
| 89 | + " 'test': True,\n", |
| 90 | + " 'update': False}" |
89 | 91 | ] |
90 | 92 | }, |
91 | 93 | "execution_count": 5, |
|
113 | 115 | { |
114 | 116 | "data": { |
115 | 117 | "text/plain": [ |
116 | | - "{'error': None, 'source_id': '_test_simple_test_dataset_v1-1', 'success': True}" |
| 118 | + "{'error': None,\n", |
| 119 | + " 'source_id': '_test_person_simple_v1.1',\n", |
| 120 | + " 'status_code': 202,\n", |
| 121 | + " 'success': True}" |
117 | 122 | ] |
118 | 123 | }, |
119 | 124 | "execution_count": 6, |
|
122 | 127 | } |
123 | 128 | ], |
124 | 129 | "source": [ |
| 130 | + "# NBVAL_SKIP\n", |
| 131 | + "\n", |
125 | 132 | "# Let's submit the dataset.\n", |
126 | 133 | "mdfcc.submit_dataset()" |
127 | 134 | ] |
|
136 | 143 | "output_type": "stream", |
137 | 144 | "text": [ |
138 | 145 | "\n", |
139 | | - "Status of TEST convert submission _test_simple_test_dataset_v1-1 (Simple Test Dataset)\n", |
140 | | - "Submitted by Jonathon Gaff at 2018-11-29T19:21:13.861237Z\n", |
| 146 | + "Status of TEST submission _test_person_simple_v1.1 (Simple Test Dataset)\n", |
| 147 | + "Submitted by Jonathon Gaff at 2019-08-07T16:11:58.505899Z\n", |
141 | 148 | "\n", |
142 | | - "Conversion initialization has not started yet.\n", |
143 | | - "Conversion data download has not started yet.\n", |
| 149 | + "Submission initialization was successful.\n", |
| 150 | + "Connect data download is in progress.\n", |
| 151 | + "Primary data transfer has not started yet.\n", |
144 | 152 | "Data conversion has not started yet.\n", |
145 | | - "Ingestion preparation has not started yet.\n", |
146 | | - "Ingestion initialization has not started yet.\n", |
147 | | - "Ingestion data download has not started yet.\n", |
148 | | - "Integration data download has not started yet.\n", |
149 | | - "Globus Search ingestion has not started yet.\n", |
150 | | - "Globus Publish publication has not started yet.\n", |
| 153 | + "Dataset curation has not started yet.\n", |
| 154 | + "MDF Search ingestion has not started yet.\n", |
| 155 | + "Data transfer to secondary destinations has not started yet.\n", |
| 156 | + "MDF Publish publication has not started yet.\n", |
151 | 157 | "Citrine upload has not started yet.\n", |
152 | 158 | "Materials Resource Registration has not started yet.\n", |
153 | 159 | "Post-processing cleanup has not started yet.\n", |
154 | 160 | "\n", |
155 | | - "This submission is active.\n" |
| 161 | + "This submission is active.\n", |
| 162 | + "\n" |
156 | 163 | ] |
157 | 164 | } |
158 | 165 | ], |
159 | 166 | "source": [ |
| 167 | + "# NBVAL_SKIP\n", |
| 168 | + "\n", |
160 | 169 | "# Now we can check the status of our submission.\n", |
161 | 170 | "mdfcc.check_status()" |
162 | 171 | ] |
|
0 commit comments