Commit 50a051c2 authored by Alexander Lercher's avatar Alexander Lercher

Semantic Linking: larger dataset

parent 40e38102
......@@ -9,7 +9,7 @@ labalvlues = []
def classify():
with open("mult_in_out.json", "r") as json_file:
with open("mult_in_out_large.json", "r") as json_file:
df_nodes = json.load(json_file)
......
......@@ -132,6 +132,7 @@ class SemanticLinking:
self._update_label(n, labeling, self.G)
for label in set(labeling.values()):
print("lable value: ", labeling.values())
self.labeling = labeling
def findigneighbors(self):
......
......@@ -3214,522 +3214,6 @@
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 10:30:07",
"TransactionFrom": [34, 35],
"TransactionID": "504328ff-9cdf-4b55-8902-ece38cbb65e9",
"TransactionTo": [37, 38],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 11:32:26",
"TransactionFrom": [34, 35],
"TransactionID": "5e20cdc4-bc70-4d42-b2d4-82be206e3f3f",
"TransactionTo": [43, 42, 41],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 12:46:31",
"TransactionFrom": [42, 39, 38],
"TransactionID": "34ef6a42-2a66-44a2-be4e-522a21445eff",
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 10:03:21",
"TransactionFrom": [38, 43],
"TransactionID": "b7503f3c-8a5e-4a90-8006-c164bcddf5cd",
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 13:56:46",
"TransactionFrom": [34],
"TransactionID": "d59985fd-ce3a-4399-a494-79d324802672",
"TransactionTo": [39],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 08:49:50",
"TransactionFrom": [35],
"TransactionID": "bf1681a7-365e-4a3a-9dc4-17ed9bbf1a79",
"TransactionTo": [40, 38, 42],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-10 11:31:54",
"TransactionFrom": [35, 34],
"TransactionID": "c4d84b24-472c-44b6-a6e8-3073170058d6",
"TransactionTo": [40, 37, 39],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-10 11:21:04",
"TransactionFrom": [34],
"TransactionID": "46084f68-26e1-446a-a642-ede3bd174268",
"TransactionTo": [42],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 12:03:26",
"TransactionFrom": [36],
"TransactionID": "8c8e5247-87e0-40f2-9ce1-4453b1fffd23",
"TransactionTo": [35, 34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 12:17:43",
"TransactionFrom": [35],
"TransactionID": "331a6e38-a1c6-4858-82da-c393150a7524",
"TransactionTo": [43, 41],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 14:50:09",
"TransactionFrom": [38],
"TransactionID": "0076ab5f-fb9b-418b-80f7-5c0abd063b00",
"TransactionTo": [35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 08:17:12",
"TransactionFrom": [35, 34],
"TransactionID": "a8400073-48dc-49dc-9325-3a87c3fcc96b",
"TransactionTo": [38, 41],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 09:10:06",
"TransactionFrom": [34],
"TransactionID": "eca2ddb4-7a8c-49be-8a8b-a2f544ff99cd",
"TransactionTo": [36],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 08:42:07",
"TransactionFrom": [34, 35],
"TransactionID": "8cea51d0-2774-496e-80ce-86370a0089d7",
"TransactionTo": [43, 36, 42],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 14:27:46",
"TransactionFrom": [36],
"TransactionID": "f3f80678-4afe-4c99-aa0f-831d1be6a3fc",
"TransactionTo": [35, 34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 10:19:21",
"TransactionFrom": [34, 35],
"TransactionID": "f914079d-6154-4e6a-8a82-8d9a12d12310",
"TransactionTo": [42, 40],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 17:41:16",
"TransactionFrom": [36, 40, 38],
"TransactionID": "ad91804d-3ef7-457b-b0da-07d439691b51",
"TransactionTo": [35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 15:50:23",
"TransactionFrom": [35],
"TransactionID": "a2e6cfae-8483-4427-bd7d-461511c5b070",
"TransactionTo": [41, 43],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 20:53:45",
"TransactionFrom": [41, 42, 40],
"TransactionID": "68922354-6069-41ee-9a50-6a09bba88c38",
"TransactionTo": [34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 20:29:14",
"TransactionFrom": [34, 35],
"TransactionID": "975f6837-7d8d-489f-aabe-41d7d82a5f3a",
"TransactionTo": [43, 39],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 20:44:55",
"TransactionFrom": [43, 36, 39],
"TransactionID": "d6459c49-4ea6-4aa3-803e-505f6fd6b233",
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-10 19:15:52",
"TransactionFrom": [35, 34],
"TransactionID": "fe33715d-5621-42a8-946b-bc5028782547",
"TransactionTo": [42, 40],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-10 19:04:07",
"TransactionFrom": [34, 35],
"TransactionID": "9f445f24-304d-49d7-9604-37e8b4f5259d",
"TransactionTo": [40],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-10 18:01:10",
"TransactionFrom": [37, 41],
"TransactionID": "e12b3a75-d3a6-46ae-aadb-b92be72847db",
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 21:59:34",
"TransactionFrom": [40],
"TransactionID": "5a25f5ac-94ba-4e9f-8eb4-3aa0c9e0e55f",
"TransactionTo": [34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 18:05:44",
"TransactionFrom": [40],
"TransactionID": "64ad3f46-1040-42f2-af15-f6d6e122ce3a",
"TransactionTo": [34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 20:39:57",
"TransactionFrom": [39],
"TransactionID": "90a4a5be-2651-4438-bdbc-4226e1c091d7",
"TransactionTo": [34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 20:14:34",
"TransactionFrom": [41, 36],
"TransactionID": "2896124d-4edf-41ac-8cc6-dfe30051325e",
"TransactionTo": [34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 16:33:08",
"TransactionFrom": [37, 42],
"TransactionID": "2bf70079-c0c3-4c6a-a0bd-31d7ee6806d7",
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 17:02:48",
"TransactionFrom": [39, 36],
"TransactionID": "68e75533-4d85-4286-9fc4-7a51188631a8",
"TransactionTo": [35, 34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 14:56:14",
"TransactionFrom": [47, 45],
"TransactionID": "df079541-b5fb-47be-bca6-e315be7f434e",
"TransactionTo": [35, 34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 13:13:21",
"TransactionFrom": [34],
"TransactionID": "7eea4ddf-84a5-430c-917a-f7ee4a596460",
"TransactionTo": [45, 46],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-08 12:36:07",
"TransactionFrom": [34],
"TransactionID": "5d184257-0d04-4fa8-9ced-2c0d23e3b3ea",
"TransactionTo": [45],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 13:35:23",
"TransactionFrom": [35],
"TransactionID": "eecc4d94-20ce-4743-a8d0-a60f9290b0de",
"TransactionTo": [47],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 10:46:28",
"TransactionFrom": [44],
"TransactionID": "5680e112-d02c-4f74-a184-12397208bd0d",
"TransactionTo": [35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 14:54:09",
"TransactionFrom": [34, 35],
"TransactionID": "c7297704-9610-485e-94f3-06624150c52c",
"TransactionTo": [46, 47],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-09 09:04:40",
"TransactionFrom": [46],
"TransactionID": "a6f4e0ea-8df8-4507-a679-e03ede23228e",
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-10 09:51:16",
"TransactionFrom": [35],
"TransactionID": "5c949e5d-5579-4e98-bdf7-ba9f972321b4",
"TransactionTo": [44, 47],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-10 08:14:17",
"TransactionFrom": [44],
"TransactionID": "046e3ad2-6cf1-4323-9df7-607bb99a27f1",
"TransactionTo": [34],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 12:19:26",
"TransactionFrom": [34, 35],
"TransactionID": "43ea9ff2-9b95-4ff4-89b7-fd078f12385c",
"TransactionTo": [45, 47],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-11 10:31:37",
"TransactionFrom": [34, 35],
"TransactionID": "d30ff068-ead4-45b5-8546-bb0419b6d3df",
"TransactionTo": [47, 45],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 08:46:03",
"TransactionFrom": [44, 46, 45],
"TransactionID": "4ff6caa8-5320-4add-b6c6-3b39a941743c",
"TransactionTo": [34, 35],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
"ResourceIds": [],
"ResourceMd5": null,
"ResourceState": "ISSUED",
"Timestamp": "2019-07-12 13:41:45",
"TransactionFrom": [34],
"TransactionID": "d64fc378-faba-4150-a054-fe715347ca55",
"TransactionTo": [45],
"TransferredAsset": "TEXT",
"_id": null
}, {
"ApplicationType": "GENERIC",
"Metadata": {},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment