Last active
June 29, 2023 08:44
-
-
Save stain/83dc40820a54ccfd99745b38a006bb70 to your computer and use it in GitHub Desktop.
Converting INTEGRAL DAG to PROVN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document | |
default <http://example.com/run/123123/> | |
used(analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961, None, -) | |
used(analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c, c851f1e7-2551-5da5-b9ca-7e23775c2f1c, -) | |
used(analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0, analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -) | |
used(analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961, None, -) | |
used(analysis-GBcat-8f868fbb-fd81-5b5e-95f5-0d4ed55334d4, list-305c4589-a8ad-57a6-a946-8694e81bc22f, -) | |
used(analysis-GRcat-43383b87-35f4-547e-86a5-d6c92229876c, analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -) | |
used(analysis-CatForSpectra-43383b87-35f4-547e-86a5-d6c92229876c, analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -) | |
used(analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961, None, -) | |
activity(analysis-ii_lc_extract-0ef0ab5f-88b0-5720-8879-5ad44b96d68e, -, -, [prov:label="ii_lc_extract.v1"]) | |
activity(analysis-ghost_bustersLC-a96abb4a-cebe-54ac-88e5-1624243ec957, -, -, [prov:label="ghost_bustersLC.v2"]) | |
activity(analysis-ShadowUBCLC-3444d8d2-290e-5757-8385-89ecafb40e92, -, -, [prov:label="ShadowUBCLC.v3"]) | |
activity(analysis-BinEventsLC-67fdb479-f162-5b13-aeeb-84485ca6ae61, -, -, [prov:label="BinEventsLC.v1.1_o11"]) | |
activity(analysis-LCTimeBin-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -, -, [prov:label="LCTimeBin.v0.t64"]) | |
activity(analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f, -, -, [prov:label="ibis_gti.v2"]) | |
activity(analysis-ISGRIEvents-b0c6e656-66b9-5b24-935a-3d831d72b2eb, -, -, [prov:label="ISGRIEvents.v3"]) | |
activity(analysis-ibis_isgr_evts_tag-801eb281-bf66-58d9-98d9-287960d156a0, -, -, [prov:label="ibis_isgr_evts_tag.v2"]) | |
activity(analysis-ibis_isgr_energy-074afa33-7357-5a5d-8607-ca4eb3d93e92, -, -, [prov:label="ibis_isgr_energy.v6.1_extras"]) | |
activity(analysis-FindICIndexEntry_RISE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, -, -, [prov:label="FindICIndexEntry_RISE_MOD.v0"]) | |
activity(analysis-FindICIndexEntry_MCEC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, -, -, [prov:label="FindICIndexEntry_MCEC_MOD.v0"]) | |
activity(analysis-FindICIndexEntry_L2RE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, -, -, [prov:label="FindICIndexEntry_L2RE_MOD.v0"]) | |
activity(analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, -, -, [prov:label="FindICIndexEntry_EFFC_MOD.v0"]) | |
activity(analysis-ibis_dead-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f, -, -, [prov:label="ibis_dead.v2"]) | |
activity(analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db, -, -, [prov:label="BinMapsLC.v2"]) | |
activity(analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -, -, [prov:label="LCEnergyBins.onebin_28.0_50.0.one_bin_28_50"]) | |
activity(analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c, -, -, [prov:label="ScWData.v1"]) | |
activity(analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0, -, -, [prov:label="IBIS_ICRoot.v0"]) | |
activity(analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -, -, [prov:label="ICRoot.v1.default-isdc"]) | |
activity(analysis-GBcat-8f868fbb-fd81-5b5e-95f5-0d4ed55334d4, -, -, [prov:label="GBcat.v0"]) | |
activity(analysis-GRcat-43383b87-35f4-547e-86a5-d6c92229876c, -, -, [prov:label="GRcat.v2"]) | |
activity(analysis-CatForSpectra-43383b87-35f4-547e-86a5-d6c92229876c, -, -, [prov:label="CatForSpectra.v1"]) | |
activity(analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -, -, [prov:label="SourceCatalog.v2.4.DEC_3.1946_FLAG_0_ISGRI_FLAG_2_NAME_4U 1901+03_RA_285.92.DEC_7.582_FLAG_0_ISGRI_FLAG_1_NAME_4U 1909+_9fb3f0e1"]) | |
entity(list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, [prov:type='prov:Collection']) | |
entity(list-f63d357d-587a-5839-8978-9f37132c16b4, [prov:type='prov:Collection']) | |
entity(list-88b9da60-611c-5348-838b-cc56ba63ac32, [prov:type='prov:Collection']) | |
entity(list-9d054eb1-d57e-5acb-ae3c-3955484da154, [prov:type='prov:Collection']) | |
entity(list-7f449ca2-e3d5-523c-9766-4ca5adb1a689, [prov:type='prov:Collection']) | |
entity(list-c81ed13c-a97f-5a02-9682-b220e172db43, [prov:type='prov:Collection']) | |
entity(list-b882af46-c324-502f-9ec5-d9a1e1deadbb, [prov:type='prov:Collection']) | |
entity(list-9152aaed-42a5-57e4-a493-59ee005b581f, [prov:type='prov:Collection']) | |
entity(c851f1e7-2551-5da5-b9ca-7e23775c2f1c, [prov:label="249900160010.001"]) | |
entity(list-305c4589-a8ad-57a6-a946-8694e81bc22f, [prov:type='prov:Collection']) | |
entity(019f372d-4e09-566f-9728-ca385ddf5ea8, [prov:label="flag5"]) | |
entity(None, [prov:type='prov:Collection', prov:type='prov:EmptyCollection']) | |
hadMember(list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c) | |
hadMember(list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db) | |
hadMember(list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f) | |
hadMember(list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, analysis-ghost_bustersLC-a96abb4a-cebe-54ac-88e5-1624243ec957) | |
hadMember(list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, analysis-CatForSpectra-43383b87-35f4-547e-86a5-d6c92229876c) | |
hadMember(list-f63d357d-587a-5839-8978-9f37132c16b4, analysis-ShadowUBCLC-3444d8d2-290e-5757-8385-89ecafb40e92) | |
hadMember(list-f63d357d-587a-5839-8978-9f37132c16b4, analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c) | |
hadMember(list-f63d357d-587a-5839-8978-9f37132c16b4, analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-f63d357d-587a-5839-8978-9f37132c16b4, analysis-GBcat-8f868fbb-fd81-5b5e-95f5-0d4ed55334d4) | |
hadMember(list-88b9da60-611c-5348-838b-cc56ba63ac32, analysis-BinEventsLC-67fdb479-f162-5b13-aeeb-84485ca6ae61) | |
hadMember(list-88b9da60-611c-5348-838b-cc56ba63ac32, analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c) | |
hadMember(list-88b9da60-611c-5348-838b-cc56ba63ac32, analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-LCTimeBin-7b7a5d9c-f493-59cd-955b-fff6c22eb961) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-ISGRIEvents-b0c6e656-66b9-5b24-935a-3d831d72b2eb) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-ibis_dead-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f) | |
hadMember(list-9d054eb1-d57e-5acb-ae3c-3955484da154, analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961) | |
hadMember(list-7f449ca2-e3d5-523c-9766-4ca5adb1a689, analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c) | |
hadMember(list-7f449ca2-e3d5-523c-9766-4ca5adb1a689, analysis-ibis_isgr_energy-074afa33-7357-5a5d-8607-ca4eb3d93e92) | |
hadMember(list-c81ed13c-a97f-5a02-9682-b220e172db43, analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c) | |
hadMember(list-c81ed13c-a97f-5a02-9682-b220e172db43, analysis-FindICIndexEntry_RISE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-c81ed13c-a97f-5a02-9682-b220e172db43, analysis-FindICIndexEntry_MCEC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-c81ed13c-a97f-5a02-9682-b220e172db43, analysis-FindICIndexEntry_L2RE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-c81ed13c-a97f-5a02-9682-b220e172db43, analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-c81ed13c-a97f-5a02-9682-b220e172db43, analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-b882af46-c324-502f-9ec5-d9a1e1deadbb, analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c) | |
hadMember(list-b882af46-c324-502f-9ec5-d9a1e1deadbb, analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961) | |
hadMember(list-9152aaed-42a5-57e4-a493-59ee005b581f, analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0) | |
hadMember(list-9152aaed-42a5-57e4-a493-59ee005b581f, analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961) | |
hadMember(list-305c4589-a8ad-57a6-a946-8694e81bc22f, 019f372d-4e09-566f-9728-ca385ddf5ea8) | |
hadMember(list-305c4589-a8ad-57a6-a946-8694e81bc22f, analysis-GRcat-43383b87-35f4-547e-86a5-d6c92229876c) | |
used(analysis-ii_lc_extract-0ef0ab5f-88b0-5720-8879-5ad44b96d68e, list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782, -) | |
used(analysis-ghost_bustersLC-a96abb4a-cebe-54ac-88e5-1624243ec957, list-f63d357d-587a-5839-8978-9f37132c16b4, -) | |
used(analysis-ShadowUBCLC-3444d8d2-290e-5757-8385-89ecafb40e92, list-88b9da60-611c-5348-838b-cc56ba63ac32, -) | |
used(analysis-BinEventsLC-67fdb479-f162-5b13-aeeb-84485ca6ae61, list-9d054eb1-d57e-5acb-ae3c-3955484da154, -) | |
used(analysis-LCTimeBin-7b7a5d9c-f493-59cd-955b-fff6c22eb961, None, -) | |
used(analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f, list-b882af46-c324-502f-9ec5-d9a1e1deadbb, -) | |
used(analysis-ISGRIEvents-b0c6e656-66b9-5b24-935a-3d831d72b2eb, analysis-ibis_isgr_evts_tag-801eb281-bf66-58d9-98d9-287960d156a0, -) | |
used(analysis-ibis_isgr_evts_tag-801eb281-bf66-58d9-98d9-287960d156a0, list-7f449ca2-e3d5-523c-9766-4ca5adb1a689, -) | |
used(analysis-ibis_isgr_energy-074afa33-7357-5a5d-8607-ca4eb3d93e92, list-c81ed13c-a97f-5a02-9682-b220e172db43, -) | |
used(analysis-FindICIndexEntry_RISE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -) | |
used(analysis-FindICIndexEntry_MCEC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -) | |
used(analysis-FindICIndexEntry_L2RE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -) | |
used(analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0, analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961, -) | |
used(analysis-ibis_dead-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f, list-b882af46-c324-502f-9ec5-d9a1e1deadbb, -) | |
used(analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db, list-9152aaed-42a5-57e4-a493-59ee005b581f, -) | |
endDocument |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix prov: <http://www.w3.org/ns/prov#> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
<http://example.com/run/123123/analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961> prov:used <http://example.com/run/123123/None> . | |
<http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> prov:used <http://example.com/run/123123/c851f1e7-2551-5da5-b9ca-7e23775c2f1c> . | |
<http://example.com/run/123123/analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0> prov:used <http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> prov:used <http://example.com/run/123123/None> . | |
<http://example.com/run/123123/analysis-GBcat-8f868fbb-fd81-5b5e-95f5-0d4ed55334d4> prov:used <http://example.com/run/123123/list-305c4589-a8ad-57a6-a946-8694e81bc22f> . | |
<http://example.com/run/123123/analysis-GRcat-43383b87-35f4-547e-86a5-d6c92229876c> prov:used <http://example.com/run/123123/analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/analysis-CatForSpectra-43383b87-35f4-547e-86a5-d6c92229876c> prov:used <http://example.com/run/123123/analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961> prov:used <http://example.com/run/123123/None> . | |
<http://example.com/run/123123/analysis-ii_lc_extract-0ef0ab5f-88b0-5720-8879-5ad44b96d68e> prov:used <http://example.com/run/123123/list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782> . | |
<http://example.com/run/123123/analysis-ghost_bustersLC-a96abb4a-cebe-54ac-88e5-1624243ec957> prov:used <http://example.com/run/123123/list-f63d357d-587a-5839-8978-9f37132c16b4> . | |
<http://example.com/run/123123/analysis-ShadowUBCLC-3444d8d2-290e-5757-8385-89ecafb40e92> prov:used <http://example.com/run/123123/list-88b9da60-611c-5348-838b-cc56ba63ac32> . | |
<http://example.com/run/123123/analysis-BinEventsLC-67fdb479-f162-5b13-aeeb-84485ca6ae61> prov:used <http://example.com/run/123123/list-9d054eb1-d57e-5acb-ae3c-3955484da154> . | |
<http://example.com/run/123123/analysis-LCTimeBin-7b7a5d9c-f493-59cd-955b-fff6c22eb961> prov:used <http://example.com/run/123123/None> . | |
<http://example.com/run/123123/analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f> prov:used <http://example.com/run/123123/list-b882af46-c324-502f-9ec5-d9a1e1deadbb> . | |
<http://example.com/run/123123/analysis-ISGRIEvents-b0c6e656-66b9-5b24-935a-3d831d72b2eb> prov:used <http://example.com/run/123123/analysis-ibis_isgr_evts_tag-801eb281-bf66-58d9-98d9-287960d156a0> . | |
<http://example.com/run/123123/analysis-ibis_isgr_evts_tag-801eb281-bf66-58d9-98d9-287960d156a0> prov:used <http://example.com/run/123123/list-7f449ca2-e3d5-523c-9766-4ca5adb1a689> . | |
<http://example.com/run/123123/analysis-ibis_isgr_energy-074afa33-7357-5a5d-8607-ca4eb3d93e92> prov:used <http://example.com/run/123123/list-c81ed13c-a97f-5a02-9682-b220e172db43> . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_RISE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> prov:used <http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_MCEC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> prov:used <http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_L2RE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> prov:used <http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> prov:used <http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/analysis-ibis_dead-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f> prov:used <http://example.com/run/123123/list-b882af46-c324-502f-9ec5-d9a1e1deadbb> . | |
<http://example.com/run/123123/analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db> prov:used <http://example.com/run/123123/list-9152aaed-42a5-57e4-a493-59ee005b581f> . | |
<http://example.com/run/123123/analysis-ii_lc_extract-0ef0ab5f-88b0-5720-8879-5ad44b96d68e> a prov:Activity ; | |
rdfs:label "ii_lc_extract.v1" . | |
<http://example.com/run/123123/analysis-ghost_bustersLC-a96abb4a-cebe-54ac-88e5-1624243ec957> a prov:Activity ; | |
rdfs:label "ghost_bustersLC.v2" . | |
<http://example.com/run/123123/analysis-ShadowUBCLC-3444d8d2-290e-5757-8385-89ecafb40e92> a prov:Activity ; | |
rdfs:label "ShadowUBCLC.v3" . | |
<http://example.com/run/123123/analysis-BinEventsLC-67fdb479-f162-5b13-aeeb-84485ca6ae61> a prov:Activity ; | |
rdfs:label "BinEventsLC.v1.1_o11" . | |
<http://example.com/run/123123/analysis-LCTimeBin-7b7a5d9c-f493-59cd-955b-fff6c22eb961> a prov:Activity ; | |
rdfs:label "LCTimeBin.v0.t64" . | |
<http://example.com/run/123123/analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f> a prov:Activity ; | |
rdfs:label "ibis_gti.v2" . | |
<http://example.com/run/123123/analysis-ISGRIEvents-b0c6e656-66b9-5b24-935a-3d831d72b2eb> a prov:Activity ; | |
rdfs:label "ISGRIEvents.v3" . | |
<http://example.com/run/123123/analysis-ibis_isgr_evts_tag-801eb281-bf66-58d9-98d9-287960d156a0> a prov:Activity ; | |
rdfs:label "ibis_isgr_evts_tag.v2" . | |
<http://example.com/run/123123/analysis-ibis_isgr_energy-074afa33-7357-5a5d-8607-ca4eb3d93e92> a prov:Activity ; | |
rdfs:label "ibis_isgr_energy.v6.1_extras" . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_RISE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> a prov:Activity ; | |
rdfs:label "FindICIndexEntry_RISE_MOD.v0" . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_MCEC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> a prov:Activity ; | |
rdfs:label "FindICIndexEntry_MCEC_MOD.v0" . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_L2RE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> a prov:Activity ; | |
rdfs:label "FindICIndexEntry_L2RE_MOD.v0" . | |
<http://example.com/run/123123/analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> a prov:Activity ; | |
rdfs:label "FindICIndexEntry_EFFC_MOD.v0" . | |
<http://example.com/run/123123/analysis-ibis_dead-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f> a prov:Activity ; | |
rdfs:label "ibis_dead.v2" . | |
<http://example.com/run/123123/analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db> a prov:Activity ; | |
rdfs:label "BinMapsLC.v2" . | |
<http://example.com/run/123123/analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961> a prov:Activity ; | |
rdfs:label "LCEnergyBins.onebin_28.0_50.0.one_bin_28_50" . | |
<http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> a prov:Activity ; | |
rdfs:label "ScWData.v1" . | |
<http://example.com/run/123123/analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0> a prov:Activity ; | |
rdfs:label "IBIS_ICRoot.v0" . | |
<http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> a prov:Activity ; | |
rdfs:label "ICRoot.v1.default-isdc" . | |
<http://example.com/run/123123/analysis-GBcat-8f868fbb-fd81-5b5e-95f5-0d4ed55334d4> a prov:Activity ; | |
rdfs:label "GBcat.v0" . | |
<http://example.com/run/123123/analysis-GRcat-43383b87-35f4-547e-86a5-d6c92229876c> a prov:Activity ; | |
rdfs:label "GRcat.v2" . | |
<http://example.com/run/123123/analysis-CatForSpectra-43383b87-35f4-547e-86a5-d6c92229876c> a prov:Activity ; | |
rdfs:label "CatForSpectra.v1" . | |
<http://example.com/run/123123/analysis-SourceCatalog-7b7a5d9c-f493-59cd-955b-fff6c22eb961> a prov:Activity ; | |
rdfs:label "SourceCatalog.v2.4.DEC_3.1946_FLAG_0_ISGRI_FLAG_2_NAME_4U 1901+03_RA_285.92.DEC_7.582_FLAG_0_ISGRI_FLAG_1_NAME_4U 1909+_9fb3f0e1" . | |
<http://example.com/run/123123/list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/list-f63d357d-587a-5839-8978-9f37132c16b4> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/list-88b9da60-611c-5348-838b-cc56ba63ac32> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/list-9d054eb1-d57e-5acb-ae3c-3955484da154> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/list-7f449ca2-e3d5-523c-9766-4ca5adb1a689> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/list-c81ed13c-a97f-5a02-9682-b220e172db43> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/list-b882af46-c324-502f-9ec5-d9a1e1deadbb> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/list-9152aaed-42a5-57e4-a493-59ee005b581f> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/c851f1e7-2551-5da5-b9ca-7e23775c2f1c> a prov:Entity ; | |
rdfs:label "249900160010.001" . | |
<http://example.com/run/123123/list-305c4589-a8ad-57a6-a946-8694e81bc22f> a prov:Entity , prov:Collection . | |
<http://example.com/run/123123/019f372d-4e09-566f-9728-ca385ddf5ea8> a prov:Entity ; | |
rdfs:label "flag5" . | |
<http://example.com/run/123123/None> a prov:Entity , prov:Collection , prov:EmptyCollection . | |
<http://example.com/run/123123/list-d5e7a15d-a5ac-51a3-b124-e8e5130e9782> prov:hadMember <http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> , <http://example.com/run/123123/analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db> , <http://example.com/run/123123/analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f> , <http://example.com/run/123123/analysis-ghost_bustersLC-a96abb4a-cebe-54ac-88e5-1624243ec957> , <http://example.com/run/123123/analysis-CatForSpectra-43383b87-35f4-547e-86a5-d6c92229876c> . | |
<http://example.com/run/123123/list-f63d357d-587a-5839-8978-9f37132c16b4> prov:hadMember <http://example.com/run/123123/analysis-ShadowUBCLC-3444d8d2-290e-5757-8385-89ecafb40e92> , <http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> , <http://example.com/run/123123/analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-GBcat-8f868fbb-fd81-5b5e-95f5-0d4ed55334d4> . | |
<http://example.com/run/123123/list-88b9da60-611c-5348-838b-cc56ba63ac32> prov:hadMember <http://example.com/run/123123/analysis-BinEventsLC-67fdb479-f162-5b13-aeeb-84485ca6ae61> , <http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> , <http://example.com/run/123123/analysis-BinMapsLC-58c93023-eb78-5150-a822-a427ba0416db> . | |
<http://example.com/run/123123/list-9d054eb1-d57e-5acb-ae3c-3955484da154> prov:hadMember <http://example.com/run/123123/analysis-LCTimeBin-7b7a5d9c-f493-59cd-955b-fff6c22eb961> , <http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> , <http://example.com/run/123123/analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-ibis_gti-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f> , <http://example.com/run/123123/analysis-ISGRIEvents-b0c6e656-66b9-5b24-935a-3d831d72b2eb> , <http://example.com/run/123123/analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-ibis_dead-6e7c3b5a-13b7-5c97-a8c0-72c1be99b24f> , <http://example.com/run/123123/analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/list-7f449ca2-e3d5-523c-9766-4ca5adb1a689> prov:hadMember <http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> , <http://example.com/run/123123/analysis-ibis_isgr_energy-074afa33-7357-5a5d-8607-ca4eb3d93e92> . | |
<http://example.com/run/123123/list-c81ed13c-a97f-5a02-9682-b220e172db43> prov:hadMember <http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> , <http://example.com/run/123123/analysis-FindICIndexEntry_RISE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-FindICIndexEntry_MCEC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-FindICIndexEntry_L2RE_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-FindICIndexEntry_EFFC_MOD-06661d84-b2c2-57c0-9adb-c0447d7031f0> . | |
<http://example.com/run/123123/list-b882af46-c324-502f-9ec5-d9a1e1deadbb> prov:hadMember <http://example.com/run/123123/analysis-ScWData-1db23960-cc7f-5870-8bc3-291178cee01c> , <http://example.com/run/123123/analysis-ICRoot-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/list-9152aaed-42a5-57e4-a493-59ee005b581f> prov:hadMember <http://example.com/run/123123/analysis-IBIS_ICRoot-06661d84-b2c2-57c0-9adb-c0447d7031f0> , <http://example.com/run/123123/analysis-LCEnergyBins-7b7a5d9c-f493-59cd-955b-fff6c22eb961> . | |
<http://example.com/run/123123/list-305c4589-a8ad-57a6-a946-8694e81bc22f> prov:hadMember <http://example.com/run/123123/019f372d-4e09-566f-9728-ca385ddf5ea8> , <http://example.com/run/123123/analysis-GRcat-43383b87-35f4-547e-86a5-d6c92229876c> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from prov import model as prov | |
from prov.model import PROV | |
import uuid | |
NS = uuid.UUID("fc298dfd-dfbf-4013-b673-aed4fe62cd11") | |
EMPTY = uuid.uuid5(NS, "None") | |
def to_prov(provdoc,items): | |
if not items: | |
return provdoc.get_record("None")[0] | |
if type(items) == str: | |
item_id = str(uuid.uuid5(NS,items)) | |
r = provdoc.get_record(item_id) | |
if r: | |
return r[0] | |
return provdoc.entity(item_id, {PROV["label"]: items}) | |
#print() | |
#print(items) | |
if items[0] == "analysis": | |
script = items[-1] | |
args = items[1:-1] | |
args_entity = [to_prov(provdoc, arg) for arg in args] | |
act_id = "analysis-" + script.split(".")[0] + "-" + str(uuid.uuid5(NS, | |
"".join(str(e.identifier) for e in args_entity))) | |
r = provdoc.get_record(act_id) | |
if r: | |
# Already recorded with these parameters | |
return r[0] | |
act = provdoc.activity(act_id, None, None, {PROV["label"]: script}) | |
#plan_id = script.split(".")[0] + "-" + str(uuid.uuid5(NS, | |
# script)) | |
#plan = provdoc.get_record(plan_id) | |
#if not plan: | |
# plan = provdoc.entity(plan_id, {PROV["value"]: script, PROV["type"]: PROV["Plan"]}) | |
#provdoc.wasAssociatedWith(act, None, None, None, {PROV["plan"]: plan}) | |
for e in args_entity: | |
provdoc.used(act, e) | |
return act | |
elif items[0] == "list": | |
args = items[1:] | |
args_entity = [to_prov(provdoc, arg) for arg in args] | |
# Hash of identifiers contained in list | |
# rudimentary way to ensure we get same ID for same values | |
coll_id = "list-" + (str(uuid.uuid5(NS, | |
str([str(e.identifier) for e in args_entity])))) | |
r = provdoc.get_record(coll_id) | |
if r: | |
# Already described this collection | |
return r[0] | |
ent = provdoc.collection(coll_id) | |
for e in args_entity: | |
ent.hadMember(e) | |
return ent | |
else: | |
raise ValueError("Unknown type %s" % items[0]) | |
def main(): | |
provdoc = prov.ProvDocument() | |
provdoc.set_default_namespace("http://example.com/run/123123/") | |
none = provdoc.collection("None", {PROV["type"]: PROV["EmptyCollection"] }) | |
trace = eval(open("ii_lc_extract_provenance.txt").read()) # Don't do this, UNSAFE | |
to_prov(provdoc, trace) | |
print(provdoc.get_provn()) | |
provdoc.serialize(open("ii_lc_extract_provenance.ttl", "w"), format="rdf") | |
provdoc.serialize(open("ii_lc_extract_provenance.json", "w"), format="json") | |
provdoc.serialize(open("ii_lc_extract_provenance.provn", "w"), format="provn") | |
if __name__=="__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment