Spaces:
Running
on
Zero
Running
on
Zero
Reran visualization
Browse files- knowledge_graph.html +2 -2
- visualize.py +1 -1
knowledge_graph.html
CHANGED
@@ -88,8 +88,8 @@
|
|
88 |
|
89 |
|
90 |
// parsing and collecting nodes and edges from the python
|
91 |
-
nodes = new vis.DataSet([{"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756651432, "description": "Aerosmith is a legendary rock band that has announced their retirement from touring after 54 years.", "entity_id": "Aerosmith", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Aerosmith", "label": "Aerosmith", "shape": "dot", "size": 20, "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Aerosmith is a legendary rock band that has announced their retirement from touring after 54 years."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756651432, "description": "Steven Tyler is the lead singer of Aerosmith who suffered an unrecoverable vocal cord injury leading to the band\u0027s retirement from touring.", "entity_id": "Steven Tyler", "entity_type": "person", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Steven Tyler", "label": "Steven Tyler", "shape": "dot", "size": 20, "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Steven Tyler is the lead singer of Aerosmith who suffered an unrecoverable vocal cord injury leading to the band\u0027s retirement from touring."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756651432, "description": "Vocal cord injury refers to the unrecoverable injury suffered by Steven Tyler that caused Aerosmith to retire from touring.", "entity_id": "Vocal Cord Injury", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Vocal Cord Injury", "label": "Vocal Cord Injury", "shape": "dot", "size": 20, "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Vocal cord injury refers to the unrecoverable injury suffered by Steven Tyler that caused Aerosmith to retire from touring."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756651432, "description": "Touring refers to the activity of performing live concerts in various locations, which Aerosmith has retired from after 54 years.", "entity_id": "Touring", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Touring", "label": "Touring", "shape": "dot", "size": 20, "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Touring refers to the activity of performing live concerts in various locations, which Aerosmith has retired from after 54 years."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756651432, "description": "Fractured larynx is the specific injury Steven Tyler suffered in September 2023, which was unsuccessfully treated.", "entity_id": "Fractured Larynx", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Fractured Larynx", "label": "Fractured Larynx", "shape": "dot", "size": 20, "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Fractured larynx is the specific injury Steven Tyler suffered in September 2023, which was unsuccessfully treated."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756651432, "description": "Unsuccessful treatment refers to the medical efforts to heal Steven Tyler\u0027s fractured larynx that did not result in recovery.", "entity_id": "Unsuccessful Treatment", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Unsuccessful Treatment", "label": "Unsuccessful Treatment", "shape": "dot", "size": 20, "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Unsuccessful treatment refers to the medical efforts to heal Steven Tyler\u0027s fractured larynx that did not result in recovery."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756651432, "description": "September 2023 is the time when Steven Tyler suffered a fractured larynx.", "entity_id": "September 2023", "entity_type": "event", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "September 2023", "label": "September 2023", "shape": "dot", "size": 20, "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "September 2023 is the time when Steven Tyler suffered a fractured larynx."}]);
|
92 |
-
edges = new vis.DataSet([{"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651440, "description": "Steven Tyler is the lead singer of Aerosmith, whose vocal injury led to the band\u0027s retirement from touring.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Aerosmith", "keywords": "band membership,cause of retirement", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Steven Tyler is the lead singer of Aerosmith, whose vocal injury led to the band\u0027s retirement from touring.", "to": "Steven Tyler", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651442, "description": "The vocal cord injury to Steven Tyler led to Aerosmith\u0027s retirement from touring.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Aerosmith", "keywords": "band decision,cause and effect", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "The vocal cord injury to Steven Tyler led to Aerosmith\u0027s retirement from touring.", "to": "Vocal Cord Injury", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651444, "description": "Aerosmith has officially retired from touring after 54 years.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Aerosmith", "keywords": "career activity,retirement", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Aerosmith has officially retired from touring after 54 years.", "to": "Touring", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651441, "description": "Steven Tyler suffered an unrecoverable vocal cord injury that affected his ability to perform.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Steven Tyler", "keywords": "career impact,health issue", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Steven Tyler suffered an unrecoverable vocal cord injury that affected his ability to perform.", "to": "Vocal Cord Injury", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651442, "description": "Steven Tyler\u0027s fractured larynx in September 2023 was the cause of his vocal cord injury.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Steven Tyler", "keywords": "health event,injury cause", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Steven Tyler\u0027s fractured larynx in September 2023 was the cause of his vocal cord injury.", "to": "Fractured Larynx", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651444, "description": "Steven Tyler underwent unsuccessful treatment for his fractured larynx.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Steven Tyler", "keywords": "health outcome,medical treatment", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "Steven Tyler underwent unsuccessful treatment for his fractured larynx.", "to": "Unsuccessful Treatment", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651444, "description": "The fractured larynx injury occurred in September 2023.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "September 2023", "keywords": "injury timing,temporal occurrence", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "The fractured larynx injury occurred in September 2023.", "to": "Fractured Larynx", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756651447, "description": "The unsuccessful treatment was aimed at healing the fractured larynx.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Fractured Larynx", "keywords": "injury management,medical intervention", "source_id": "chunk-150cfba3862e116efcee671d872955be", "title": "The unsuccessful treatment was aimed at healing the fractured larynx.", "to": "Unsuccessful Treatment", "width": 4}]);
|
93 |
|
94 |
nodeColors = {};
|
95 |
allNodes = nodes.get({ returnType: "Object" });
|
|
|
88 |
|
89 |
|
90 |
// parsing and collecting nodes and edges from the python
|
91 |
+
nodes = new vis.DataSet([{"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "Ilham Aliyev is the President of Azerbaijan and part of a family with extensive financial interests across multiple sectors of the economy.", "entity_id": "Ilham Aliyev", "entity_type": "person", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Ilham Aliyev", "label": "Ilham Aliyev", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Ilham Aliyev is the President of Azerbaijan and part of a family with extensive financial interests across multiple sectors of the economy."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "Mehriban Aliyeva is the wife of Ilham Aliyev, originating from the Pashayev family, and has led the Heydar Aliyev Foundation, a major Azerbaijani charity involved in building schools, hospitals, and a sports complex.", "entity_id": "Mehriban Aliyeva", "entity_type": "person", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Mehriban Aliyeva", "label": "Mehriban Aliyeva", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Mehriban Aliyeva is the wife of Ilham Aliyev, originating from the Pashayev family, and has led the Heydar Aliyev Foundation, a major Azerbaijani charity involved in building schools, hospitals, and a sports complex."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "Leyla Aliyeva is the eldest daughter of Ilham Aliyev, editor of Baku magazine, and has financial stakes in a firm with gold mining rights and in Azerfon.", "entity_id": "Leyla Aliyeva", "entity_type": "person", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Leyla Aliyeva", "label": "Leyla Aliyeva", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva is the eldest daughter of Ilham Aliyev, editor of Baku magazine, and has financial stakes in a firm with gold mining rights and in Azerfon."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "Arzu Aliyeva is the daughter of Ilham Aliyev, has financial stakes in a gold mining firm and Azerfon, and is a significant shareholder in SW Holding, which controls operations related to Azerbaijan Airlines.", "entity_id": "Arzu Aliyeva", "entity_type": "person", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Arzu Aliyeva", "label": "Arzu Aliyeva", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva is the daughter of Ilham Aliyev, has financial stakes in a gold mining firm and Azerfon, and is a significant shareholder in SW Holding, which controls operations related to Azerbaijan Airlines."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "Heydar Aliyev is the son of Ilham Aliyev, owning property in Dubai and legal owner of nine luxury mansions purchased for about $44 million.", "entity_id": "Heydar Aliyev (son)", "entity_type": "person", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Heydar Aliyev (son)", "label": "Heydar Aliyev (son)", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Heydar Aliyev is the son of Ilham Aliyev, owning property in Dubai and legal owner of nine luxury mansions purchased for about $44 million."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "The Pashayev family is a privileged and powerful family owning banks, insurance and construction companies, a television station, and a cosmetics line.", "entity_id": "Pashayev Family", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Pashayev Family", "label": "Pashayev Family", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Pashayev family is a privileged and powerful family owning banks, insurance and construction companies, a television station, and a cosmetics line."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "The Heydar Aliyev Foundation is Azerbaijan\u0027s leading charity responsible for constructing schools, hospitals, and the country\u0027s major sports complex.", "entity_id": "Heydar Aliyev Foundation", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Heydar Aliyev Foundation", "label": "Heydar Aliyev Foundation", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Heydar Aliyev Foundation is Azerbaijan\u0027s leading charity responsible for constructing schools, hospitals, and the country\u0027s major sports complex."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "Banks are financial institutions owned by the Pashayev family as part of their diverse business interests.", "entity_id": "Banks", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Banks", "label": "Banks", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Banks are financial institutions owned by the Pashayev family as part of their diverse business interests."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "Insurance companies are part of the Pashayev family\u0027s business holdings.", "entity_id": "Insurance Companies", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Insurance Companies", "label": "Insurance Companies", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Insurance companies are part of the Pashayev family\u0027s business holdings."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "Construction companies are among the businesses owned by the Pashayev family.", "entity_id": "Construction Companies", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Construction Companies", "label": "Construction Companies", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Construction companies are among the businesses owned by the Pashayev family."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "A television station owned by the Pashayev family.", "entity_id": "Television Station", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Television Station", "label": "Television Station", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "A television station owned by the Pashayev family."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "A line of cosmetics owned by the Pashayev family.", "entity_id": "Cosmetics Line", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Cosmetics Line", "label": "Cosmetics Line", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "A line of cosmetics owned by the Pashayev family."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "Schools constructed with support from the Heydar Aliyev Foundation.", "entity_id": "Schools", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Schools", "label": "Schools", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Schools constructed with support from the Heydar Aliyev Foundation."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "Hospitals constructed with support from the Heydar Aliyev Foundation.", "entity_id": "Hospitals", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Hospitals", "label": "Hospitals", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Hospitals constructed with support from the Heydar Aliyev Foundation."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "The country\u0027s major sports complex constructed with support from the Heydar Aliyev Foundation.", "entity_id": "Sports Complex", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Sports Complex", "label": "Sports Complex", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The country\u0027s major sports complex constructed with support from the Heydar Aliyev Foundation."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738426, "description": "Baku magazine is a publication edited by Leyla Aliyeva.", "entity_id": "Baku Magazine", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Baku Magazine", "label": "Baku Magazine", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Baku magazine is a publication edited by Leyla Aliyeva."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "A firm with rights to mine gold in the western village of Chovdar, in which Leyla and Arzu Aliyeva have financial stakes.", "entity_id": "Gold Mining Firm", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Gold Mining Firm", "label": "Gold Mining Firm", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "A firm with rights to mine gold in the western village of Chovdar, in which Leyla and Arzu Aliyeva have financial stakes."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "Azerfon is the largest mobile phone business in Azerbaijan, with financial stakes held by Leyla and Arzu Aliyeva.", "entity_id": "Azerfon", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Azerfon", "label": "Azerfon", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Azerfon is the largest mobile phone business in Azerbaijan, with financial stakes held by Leyla and Arzu Aliyeva."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "Chovdar is a western village in Azerbaijan where gold mining rights have been granted to a firm associated with the Aliyev family.", "entity_id": "Chovdar", "entity_type": "geo", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Chovdar", "label": "Chovdar", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Chovdar is a western village in Azerbaijan where gold mining rights have been granted to a firm associated with the Aliyev family."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "Dubai is a city where the Aliyev siblings own property valued at roughly $75 million as of 2010, including nine luxury mansions owned by Heydar Aliyev.", "entity_id": "Dubai", "entity_type": "geo", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Dubai", "label": "Dubai", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Dubai is a city where the Aliyev siblings own property valued at roughly $75 million as of 2010, including nine luxury mansions owned by Heydar Aliyev."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "Real estate holdings in Dubai owned by Leyla, Arzu, and Heydar Aliyev, valued at roughly $75 million in 2010.", "entity_id": "Property in Dubai", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Property in Dubai", "label": "Property in Dubai", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Real estate holdings in Dubai owned by Leyla, Arzu, and Heydar Aliyev, valued at roughly $75 million in 2010."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "SW Holding is a company controlling nearly every operation related to Azerbaijan Airlines, including meals and airport taxis, with Arzu Aliyeva as a significant shareholder.", "entity_id": "SW Holding", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "SW Holding", "label": "SW Holding", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "SW Holding is a company controlling nearly every operation related to Azerbaijan Airlines, including meals and airport taxis, with Arzu Aliyeva as a significant shareholder."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738443, "description": "Nine luxury mansions in Dubai legally owned by Heydar Aliyev, purchased for about $44 million.", "entity_id": "Luxury Mansions in Dubai", "entity_type": "category", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Luxury Mansions in Dubai", "label": "Luxury Mansions in Dubai", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Nine luxury mansions in Dubai legally owned by Heydar Aliyev, purchased for about $44 million."}, {"color": {"background": "#e0e7ff", "border": "#6366f1", "highlight": {"background": "#c7d2fe", "border": "#4f46e5"}}, "created_at": 1756738434, "description": "Azerbaijan Airlines, also known as Azal, is the national airline of Azerbaijan, with operations controlled by SW Holding.", "entity_id": "Azerbaijan Airlines (Azal)", "entity_type": "organization", "file_path": "unknown_source", "font": {"color": "#1e293b", "size": 14}, "id": "Azerbaijan Airlines (Azal)", "label": "Azerbaijan Airlines (Azal)", "shape": "dot", "size": 20, "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Azerbaijan Airlines, also known as Azal, is the national airline of Azerbaijan, with operations controlled by SW Holding."}]);
|
92 |
+
edges = new vis.DataSet([{"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738451, "description": "Mehriban Aliyeva is the wife of Ilham Aliyev.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Ilham Aliyev", "keywords": "family relationship,marriage", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Mehriban Aliyeva is the wife of Ilham Aliyev.", "to": "Mehriban Aliyeva", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738455, "description": "Leyla Aliyeva is the eldest daughter of Ilham Aliyev.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Ilham Aliyev", "keywords": "family relationship,parent-child", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva is the eldest daughter of Ilham Aliyev.", "to": "Leyla Aliyeva", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738457, "description": "Arzu Aliyeva is the daughter of Ilham Aliyev.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Ilham Aliyev", "keywords": "family relationship,parent-child", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva is the daughter of Ilham Aliyev.", "to": "Arzu Aliyeva", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738461, "description": "Heydar Aliyev is the son of Ilham Aliyev.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Ilham Aliyev", "keywords": "family relationship,parent-child", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Heydar Aliyev is the son of Ilham Aliyev.", "to": "Heydar Aliyev (son)", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738453, "description": "Mehriban Aliyeva comes from the Pashayev family.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Mehriban Aliyeva", "keywords": "family origin,lineage", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Mehriban Aliyeva comes from the Pashayev family.", "to": "Pashayev Family", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738455, "description": "Mehriban Aliyeva has led the Heydar Aliyev Foundation.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Mehriban Aliyeva", "keywords": "charity work,leadership", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Mehriban Aliyeva has led the Heydar Aliyev Foundation.", "to": "Heydar Aliyev Foundation", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738466, "description": "The Pashayev family owns banks.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Pashayev Family", "keywords": "financial sector,ownership", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Pashayev family owns banks.", "to": "Banks", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738469, "description": "The Pashayev family owns insurance companies.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Pashayev Family", "keywords": "financial sector,ownership", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Pashayev family owns insurance companies.", "to": "Insurance Companies", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738472, "description": "The Pashayev family owns construction companies.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Pashayev Family", "keywords": "construction sector,ownership", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Pashayev family owns construction companies.", "to": "Construction Companies", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738475, "description": "The Pashayev family owns a television station.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Pashayev Family", "keywords": "media,ownership", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Pashayev family owns a television station.", "to": "Television Station", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738479, "description": "The Pashayev family owns a line of cosmetics.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Pashayev Family", "keywords": "consumer goods,ownership", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Pashayev family owns a line of cosmetics.", "to": "Cosmetics Line", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738472, "description": "The Heydar Aliyev Foundation is behind the construction of schools.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Heydar Aliyev Foundation", "keywords": "charity work,education", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Heydar Aliyev Foundation is behind the construction of schools.", "to": "Schools", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738475, "description": "The Heydar Aliyev Foundation is behind the construction of hospitals.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Heydar Aliyev Foundation", "keywords": "charity work,healthcare", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Heydar Aliyev Foundation is behind the construction of hospitals.", "to": "Hospitals", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738479, "description": "The Heydar Aliyev Foundation is behind the construction of the country\u0027s major sports complex.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Heydar Aliyev Foundation", "keywords": "charity work,sports infrastructure", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "The Heydar Aliyev Foundation is behind the construction of the country\u0027s major sports complex.", "to": "Sports Complex", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738451, "description": "Leyla Aliyeva is the editor of Baku magazine.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "editorial role,media", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva is the editor of Baku magazine.", "to": "Baku Magazine", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738453, "description": "Leyla Aliyeva has financial stakes in a firm with gold mining rights.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "financial interest,mining", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva has financial stakes in a firm with gold mining rights.", "to": "Gold Mining Firm", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738457, "description": "Leyla Aliyeva has financial stakes in Azerfon.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "financial interest,telecommunications", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva has financial stakes in Azerfon.", "to": "Azerfon", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738461, "description": "Leyla Aliyeva has financial stakes in a firm with mining rights in Chovdar.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "financial interest,geographic location", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva has financial stakes in a firm with mining rights in Chovdar.", "to": "Chovdar", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738464, "description": "Leyla, Arzu, and Heydar Aliyev are siblings owning property in Dubai.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "family relationship,shared property", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla, Arzu, and Heydar Aliyev are siblings owning property in Dubai.", "to": "Heydar Aliyev (son)", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738469, "description": "Leyla Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "property ownership,real estate", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "to": "Dubai", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738472, "description": "Leyla and Arzu Aliyeva are sisters with shared financial interests.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "family relationship,shared business interests", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla and Arzu Aliyeva are sisters with shared financial interests.", "to": "Arzu Aliyeva", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738475, "description": "Leyla Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Leyla Aliyeva", "keywords": "property ownership,real estate", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "to": "Property in Dubai", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738461, "description": "Arzu Aliyeva has financial stakes in a firm with gold mining rights.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Arzu Aliyeva", "keywords": "financial interest,mining", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva has financial stakes in a firm with gold mining rights.", "to": "Gold Mining Firm", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738464, "description": "Arzu Aliyeva has financial stakes in Azerfon.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Arzu Aliyeva", "keywords": "financial interest,telecommunications", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva has financial stakes in Azerfon.", "to": "Azerfon", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738466, "description": "Arzu Aliyeva is a significant shareholder in SW Holding.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Arzu Aliyeva", "keywords": "corporate control,shareholding", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva is a significant shareholder in SW Holding.", "to": "SW Holding", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738469, "description": "Arzu Aliyeva has financial stakes in a firm with mining rights in Chovdar.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Arzu Aliyeva", "keywords": "financial interest,geographic location", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva has financial stakes in a firm with mining rights in Chovdar.", "to": "Chovdar", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738475, "description": "Leyla, Arzu, and Heydar Aliyev are siblings owning property in Dubai.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Arzu Aliyeva", "keywords": "family relationship,shared property", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Leyla, Arzu, and Heydar Aliyev are siblings owning property in Dubai.", "to": "Heydar Aliyev (son)", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738479, "description": "Arzu Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Arzu Aliyeva", "keywords": "property ownership,real estate", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "to": "Dubai", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738483, "description": "Arzu Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Arzu Aliyeva", "keywords": "property ownership,real estate", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Arzu Aliyeva owns property in Dubai valued at roughly $75 million along with her siblings.", "to": "Property in Dubai", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738466, "description": "Heydar Aliyev owns nine luxury mansions in Dubai purchased for about $44 million.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Heydar Aliyev (son)", "keywords": "property ownership,real estate", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Heydar Aliyev owns nine luxury mansions in Dubai purchased for about $44 million.", "to": "Dubai", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738479, "description": "Heydar Aliyev is the legal owner of nine luxury mansions in Dubai purchased for about $44 million.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "Heydar Aliyev (son)", "keywords": "property ownership,real estate", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "Heydar Aliyev is the legal owner of nine luxury mansions in Dubai purchased for about $44 million.", "to": "Luxury Mansions in Dubai", "width": 4}, {"color": {"color": "#6366f1", "highlight": "#4f46e5"}, "created_at": 1756738457, "description": "SW Holding controls nearly every operation related to Azerbaijan Airlines.", "file_path": "unknown_source", "font": {"color": "#4b5563", "face": "Arial", "size": 12}, "from": "SW Holding", "keywords": "airline operations,corporate control", "source_id": "chunk-605403c35618c5288c57c562f8eca566", "title": "SW Holding controls nearly every operation related to Azerbaijan Airlines.", "to": "Azerbaijan Airlines (Azal)", "width": 4}]);
|
93 |
|
94 |
nodeColors = {};
|
95 |
allNodes = nodes.get({ returnType: "Object" });
|
visualize.py
CHANGED
@@ -7,7 +7,7 @@ from pyvis.network import Network
|
|
7 |
warnings.filterwarnings("ignore")
|
8 |
|
9 |
# Load the GraphML file
|
10 |
-
file_path = "./
|
11 |
|
12 |
assert os.path.exists(file_path), f"File {file_path} does not exist."
|
13 |
G = nx.read_graphml(file_path)
|
|
|
7 |
warnings.filterwarnings("ignore")
|
8 |
|
9 |
# Load the GraphML file
|
10 |
+
file_path = "./sample/graph_chunk_entity_relation.graphml"
|
11 |
|
12 |
assert os.path.exists(file_path), f"File {file_path} does not exist."
|
13 |
G = nx.read_graphml(file_path)
|