Explore

Author

Dmitriy Leybel

from langchain.text_splitter import RecursiveCharacterTextSplitter
from jsonlines import jsonlines

from IPython.display import display, Markdown
from pprint import pprint

from langchain_anthropic import ChatAnthropic
from dotenv import load_dotenv
musique_dir = '../musique/musique/'
import panel as pn
pn.extension()

Data JSONLines

with jsonlines.open(musique_dir + 'data/musique_full_v1.0_train.jsonl') as reader:
    num_lines = sum(1 for _ in reader)

print(f'Number of lines in the file: {num_lines}')
Number of lines in the file: 39876
with jsonlines.open(musique_dir + '/data/musique_full_v1.0_train.jsonl') as reader:
    lines = [reader.read() for _ in range(1000)]
display(Markdown('**Line Example**'), pprint(lines[1]))
{'answer': 'north',
 'answer_aliases': ['North', 'N'],
 'answerable': True,
 'id': '2hop__269805_135710',
 'paragraphs': [{'idx': 0,
                 'is_supporting': False,
                 'paragraph_text': 'Milton F. Pavlic (1909–1942) was a United '
                                   'States Navy officer killed in action '
                                   'during World War II for whom a U.S. Navy '
                                   'high-speed transport was named.',
                 'title': 'Milton F. Pavlic'},
                {'idx': 1,
                 'is_supporting': False,
                 'paragraph_text': 'Osmund Holm-Hansen (also known as Oz '
                                   'Holm-Hansen) is a Norwegian-born American '
                                   'scientist, for whom Mount Holm-Hansen, in '
                                   'Antarctica is named. A plant physiologist '
                                   'by training, from 1962 Holm-Hansen was the '
                                   'head of polar research at the Scripps '
                                   'Institution of Oceanography.',
                 'title': 'Osmund Holm-Hansen'},
                {'idx': 2,
                 'is_supporting': False,
                 'paragraph_text': '"Sapphire Princess" was built in Japan by '
                                   'Mitsubishi Heavy Industries, the second '
                                   'Princess Cruises ship to be built in a '
                                   'Japanese shipyard. Her only sister ship is '
                                   '"Diamond Princess", with whom she swapped '
                                   'names during construction.',
                 'title': 'Sapphire Princess'},
                {'idx': 3,
                 'is_supporting': False,
                 'paragraph_text': 'Lake Pontchartrain is named for Louis '
                                   'Phélypeaux, comte de Pontchartrain. He was '
                                   'the French Minister of the Marine, '
                                   'Chancellor, and Controller-General of '
                                   "Finances during the reign of France's "
                                   '"Sun King", Louis XIV, for whom the colony '
                                   'of "La Louisiane" was named.',
                 'title': 'Lake Pontchartrain'},
                {'idx': 4,
                 'is_supporting': False,
                 'paragraph_text': 'Henry Crater is a large crater in the '
                                   'Arabia quadrangle of Mars, located at '
                                   '10.9° north latitude and 23.3° east '
                                   'longitude. It is in diameter and was named '
                                   'after the brothers Paul Henry and Prosper '
                                   'Henry, both of whom were French telescope '
                                   'makers and astronomers.',
                 'title': 'Henry (Martian crater)'},
                {'idx': 5,
                 'is_supporting': False,
                 'paragraph_text': 'Where Dead Voices Gather is a book by Nick '
                                   'Tosches. It is, in part, a biography of '
                                   'Emmett Miller, one of the last minstrel '
                                   'singers. Just as importantly, it depicts '
                                   "Tosches' search for information about "
                                   'Miller, about whom he initially wrote in '
                                   'his book "Country: The Twisted Roots of '
                                   'Rock and Roll". It is also a study of '
                                   'minstrelsy and its connection to American '
                                   'folk music, country music, the blues and '
                                   'ultimately, rock and roll. In that way, it '
                                   'is a companion volume to his other books '
                                   'of music journalism, "Country" and "Unsung '
                                   'Heroes of Rock N\' Roll".',
                 'title': 'Where Dead Voices Gather'},
                {'idx': 6,
                 'is_supporting': True,
                 'paragraph_text': 'Norway has a total area of and a '
                                   'population of 5,312,300 (as of August '
                                   '2018). The country shares a long eastern '
                                   'border with Sweden (1,619 km or 1,006\xa0'
                                   'mi long). Norway is bordered by Finland '
                                   'and Russia to the north-east, and the '
                                   'Skagerrak strait to the south, with '
                                   'Denmark on the other side. Norway has an '
                                   'extensive coastline, facing the North '
                                   'Atlantic Ocean and the Barents Sea. The '
                                   "maritime influence also dominates Norway's "
                                   'climate with mild lowland temperatures on '
                                   'the sea coasts, whereas the interior, '
                                   'while colder, also is a lot milder than '
                                   'areas elsewhere in the world on such '
                                   'northerly latitudes. Even during polar '
                                   'night in the north, temperatures above '
                                   'freezing are commonplace on the coastline. '
                                   'The maritime influence brings high '
                                   'rainfall and snowfall to some areas of the '
                                   'country.',
                 'title': 'Norway'},
                {'idx': 7,
                 'is_supporting': False,
                 'paragraph_text': 'The Hireling Shepherd (1851) is a painting '
                                   'by the Pre-Raphaelite artist William '
                                   'Holman Hunt. It represents a shepherd '
                                   'neglecting his flock in favour of an '
                                   'attractive country girl to whom he shows a '
                                   "death's-head hawkmoth. The meaning of the "
                                   'image has been much debated.',
                 'title': 'The Hireling Shepherd'},
                {'idx': 8,
                 'is_supporting': False,
                 'paragraph_text': 'Naissa Mosque is a mosque in Qardaha, '
                                   'along the Syrian coast. It was built in '
                                   '1989 by architect Abdul Rahman Naassan, '
                                   'and funded by the mother of former '
                                   'president Hafez al-Assad, Naissa '
                                   'Assad—after whom the mosque was named. The '
                                   'state funeral of Hafez al-Assad was '
                                   'observed at the mosque.',
                 'title': 'Naissa Mosque'},
                {'idx': 9,
                 'is_supporting': False,
                 'paragraph_text': 'The quick German victory over the French '
                                   'stunned neutral observers, many of whom '
                                   'had expected a French victory and most of '
                                   'whom had expected a long war. The '
                                   'strategic advantages possessed by the '
                                   'Germans were not appreciated outside '
                                   'Germany until after hostilities had '
                                   'ceased. Other countries quickly discerned '
                                   'the advantages given to the Germans by '
                                   'their military system, and adopted many of '
                                   'their innovations, particularly the '
                                   'General Staff, universal conscription and '
                                   'highly detailed mobilization systems.',
                 'title': 'Franco-Prussian War'},
                {'idx': 10,
                 'is_supporting': True,
                 'paragraph_text': 'Tveitsund is a village in Nissedal '
                                   'municipality, Norway. The urban area '
                                   'Tveitsund, which consists of Tveitsund and '
                                   'Treungen, has a population of 361.',
                 'title': 'Tveitsund'},
                {'idx': 11,
                 'is_supporting': False,
                 'paragraph_text': 'John Francis Sheehan (1910–1942) was a '
                                   'United States Navy sailor killed in action '
                                   'during World War II for whom a destroyer '
                                   'escort was named during the war.',
                 'title': 'John Francis Sheehan'},
                {'idx': 12,
                 'is_supporting': False,
                 'paragraph_text': 'Holmes Summit is a peak rising to , the '
                                   'highest elevation in the Read Mountains of '
                                   'the Shackleton Range in Antarctica. It was '
                                   'photographed from the air by the U.S. Navy '
                                   'in 1967 and was surveyed by the British '
                                   'Antarctic Survey in the period 1968–71. In '
                                   'association with the names of geologists '
                                   'grouped in this area, it was named by the '
                                   'UK Antarctic Place-Names Committee in 1971 '
                                   'after Professor Arthur Holmes, after whom '
                                   'the Holmes Hills in Palmer Land were also '
                                   'named.',
                 'title': 'Holmes Summit'},
                {'idx': 13,
                 'is_supporting': False,
                 'paragraph_text': ', better known by her pen name is a '
                                   'Japanese manga artist. She is married to '
                                   'fellow manga artist Tatsuneko, from whom '
                                   'he took the name of . She is a graduate of '
                                   'Mita Senior High School, Tokyo. She '
                                   'currently lives in Setagaya, Tokyo with '
                                   'her husband and daughter.',
                 'title': 'Yun Kōga'},
                {'idx': 14,
                 'is_supporting': False,
                 'paragraph_text': 'The Book of Proper Names () is a Belgian '
                                   'novel by Amélie Nothomb. It was first '
                                   'published in 2002. It is a romanticized '
                                   'account of the life of the singer RoBERT, '
                                   'whom Nothomb became acquainted with as an '
                                   'avid admirer of her songs.',
                 'title': 'The Book of Proper Names'},
                {'idx': 15,
                 'is_supporting': False,
                 'paragraph_text': '653 Berenike is a main-belt asteroid '
                                   'discovered on November 27, 1907, by Joel '
                                   'Hastings Metcalf at Taunton, '
                                   'Massachusetts. It is named after Berenice '
                                   'II of Egypt, after whom the constellation '
                                   'Coma Berenices is also named.',
                 'title': '653 Berenike'},
                {'idx': 16,
                 'is_supporting': False,
                 'paragraph_text': 'orbiting the Sun. It was discovered on 21 '
                                   'February 1906 by August Kopff from '
                                   'Heidelberg. Kopff named the asteroid after '
                                   'a female English student with whom he was '
                                   'acquainted.',
                 'title': '596 Scheila'},
                {'idx': 17,
                 'is_supporting': False,
                 'paragraph_text': 'William M. Hobby (1899–1942), was a United '
                                   'States Navy officer killed in action '
                                   'during World War II for whom a U.S. Navy '
                                   'ship was named.',
                 'title': 'William M. Hobby'},
                {'idx': 18,
                 'is_supporting': False,
                 'paragraph_text': 'The Alma Grace McDonough Health and '
                                   'Recreation Center is a 2,200 seat '
                                   'multipurpose arena and recreation facility '
                                   'on the campus of Wheeling Jesuit '
                                   'University in Wheeling, West Virginia. The '
                                   'building was constructed thanks to a gift '
                                   'from Alma Grace McDonough, whom the '
                                   'building is named after.',
                 'title': 'Alma Grace McDonough Health and Recreation Center'},
                {'idx': 19,
                 'is_supporting': False,
                 'paragraph_text': 'Émile Bertrand (1844–1909) was a French '
                                   'mineralogist, in honour of whom '
                                   'bertrandite was named by Alexis Damour. He '
                                   'also gave his name to the "Bertrand lens" '
                                   'or phase telescope.',
                 'title': 'Émile Bertrand'}],
 'question': 'What is the country where Nissedal is located named after?',
 'question_decomposition': [{'answer': 'Norway',
                             'id': 269805,
                             'paragraph_support_idx': 10,
                             'question': 'Nissedal >> country'},
                            {'answer': 'north',
                             'id': 135710,
                             'paragraph_support_idx': 6,
                             'question': 'The #1 was named for whom?'}]}

Line Example

None

Answerable/unanswerable lines

unanswerable_lines = [line for line in lines if not line['answerable']]
num_unanswerable_lines = len(unanswerable_lines)
print(f'Number of unanswerable lines: {num_unanswerable_lines}')
Number of unanswerable lines: 494
lines[-2]
{'id': '2hop__604134_131944',
 'paragraphs': [{'idx': 0,
   'title': 'Commonwealth of the Philippines',
   'paragraph_text': "The Commonwealth of the Philippines (; ) was the administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country. It replaced the Insular Government, a United States territorial government, and was established by the Tydings–McDuffie Act. The Commonwealth was designed as a transitional administration in preparation for the country's full achievement of independence.",
   'is_supporting': False},
  {'idx': 1,
   'title': 'Lake Oesa',
   'paragraph_text': 'Lake Oesa is a body of water located at an elevation of 2,267m (7438 ft) in the mountains of Yoho National Park, near Field, British Columbia, Canada.',
   'is_supporting': False},
  {'idx': 2,
   'title': 'Arafura Swamp',
   'paragraph_text': 'The Arafura Swamp is a large inland freshwater wetland in Arnhem Land, in the Top End of the Northern Territory of Australia. It is a near pristine floodplain with an area of that may expand to by the end of the wet season, making it the largest wooded swamp in the Northern Territory and, possibly, in Australia. It has a strong seasonal variation in depth of water. The area is of great cultural significance to the Yolngu people, in particular the Ramingining community. It was the filming location for the film "Ten Canoes".',
   'is_supporting': False},
  {'idx': 3,
   'title': 'Wapizagonke Lake',
   'paragraph_text': 'The Wapizagonke Lake is one of the bodies of water located the sector "Lac-Wapizagonke", in the city of Shawinigan, in the La Mauricie National Park, in the region of Mauricie, in Quebec, in Canada.',
   'is_supporting': False},
  {'idx': 4,
   'title': 'Khabarovsky District',
   'paragraph_text': 'Khabarovsky District () is an administrative and municipal district (raion), one of the seventeen in Khabarovsk Krai, Russia. It consists of two unconnected segments separated by the territory of Amursky District, which are located in the southwest of the krai. The area of the district is . Its administrative center is the city of Khabarovsk (which is not administratively a part of the district). Population:',
   'is_supporting': False},
  {'idx': 5,
   'title': 'Silver Lake (Harrisville, New Hampshire)',
   'paragraph_text': 'Silver Lake is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Harrisville and Nelson. Water from Silver Lake flows via Minnewawa Brook and The Branch to the Ashuelot River, a tributary of the Connecticut River.',
   'is_supporting': False},
  {'idx': 6,
   'title': 'Hyderabad',
   'paragraph_text': 'The jurisdictions of the city\'s administrative agencies are, in ascending order of size: the Hyderabad Police area, Hyderabad district, the GHMC area ("Hyderabad city") and the area under the Hyderabad Metropolitan Development Authority (HMDA). The HMDA is an apolitical urban planning agency that covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city. It coordinates the development activities of GHMC and suburban municipalities and manages the administration of bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB).',
   'is_supporting': False},
  {'idx': 7,
   'title': 'San Juan, Puerto Rico',
   'paragraph_text': "San Juan is located along the north - eastern coast of Puerto Rico. It lies south of the Atlantic Ocean; north of Caguas and Trujillo Alto; east of and Guaynabo; and west of Carolina. The city occupies an area of 76.93 square miles (199.2 km), of which, 29.11 square miles (75.4 km) (37.83%) is water. San Juan's main water bodies are San Juan Bay and two natural lagoons, the Condado and San José.",
   'is_supporting': False},
  {'idx': 8,
   'title': 'States of Germany',
   'paragraph_text': 'Local associations of a special kind are an amalgamation of one or more Landkreise with one or more Kreisfreie Städte to form a replacement of the aforementioned administrative entities at the district level. They are intended to implement simplification of administration at that level. Typically, a district-free city or town and its urban hinterland are grouped into such an association, or Kommunalverband besonderer Art. Such an organization requires the issuing of special laws by the governing state, since they are not covered by the normal administrative structure of the respective states.',
   'is_supporting': False},
  {'idx': 9,
   'title': 'Norfolk Island',
   'paragraph_text': "Norfolk Island is located in the South Pacific Ocean, east of the Australian mainland. Norfolk Island is the main island of the island group the territory encompasses and is located at 29°02′S 167°57′E\ufeff / \ufeff29.033°S 167.950°E\ufeff / -29.033; 167.950. It has an area of 34.6 square kilometres (13.4 sq mi), with no large-scale internal bodies of water and 32 km (20 mi) of coastline. The island's highest point is Mount Bates (319 metres (1,047 feet) above sea level), located in the northwest quadrant of the island. The majority of the terrain is suitable for farming and other agricultural uses. Phillip Island, the second largest island of the territory, is located at 29°07′S 167°57′E\ufeff / \ufeff29.117°S 167.950°E\ufeff / -29.117; 167.950, seven kilometres (4.3 miles) south of the main island.",
   'is_supporting': False},
  {'idx': 10,
   'title': 'Perm',
   'paragraph_text': 'Perm (;) is a city and the administrative centre of Perm Krai, Russia, located on the banks of the Kama River in the European part of Russia near the Ural Mountains.',
   'is_supporting': True},
  {'idx': 11,
   'title': 'Zvezda Stadium',
   'paragraph_text': 'Star (Zvezda) Stadium (), until 1991 Lenin Komsomol Stadium (), is a multi-use stadium in Perm, Russia. It is currently used mostly for football matches and is the home ground of FC Amkar Perm. The stadium holds 17,000 people and was opened on June 5, 1969.',
   'is_supporting': True},
  {'idx': 12,
   'title': 'Paea',
   'paragraph_text': 'Paea is a commune in the suburbs of Papeete in French Polynesia, an overseas territory of France in the southern Pacific Ocean. Paea is located on the island of Tahiti, in the administrative subdivision of the Windward Islands, themselves part of the Society Islands. At the 2017 census it had a population of 13,021.',
   'is_supporting': False},
  {'idx': 13,
   'title': 'Potamogeton amplifolius',
   'paragraph_text': 'Potamogeton amplifolius, commonly known as largeleaf pondweed or broad-leaved pondweed, is an aquatic plant of North America. It grows in water bodies such as lakes, ponds, and rivers, often in deep water.',
   'is_supporting': False},
  {'idx': 14,
   'title': 'Biysky District',
   'paragraph_text': "Biysky District () is an administrative and municipal district (raion), one of the fifty-nine in Altai Krai, Russia. It is located in the east of the krai and borders with Zonalny, Tselinny, Soltonsky, Krasnogorsky, Sovetsky, and Smolensky Districts, as well as with the territory of the City of Biysk. The area of the district is . Its administrative center is the city of Biysk (which is not administratively a part of the district). District's population:",
   'is_supporting': False},
  {'idx': 15,
   'title': 'Contoocook Lake',
   'paragraph_text': 'Contoocook Lake () is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Jaffrey and Rindge. The lake, along with Pool Pond, forms the headwaters of the Contoocook River, which flows north to the Merrimack River in Penacook, New Hampshire.',
   'is_supporting': False},
  {'idx': 16,
   'title': 'Bogotá',
   'paragraph_text': 'Bogotá (/ ˈboʊɡətɑː /, / ˌbɒɡəˈtɑː /, / ˌboʊ - /; Spanish pronunciation: (boɣoˈta) (listen)), officially Bogotá, Distrito Capital, abbreviated Bogotá, D.C., and formerly known as Santafé de Bogotá between 1991 and 2000, is the capital and largest city of Colombia, administered as the Capital District, although often thought of as part of Cundinamarca. Bogotá is a territorial entity of the first order, with the same administrative status as the departments of Colombia. It is the political, economic, administrative, industrial, artistic, cultural, and sports center of the country.',
   'is_supporting': False},
  {'idx': 17,
   'title': 'Body water',
   'paragraph_text': "Intracellular fluid (2 / 3 of body water) is fluid contained within cells. In a 72 - kg body containing 40 litres of fluid, about 25 litres is intracellular, which amounts to 62.5%. Jackson's texts states 70% of body fluid is intracellular.",
   'is_supporting': False},
  {'idx': 18,
   'title': 'Territorial waters',
   'paragraph_text': 'Territorial waters or a territorial sea, as defined by the 1982 United Nations Convention on the Law of the Sea, is a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state. The territorial sea is regarded as the sovereign territory of the state, although foreign ships (civilian) are allowed innocent passage through it, or transit passage for straits; this sovereignty also extends to the airspace over and seabed below. Adjustment of these boundaries is called, in international law, maritime delimitation.',
   'is_supporting': False},
  {'idx': 19,
   'title': 'Cyprus Popular Bank',
   'paragraph_text': "Cyprus Popular Bank (from 2006 to 2011 known as Marfin Popular Bank) was the second largest banking group in Cyprus behind the Bank of Cyprus until it was 'shuttered' in March 2013 and split into two parts. The 'good' Cypriot part was merged into the Bank of Cyprus (including insured deposits under 100,000 Euro) and the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds. The uninsured depositors were subject to a bail-in and became the new shareholders of the legacy entity. As at May 2017, the legacy entity is one of the largest shareholders of Bank of Cyprus with 4.8% but does not hold a board seat. All the overseas operations, of the now defunct Cyprus Popular Bank, are also held by the legacy entity, until they are sold by the Special Administrator, at first Ms Andri Antoniadou, who ran the legacy entity for two years, from March 2013 until 3 March 2015. She tendered her resignation due to disagreements, with the Governor of the Central Bank of Cyprus and the Central Bank Board members, who amended the lawyers of the legacy entity, without consulting her. Veteran banker Chris Pavlou who is an expert in Treasury and risk management took over as Special Administrator of the legacy entity in April 2015 until December 2016. The legacy entity is pursuing legal action against former major shareholder Marfin Investment Group.",
   'is_supporting': False}],
 'question': 'What is the body of water by the city where Zvezda stadium is located?',
 'question_decomposition': [{'id': 604134,
   'question': 'Zvezda >> located in the administrative territorial entity',
   'answer': 'Perm',
   'paragraph_support_idx': 11},
  {'id': 131944,
   'question': 'Which is the body of water by #1 ?',
   'answer': 'Kama River',
   'paragraph_support_idx': 10}],
 'answer': 'Kama River',
 'answer_aliases': ['Kama'],
 'answerable': True}

Tokenizer

import tiktoken

display(Markdown('**Token models**'), tiktoken.model.MODEL_TO_ENCODING)
tokenizer = tiktoken.encoding_for_model('gpt-3.5-turbo')
display(Markdown('**Tokenizer we are using**'), tokenizer)

Token models

{'gpt-4': 'cl100k_base',
 'gpt-3.5-turbo': 'cl100k_base',
 'gpt-3.5': 'cl100k_base',
 'gpt-35-turbo': 'cl100k_base',
 'davinci-002': 'cl100k_base',
 'babbage-002': 'cl100k_base',
 'text-embedding-ada-002': 'cl100k_base',
 'text-embedding-3-small': 'cl100k_base',
 'text-embedding-3-large': 'cl100k_base',
 'text-davinci-003': 'p50k_base',
 'text-davinci-002': 'p50k_base',
 'text-davinci-001': 'r50k_base',
 'text-curie-001': 'r50k_base',
 'text-babbage-001': 'r50k_base',
 'text-ada-001': 'r50k_base',
 'davinci': 'r50k_base',
 'curie': 'r50k_base',
 'babbage': 'r50k_base',
 'ada': 'r50k_base',
 'code-davinci-002': 'p50k_base',
 'code-davinci-001': 'p50k_base',
 'code-cushman-002': 'p50k_base',
 'code-cushman-001': 'p50k_base',
 'davinci-codex': 'p50k_base',
 'cushman-codex': 'p50k_base',
 'text-davinci-edit-001': 'p50k_edit',
 'code-davinci-edit-001': 'p50k_edit',
 'text-similarity-davinci-001': 'r50k_base',
 'text-similarity-curie-001': 'r50k_base',
 'text-similarity-babbage-001': 'r50k_base',
 'text-similarity-ada-001': 'r50k_base',
 'text-search-davinci-doc-001': 'r50k_base',
 'text-search-curie-doc-001': 'r50k_base',
 'text-search-babbage-doc-001': 'r50k_base',
 'text-search-ada-doc-001': 'r50k_base',
 'code-search-babbage-code-001': 'r50k_base',
 'code-search-ada-code-001': 'r50k_base',
 'gpt2': 'gpt2',
 'gpt-2': 'gpt2'}

Tokenizer we are using

<Encoding 'cl100k_base'>
test_line = lines[1]
test_paragraphs = test_line['paragraphs']

display(Markdown('**Paragraph Example**'), test_paragraphs[0])
test_tokens = tokenizer.encode(test_paragraphs[0]['paragraph_text'])
display(Markdown('**Tokens**'), test_tokens)
display(Markdown('**Number of Tokens**'), len(test_tokens))

Paragraph Example

{'idx': 0,
 'title': 'Milton F. Pavlic',
 'paragraph_text': 'Milton F. Pavlic (1909–1942) was a United States Navy officer killed in action during World War II for whom a U.S. Navy high-speed transport was named.',
 'is_supporting': False}

Tokens

[44,
 16695,
 435,
 13,
 43856,
 416,
 320,
 7028,
 24,
 4235,
 6393,
 17,
 8,
 574,
 264,
 3723,
 4273,
 19574,
 9640,
 7577,
 304,
 1957,
 2391,
 4435,
 5111,
 8105,
 369,
 8884,
 264,
 549,
 815,
 13,
 19574,
 1579,
 30699,
 7710,
 574,
 7086,
 13]

Number of Tokens

39
for paragraph in test_paragraphs:
    paragraph_text = paragraph['paragraph_text']
    paragraph_tokens = tokenizer.encode(paragraph_text)
    print(f'Number of tokens in paragraph: {len(paragraph_tokens)}')
Number of tokens in paragraph: 39
Number of tokens in paragraph: 68
Number of tokens in paragraph: 45
Number of tokens in paragraph: 64
Number of tokens in paragraph: 59
Number of tokens in paragraph: 131
Number of tokens in paragraph: 176
Number of tokens in paragraph: 59
Number of tokens in paragraph: 71
Number of tokens in paragraph: 86
Number of tokens in paragraph: 42
Number of tokens in paragraph: 36
Number of tokens in paragraph: 102
Number of tokens in paragraph: 61
Number of tokens in paragraph: 58
Number of tokens in paragraph: 57
Number of tokens in paragraph: 39
Number of tokens in paragraph: 35
Number of tokens in paragraph: 59
Number of tokens in paragraph: 48
pn.pane.JSON(lines[200])

Prediction format

display(Markdown('**Examples of predictions**'))
with jsonlines.open(musique_dir + 'predictions/musique_ans_v1.0_dev_end2end_model_predictions.jsonl', 'r') as file:
    for i in range(5):
        display(pprint(file.read()))

Examples of predictions

{'id': '2hop__460946_294723',
 'predicted_answer': 'Jennifer Garner',
 'predicted_answerable': True,
 'predicted_support_idxs': [0, 10]}
None
{'id': '2hop__252311_366220',
 'predicted_answer': 'Steven Spielberg',
 'predicted_answerable': True,
 'predicted_support_idxs': [10, 18]}
None
{'id': '2hop__701895_752697',
 'predicted_answer': 'Cypriot part was merged into the Bank of Cyprus '
                     '(including insured deposits under 100,000 Euro) and the '
                     "'bad' part or legacy entity holds all the overseas "
                     'operations as well as uninsured deposits above 100,000 '
                     'Euro, old shares and bonds. The uninsured depositors '
                     'were subject to a bail-in and became the new '
                     'shareholders of the legacy entity. As at May 2017, the '
                     'legacy entity is one of the largest shareholders of Bank '
                     'of Cyprus with 4.8% but does not hold a board seat. All '
                     'the overseas operations, of the now defunct Cyprus '
                     'Popular Bank, are also held by the legacy entity, until '
                     'they are sold by the Special Administrator, at first Ms '
                     'Andri Antoniadou, who ran the legacy entity for two '
                     'years, from March 2013 until 3 March 2015. She tendered '
                     'her resignation due to disagreements, with the Governor '
                     'of the Central Bank of Cyprus and the Central Bank Board '
                     'members, who amended the lawyers of the legacy entity, '
                     'without consulting her. Veteran banker Chris [[PP]] The '
                     'Ciudad Deportiva ("Sports City") is a sports complex in '
                     'Nuevo Laredo, Mexico. It is home to the Tecolotes de '
                     'Nuevo Laredo Mexican Baseball League team and the Toros '
                     'de Nuevo Laredo Mexican professional basketball team '
                     'from the Liga Nacional de Baloncesto Profesional. The '
                     "Ciudad Deportiva's Estadio Nuevo Laredo (baseball park) "
                     'can seat up to 12,000 fans at a baseball game and the '
                     'Nuevo Laredo Multidisciplinary Gymnasium can seat 4,000 '
                     'fans at a basketball game. [[PP]] Juan Carlos Espinoza '
                     'Mercado (born 23 July 1987 in Machala) is an Ecuadorian '
                     'professional football player who has played for '
                     'Ecuadorian club Liga Deportiva Universitaria de Loja and '
                     'in 2010 he joined Peruvian club Juan Aurich. [[PP]] '
                     'Estadio Unión Tarma is a multi-use stadium in Tarma, '
                     'Peru. It is currently used mostly for football matches '
                     'and is the home stadium of Asociación Deportiva Tarma of '
                     'the Copa Perú. The stadium holds 9,000 spectators. '
                     '[[PP]] A Nigerian State is a federated political entity, '
                     'which shares sovereignty with the Federal Government of '
                     'Nigeria, There are 36 States in Nigeria, which are bound '
                     'together by a federal agreement. There is also a '
                     'territory called the Federal Capital Territory (FCT), '
                     'which is not a state, but a territory, under the direct '
                     'control of the Federal Government. The States are '
                     'further divided into a total of 774 Local Government '
                     'Areas. Under the Nigerian Constitution, states have the '
                     'power to ratify constitutional amendments. [[PP]] Ofu '
                     'Airport is a public airport located one mile (2 km) '
                     'southeast of the village of Ofu on the island of Ofu in '
                     'American Samoa, an unincorporated territory of the '
                     'United States. This airport is publicly owned by '
                     'Government of American Samoa. [[PP]] The Díaz '
                     'administration made political decisions and took legal '
                     'measures that allowed the elite throughout Mexico',
 'predicted_answerable': True,
 'predicted_support_idxs': [11, 16, 18]}
None
{'id': '2hop__259228_793698',
 'predicted_answer': 'Fairfield, Connecticut. Its main offices are located at '
                     '30 Rockefeller Plaza at Rockefeller Center in New York '
                     'City, known now as the Comcast Building. It was formerly '
                     'known as the GE Building for the prominent GE logo on '
                     "the roof; NBC's headquarters and main studios are also "
                     'located in the building. Through its RCA subsidiary, it '
                     'has been associated with the center since its '
                     'construction in the 1930s. GE moved its corporate '
                     'headquarters from the GE Building on Lexington Avenue to '
                     'Fairfield in 1974. [[PP]] The lander is named after the '
                     'Philae obelisk, which bears a bilingual inscription and '
                     'was used along with the Rosetta Stone to decipher '
                     'Egyptian hieroglyphs. "Philae" was monitored and '
                     "operated from DLR's Lander Control Center in Cologne",
 'predicted_answerable': True,
 'predicted_support_idxs': [2, 10, 14]}
None
{'id': '2hop__481349_302087',
 'predicted_answer': 'Bombardier Inc. the former CRJ100 and CRJ200 series are '
                     'no longer in production but still in active airline '
                     'service, while the more recent CRJ700, CRJ900 and '
                     'CRJ1000 series are in production and in service. [[PP]] '
                     'Products offered through the Great Value brand are often '
                     'claimed to be as good as national brand offerings, but '
                     'are typically sold at a lower price because of lower '
                     'marketing and advertising expense. As a house or store '
                     'brand, the Great Value line does not consist of goods '
                     'produced by Walmart, but is a labeling system for items '
                     'manufactured and packaged by a number of agricultural '
                     'and food corporations, such as ConAgra, Sara Lee which, '
                     'in addition to releasing products under its own brands '
                     'and exclusively for Walmart, also manufactures and '
                     'brands foods for a variety of other chain stores. Often, '
                     'this labeling system, to the dismay of consumers, does '
                     'not list location of manufacture of the product. Wal - '
                     'Mart contends that all Great Value products are produced '
                     'in the United States. Otherwise, the country of origin '
                     'would be listed. [[PP]] On June 11, 2006, the British '
                     'tabloid The Mail on Sunday reported that iPods are '
                     'mainly manufactured by workers who earn no more than '
                     'US$50 per month and work 15-hour shifts. Apple '
                     'investigated the case with independent auditors and '
                     "found that, while some of the plant's labour practices "
                     "met Apple's Code of Conduct, others did not: employees "
                     'worked over 60 hours a week for 35% of the time, and '
                     'worked more than six consecutive days for 25% of the '
                     'time. [[PP]] The EMD E6 was a , A1A-A1A, passenger train '
                     'locomotive manufactured by Electro-Motive Corporation, '
                     'and its corporate successor, General Motors',
 'predicted_answerable': True,
 'predicted_support_idxs': [5, 10]}
None

Doc loading and splitting

lines[-2]
{'id': '2hop__604134_131944',
 'paragraphs': [{'idx': 0,
   'title': 'Commonwealth of the Philippines',
   'paragraph_text': "The Commonwealth of the Philippines (; ) was the administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country. It replaced the Insular Government, a United States territorial government, and was established by the Tydings–McDuffie Act. The Commonwealth was designed as a transitional administration in preparation for the country's full achievement of independence.",
   'is_supporting': False},
  {'idx': 1,
   'title': 'Lake Oesa',
   'paragraph_text': 'Lake Oesa is a body of water located at an elevation of 2,267m (7438 ft) in the mountains of Yoho National Park, near Field, British Columbia, Canada.',
   'is_supporting': False},
  {'idx': 2,
   'title': 'Arafura Swamp',
   'paragraph_text': 'The Arafura Swamp is a large inland freshwater wetland in Arnhem Land, in the Top End of the Northern Territory of Australia. It is a near pristine floodplain with an area of that may expand to by the end of the wet season, making it the largest wooded swamp in the Northern Territory and, possibly, in Australia. It has a strong seasonal variation in depth of water. The area is of great cultural significance to the Yolngu people, in particular the Ramingining community. It was the filming location for the film "Ten Canoes".',
   'is_supporting': False},
  {'idx': 3,
   'title': 'Wapizagonke Lake',
   'paragraph_text': 'The Wapizagonke Lake is one of the bodies of water located the sector "Lac-Wapizagonke", in the city of Shawinigan, in the La Mauricie National Park, in the region of Mauricie, in Quebec, in Canada.',
   'is_supporting': False},
  {'idx': 4,
   'title': 'Khabarovsky District',
   'paragraph_text': 'Khabarovsky District () is an administrative and municipal district (raion), one of the seventeen in Khabarovsk Krai, Russia. It consists of two unconnected segments separated by the territory of Amursky District, which are located in the southwest of the krai. The area of the district is . Its administrative center is the city of Khabarovsk (which is not administratively a part of the district). Population:',
   'is_supporting': False},
  {'idx': 5,
   'title': 'Silver Lake (Harrisville, New Hampshire)',
   'paragraph_text': 'Silver Lake is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Harrisville and Nelson. Water from Silver Lake flows via Minnewawa Brook and The Branch to the Ashuelot River, a tributary of the Connecticut River.',
   'is_supporting': False},
  {'idx': 6,
   'title': 'Hyderabad',
   'paragraph_text': 'The jurisdictions of the city\'s administrative agencies are, in ascending order of size: the Hyderabad Police area, Hyderabad district, the GHMC area ("Hyderabad city") and the area under the Hyderabad Metropolitan Development Authority (HMDA). The HMDA is an apolitical urban planning agency that covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city. It coordinates the development activities of GHMC and suburban municipalities and manages the administration of bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB).',
   'is_supporting': False},
  {'idx': 7,
   'title': 'San Juan, Puerto Rico',
   'paragraph_text': "San Juan is located along the north - eastern coast of Puerto Rico. It lies south of the Atlantic Ocean; north of Caguas and Trujillo Alto; east of and Guaynabo; and west of Carolina. The city occupies an area of 76.93 square miles (199.2 km), of which, 29.11 square miles (75.4 km) (37.83%) is water. San Juan's main water bodies are San Juan Bay and two natural lagoons, the Condado and San José.",
   'is_supporting': False},
  {'idx': 8,
   'title': 'States of Germany',
   'paragraph_text': 'Local associations of a special kind are an amalgamation of one or more Landkreise with one or more Kreisfreie Städte to form a replacement of the aforementioned administrative entities at the district level. They are intended to implement simplification of administration at that level. Typically, a district-free city or town and its urban hinterland are grouped into such an association, or Kommunalverband besonderer Art. Such an organization requires the issuing of special laws by the governing state, since they are not covered by the normal administrative structure of the respective states.',
   'is_supporting': False},
  {'idx': 9,
   'title': 'Norfolk Island',
   'paragraph_text': "Norfolk Island is located in the South Pacific Ocean, east of the Australian mainland. Norfolk Island is the main island of the island group the territory encompasses and is located at 29°02′S 167°57′E\ufeff / \ufeff29.033°S 167.950°E\ufeff / -29.033; 167.950. It has an area of 34.6 square kilometres (13.4 sq mi), with no large-scale internal bodies of water and 32 km (20 mi) of coastline. The island's highest point is Mount Bates (319 metres (1,047 feet) above sea level), located in the northwest quadrant of the island. The majority of the terrain is suitable for farming and other agricultural uses. Phillip Island, the second largest island of the territory, is located at 29°07′S 167°57′E\ufeff / \ufeff29.117°S 167.950°E\ufeff / -29.117; 167.950, seven kilometres (4.3 miles) south of the main island.",
   'is_supporting': False},
  {'idx': 10,
   'title': 'Perm',
   'paragraph_text': 'Perm (;) is a city and the administrative centre of Perm Krai, Russia, located on the banks of the Kama River in the European part of Russia near the Ural Mountains.',
   'is_supporting': True},
  {'idx': 11,
   'title': 'Zvezda Stadium',
   'paragraph_text': 'Star (Zvezda) Stadium (), until 1991 Lenin Komsomol Stadium (), is a multi-use stadium in Perm, Russia. It is currently used mostly for football matches and is the home ground of FC Amkar Perm. The stadium holds 17,000 people and was opened on June 5, 1969.',
   'is_supporting': True},
  {'idx': 12,
   'title': 'Paea',
   'paragraph_text': 'Paea is a commune in the suburbs of Papeete in French Polynesia, an overseas territory of France in the southern Pacific Ocean. Paea is located on the island of Tahiti, in the administrative subdivision of the Windward Islands, themselves part of the Society Islands. At the 2017 census it had a population of 13,021.',
   'is_supporting': False},
  {'idx': 13,
   'title': 'Potamogeton amplifolius',
   'paragraph_text': 'Potamogeton amplifolius, commonly known as largeleaf pondweed or broad-leaved pondweed, is an aquatic plant of North America. It grows in water bodies such as lakes, ponds, and rivers, often in deep water.',
   'is_supporting': False},
  {'idx': 14,
   'title': 'Biysky District',
   'paragraph_text': "Biysky District () is an administrative and municipal district (raion), one of the fifty-nine in Altai Krai, Russia. It is located in the east of the krai and borders with Zonalny, Tselinny, Soltonsky, Krasnogorsky, Sovetsky, and Smolensky Districts, as well as with the territory of the City of Biysk. The area of the district is . Its administrative center is the city of Biysk (which is not administratively a part of the district). District's population:",
   'is_supporting': False},
  {'idx': 15,
   'title': 'Contoocook Lake',
   'paragraph_text': 'Contoocook Lake () is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Jaffrey and Rindge. The lake, along with Pool Pond, forms the headwaters of the Contoocook River, which flows north to the Merrimack River in Penacook, New Hampshire.',
   'is_supporting': False},
  {'idx': 16,
   'title': 'Bogotá',
   'paragraph_text': 'Bogotá (/ ˈboʊɡətɑː /, / ˌbɒɡəˈtɑː /, / ˌboʊ - /; Spanish pronunciation: (boɣoˈta) (listen)), officially Bogotá, Distrito Capital, abbreviated Bogotá, D.C., and formerly known as Santafé de Bogotá between 1991 and 2000, is the capital and largest city of Colombia, administered as the Capital District, although often thought of as part of Cundinamarca. Bogotá is a territorial entity of the first order, with the same administrative status as the departments of Colombia. It is the political, economic, administrative, industrial, artistic, cultural, and sports center of the country.',
   'is_supporting': False},
  {'idx': 17,
   'title': 'Body water',
   'paragraph_text': "Intracellular fluid (2 / 3 of body water) is fluid contained within cells. In a 72 - kg body containing 40 litres of fluid, about 25 litres is intracellular, which amounts to 62.5%. Jackson's texts states 70% of body fluid is intracellular.",
   'is_supporting': False},
  {'idx': 18,
   'title': 'Territorial waters',
   'paragraph_text': 'Territorial waters or a territorial sea, as defined by the 1982 United Nations Convention on the Law of the Sea, is a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state. The territorial sea is regarded as the sovereign territory of the state, although foreign ships (civilian) are allowed innocent passage through it, or transit passage for straits; this sovereignty also extends to the airspace over and seabed below. Adjustment of these boundaries is called, in international law, maritime delimitation.',
   'is_supporting': False},
  {'idx': 19,
   'title': 'Cyprus Popular Bank',
   'paragraph_text': "Cyprus Popular Bank (from 2006 to 2011 known as Marfin Popular Bank) was the second largest banking group in Cyprus behind the Bank of Cyprus until it was 'shuttered' in March 2013 and split into two parts. The 'good' Cypriot part was merged into the Bank of Cyprus (including insured deposits under 100,000 Euro) and the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds. The uninsured depositors were subject to a bail-in and became the new shareholders of the legacy entity. As at May 2017, the legacy entity is one of the largest shareholders of Bank of Cyprus with 4.8% but does not hold a board seat. All the overseas operations, of the now defunct Cyprus Popular Bank, are also held by the legacy entity, until they are sold by the Special Administrator, at first Ms Andri Antoniadou, who ran the legacy entity for two years, from March 2013 until 3 March 2015. She tendered her resignation due to disagreements, with the Governor of the Central Bank of Cyprus and the Central Bank Board members, who amended the lawyers of the legacy entity, without consulting her. Veteran banker Chris Pavlou who is an expert in Treasury and risk management took over as Special Administrator of the legacy entity in April 2015 until December 2016. The legacy entity is pursuing legal action against former major shareholder Marfin Investment Group.",
   'is_supporting': False}],
 'question': 'What is the body of water by the city where Zvezda stadium is located?',
 'question_decomposition': [{'id': 604134,
   'question': 'Zvezda >> located in the administrative territorial entity',
   'answer': 'Perm',
   'paragraph_support_idx': 11},
  {'id': 131944,
   'question': 'Which is the body of water by #1 ?',
   'answer': 'Kama River',
   'paragraph_support_idx': 10}],
 'answer': 'Kama River',
 'answer_aliases': ['Kama'],
 'answerable': True}
paragraphs = lines[-2]['paragraphs']
paragraphs

[{'idx': 0,
  'title': 'Commonwealth of the Philippines',
  'paragraph_text': "The Commonwealth of the Philippines (; ) was the administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country. It replaced the Insular Government, a United States territorial government, and was established by the Tydings–McDuffie Act. The Commonwealth was designed as a transitional administration in preparation for the country's full achievement of independence.",
  'is_supporting': False},
 {'idx': 1,
  'title': 'Lake Oesa',
  'paragraph_text': 'Lake Oesa is a body of water located at an elevation of 2,267m (7438 ft) in the mountains of Yoho National Park, near Field, British Columbia, Canada.',
  'is_supporting': False},
 {'idx': 2,
  'title': 'Arafura Swamp',
  'paragraph_text': 'The Arafura Swamp is a large inland freshwater wetland in Arnhem Land, in the Top End of the Northern Territory of Australia. It is a near pristine floodplain with an area of that may expand to by the end of the wet season, making it the largest wooded swamp in the Northern Territory and, possibly, in Australia. It has a strong seasonal variation in depth of water. The area is of great cultural significance to the Yolngu people, in particular the Ramingining community. It was the filming location for the film "Ten Canoes".',
  'is_supporting': False},
 {'idx': 3,
  'title': 'Wapizagonke Lake',
  'paragraph_text': 'The Wapizagonke Lake is one of the bodies of water located the sector "Lac-Wapizagonke", in the city of Shawinigan, in the La Mauricie National Park, in the region of Mauricie, in Quebec, in Canada.',
  'is_supporting': False},
 {'idx': 4,
  'title': 'Khabarovsky District',
  'paragraph_text': 'Khabarovsky District () is an administrative and municipal district (raion), one of the seventeen in Khabarovsk Krai, Russia. It consists of two unconnected segments separated by the territory of Amursky District, which are located in the southwest of the krai. The area of the district is . Its administrative center is the city of Khabarovsk (which is not administratively a part of the district). Population:',
  'is_supporting': False},
 {'idx': 5,
  'title': 'Silver Lake (Harrisville, New Hampshire)',
  'paragraph_text': 'Silver Lake is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Harrisville and Nelson. Water from Silver Lake flows via Minnewawa Brook and The Branch to the Ashuelot River, a tributary of the Connecticut River.',
  'is_supporting': False},
 {'idx': 6,
  'title': 'Hyderabad',
  'paragraph_text': 'The jurisdictions of the city\'s administrative agencies are, in ascending order of size: the Hyderabad Police area, Hyderabad district, the GHMC area ("Hyderabad city") and the area under the Hyderabad Metropolitan Development Authority (HMDA). The HMDA is an apolitical urban planning agency that covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city. It coordinates the development activities of GHMC and suburban municipalities and manages the administration of bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB).',
  'is_supporting': False},
 {'idx': 7,
  'title': 'San Juan, Puerto Rico',
  'paragraph_text': "San Juan is located along the north - eastern coast of Puerto Rico. It lies south of the Atlantic Ocean; north of Caguas and Trujillo Alto; east of and Guaynabo; and west of Carolina. The city occupies an area of 76.93 square miles (199.2 km), of which, 29.11 square miles (75.4 km) (37.83%) is water. San Juan's main water bodies are San Juan Bay and two natural lagoons, the Condado and San José.",
  'is_supporting': False},
 {'idx': 8,
  'title': 'States of Germany',
  'paragraph_text': 'Local associations of a special kind are an amalgamation of one or more Landkreise with one or more Kreisfreie Städte to form a replacement of the aforementioned administrative entities at the district level. They are intended to implement simplification of administration at that level. Typically, a district-free city or town and its urban hinterland are grouped into such an association, or Kommunalverband besonderer Art. Such an organization requires the issuing of special laws by the governing state, since they are not covered by the normal administrative structure of the respective states.',
  'is_supporting': False},
 {'idx': 9,
  'title': 'Norfolk Island',
  'paragraph_text': "Norfolk Island is located in the South Pacific Ocean, east of the Australian mainland. Norfolk Island is the main island of the island group the territory encompasses and is located at 29°02′S 167°57′E\ufeff / \ufeff29.033°S 167.950°E\ufeff / -29.033; 167.950. It has an area of 34.6 square kilometres (13.4 sq mi), with no large-scale internal bodies of water and 32 km (20 mi) of coastline. The island's highest point is Mount Bates (319 metres (1,047 feet) above sea level), located in the northwest quadrant of the island. The majority of the terrain is suitable for farming and other agricultural uses. Phillip Island, the second largest island of the territory, is located at 29°07′S 167°57′E\ufeff / \ufeff29.117°S 167.950°E\ufeff / -29.117; 167.950, seven kilometres (4.3 miles) south of the main island.",
  'is_supporting': False},
 {'idx': 10,
  'title': 'Perm',
  'paragraph_text': 'Perm (;) is a city and the administrative centre of Perm Krai, Russia, located on the banks of the Kama River in the European part of Russia near the Ural Mountains.',
  'is_supporting': True},
 {'idx': 11,
  'title': 'Zvezda Stadium',
  'paragraph_text': 'Star (Zvezda) Stadium (), until 1991 Lenin Komsomol Stadium (), is a multi-use stadium in Perm, Russia. It is currently used mostly for football matches and is the home ground of FC Amkar Perm. The stadium holds 17,000 people and was opened on June 5, 1969.',
  'is_supporting': True},
 {'idx': 12,
  'title': 'Paea',
  'paragraph_text': 'Paea is a commune in the suburbs of Papeete in French Polynesia, an overseas territory of France in the southern Pacific Ocean. Paea is located on the island of Tahiti, in the administrative subdivision of the Windward Islands, themselves part of the Society Islands. At the 2017 census it had a population of 13,021.',
  'is_supporting': False},
 {'idx': 13,
  'title': 'Potamogeton amplifolius',
  'paragraph_text': 'Potamogeton amplifolius, commonly known as largeleaf pondweed or broad-leaved pondweed, is an aquatic plant of North America. It grows in water bodies such as lakes, ponds, and rivers, often in deep water.',
  'is_supporting': False},
 {'idx': 14,
  'title': 'Biysky District',
  'paragraph_text': "Biysky District () is an administrative and municipal district (raion), one of the fifty-nine in Altai Krai, Russia. It is located in the east of the krai and borders with Zonalny, Tselinny, Soltonsky, Krasnogorsky, Sovetsky, and Smolensky Districts, as well as with the territory of the City of Biysk. The area of the district is . Its administrative center is the city of Biysk (which is not administratively a part of the district). District's population:",
  'is_supporting': False},
 {'idx': 15,
  'title': 'Contoocook Lake',
  'paragraph_text': 'Contoocook Lake () is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Jaffrey and Rindge. The lake, along with Pool Pond, forms the headwaters of the Contoocook River, which flows north to the Merrimack River in Penacook, New Hampshire.',
  'is_supporting': False},
 {'idx': 16,
  'title': 'Bogotá',
  'paragraph_text': 'Bogotá (/ ˈboʊɡətɑː /, / ˌbɒɡəˈtɑː /, / ˌboʊ - /; Spanish pronunciation: (boɣoˈta) (listen)), officially Bogotá, Distrito Capital, abbreviated Bogotá, D.C., and formerly known as Santafé de Bogotá between 1991 and 2000, is the capital and largest city of Colombia, administered as the Capital District, although often thought of as part of Cundinamarca. Bogotá is a territorial entity of the first order, with the same administrative status as the departments of Colombia. It is the political, economic, administrative, industrial, artistic, cultural, and sports center of the country.',
  'is_supporting': False},
 {'idx': 17,
  'title': 'Body water',
  'paragraph_text': "Intracellular fluid (2 / 3 of body water) is fluid contained within cells. In a 72 - kg body containing 40 litres of fluid, about 25 litres is intracellular, which amounts to 62.5%. Jackson's texts states 70% of body fluid is intracellular.",
  'is_supporting': False},
 {'idx': 18,
  'title': 'Territorial waters',
  'paragraph_text': 'Territorial waters or a territorial sea, as defined by the 1982 United Nations Convention on the Law of the Sea, is a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state. The territorial sea is regarded as the sovereign territory of the state, although foreign ships (civilian) are allowed innocent passage through it, or transit passage for straits; this sovereignty also extends to the airspace over and seabed below. Adjustment of these boundaries is called, in international law, maritime delimitation.',
  'is_supporting': False},
 {'idx': 19,
  'title': 'Cyprus Popular Bank',
  'paragraph_text': "Cyprus Popular Bank (from 2006 to 2011 known as Marfin Popular Bank) was the second largest banking group in Cyprus behind the Bank of Cyprus until it was 'shuttered' in March 2013 and split into two parts. The 'good' Cypriot part was merged into the Bank of Cyprus (including insured deposits under 100,000 Euro) and the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds. The uninsured depositors were subject to a bail-in and became the new shareholders of the legacy entity. As at May 2017, the legacy entity is one of the largest shareholders of Bank of Cyprus with 4.8% but does not hold a board seat. All the overseas operations, of the now defunct Cyprus Popular Bank, are also held by the legacy entity, until they are sold by the Special Administrator, at first Ms Andri Antoniadou, who ran the legacy entity for two years, from March 2013 until 3 March 2015. She tendered her resignation due to disagreements, with the Governor of the Central Bank of Cyprus and the Central Bank Board members, who amended the lawyers of the legacy entity, without consulting her. Veteran banker Chris Pavlou who is an expert in Treasury and risk management took over as Special Administrator of the legacy entity in April 2015 until December 2016. The legacy entity is pursuing legal action against former major shareholder Marfin Investment Group.",
  'is_supporting': False}]
import tiktoken

def token_len(text: str, model: str = "gpt-4") -> int:
    encoder = tiktoken.encoding_for_model(model)
    return len(encoder.encode(text))

pprint(paragraphs[0]['paragraph_text'])
print('Token length: ', token_len(paragraphs[0]['paragraph_text']))
('The Commonwealth of the Philippines (; ) was the administrative body that '
 'governed the Philippines from 1935 to 1946, aside from a period of exile in '
 'the Second World War from 1942 to 1945 when Japan occupied the country. It '
 'replaced the Insular Government, a United States territorial government, and '
 'was established by the Tydings–McDuffie Act. The Commonwealth was designed '
 "as a transitional administration in preparation for the country's full "
 'achievement of independence.')
Token length:  95
from langchain_text_splitters import RecursiveCharacterTextSplitter

text_splitter = RecursiveCharacterTextSplitter(chunk_size=20, chunk_overlap=5, length_function=token_len)
splits0 = text_splitter.split_text(paragraphs[0]['paragraph_text'])
splits0_tups = [('Token length: ' + str(token_len(s)), s) for s in splits0]
splits1 = text_splitter.split_text(paragraphs[1]['paragraph_text'])
splits1_tups = [('Token length: ' + str(token_len(s)), s) for s in splits1]

display(Markdown('**Paragraph 1**'))
pprint(splits0_tups)
display(Markdown('**Paragraph 2**'))
display(splits1_tups)

Paragraph 1

[('Token length: 20',
  'The Commonwealth of the Philippines (; ) was the administrative body that '
  'governed the Philippines from 1935 to'),
 ('Token length: 20',
  'from 1935 to 1946, aside from a period of exile in the Second World War'),
 ('Token length: 20',
  'in the Second World War from 1942 to 1945 when Japan occupied the country. '
  'It'),
 ('Token length: 20',
  'occupied the country. It replaced the Insular Government, a United States '
  'territorial government, and was established'),
 ('Token length: 20',
  'government, and was established by the Tydings–McDuffie Act. The '
  'Commonwealth was designed'),
 ('Token length: 19',
  'The Commonwealth was designed as a transitional administration in '
  "preparation for the country's full achievement of independence.")]

Paragraph 2

[('Token length: 18',
  'Lake Oesa is a body of water located at an elevation of 2,267m'),
 ('Token length: 19',
  '2,267m (7438 ft) in the mountains of Yoho National Park, near'),
 ('Token length: 11', 'National Park, near Field, British Columbia, Canada.')]

Prompting

from dotenv import load_dotenv
load_dotenv()
True
from langchain_anthropic import ChatAnthropic
chat_model = ChatAnthropic(model_name='claude-3-haiku-20240307')
from dotenv import load_dotenv
from langchain_anthropic import ChatAnthropic

load_dotenv()

chat_model = ChatAnthropic(model_name='claude-3-haiku-20240307')
joke = chat_model.invoke("Tell me a mid joke about airplanes and horses")
display(joke)
joke.pretty_print()
AIMessage(content="Here's a mildly silly joke about airplanes and horses:\n\nWhy did the horse refuse to get on the airplane? Because it already had a stable flight plan!", response_metadata={'id': 'msg_01K9jCUru7b4TiBBC6eaWRxf', 'model': 'claude-3-haiku-20240307', 'stop_reason': 'end_turn', 'stop_sequence': None, 'usage': {'input_tokens': 18, 'output_tokens': 39}}, id='run-2cb963b0-3180-432e-95a7-368169c5bef0-0')
================================== Ai Message ==================================

Here's a mildly silly joke about airplanes and horses:

Why did the horse refuse to get on the airplane? Because it already had a stable flight plan!
from pydantic import BaseModel, Field
from typing import Dict, List, Union, Tuple, Optional
import json

class Node(BaseModel):
    semantic_id: str = Field(..., description="The unique identifier of the node that is \
                             a reference to create edges between different nodes.")
    category: str = Field(..., description="The category of the node")
    attributes: Optional[Dict[str, Union[str, int, bool]]] = Field(None, description="Additional properties of the node")

class Edge(BaseModel):
    from_node: str = Field(..., description="The id of the node from which the edge originates. Only previously generated semantic_ids belong here, nothing else.")
    to_node: str = Field(..., description="The id of the node to which the edge connects. Only previously generated semantic_ids belong here, nothing else.")
    category: str = Field(..., description="The type of the relationship")
    attributes: Optional[Dict[str, Union[str, int, bool]]] = Field(None, description="Additional properties of the edge")

class Graph(BaseModel):
    nodes: List[Node] = Field(...,description="A list of nodes in the graph")
    edges: List[Edge] = Field(...,description="A list of edges in the graph")

Graph.model_json_schema()
{'$defs': {'Edge': {'properties': {'from_node': {'description': 'The id of the node from which the edge originates. Only previously generated semantic_ids belong here, nothing else.',
     'title': 'From Node',
     'type': 'string'},
    'to_node': {'description': 'The id of the node to which the edge connects. Only previously generated semantic_ids belong here, nothing else.',
     'title': 'To Node',
     'type': 'string'},
    'category': {'description': 'The type of the relationship',
     'title': 'Category',
     'type': 'string'},
    'attributes': {'anyOf': [{'additionalProperties': {'anyOf': [{'type': 'string'},
         {'type': 'integer'},
         {'type': 'boolean'}]},
       'type': 'object'},
      {'type': 'null'}],
     'default': None,
     'description': 'Additional properties of the edge',
     'title': 'Attributes'}},
   'required': ['from_node', 'to_node', 'category'],
   'title': 'Edge',
   'type': 'object'},
  'Node': {'properties': {'semantic_id': {'description': 'The unique identifier of the node that is                              a reference to create edges between different nodes.',
     'title': 'Semantic Id',
     'type': 'string'},
    'category': {'description': 'The category of the node',
     'title': 'Category',
     'type': 'string'},
    'attributes': {'anyOf': [{'additionalProperties': {'anyOf': [{'type': 'string'},
         {'type': 'integer'},
         {'type': 'boolean'}]},
       'type': 'object'},
      {'type': 'null'}],
     'default': None,
     'description': 'Additional properties of the node',
     'title': 'Attributes'}},
   'required': ['semantic_id', 'category'],
   'title': 'Node',
   'type': 'object'}},
 'properties': {'nodes': {'description': 'A list of nodes in the graph',
   'items': {'$ref': '#/$defs/Node'},
   'title': 'Nodes',
   'type': 'array'},
  'edges': {'description': 'A list of edges in the graph',
   'items': {'$ref': '#/$defs/Edge'},
   'title': 'Edges',
   'type': 'array'}},
 'required': ['nodes', 'edges'],
 'title': 'Graph',
 'type': 'object'}
json_rules = \
"""We need to create a JSON object that contains a list of nodes and edges that connect the nodes.
Both, nodes and edges, have optional attributes.
Your goal is to extract as much pertinent information from the passage as possible and create nodes and edges with the extracted information.
If history is provided, it will be in the JSON schema you are given. You may create new connections between the nodes and edges in the history and the new nodes you are producing.
If you wish to change/update any of the node attributes in the provided history based on newly gathered information, simply reuse the semantic_ids of the nodes you wish to change.
If you wish to modify/update the edge attributes in the history, reuse the semantic_ids of the 'from' and 'to' nodes of any edge you wish to change.
Use the following schema and make sure to read the descriptions:
""" 

json_prompt_instructions = \
    json_rules + \
    json.dumps(Graph.model_json_schema()) + \
    "\n-----\n"

pprint(json_prompt_instructions)
('We need to create a JSON object that contains a list of nodes and edges that '
 'connect the nodes.\n'
 'Both, nodes and edges, have optional attributes.\n'
 'Your goal is to extract as much pertinent information from the passage as '
 'possible and create nodes and edges with the extracted information.\n'
 'If history is provided, it will be in the JSON schema you are given. You may '
 'create new connections between the nodes and edges in the history and the '
 'new nodes you are producing.\n'
 'If you wish to change/update any of the node attributes in the provided '
 'history based on newly gathered information, simply reuse the semantic_ids '
 'of the nodes you wish to change.\n'
 'If you wish to modify/update the edge attributes in the history, reuse the '
 "semantic_ids of the 'from' and 'to' nodes of any edge you wish to change.\n"
 'Use the following schema and make sure to read the descriptions:\n'
 '{"$defs": {"Edge": {"properties": {"from_node": {"description": "The id of '
 'the node from which the edge originates. Only previously generated '
 'semantic_ids belong here, nothing else.", "title": "From Node", "type": '
 '"string"}, "to_node": {"description": "The id of the node to which the edge '
 'connects. Only previously generated semantic_ids belong here, nothing '
 'else.", "title": "To Node", "type": "string"}, "category": {"description": '
 '"The type of the relationship", "title": "Category", "type": "string"}, '
 '"attributes": {"anyOf": [{"additionalProperties": {"anyOf": [{"type": '
 '"string"}, {"type": "integer"}, {"type": "boolean"}]}, "type": "object"}, '
 '{"type": "null"}], "default": null, "description": "Additional properties of '
 'the edge", "title": "Attributes"}}, "required": ["from_node", "to_node", '
 '"category"], "title": "Edge", "type": "object"}, "Node": {"properties": '
 '{"semantic_id": {"description": "The unique identifier of the node that '
 'is                              a reference to create edges between '
 'different nodes.", "title": "Semantic Id", "type": "string"}, "category": '
 '{"description": "The category of the node", "title": "Category", "type": '
 '"string"}, "attributes": {"anyOf": [{"additionalProperties": {"anyOf": '
 '[{"type": "string"}, {"type": "integer"}, {"type": "boolean"}]}, "type": '
 '"object"}, {"type": "null"}], "default": null, "description": "Additional '
 'properties of the node", "title": "Attributes"}}, "required": '
 '["semantic_id", "category"], "title": "Node", "type": "object"}}, '
 '"properties": {"nodes": {"description": "A list of nodes in the graph", '
 '"items": {"$ref": "#/$defs/Node"}, "title": "Nodes", "type": "array"}, '
 '"edges": {"description": "A list of edges in the graph", "items": {"$ref": '
 '"#/$defs/Edge"}, "title": "Edges", "type": "array"}}, "required": ["nodes", '
 '"edges"], "title": "Graph", "type": "object"}\n'
 '-----\n')
graph_creator_content = \
"""You are a brilliant and efficient creator of JSON objects that capture the essence of passages and who follows instructions unbelievably well.
You will be first given instructions and a json schema, then you will be provided a passage to extract the information from.
You will only respond with valid JSON, nothing else.
Your instructions are:
{instructions}
History:
{history}
"""
pass_passage_content = "Below is the passage to extract the values from.\n*****\nPassage:\n{passage}"
from langchain_core.prompts import (
    HumanMessagePromptTemplate,
    SystemMessagePromptTemplate,
)

graph_analyst_template = SystemMessagePromptTemplate.from_template(template=graph_creator_content,
                                                                   input_variables=['history', 'instructions'])
pass_passage_template = HumanMessagePromptTemplate.from_template(pass_passage_content, input_variables=['passage'])

gen_template = graph_analyst_template + pass_passage_template

gen_template.invoke({'passage': paragraphs[0]['paragraph_text'],
                     'history': '',
                     'instructions': json_prompt_instructions})
ChatPromptValue(messages=[SystemMessage(content='You are a brilliant and efficient creator of JSON objects that capture the essence of passages and who follows instructions unbelievably well.\nYou will be first given instructions and a json schema, then you will be provided a passage to extract the information from.\nYou will only respond with valid JSON, nothing else.\nYour instructions are:\nWe need to create a JSON object that contains a list of nodes and edges that connect the nodes.\nBoth, nodes and edges, have optional attributes.\nYour goal is to extract as much pertinent information from the passage as possible and create nodes and edges with the extracted information.\nIf history is provided, it will be in the JSON schema you are given. You may create new connections between the nodes and edges in the history and the new nodes you are producing.\nIf you wish to change/update any of the node attributes in the provided history based on newly gathered information, simply reuse the semantic_ids of the nodes you wish to change.\nIf you wish to modify/update the edge attributes in the history, reuse the semantic_ids of the \'from\' and \'to\' nodes of any edge you wish to change.\nUse the following schema and make sure to read the descriptions:\n{"$defs": {"Edge": {"properties": {"from_node": {"description": "The id of the node from which the edge originates. Only previously generated semantic_ids belong here, nothing else.", "title": "From Node", "type": "string"}, "to_node": {"description": "The id of the node to which the edge connects. Only previously generated semantic_ids belong here, nothing else.", "title": "To Node", "type": "string"}, "category": {"description": "The type of the relationship", "title": "Category", "type": "string"}, "attributes": {"anyOf": [{"additionalProperties": {"anyOf": [{"type": "string"}, {"type": "integer"}, {"type": "boolean"}]}, "type": "object"}, {"type": "null"}], "default": null, "description": "Additional properties of the edge", "title": "Attributes"}}, "required": ["from_node", "to_node", "category"], "title": "Edge", "type": "object"}, "Node": {"properties": {"semantic_id": {"description": "The unique identifier of the node that is                              a reference to create edges between different nodes.", "title": "Semantic Id", "type": "string"}, "category": {"description": "The category of the node", "title": "Category", "type": "string"}, "attributes": {"anyOf": [{"additionalProperties": {"anyOf": [{"type": "string"}, {"type": "integer"}, {"type": "boolean"}]}, "type": "object"}, {"type": "null"}], "default": null, "description": "Additional properties of the node", "title": "Attributes"}}, "required": ["semantic_id", "category"], "title": "Node", "type": "object"}}, "properties": {"nodes": {"description": "A list of nodes in the graph", "items": {"$ref": "#/$defs/Node"}, "title": "Nodes", "type": "array"}, "edges": {"description": "A list of edges in the graph", "items": {"$ref": "#/$defs/Edge"}, "title": "Edges", "type": "array"}}, "required": ["nodes", "edges"], "title": "Graph", "type": "object"}\n-----\n\nHistory:\n\n'), HumanMessage(content="Below is the passage to extract the values from.\n*****\nPassage:\nThe Commonwealth of the Philippines (; ) was the administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country. It replaced the Insular Government, a United States territorial government, and was established by the Tydings–McDuffie Act. The Commonwealth was designed as a transitional administration in preparation for the country's full achievement of independence.")])

Testing without history

load_dotenv()

chat_model = ChatAnthropic(model_name='claude-3-haiku-20240307')
# json_output_parser = JsonOutputParser()

llm_pipe = gen_template | chat_model
response = llm_pipe.invoke({'passage': paragraphs[0]['paragraph_text'],
                 'history': '',
                 'instructions': json_prompt_instructions})
pprint(response.content)
('{\n'
 '  "nodes": [\n'
 '    {\n'
 '      "semantic_id": "commonwealth_of_the_philippines",\n'
 '      "category": "administrative_body",\n'
 '      "attributes": {\n'
 '        "name": "Commonwealth of the Philippines",\n'
 '        "government_period": "1935 to 1946",\n'
 '        "purpose": "transitional administration in preparation for '
 'independence"\n'
 '      }\n'
 '    },\n'
 '    {\n'
 '      "semantic_id": "insular_government",\n'
 '      "category": "territorial_government",\n'
 '      "attributes": {\n'
 '        "name": "Insular Government",\n'
 '        "governed_by": "United States"\n'
 '      }\n'
 '    },\n'
 '    {\n'
 '      "semantic_id": "japan",\n'
 '      "category": "country",\n'
 '      "attributes": {\n'
 '        "name": "Japan",\n'
 '        "occupied_the_philippines": "1942 to 1945"\n'
 '      }\n'
 '    },\n'
 '    {\n'
 '      "semantic_id": "tydings_mcduffie_act",\n'
 '      "category": "legislation",\n'
 '      "attributes": {\n'
 '        "name": "Tydings–McDuffie Act",\n'
 '        "established": "Commonwealth of the Philippines"\n'
 '      }\n'
 '    }\n'
 '  ],\n'
 '  "edges": [\n'
 '    {\n'
 '      "from_node": "insular_government",\n'
 '      "to_node": "commonwealth_of_the_philippines",\n'
 '      "category": "replaced"\n'
 '    },\n'
 '    {\n'
 '      "from_node": "commonwealth_of_the_philippines",\n'
 '      "to_node": "japan",\n'
 '      "category": "occupied_by",\n'
 '      "attributes": {\n'
 '        "period": "1942 to 1945"\n'
 '      }\n'
 '    },\n'
 '    {\n'
 '      "from_node": "tydings_mcduffie_act",\n'
 '      "to_node": "commonwealth_of_the_philippines",\n'
 '      "category": "established"\n'
 '    }\n'
 '  ]\n'
 '}')
from langchain_core.output_parsers import JsonOutputParser

json_output_parser = JsonOutputParser()
json_output_parser.invoke(response)
{'nodes': [{'semantic_id': 'commonwealth_of_the_philippines',
   'category': 'administrative_body',
   'attributes': {'name': 'Commonwealth of the Philippines',
    'government_period': '1935 to 1946',
    'purpose': 'transitional administration in preparation for independence'}},
  {'semantic_id': 'insular_government',
   'category': 'territorial_government',
   'attributes': {'name': 'Insular Government',
    'governed_by': 'United States'}},
  {'semantic_id': 'japan',
   'category': 'country',
   'attributes': {'name': 'Japan',
    'occupied_the_philippines': '1942 to 1945'}},
  {'semantic_id': 'tydings_mcduffie_act',
   'category': 'legislation',
   'attributes': {'name': 'Tydings–McDuffie Act',
    'established': 'Commonwealth of the Philippines'}}],
 'edges': [{'from_node': 'insular_government',
   'to_node': 'commonwealth_of_the_philippines',
   'category': 'replaced'},
  {'from_node': 'commonwealth_of_the_philippines',
   'to_node': 'japan',
   'category': 'occupied_by',
   'attributes': {'period': '1942 to 1945'}},
  {'from_node': 'tydings_mcduffie_act',
   'to_node': 'commonwealth_of_the_philippines',
   'category': 'established'}]}
nodes_edges_json = json_output_parser.invoke(response)
llm_pipe = gen_template | chat_model | json_output_parser

Viz

nodes_edges_json
{'nodes': [{'semantic_id': 'commonwealth_of_the_philippines',
   'category': 'political_entity',
   'attributes': {'name': 'Commonwealth of the Philippines',
    'period': '1935 to 1946',
    'description': 'The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.'}},
  {'semantic_id': 'insular_government',
   'category': 'political_entity',
   'attributes': {'name': 'Insular Government',
    'description': 'The United States territorial government that was replaced by the Commonwealth of the Philippines.'}},
  {'semantic_id': 'tydings_mcduffie_act',
   'category': 'legislation',
   'attributes': {'name': 'Tydings–McDuffie Act',
    'description': 'The act that established the Commonwealth of the Philippines.'}},
  {'semantic_id': 'japan',
   'category': 'country',
   'attributes': {'name': 'Japan',
    'description': 'Occupied the Philippines during the Second World War from 1942 to 1945.'}}],
 'edges': [{'from_node': 'insular_government',
   'to_node': 'commonwealth_of_the_philippines',
   'category': 'replacement'},
  {'from_node': 'tydings_mcduffie_act',
   'to_node': 'commonwealth_of_the_philippines',
   'category': 'establishment'},
  {'from_node': 'japan',
   'to_node': 'commonwealth_of_the_philippines',
   'category': 'occupation',
   'attributes': {'period': '1942 to 1945'}}]}
import rustworkx as rx
from rustworkx.visualization import mpl_draw

# Create a directed graph
digraph = rx.PyDiGraph()

# Add nodes to the graph
node_indices = {}
for node in nodes_edges_json["nodes"]:
    idx = digraph.add_node(node)
    node_indices[node["semantic_id"]] = idx

# Add edges to the graph
for edge in nodes_edges_json["edges"]:
    from_idx = node_indices[edge["from_node"]]
    to_idx = node_indices[edge["to_node"]]
    digraph.add_edge(from_idx, to_idx, edge)

# Visualize the graph with labels based on node and edge categories
mpl_draw(digraph, with_labels=True,
         labels=lambda node: f'{node["category"]}\n{node.get("attributes", "")}',
         edge_labels=lambda edge: f'{edge["category"]}\n{edge.get("attributes", "")}',
         font_size=9)

History management

import logging
import logging.config
import param
from collections import OrderedDict
from copy import deepcopy
from uuid import uuid4
import json
from typing import Union, List, Dict

with open('../logs/logging_config.json', 'r') as f:
    config = json.load(f)
logging.config.dictConfig(config)
logger = logging.getLogger('root')

class GraphHistory(param.Parameterized):
    nodes_alias = param.String('nodes')
    edges_alias = param.String('edges')
    history = param.Dict(default=OrderedDict())
    latest_history = param.Dict(default=OrderedDict(),
        doc="Generated when get_history_str is run; contains {uuid: {nodes|edges: {object}} mapping. \
            Meant to be used for managing the current history window and modifications")
    latest_history_mapping = param.Dict(default=OrderedDict(),
        doc="Maps semantic_id to uuid for the latest history items as well as the node pairs to an edge uuid")
    token_max = param.Integer(default=400)
    
    def add_history(self, new_items: Union[List, Dict], return_with_uuid: bool = True):
        """
        Nodes are added directly to the history with their UUIDs. 
        Edges are added only after their 'from_node' and 'to_node' fields are set to the corresponding
        node UUIDs. This ensures that edges reference the correct nodes in the graph.
        """
        new_items = deepcopy(new_items)
        if isinstance(new_items, dict):
            new_items = [new_items]  # Ensure new_items is always a list for consistency
        history_list = []
        for item in new_items:
            item_type = self.nodes_alias if self.nodes_alias in item else self.edges_alias
            # Makes it easier to work with the inner dict of {nodes|edges: {*inner_dict*}}
            item_dict = item[item_type]
            if item_type == self.nodes_alias:  # Handling nodes
                # If node exists in latest_history, we want to modify it and move it to the bottom in history
                # No need to add to latest_history, since it won't be used since item exists in it already, and will be reset on next get_history_str call
                if item_dict['semantic_id'] in self.latest_history_mapping:
                    uuid_gen = self.latest_history_mapping[item_dict['semantic_id']]
                    self.history[uuid_gen] = item
                    self.history.move_to_end(uuid_gen)
                    logger.debug(f"Node exists in latest_history, moving to end of history: {uuid_gen}: {item}")
                else:
                    uuid_gen = uuid4()
                    self.history[uuid_gen] = item
                    logger.debug(f"Added node to history: {str(uuid_gen)}: {item}")
                    self.latest_history[uuid_gen] = item
                    self.latest_history_mapping[item_dict['semantic_id']] = uuid_gen
                if return_with_uuid:
                    history_list.append((str(uuid_gen), item))
                else:
                    history_list.append(item)
            else:  # Handling edges
                from_semantic_id = item_dict['from_node']
                to_semantic_id = item_dict['to_node']
                # Ensure 'from_node' and 'to_node' reference the correct UUIDs from the recently added nodes
                # TODO Add exception handling for when the LLM thinks that a node exists when it doesn't. Try, except
                try:
                    item_dict['from_node'] = self.latest_history_mapping[from_semantic_id]
                    item_dict['to_node'] = self.latest_history_mapping[to_semantic_id]
                except KeyError:
                    print(f"KeyError: {from_semantic_id} or {to_semantic_id} not found in latest_history_mapping")
                    continue
                # If the edge is in the latest history according to its from and to nodes, then we update it
                if (from_to_tuple:=(item_dict['from_node'], item_dict['to_node'])) in self.latest_history_mapping:
                    uuid_gen = self.latest_history_mapping[from_to_tuple]
                    self.history[uuid_gen] = item
                    self.history.move_to_end(uuid_gen)
                    logger.debug(f"Edge exists in latest_history_mapping, moving to end of history: {uuid_gen}: {item}")
                else:
                    uuid_gen = uuid4()
                    self.history[uuid_gen] = item
                    logger.debug(f"Added edge to history: {str(uuid_gen)}: {item}")
                if return_with_uuid:
                    history_list.append((str(uuid_gen), item))
                else:
                    history_list.append(item)
        return deepcopy(history_list[0]) if len(history_list) == 1 else deepcopy(history_list)
    
    def get_history_window(self, token_max: int = None):
        if token_max is None:
            token_max = self.token_max  # Use default token_max if not specified
        self.latest_history.clear()  # Clear the latest history for a fresh start
        self.latest_history_mapping.clear()  # Also clear the latest history mapping
        logger.debug(f"Cleared latest_history_mapping and latest_history")
        token_tracking = 0
        for uuid, item in reversed(self.history.items()):
            item_type = self.nodes_alias if self.nodes_alias in item else self.edges_alias
            item_dict = item[item_type]
            token_tracking += token_len(self._item_to_json_str(deepcopy(item)))
            if token_tracking < token_max:
                self.latest_history[uuid] = item  # Update latest_history with the current item
                if item_type == self.nodes_alias:
                    self.latest_history_mapping[item_dict['semantic_id']] = uuid  # Update latest_history_mapping
                    logger.debug(f"Added node to latest_history_mapping: {item_dict['semantic_id']}: {uuid}")
                elif item_type == self.edges_alias:
                    self.latest_history_mapping[(item_dict['from_node'], item_dict['to_node'])] = uuid
                    logger.debug(f"Added edge to latest_history_mapping: ({item_dict['from_node']}, {item_dict['to_node']}): {uuid}")
            else:
                break  # Stop adding items if token_max is reached
        return deepcopy(self.latest_history)  # Return the history as a string

    def _item_to_json_str(self, item):
        item_type = self.nodes_alias if self.nodes_alias in item else self.edges_alias
        item_dict = item[item_type]
        if item_type == self.edges_alias:
            item_dict['from_node'] = self.history[item_dict['from_node']][self.nodes_alias]['semantic_id']
            item_dict['to_node'] = self.history[item_dict['to_node']][self.nodes_alias]['semantic_id']
        return json.dumps(item_dict)
            
    def get_history_str(self, token_max: int = None):
        """
        Returns a history string based on the token length specification and updates the latest_history
        """
        latest_history = self.get_history_window(token_max)
        json_list = []
        for uuid, item in latest_history.items():
            json_list.append(self._item_to_json_str(item))
        if json_list:
            json_str = "\n".join(json_list)
            logger.debug(f"JSON History string created: {json_str}")
            return json_str
from langchain.output_parsers import OutputFixingParser
from json import JSONDecodeError
import time

from anthropic import RateLimitError
from langchain.output_parsers import OutputFixingParser

splitter = RecursiveCharacterTextSplitter(chunk_size=70, chunk_overlap=20, length_function=token_len)

json_fixing_parser = OutputFixingParser.from_llm(parser=json_output_parser, llm=chat_model, max_retries=3)

llm_pipe = gen_template | chat_model | json_fixing_parser
graph_history = GraphHistory()

graph_components = []
for paragraph in paragraphs:
    splits = splitter.split_text(paragraph['paragraph_text'])
    for split in splits:
        local_history = graph_history.get_history_str(token_max=600)
        try:
            response = llm_pipe.invoke(
                {'passage': split,
                'history': local_history,
                'instructions': json_prompt_instructions})
        except RateLimitError as e:
            print(e)
            time.sleep(60)  # Wait for a minute
            response = llm_pipe.invoke(
                {'passage': split,
                'history': local_history,
                'instructions': json_prompt_instructions})
            continue
        if 'nodes' in response:
            for node in response['nodes']:
                if 'semantic_id' not in node:
                    continue
                node['paragraph_idx'] = paragraph['idx']
                graph_history.add_history({'nodes': node}, return_with_uuid=False)
        if 'edges' in response:
            for edge in response['edges']:
                graph_history.add_history({'edges': edge}, return_with_uuid=False)

        graph_components.append(response)
2024-04-22 23:20:21,560 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:28,404 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 7c74cbd4-d37e-48ee-b07b-8e743cb4e571: {'nodes': {'semantic_id': 'philippines-commonwealth', 'category': 'government', 'attributes': {'name': 'Commonwealth of the Philippines', 'duration': '1935 - 1946', 'status': 'replaced the Insular Government', 'description': 'The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.'}, 'paragraph_idx': 0}}
2024-04-22 23:20:28,404 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 45454413-bccb-4305-b606-2fa6386a64b6: {'nodes': {'semantic_id': 'insular-government', 'category': 'government', 'attributes': {'name': 'Insular Government', 'type': 'United States territorial government', 'replaced_by': 'philippines-commonwealth'}, 'paragraph_idx': 0}}
2024-04-22 23:20:28,405 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: bdbf44f6-c5ab-4e93-95f9-913c4472c483: {'nodes': {'semantic_id': 'world-war-2', 'category': 'historical-event', 'attributes': {'name': 'Second World War', 'duration': '1942 - 1945', 'impact': 'Japan occupied the Philippines during this period'}, 'paragraph_idx': 0}}
2024-04-22 23:20:28,405 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: d456f405-4f08-48a4-8ede-5e3c39bda952: {'edges': {'from_node': UUID('45454413-bccb-4305-b606-2fa6386a64b6'), 'to_node': UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'), 'category': 'replaced'}}
2024-04-22 23:20:28,406 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 26dc571e-2d3f-405e-be4c-11be4dbb4e21: {'edges': {'from_node': UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'), 'to_node': UUID('bdbf44f6-c5ab-4e93-95f9-913c4472c483'), 'category': 'affected_by'}}
2024-04-22 23:20:28,406 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:28,407 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, bdbf44f6-c5ab-4e93-95f9-913c4472c483): 26dc571e-2d3f-405e-be4c-11be4dbb4e21
2024-04-22 23:20:28,407 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:28,408 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: world-war-2: bdbf44f6-c5ab-4e93-95f9-913c4472c483
2024-04-22 23:20:28,409 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: insular-government: 45454413-bccb-4305-b606-2fa6386a64b6
2024-04-22 23:20:28,409 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: philippines-commonwealth: 7c74cbd4-d37e-48ee-b07b-8e743cb4e571
2024-04-22 23:20:28,410 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "philippines-commonwealth", "to_node": "world-war-2", "category": "affected_by"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "world-war-2", "category": "historical-event", "attributes": {"name": "Second World War", "duration": "1942 - 1945", "impact": "Japan occupied the Philippines during this period"}, "paragraph_idx": 0}
{"semantic_id": "insular-government", "category": "government", "attributes": {"name": "Insular Government", "type": "United States territorial government", "replaced_by": "philippines-commonwealth"}, "paragraph_idx": 0}
{"semantic_id": "philippines-commonwealth", "category": "government", "attributes": {"name": "Commonwealth of the Philippines", "duration": "1935 - 1946", "status": "replaced the Insular Government", "description": "The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country."}, "paragraph_idx": 0}
2024-04-22 23:20:31,708 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 7c74cbd4-d37e-48ee-b07b-8e743cb4e571: {'nodes': {'semantic_id': 'philippines-commonwealth', 'category': 'government', 'attributes': {'name': 'Commonwealth of the Philippines', 'duration': '1935 - 1946', 'status': 'replaced the Insular Government', 'description': 'The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.', 'established_by': 'Tydings–McDuffie Act'}, 'paragraph_idx': 0}}
2024-04-22 23:20:31,709 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 45454413-bccb-4305-b606-2fa6386a64b6: {'nodes': {'semantic_id': 'insular-government', 'category': 'government', 'attributes': {'name': 'Insular Government', 'type': 'United States territorial government', 'replaced_by': 'philippines-commonwealth'}, 'paragraph_idx': 0}}
2024-04-22 23:20:31,709 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e: {'nodes': {'semantic_id': 'transition-to-independence', 'category': 'process', 'attributes': {'name': 'Transitional administration', 'purpose': "in preparation for the country's full achievement of independence"}, 'paragraph_idx': 0}}
2024-04-22 23:20:31,710 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: d456f405-4f08-48a4-8ede-5e3c39bda952: {'edges': {'from_node': UUID('45454413-bccb-4305-b606-2fa6386a64b6'), 'to_node': UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'), 'category': 'replaced'}}
2024-04-22 23:20:31,710 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 4c6e9ebc-b61f-4514-93dd-628f4b3efc63: {'edges': {'from_node': UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'), 'to_node': UUID('fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e'), 'category': 'part_of'}}
2024-04-22 23:20:31,711 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:31,711 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e): 4c6e9ebc-b61f-4514-93dd-628f4b3efc63
2024-04-22 23:20:31,712 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:31,713 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: transition-to-independence: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e
2024-04-22 23:20:31,713 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: insular-government: 45454413-bccb-4305-b606-2fa6386a64b6
2024-04-22 23:20:31,714 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: philippines-commonwealth: 7c74cbd4-d37e-48ee-b07b-8e743cb4e571
2024-04-22 23:20:31,714 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, bdbf44f6-c5ab-4e93-95f9-913c4472c483): 26dc571e-2d3f-405e-be4c-11be4dbb4e21
2024-04-22 23:20:31,715 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: world-war-2: bdbf44f6-c5ab-4e93-95f9-913c4472c483
2024-04-22 23:20:31,715 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "philippines-commonwealth", "to_node": "transition-to-independence", "category": "part_of"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "transition-to-independence", "category": "process", "attributes": {"name": "Transitional administration", "purpose": "in preparation for the country's full achievement of independence"}, "paragraph_idx": 0}
{"semantic_id": "insular-government", "category": "government", "attributes": {"name": "Insular Government", "type": "United States territorial government", "replaced_by": "philippines-commonwealth"}, "paragraph_idx": 0}
{"semantic_id": "philippines-commonwealth", "category": "government", "attributes": {"name": "Commonwealth of the Philippines", "duration": "1935 - 1946", "status": "replaced the Insular Government", "description": "The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.", "established_by": "Tydings\u2013McDuffie Act"}, "paragraph_idx": 0}
{"from_node": "philippines-commonwealth", "to_node": "world-war-2", "category": "affected_by"}
{"semantic_id": "world-war-2", "category": "historical-event", "attributes": {"name": "Second World War", "duration": "1942 - 1945", "impact": "Japan occupied the Philippines during this period"}, "paragraph_idx": 0}
2024-04-22 23:20:35,308 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: b88ccc2e-89f4-4799-bf64-38ca5d0badf8: {'nodes': {'semantic_id': 'lake-oesa', 'category': 'location', 'attributes': {'name': 'Lake Oesa', 'elevation': 2267, 'unit': 'm', 'elevation_ft': 7438, 'location': {'park': 'Yoho National Park', 'city': 'Field', 'province': 'British Columbia', 'country': 'Canada'}}, 'paragraph_idx': 1}}
2024-04-22 23:20:35,309 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:35,309 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: lake-oesa: b88ccc2e-89f4-4799-bf64-38ca5d0badf8
2024-04-22 23:20:35,310 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e): 4c6e9ebc-b61f-4514-93dd-628f4b3efc63
2024-04-22 23:20:35,311 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:35,311 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: transition-to-independence: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e
2024-04-22 23:20:35,312 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: insular-government: 45454413-bccb-4305-b606-2fa6386a64b6
2024-04-22 23:20:35,312 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: philippines-commonwealth: 7c74cbd4-d37e-48ee-b07b-8e743cb4e571
2024-04-22 23:20:35,313 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, bdbf44f6-c5ab-4e93-95f9-913c4472c483): 26dc571e-2d3f-405e-be4c-11be4dbb4e21
2024-04-22 23:20:35,314 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: world-war-2: bdbf44f6-c5ab-4e93-95f9-913c4472c483
2024-04-22 23:20:35,314 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "lake-oesa", "category": "location", "attributes": {"name": "Lake Oesa", "elevation": 2267, "unit": "m", "elevation_ft": 7438, "location": {"park": "Yoho National Park", "city": "Field", "province": "British Columbia", "country": "Canada"}}, "paragraph_idx": 1}
{"from_node": "philippines-commonwealth", "to_node": "transition-to-independence", "category": "part_of"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "transition-to-independence", "category": "process", "attributes": {"name": "Transitional administration", "purpose": "in preparation for the country's full achievement of independence"}, "paragraph_idx": 0}
{"semantic_id": "insular-government", "category": "government", "attributes": {"name": "Insular Government", "type": "United States territorial government", "replaced_by": "philippines-commonwealth"}, "paragraph_idx": 0}
{"semantic_id": "philippines-commonwealth", "category": "government", "attributes": {"name": "Commonwealth of the Philippines", "duration": "1935 - 1946", "status": "replaced the Insular Government", "description": "The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.", "established_by": "Tydings\u2013McDuffie Act"}, "paragraph_idx": 0}
{"from_node": "philippines-commonwealth", "to_node": "world-war-2", "category": "affected_by"}
{"semantic_id": "world-war-2", "category": "historical-event", "attributes": {"name": "Second World War", "duration": "1942 - 1945", "impact": "Japan occupied the Philippines during this period"}, "paragraph_idx": 0}
2024-04-22 23:20:37,628 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: fa964c2f-3cf7-4b61-99f4-6029ace56ccb: {'nodes': {'semantic_id': 'arafura-swamp', 'category': 'location', 'attributes': {'name': 'Arafura Swamp', 'type': 'largest wooded swamp in the Northern Territory and possibly in Australia', 'location': {'region': 'Arnhem Land', 'territory': 'Northern Territory', 'country': 'Australia'}, 'size': {'area': {'max': 5850, 'unit': 'km^2'}, 'expansion': 'may expand by the end of the wet season'}, 'status': 'near pristine floodplain'}, 'paragraph_idx': 2}}
2024-04-22 23:20:37,629 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:37,630 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: arafura-swamp: fa964c2f-3cf7-4b61-99f4-6029ace56ccb
2024-04-22 23:20:37,630 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: lake-oesa: b88ccc2e-89f4-4799-bf64-38ca5d0badf8
2024-04-22 23:20:37,631 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e): 4c6e9ebc-b61f-4514-93dd-628f4b3efc63
2024-04-22 23:20:37,632 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:37,632 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: transition-to-independence: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e
2024-04-22 23:20:37,633 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: insular-government: 45454413-bccb-4305-b606-2fa6386a64b6
2024-04-22 23:20:37,634 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: philippines-commonwealth: 7c74cbd4-d37e-48ee-b07b-8e743cb4e571
2024-04-22 23:20:37,634 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, bdbf44f6-c5ab-4e93-95f9-913c4472c483): 26dc571e-2d3f-405e-be4c-11be4dbb4e21
2024-04-22 23:20:37,635 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: world-war-2: bdbf44f6-c5ab-4e93-95f9-913c4472c483
2024-04-22 23:20:37,636 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "arafura-swamp", "category": "location", "attributes": {"name": "Arafura Swamp", "type": "largest wooded swamp in the Northern Territory and possibly in Australia", "location": {"region": "Arnhem Land", "territory": "Northern Territory", "country": "Australia"}, "size": {"area": {"max": 5850, "unit": "km^2"}, "expansion": "may expand by the end of the wet season"}, "status": "near pristine floodplain"}, "paragraph_idx": 2}
{"semantic_id": "lake-oesa", "category": "location", "attributes": {"name": "Lake Oesa", "elevation": 2267, "unit": "m", "elevation_ft": 7438, "location": {"park": "Yoho National Park", "city": "Field", "province": "British Columbia", "country": "Canada"}}, "paragraph_idx": 1}
{"from_node": "philippines-commonwealth", "to_node": "transition-to-independence", "category": "part_of"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "transition-to-independence", "category": "process", "attributes": {"name": "Transitional administration", "purpose": "in preparation for the country's full achievement of independence"}, "paragraph_idx": 0}
{"semantic_id": "insular-government", "category": "government", "attributes": {"name": "Insular Government", "type": "United States territorial government", "replaced_by": "philippines-commonwealth"}, "paragraph_idx": 0}
{"semantic_id": "philippines-commonwealth", "category": "government", "attributes": {"name": "Commonwealth of the Philippines", "duration": "1935 - 1946", "status": "replaced the Insular Government", "description": "The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.", "established_by": "Tydings\u2013McDuffie Act"}, "paragraph_idx": 0}
{"from_node": "philippines-commonwealth", "to_node": "world-war-2", "category": "affected_by"}
{"semantic_id": "world-war-2", "category": "historical-event", "attributes": {"name": "Second World War", "duration": "1942 - 1945", "impact": "Japan occupied the Philippines during this period"}, "paragraph_idx": 0}
2024-04-22 23:20:39,937 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: fa964c2f-3cf7-4b61-99f4-6029ace56ccb: {'nodes': {'semantic_id': 'arafura-swamp', 'category': 'location', 'attributes': {'name': 'Arafura Swamp', 'type': 'largest wooded swamp in the Northern Territory and possibly in Australia', 'location': {'region': 'Arnhem Land', 'territory': 'Northern Territory', 'country': 'Australia'}, 'size': {'area': {'max': 5850, 'unit': 'km^2'}, 'expansion': 'may expand by the end of the wet season'}, 'status': 'near pristine floodplain', 'cultural_significance': 'great cultural significance to the Yolngu people, in particular the Ramingining community', 'filming_location': 'Ten Canoes'}, 'paragraph_idx': 2}}
2024-04-22 23:20:39,938 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:39,939 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: arafura-swamp: fa964c2f-3cf7-4b61-99f4-6029ace56ccb
2024-04-22 23:20:39,939 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: lake-oesa: b88ccc2e-89f4-4799-bf64-38ca5d0badf8
2024-04-22 23:20:39,940 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e): 4c6e9ebc-b61f-4514-93dd-628f4b3efc63
2024-04-22 23:20:39,940 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:39,941 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: transition-to-independence: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e
2024-04-22 23:20:39,941 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: insular-government: 45454413-bccb-4305-b606-2fa6386a64b6
2024-04-22 23:20:39,942 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: philippines-commonwealth: 7c74cbd4-d37e-48ee-b07b-8e743cb4e571
2024-04-22 23:20:39,942 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, bdbf44f6-c5ab-4e93-95f9-913c4472c483): 26dc571e-2d3f-405e-be4c-11be4dbb4e21
2024-04-22 23:20:39,943 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "arafura-swamp", "category": "location", "attributes": {"name": "Arafura Swamp", "type": "largest wooded swamp in the Northern Territory and possibly in Australia", "location": {"region": "Arnhem Land", "territory": "Northern Territory", "country": "Australia"}, "size": {"area": {"max": 5850, "unit": "km^2"}, "expansion": "may expand by the end of the wet season"}, "status": "near pristine floodplain", "cultural_significance": "great cultural significance to the Yolngu people, in particular the Ramingining community", "filming_location": "Ten Canoes"}, "paragraph_idx": 2}
{"semantic_id": "lake-oesa", "category": "location", "attributes": {"name": "Lake Oesa", "elevation": 2267, "unit": "m", "elevation_ft": 7438, "location": {"park": "Yoho National Park", "city": "Field", "province": "British Columbia", "country": "Canada"}}, "paragraph_idx": 1}
{"from_node": "philippines-commonwealth", "to_node": "transition-to-independence", "category": "part_of"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "transition-to-independence", "category": "process", "attributes": {"name": "Transitional administration", "purpose": "in preparation for the country's full achievement of independence"}, "paragraph_idx": 0}
{"semantic_id": "insular-government", "category": "government", "attributes": {"name": "Insular Government", "type": "United States territorial government", "replaced_by": "philippines-commonwealth"}, "paragraph_idx": 0}
{"semantic_id": "philippines-commonwealth", "category": "government", "attributes": {"name": "Commonwealth of the Philippines", "duration": "1935 - 1946", "status": "replaced the Insular Government", "description": "The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.", "established_by": "Tydings\u2013McDuffie Act"}, "paragraph_idx": 0}
{"from_node": "philippines-commonwealth", "to_node": "world-war-2", "category": "affected_by"}
2024-04-22 23:20:44,993 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 4c1c52c9-a5a5-4bc8-999d-cf7539d57322: {'nodes': {'semantic_id': 'wapizagonke-lake', 'category': 'location', 'attributes': {'name': 'Wapizagonke Lake', 'location': {'sector': 'Lac-Wapizagonke', 'city': 'Shawinigan', 'park': 'La Mauricie National Park', 'region': 'Mauricie', 'province': 'Quebec', 'country': 'Canada'}}, 'paragraph_idx': 3}}
2024-04-22 23:20:44,994 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:44,995 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: wapizagonke-lake: 4c1c52c9-a5a5-4bc8-999d-cf7539d57322
2024-04-22 23:20:44,995 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: arafura-swamp: fa964c2f-3cf7-4b61-99f4-6029ace56ccb
2024-04-22 23:20:44,996 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: lake-oesa: b88ccc2e-89f4-4799-bf64-38ca5d0badf8
2024-04-22 23:20:44,996 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e): 4c6e9ebc-b61f-4514-93dd-628f4b3efc63
2024-04-22 23:20:44,997 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:44,997 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: transition-to-independence: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e
2024-04-22 23:20:44,997 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: insular-government: 45454413-bccb-4305-b606-2fa6386a64b6
2024-04-22 23:20:44,998 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "wapizagonke-lake", "category": "location", "attributes": {"name": "Wapizagonke Lake", "location": {"sector": "Lac-Wapizagonke", "city": "Shawinigan", "park": "La Mauricie National Park", "region": "Mauricie", "province": "Quebec", "country": "Canada"}}, "paragraph_idx": 3}
{"semantic_id": "arafura-swamp", "category": "location", "attributes": {"name": "Arafura Swamp", "type": "largest wooded swamp in the Northern Territory and possibly in Australia", "location": {"region": "Arnhem Land", "territory": "Northern Territory", "country": "Australia"}, "size": {"area": {"max": 5850, "unit": "km^2"}, "expansion": "may expand by the end of the wet season"}, "status": "near pristine floodplain", "cultural_significance": "great cultural significance to the Yolngu people, in particular the Ramingining community", "filming_location": "Ten Canoes"}, "paragraph_idx": 2}
{"semantic_id": "lake-oesa", "category": "location", "attributes": {"name": "Lake Oesa", "elevation": 2267, "unit": "m", "elevation_ft": 7438, "location": {"park": "Yoho National Park", "city": "Field", "province": "British Columbia", "country": "Canada"}}, "paragraph_idx": 1}
{"from_node": "philippines-commonwealth", "to_node": "transition-to-independence", "category": "part_of"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "transition-to-independence", "category": "process", "attributes": {"name": "Transitional administration", "purpose": "in preparation for the country's full achievement of independence"}, "paragraph_idx": 0}
{"semantic_id": "insular-government", "category": "government", "attributes": {"name": "Insular Government", "type": "United States territorial government", "replaced_by": "philippines-commonwealth"}, "paragraph_idx": 0}
2024-04-22 23:20:47,248 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: dc5e696f-cdb0-4ae7-bf44-cc4eef5af46d: {'nodes': {'semantic_id': 'khabarovsky-district', 'category': 'location', 'attributes': {'name': 'Khabarovsky District', 'type': 'administrative and municipal district', 'region': 'Khabarovsk Krai', 'country': 'Russia', 'area': {'value': 45140, 'unit': 'km^2'}, 'segments': {'description': 'two unconnected segments separated by the territory of Amursky District', 'location': 'southwest of the krai'}, 'administrative_center': {'name': 'Khabarovsk'}}, 'paragraph_idx': 4}}
2024-04-22 23:20:47,249 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:47,250 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: khabarovsky-district: dc5e696f-cdb0-4ae7-bf44-cc4eef5af46d
2024-04-22 23:20:47,250 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: wapizagonke-lake: 4c1c52c9-a5a5-4bc8-999d-cf7539d57322
2024-04-22 23:20:47,250 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: arafura-swamp: fa964c2f-3cf7-4b61-99f4-6029ace56ccb
2024-04-22 23:20:47,251 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: lake-oesa: b88ccc2e-89f4-4799-bf64-38ca5d0badf8
2024-04-22 23:20:47,251 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e): 4c6e9ebc-b61f-4514-93dd-628f4b3efc63
2024-04-22 23:20:47,252 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:47,253 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: transition-to-independence: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e
2024-04-22 23:20:47,253 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "khabarovsky-district", "category": "location", "attributes": {"name": "Khabarovsky District", "type": "administrative and municipal district", "region": "Khabarovsk Krai", "country": "Russia", "area": {"value": 45140, "unit": "km^2"}, "segments": {"description": "two unconnected segments separated by the territory of Amursky District", "location": "southwest of the krai"}, "administrative_center": {"name": "Khabarovsk"}}, "paragraph_idx": 4}
{"semantic_id": "wapizagonke-lake", "category": "location", "attributes": {"name": "Wapizagonke Lake", "location": {"sector": "Lac-Wapizagonke", "city": "Shawinigan", "park": "La Mauricie National Park", "region": "Mauricie", "province": "Quebec", "country": "Canada"}}, "paragraph_idx": 3}
{"semantic_id": "arafura-swamp", "category": "location", "attributes": {"name": "Arafura Swamp", "type": "largest wooded swamp in the Northern Territory and possibly in Australia", "location": {"region": "Arnhem Land", "territory": "Northern Territory", "country": "Australia"}, "size": {"area": {"max": 5850, "unit": "km^2"}, "expansion": "may expand by the end of the wet season"}, "status": "near pristine floodplain", "cultural_significance": "great cultural significance to the Yolngu people, in particular the Ramingining community", "filming_location": "Ten Canoes"}, "paragraph_idx": 2}
{"semantic_id": "lake-oesa", "category": "location", "attributes": {"name": "Lake Oesa", "elevation": 2267, "unit": "m", "elevation_ft": 7438, "location": {"park": "Yoho National Park", "city": "Field", "province": "British Columbia", "country": "Canada"}}, "paragraph_idx": 1}
{"from_node": "philippines-commonwealth", "to_node": "transition-to-independence", "category": "part_of"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "transition-to-independence", "category": "process", "attributes": {"name": "Transitional administration", "purpose": "in preparation for the country's full achievement of independence"}, "paragraph_idx": 0}
2024-04-22 23:20:49,296 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: dc5e696f-cdb0-4ae7-bf44-cc4eef5af46d: {'nodes': {'semantic_id': 'khabarovsky-district', 'category': 'location', 'attributes': {'name': 'Khabarovsky District', 'type': 'administrative and municipal district', 'region': 'Khabarovsk Krai', 'country': 'Russia', 'area': {'value': 45140, 'unit': 'km^2'}, 'segments': {'description': 'two unconnected segments separated by the territory of Amursky District', 'location': 'southwest of the krai'}, 'administrative_center': {'name': 'Khabarovsk'}}, 'paragraph_idx': 4}}
2024-04-22 23:20:49,297 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:49,297 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: khabarovsky-district: dc5e696f-cdb0-4ae7-bf44-cc4eef5af46d
2024-04-22 23:20:49,298 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: wapizagonke-lake: 4c1c52c9-a5a5-4bc8-999d-cf7539d57322
2024-04-22 23:20:49,299 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: arafura-swamp: fa964c2f-3cf7-4b61-99f4-6029ace56ccb
2024-04-22 23:20:49,299 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: lake-oesa: b88ccc2e-89f4-4799-bf64-38ca5d0badf8
2024-04-22 23:20:49,300 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c74cbd4-d37e-48ee-b07b-8e743cb4e571, fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e): 4c6e9ebc-b61f-4514-93dd-628f4b3efc63
2024-04-22 23:20:49,300 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (45454413-bccb-4305-b606-2fa6386a64b6, 7c74cbd4-d37e-48ee-b07b-8e743cb4e571): d456f405-4f08-48a4-8ede-5e3c39bda952
2024-04-22 23:20:49,301 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: transition-to-independence: fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e
2024-04-22 23:20:49,302 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "khabarovsky-district", "category": "location", "attributes": {"name": "Khabarovsky District", "type": "administrative and municipal district", "region": "Khabarovsk Krai", "country": "Russia", "area": {"value": 45140, "unit": "km^2"}, "segments": {"description": "two unconnected segments separated by the territory of Amursky District", "location": "southwest of the krai"}, "administrative_center": {"name": "Khabarovsk"}}, "paragraph_idx": 4}
{"semantic_id": "wapizagonke-lake", "category": "location", "attributes": {"name": "Wapizagonke Lake", "location": {"sector": "Lac-Wapizagonke", "city": "Shawinigan", "park": "La Mauricie National Park", "region": "Mauricie", "province": "Quebec", "country": "Canada"}}, "paragraph_idx": 3}
{"semantic_id": "arafura-swamp", "category": "location", "attributes": {"name": "Arafura Swamp", "type": "largest wooded swamp in the Northern Territory and possibly in Australia", "location": {"region": "Arnhem Land", "territory": "Northern Territory", "country": "Australia"}, "size": {"area": {"max": 5850, "unit": "km^2"}, "expansion": "may expand by the end of the wet season"}, "status": "near pristine floodplain", "cultural_significance": "great cultural significance to the Yolngu people, in particular the Ramingining community", "filming_location": "Ten Canoes"}, "paragraph_idx": 2}
{"semantic_id": "lake-oesa", "category": "location", "attributes": {"name": "Lake Oesa", "elevation": 2267, "unit": "m", "elevation_ft": 7438, "location": {"park": "Yoho National Park", "city": "Field", "province": "British Columbia", "country": "Canada"}}, "paragraph_idx": 1}
{"from_node": "philippines-commonwealth", "to_node": "transition-to-independence", "category": "part_of"}
{"from_node": "insular-government", "to_node": "philippines-commonwealth", "category": "replaced"}
{"semantic_id": "transition-to-independence", "category": "process", "attributes": {"name": "Transitional administration", "purpose": "in preparation for the country's full achievement of independence"}, "paragraph_idx": 0}
2024-04-22 23:20:53,601 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 38724952-3d65-44b0-b5f8-03d13f501b6e: {'nodes': {'semantic_id': 'silver-lake', 'category': 'location', 'attributes': {'name': 'Silver Lake', 'location': {'county': 'Cheshire County', 'state': 'New Hampshire', 'region': 'southwestern', 'country': 'United States'}, 'towns': ['Harrisville', 'Nelson'], 'water_flow': {'from': 'Silver Lake', 'via': ['Minnewawa Brook', 'The Branch'], 'to': 'Ashuelot River'}}, 'paragraph_idx': 5}}
2024-04-22 23:20:53,602 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 85f00f66-e471-4e29-90f1-a11634734dc9: {'nodes': {'semantic_id': 'ashuelot-river', 'category': 'location', 'attributes': {'name': 'Ashuelot River', 'type': 'tributary', 'of': 'Connecticut River'}, 'paragraph_idx': 5}}
2024-04-22 23:20:53,603 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:53,604 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: ashuelot-river: 85f00f66-e471-4e29-90f1-a11634734dc9
2024-04-22 23:20:53,604 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: silver-lake: 38724952-3d65-44b0-b5f8-03d13f501b6e
2024-04-22 23:20:53,605 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: khabarovsky-district: dc5e696f-cdb0-4ae7-bf44-cc4eef5af46d
2024-04-22 23:20:53,606 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: wapizagonke-lake: 4c1c52c9-a5a5-4bc8-999d-cf7539d57322
2024-04-22 23:20:53,606 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: arafura-swamp: fa964c2f-3cf7-4b61-99f4-6029ace56ccb
2024-04-22 23:20:53,607 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "ashuelot-river", "category": "location", "attributes": {"name": "Ashuelot River", "type": "tributary", "of": "Connecticut River"}, "paragraph_idx": 5}
{"semantic_id": "silver-lake", "category": "location", "attributes": {"name": "Silver Lake", "location": {"county": "Cheshire County", "state": "New Hampshire", "region": "southwestern", "country": "United States"}, "towns": ["Harrisville", "Nelson"], "water_flow": {"from": "Silver Lake", "via": ["Minnewawa Brook", "The Branch"], "to": "Ashuelot River"}}, "paragraph_idx": 5}
{"semantic_id": "khabarovsky-district", "category": "location", "attributes": {"name": "Khabarovsky District", "type": "administrative and municipal district", "region": "Khabarovsk Krai", "country": "Russia", "area": {"value": 45140, "unit": "km^2"}, "segments": {"description": "two unconnected segments separated by the territory of Amursky District", "location": "southwest of the krai"}, "administrative_center": {"name": "Khabarovsk"}}, "paragraph_idx": 4}
{"semantic_id": "wapizagonke-lake", "category": "location", "attributes": {"name": "Wapizagonke Lake", "location": {"sector": "Lac-Wapizagonke", "city": "Shawinigan", "park": "La Mauricie National Park", "region": "Mauricie", "province": "Quebec", "country": "Canada"}}, "paragraph_idx": 3}
{"semantic_id": "arafura-swamp", "category": "location", "attributes": {"name": "Arafura Swamp", "type": "largest wooded swamp in the Northern Territory and possibly in Australia", "location": {"region": "Arnhem Land", "territory": "Northern Territory", "country": "Australia"}, "size": {"area": {"max": 5850, "unit": "km^2"}, "expansion": "may expand by the end of the wet season"}, "status": "near pristine floodplain", "cultural_significance": "great cultural significance to the Yolngu people, in particular the Ramingining community", "filming_location": "Ten Canoes"}, "paragraph_idx": 2}
KeyError: silver-lake or minnewawa-brook not found in latest_history_mapping
KeyError: minnewawa-brook or the-branch not found in latest_history_mapping
KeyError: the-branch or ashuelot-river not found in latest_history_mapping
KeyError: ashuelot-river or connecticut-river not found in latest_history_mapping
2024-04-22 23:20:58,031 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: b325368a-939a-4b13-bc90-bb48ffa68859: {'nodes': {'semantic_id': 'hyderabad-police-area', 'category': 'location', 'attributes': {'name': 'Hyderabad Police area', 'size': 'smallest'}, 'paragraph_idx': 6}}
2024-04-22 23:20:58,031 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: c01036cf-69f0-4589-a53f-c967eb829736: {'nodes': {'semantic_id': 'hyderabad-district', 'category': 'location', 'attributes': {'name': 'Hyderabad district', 'size': 'larger than Hyderabad Police area'}, 'paragraph_idx': 6}}
2024-04-22 23:20:58,032 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 50db0180-d74c-4009-8812-aad530beef99: {'nodes': {'semantic_id': 'ghmc-area', 'category': 'location', 'attributes': {'name': 'GHMC area', 'alias': 'Hyderabad city', 'size': 'larger than Hyderabad district'}, 'paragraph_idx': 6}}
2024-04-22 23:20:58,032 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: a0f921c0-73c3-41db-980a-c86d1bc3906b: {'nodes': {'semantic_id': 'hmda-area', 'category': 'location', 'attributes': {'name': 'area under the Hyderabad Metropolitan Development Authority (HMDA)', 'size': 'largest', 'description': 'covers the GHMC and its suburbs, extending to'}, 'paragraph_idx': 6}}
2024-04-22 23:20:58,033 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 7c057b91-d6fb-4058-af7e-6d3104e1eed1: {'nodes': {'semantic_id': 'hmda', 'category': 'organization', 'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA)', 'type': 'apolitical urban planning agency'}, 'paragraph_idx': 6}}
2024-04-22 23:20:58,033 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: bbd34f51-b77f-4d25-854c-52b0383ffc45: {'edges': {'from_node': UUID('b325368a-939a-4b13-bc90-bb48ffa68859'), 'to_node': UUID('c01036cf-69f0-4589-a53f-c967eb829736'), 'category': 'part_of'}}
2024-04-22 23:20:58,034 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 9ff064a2-672f-4964-81c3-70316ecae3ec: {'edges': {'from_node': UUID('c01036cf-69f0-4589-a53f-c967eb829736'), 'to_node': UUID('50db0180-d74c-4009-8812-aad530beef99'), 'category': 'part_of'}}
2024-04-22 23:20:58,034 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 0dd83ca3-69c1-473a-ba60-6afc5fcf0acf: {'edges': {'from_node': UUID('50db0180-d74c-4009-8812-aad530beef99'), 'to_node': UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'), 'category': 'part_of'}}
2024-04-22 23:20:58,035 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: e11ba81b-0525-4e60-b433-2f0f4438784a: {'edges': {'from_node': UUID('7c057b91-d6fb-4058-af7e-6d3104e1eed1'), 'to_node': UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'), 'category': 'manages'}}
2024-04-22 23:20:58,035 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:20:58,036 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c057b91-d6fb-4058-af7e-6d3104e1eed1, a0f921c0-73c3-41db-980a-c86d1bc3906b): e11ba81b-0525-4e60-b433-2f0f4438784a
2024-04-22 23:20:58,037 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (50db0180-d74c-4009-8812-aad530beef99, a0f921c0-73c3-41db-980a-c86d1bc3906b): 0dd83ca3-69c1-473a-ba60-6afc5fcf0acf
2024-04-22 23:20:58,037 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (c01036cf-69f0-4589-a53f-c967eb829736, 50db0180-d74c-4009-8812-aad530beef99): 9ff064a2-672f-4964-81c3-70316ecae3ec
2024-04-22 23:20:58,038 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b325368a-939a-4b13-bc90-bb48ffa68859, c01036cf-69f0-4589-a53f-c967eb829736): bbd34f51-b77f-4d25-854c-52b0383ffc45
2024-04-22 23:20:58,038 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmda: 7c057b91-d6fb-4058-af7e-6d3104e1eed1
2024-04-22 23:20:58,039 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmda-area: a0f921c0-73c3-41db-980a-c86d1bc3906b
2024-04-22 23:20:58,039 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: ghmc-area: 50db0180-d74c-4009-8812-aad530beef99
2024-04-22 23:20:58,040 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-district: c01036cf-69f0-4589-a53f-c967eb829736
2024-04-22 23:20:58,040 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-police-area: b325368a-939a-4b13-bc90-bb48ffa68859
2024-04-22 23:20:58,041 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: ashuelot-river: 85f00f66-e471-4e29-90f1-a11634734dc9
2024-04-22 23:20:58,042 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: silver-lake: 38724952-3d65-44b0-b5f8-03d13f501b6e
2024-04-22 23:20:58,042 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "hmda", "to_node": "hmda-area", "category": "manages"}
{"from_node": "ghmc-area", "to_node": "hmda-area", "category": "part_of"}
{"from_node": "hyderabad-district", "to_node": "ghmc-area", "category": "part_of"}
{"from_node": "hyderabad-police-area", "to_node": "hyderabad-district", "category": "part_of"}
{"semantic_id": "hmda", "category": "organization", "attributes": {"name": "Hyderabad Metropolitan Development Authority (HMDA)", "type": "apolitical urban planning agency"}, "paragraph_idx": 6}
{"semantic_id": "hmda-area", "category": "location", "attributes": {"name": "area under the Hyderabad Metropolitan Development Authority (HMDA)", "size": "largest", "description": "covers the GHMC and its suburbs, extending to"}, "paragraph_idx": 6}
{"semantic_id": "ghmc-area", "category": "location", "attributes": {"name": "GHMC area", "alias": "Hyderabad city", "size": "larger than Hyderabad district"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-district", "category": "location", "attributes": {"name": "Hyderabad district", "size": "larger than Hyderabad Police area"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-police-area", "category": "location", "attributes": {"name": "Hyderabad Police area", "size": "smallest"}, "paragraph_idx": 6}
{"semantic_id": "ashuelot-river", "category": "location", "attributes": {"name": "Ashuelot River", "type": "tributary", "of": "Connecticut River"}, "paragraph_idx": 5}
{"semantic_id": "silver-lake", "category": "location", "attributes": {"name": "Silver Lake", "location": {"county": "Cheshire County", "state": "New Hampshire", "region": "southwestern", "country": "United States"}, "towns": ["Harrisville", "Nelson"], "water_flow": {"from": "Silver Lake", "via": ["Minnewawa Brook", "The Branch"], "to": "Ashuelot River"}}, "paragraph_idx": 5}
2024-04-22 23:21:03,116 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 7c057b91-d6fb-4058-af7e-6d3104e1eed1: {'nodes': {'semantic_id': 'hmda', 'category': 'organization', 'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA)', 'type': 'apolitical urban planning agency'}, 'paragraph_idx': 6}}
2024-04-22 23:21:03,117 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: a0f921c0-73c3-41db-980a-c86d1bc3906b: {'nodes': {'semantic_id': 'hmda-area', 'category': 'location', 'attributes': {'name': 'area under the Hyderabad Metropolitan Development Authority (HMDA)', 'size': 'largest', 'description': 'covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city'}, 'paragraph_idx': 6}}
2024-04-22 23:21:03,117 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 50db0180-d74c-4009-8812-aad530beef99: {'nodes': {'semantic_id': 'ghmc-area', 'category': 'location', 'attributes': {'name': 'GHMC area', 'alias': 'Hyderabad city', 'size': 'larger than Hyderabad district'}, 'paragraph_idx': 6}}
2024-04-22 23:21:03,118 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: c01036cf-69f0-4589-a53f-c967eb829736: {'nodes': {'semantic_id': 'hyderabad-district', 'category': 'location', 'attributes': {'name': 'Hyderabad district', 'size': 'larger than Hyderabad Police area'}, 'paragraph_idx': 6}}
2024-04-22 23:21:03,118 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: b325368a-939a-4b13-bc90-bb48ffa68859: {'nodes': {'semantic_id': 'hyderabad-police-area', 'category': 'location', 'attributes': {'name': 'Hyderabad Police area', 'size': 'smallest'}, 'paragraph_idx': 6}}
2024-04-22 23:21:03,119 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 85d71a58-5af2-438e-9f73-72c8363a57f8: {'nodes': {'semantic_id': 'hmwssb', 'category': 'organization', 'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board', 'description': 'bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB) that HMDA manages the administration of'}, 'paragraph_idx': 6}}
2024-04-22 23:21:03,119 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: e11ba81b-0525-4e60-b433-2f0f4438784a: {'edges': {'from_node': UUID('7c057b91-d6fb-4058-af7e-6d3104e1eed1'), 'to_node': UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'), 'category': 'manages'}}
2024-04-22 23:21:03,120 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 0dd83ca3-69c1-473a-ba60-6afc5fcf0acf: {'edges': {'from_node': UUID('50db0180-d74c-4009-8812-aad530beef99'), 'to_node': UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'), 'category': 'part_of'}}
2024-04-22 23:21:03,121 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 9ff064a2-672f-4964-81c3-70316ecae3ec: {'edges': {'from_node': UUID('c01036cf-69f0-4589-a53f-c967eb829736'), 'to_node': UUID('50db0180-d74c-4009-8812-aad530beef99'), 'category': 'part_of'}}
2024-04-22 23:21:03,121 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: bbd34f51-b77f-4d25-854c-52b0383ffc45: {'edges': {'from_node': UUID('b325368a-939a-4b13-bc90-bb48ffa68859'), 'to_node': UUID('c01036cf-69f0-4589-a53f-c967eb829736'), 'category': 'part_of'}}
2024-04-22 23:21:03,122 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: e5d4bd92-ab18-4a9a-8479-6f840f818812: {'edges': {'from_node': UUID('7c057b91-d6fb-4058-af7e-6d3104e1eed1'), 'to_node': UUID('85d71a58-5af2-438e-9f73-72c8363a57f8'), 'category': 'manages'}}
2024-04-22 23:21:03,123 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:03,124 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c057b91-d6fb-4058-af7e-6d3104e1eed1, 85d71a58-5af2-438e-9f73-72c8363a57f8): e5d4bd92-ab18-4a9a-8479-6f840f818812
2024-04-22 23:21:03,125 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b325368a-939a-4b13-bc90-bb48ffa68859, c01036cf-69f0-4589-a53f-c967eb829736): bbd34f51-b77f-4d25-854c-52b0383ffc45
2024-04-22 23:21:03,125 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (c01036cf-69f0-4589-a53f-c967eb829736, 50db0180-d74c-4009-8812-aad530beef99): 9ff064a2-672f-4964-81c3-70316ecae3ec
2024-04-22 23:21:03,126 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (50db0180-d74c-4009-8812-aad530beef99, a0f921c0-73c3-41db-980a-c86d1bc3906b): 0dd83ca3-69c1-473a-ba60-6afc5fcf0acf
2024-04-22 23:21:03,126 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c057b91-d6fb-4058-af7e-6d3104e1eed1, a0f921c0-73c3-41db-980a-c86d1bc3906b): e11ba81b-0525-4e60-b433-2f0f4438784a
2024-04-22 23:21:03,127 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmwssb: 85d71a58-5af2-438e-9f73-72c8363a57f8
2024-04-22 23:21:03,128 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-police-area: b325368a-939a-4b13-bc90-bb48ffa68859
2024-04-22 23:21:03,128 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-district: c01036cf-69f0-4589-a53f-c967eb829736
2024-04-22 23:21:03,129 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: ghmc-area: 50db0180-d74c-4009-8812-aad530beef99
2024-04-22 23:21:03,130 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmda-area: a0f921c0-73c3-41db-980a-c86d1bc3906b
2024-04-22 23:21:03,130 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmda: 7c057b91-d6fb-4058-af7e-6d3104e1eed1
2024-04-22 23:21:03,131 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: ashuelot-river: 85f00f66-e471-4e29-90f1-a11634734dc9
2024-04-22 23:21:03,132 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "hmda", "to_node": "hmwssb", "category": "manages"}
{"from_node": "hyderabad-police-area", "to_node": "hyderabad-district", "category": "part_of"}
{"from_node": "hyderabad-district", "to_node": "ghmc-area", "category": "part_of"}
{"from_node": "ghmc-area", "to_node": "hmda-area", "category": "part_of"}
{"from_node": "hmda", "to_node": "hmda-area", "category": "manages"}
{"semantic_id": "hmwssb", "category": "organization", "attributes": {"name": "Hyderabad Metropolitan Water Supply and Sewerage Board", "description": "bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB) that HMDA manages the administration of"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-police-area", "category": "location", "attributes": {"name": "Hyderabad Police area", "size": "smallest"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-district", "category": "location", "attributes": {"name": "Hyderabad district", "size": "larger than Hyderabad Police area"}, "paragraph_idx": 6}
{"semantic_id": "ghmc-area", "category": "location", "attributes": {"name": "GHMC area", "alias": "Hyderabad city", "size": "larger than Hyderabad district"}, "paragraph_idx": 6}
{"semantic_id": "hmda-area", "category": "location", "attributes": {"name": "area under the Hyderabad Metropolitan Development Authority (HMDA)", "size": "largest", "description": "covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city"}, "paragraph_idx": 6}
{"semantic_id": "hmda", "category": "organization", "attributes": {"name": "Hyderabad Metropolitan Development Authority (HMDA)", "type": "apolitical urban planning agency"}, "paragraph_idx": 6}
{"semantic_id": "ashuelot-river", "category": "location", "attributes": {"name": "Ashuelot River", "type": "tributary", "of": "Connecticut River"}, "paragraph_idx": 5}
2024-04-22 23:21:06,144 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:06,145 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c057b91-d6fb-4058-af7e-6d3104e1eed1, 85d71a58-5af2-438e-9f73-72c8363a57f8): e5d4bd92-ab18-4a9a-8479-6f840f818812
2024-04-22 23:21:06,145 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b325368a-939a-4b13-bc90-bb48ffa68859, c01036cf-69f0-4589-a53f-c967eb829736): bbd34f51-b77f-4d25-854c-52b0383ffc45
2024-04-22 23:21:06,146 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (c01036cf-69f0-4589-a53f-c967eb829736, 50db0180-d74c-4009-8812-aad530beef99): 9ff064a2-672f-4964-81c3-70316ecae3ec
2024-04-22 23:21:06,146 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (50db0180-d74c-4009-8812-aad530beef99, a0f921c0-73c3-41db-980a-c86d1bc3906b): 0dd83ca3-69c1-473a-ba60-6afc5fcf0acf
2024-04-22 23:21:06,147 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c057b91-d6fb-4058-af7e-6d3104e1eed1, a0f921c0-73c3-41db-980a-c86d1bc3906b): e11ba81b-0525-4e60-b433-2f0f4438784a
2024-04-22 23:21:06,147 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmwssb: 85d71a58-5af2-438e-9f73-72c8363a57f8
2024-04-22 23:21:06,148 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-police-area: b325368a-939a-4b13-bc90-bb48ffa68859
2024-04-22 23:21:06,148 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-district: c01036cf-69f0-4589-a53f-c967eb829736
2024-04-22 23:21:06,149 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: ghmc-area: 50db0180-d74c-4009-8812-aad530beef99
2024-04-22 23:21:06,150 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmda-area: a0f921c0-73c3-41db-980a-c86d1bc3906b
2024-04-22 23:21:06,150 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmda: 7c057b91-d6fb-4058-af7e-6d3104e1eed1
2024-04-22 23:21:06,151 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: ashuelot-river: 85f00f66-e471-4e29-90f1-a11634734dc9
2024-04-22 23:21:06,152 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "hmda", "to_node": "hmwssb", "category": "manages"}
{"from_node": "hyderabad-police-area", "to_node": "hyderabad-district", "category": "part_of"}
{"from_node": "hyderabad-district", "to_node": "ghmc-area", "category": "part_of"}
{"from_node": "ghmc-area", "to_node": "hmda-area", "category": "part_of"}
{"from_node": "hmda", "to_node": "hmda-area", "category": "manages"}
{"semantic_id": "hmwssb", "category": "organization", "attributes": {"name": "Hyderabad Metropolitan Water Supply and Sewerage Board", "description": "bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB) that HMDA manages the administration of"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-police-area", "category": "location", "attributes": {"name": "Hyderabad Police area", "size": "smallest"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-district", "category": "location", "attributes": {"name": "Hyderabad district", "size": "larger than Hyderabad Police area"}, "paragraph_idx": 6}
{"semantic_id": "ghmc-area", "category": "location", "attributes": {"name": "GHMC area", "alias": "Hyderabad city", "size": "larger than Hyderabad district"}, "paragraph_idx": 6}
{"semantic_id": "hmda-area", "category": "location", "attributes": {"name": "area under the Hyderabad Metropolitan Development Authority (HMDA)", "size": "largest", "description": "covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city"}, "paragraph_idx": 6}
{"semantic_id": "hmda", "category": "organization", "attributes": {"name": "Hyderabad Metropolitan Development Authority (HMDA)", "type": "apolitical urban planning agency"}, "paragraph_idx": 6}
{"semantic_id": "ashuelot-river", "category": "location", "attributes": {"name": "Ashuelot River", "type": "tributary", "of": "Connecticut River"}, "paragraph_idx": 5}
2024-04-22 23:21:12,951 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 9313d4b8-6d2e-4032-b214-b321fe5da7d3: {'nodes': {'semantic_id': 'san-juan-city', 'category': 'location', 'attributes': {'name': 'San Juan city', 'size': '76.93 square miles (199.2 km²)', 'water_area': '29.11 square miles (75.4 km²) (37.83%)'}, 'paragraph_idx': 7}}
2024-04-22 23:21:12,952 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 72913ab5-4552-42e1-8604-7e016738c169: {'nodes': {'semantic_id': 'san-juan-bay', 'category': 'location', 'attributes': {'name': 'San Juan Bay', 'type': 'water body'}, 'paragraph_idx': 7}}
2024-04-22 23:21:12,952 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 278b8adb-3088-4b06-9348-5cc2c9bb3fc1: {'nodes': {'semantic_id': 'condado-lagoon', 'category': 'location', 'attributes': {'name': 'Condado Lagoon', 'type': 'water body'}, 'paragraph_idx': 7}}
2024-04-22 23:21:12,953 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 9814602e-d7e0-480f-b86e-4b0670e8bdf0: {'nodes': {'semantic_id': 'san-jose-lagoon', 'category': 'location', 'attributes': {'name': 'San José Lagoon', 'type': 'water body'}, 'paragraph_idx': 7}}
2024-04-22 23:21:12,953 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 17ecb67f-e311-489c-9df7-97d8e689ec3e: {'edges': {'from_node': UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'), 'to_node': UUID('72913ab5-4552-42e1-8604-7e016738c169'), 'category': 'contains'}}
2024-04-22 23:21:12,953 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 03b81c23-907d-4f86-b12b-3fc300f8cecf: {'edges': {'from_node': UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'), 'to_node': UUID('278b8adb-3088-4b06-9348-5cc2c9bb3fc1'), 'category': 'contains'}}
2024-04-22 23:21:12,954 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 832b969e-08c7-4ad2-9f21-29e78f18f246: {'edges': {'from_node': UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'), 'to_node': UUID('9814602e-d7e0-480f-b86e-4b0670e8bdf0'), 'category': 'contains'}}
2024-04-22 23:21:12,956 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:12,956 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 9814602e-d7e0-480f-b86e-4b0670e8bdf0): 832b969e-08c7-4ad2-9f21-29e78f18f246
2024-04-22 23:21:12,957 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 278b8adb-3088-4b06-9348-5cc2c9bb3fc1): 03b81c23-907d-4f86-b12b-3fc300f8cecf
2024-04-22 23:21:12,958 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 72913ab5-4552-42e1-8604-7e016738c169): 17ecb67f-e311-489c-9df7-97d8e689ec3e
2024-04-22 23:21:12,958 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-jose-lagoon: 9814602e-d7e0-480f-b86e-4b0670e8bdf0
2024-04-22 23:21:12,959 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: condado-lagoon: 278b8adb-3088-4b06-9348-5cc2c9bb3fc1
2024-04-22 23:21:12,959 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-juan-bay: 72913ab5-4552-42e1-8604-7e016738c169
2024-04-22 23:21:12,960 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-juan-city: 9313d4b8-6d2e-4032-b214-b321fe5da7d3
2024-04-22 23:21:12,961 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c057b91-d6fb-4058-af7e-6d3104e1eed1, 85d71a58-5af2-438e-9f73-72c8363a57f8): e5d4bd92-ab18-4a9a-8479-6f840f818812
2024-04-22 23:21:12,962 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b325368a-939a-4b13-bc90-bb48ffa68859, c01036cf-69f0-4589-a53f-c967eb829736): bbd34f51-b77f-4d25-854c-52b0383ffc45
2024-04-22 23:21:12,962 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (c01036cf-69f0-4589-a53f-c967eb829736, 50db0180-d74c-4009-8812-aad530beef99): 9ff064a2-672f-4964-81c3-70316ecae3ec
2024-04-22 23:21:12,963 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (50db0180-d74c-4009-8812-aad530beef99, a0f921c0-73c3-41db-980a-c86d1bc3906b): 0dd83ca3-69c1-473a-ba60-6afc5fcf0acf
2024-04-22 23:21:12,964 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7c057b91-d6fb-4058-af7e-6d3104e1eed1, a0f921c0-73c3-41db-980a-c86d1bc3906b): e11ba81b-0525-4e60-b433-2f0f4438784a
2024-04-22 23:21:12,964 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hmwssb: 85d71a58-5af2-438e-9f73-72c8363a57f8
2024-04-22 23:21:12,965 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-police-area: b325368a-939a-4b13-bc90-bb48ffa68859
2024-04-22 23:21:12,966 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: hyderabad-district: c01036cf-69f0-4589-a53f-c967eb829736
2024-04-22 23:21:12,967 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "san-juan-city", "to_node": "san-jose-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "condado-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "san-juan-bay", "category": "contains"}
{"semantic_id": "san-jose-lagoon", "category": "location", "attributes": {"name": "San Jos\u00e9 Lagoon", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "condado-lagoon", "category": "location", "attributes": {"name": "Condado Lagoon", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "san-juan-bay", "category": "location", "attributes": {"name": "San Juan Bay", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "san-juan-city", "category": "location", "attributes": {"name": "San Juan city", "size": "76.93 square miles (199.2 km\u00b2)", "water_area": "29.11 square miles (75.4 km\u00b2) (37.83%)"}, "paragraph_idx": 7}
{"from_node": "hmda", "to_node": "hmwssb", "category": "manages"}
{"from_node": "hyderabad-police-area", "to_node": "hyderabad-district", "category": "part_of"}
{"from_node": "hyderabad-district", "to_node": "ghmc-area", "category": "part_of"}
{"from_node": "ghmc-area", "to_node": "hmda-area", "category": "part_of"}
{"from_node": "hmda", "to_node": "hmda-area", "category": "manages"}
{"semantic_id": "hmwssb", "category": "organization", "attributes": {"name": "Hyderabad Metropolitan Water Supply and Sewerage Board", "description": "bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB) that HMDA manages the administration of"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-police-area", "category": "location", "attributes": {"name": "Hyderabad Police area", "size": "smallest"}, "paragraph_idx": 6}
{"semantic_id": "hyderabad-district", "category": "location", "attributes": {"name": "Hyderabad district", "size": "larger than Hyderabad Police area"}, "paragraph_idx": 6}
2024-04-22 23:21:16,876 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 37176eec-a55d-44e4-a6cb-8bfbfee933fa: {'nodes': {'semantic_id': 'local-associations', 'category': 'organization', 'attributes': {'type': 'amalgamation of one or more Landkreise with one or more Kreisfreie Städte', 'purpose': 'to implement simplification of administration at the district level'}, 'paragraph_idx': 8}}
2024-04-22 23:21:16,877 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6: {'nodes': {'semantic_id': 'landkreis', 'category': 'location', 'attributes': {'type': 'administrative district'}, 'paragraph_idx': 8}}
2024-04-22 23:21:16,878 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 5447372d-faa0-4578-a285-d28ccd556385: {'nodes': {'semantic_id': 'kreisfreie-stadt', 'category': 'location', 'attributes': {'type': 'district-free city or town'}, 'paragraph_idx': 8}}
2024-04-22 23:21:16,878 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: a0c2f429-8515-4075-b051-af1985e1ac5c: {'nodes': {'semantic_id': 'district-level', 'category': 'location', 'attributes': {'type': 'administrative level'}, 'paragraph_idx': 8}}
2024-04-22 23:21:16,879 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: b23a8544-765b-4713-a2a0-01c3f38fed6a: {'nodes': {'semantic_id': 'urban-hinterland', 'category': 'location', 'attributes': {'type': 'area surrounding a district-free city or town'}, 'paragraph_idx': 8}}
2024-04-22 23:21:16,879 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 6949c464-7c2f-4b0f-962b-3bce37d17ddc: {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'), 'to_node': UUID('0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6'), 'category': 'contains'}}
2024-04-22 23:21:16,880 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5: {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'), 'to_node': UUID('5447372d-faa0-4578-a285-d28ccd556385'), 'category': 'contains'}}
2024-04-22 23:21:16,881 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: ff2e2d26-2cd5-4257-abf8-c10e7df94c02: {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'), 'to_node': UUID('a0c2f429-8515-4075-b051-af1985e1ac5c'), 'category': 'operates_at'}}
2024-04-22 23:21:16,881 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 50b36c1c-0ca2-4111-a97e-258fdfb02e39: {'edges': {'from_node': UUID('5447372d-faa0-4578-a285-d28ccd556385'), 'to_node': UUID('b23a8544-765b-4713-a2a0-01c3f38fed6a'), 'category': 'associated_with'}}
2024-04-22 23:21:16,882 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:16,883 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (5447372d-faa0-4578-a285-d28ccd556385, b23a8544-765b-4713-a2a0-01c3f38fed6a): 50b36c1c-0ca2-4111-a97e-258fdfb02e39
2024-04-22 23:21:16,883 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:16,884 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:16,885 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:16,885 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: urban-hinterland: b23a8544-765b-4713-a2a0-01c3f38fed6a
2024-04-22 23:21:16,886 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: district-level: a0c2f429-8515-4075-b051-af1985e1ac5c
2024-04-22 23:21:16,886 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: kreisfreie-stadt: 5447372d-faa0-4578-a285-d28ccd556385
2024-04-22 23:21:16,887 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: landkreis: 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6
2024-04-22 23:21:16,887 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: local-associations: 37176eec-a55d-44e4-a6cb-8bfbfee933fa
2024-04-22 23:21:16,888 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 9814602e-d7e0-480f-b86e-4b0670e8bdf0): 832b969e-08c7-4ad2-9f21-29e78f18f246
2024-04-22 23:21:16,889 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 278b8adb-3088-4b06-9348-5cc2c9bb3fc1): 03b81c23-907d-4f86-b12b-3fc300f8cecf
2024-04-22 23:21:16,889 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 72913ab5-4552-42e1-8604-7e016738c169): 17ecb67f-e311-489c-9df7-97d8e689ec3e
2024-04-22 23:21:16,890 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-jose-lagoon: 9814602e-d7e0-480f-b86e-4b0670e8bdf0
2024-04-22 23:21:16,890 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: condado-lagoon: 278b8adb-3088-4b06-9348-5cc2c9bb3fc1
2024-04-22 23:21:16,891 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-juan-bay: 72913ab5-4552-42e1-8604-7e016738c169
2024-04-22 23:21:16,892 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "kreisfreie-stadt", "to_node": "urban-hinterland", "category": "associated_with"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"semantic_id": "urban-hinterland", "category": "location", "attributes": {"type": "area surrounding a district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "district-level", "category": "location", "attributes": {"type": "administrative level"}, "paragraph_idx": 8}
{"semantic_id": "kreisfreie-stadt", "category": "location", "attributes": {"type": "district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "landkreis", "category": "location", "attributes": {"type": "administrative district"}, "paragraph_idx": 8}
{"semantic_id": "local-associations", "category": "organization", "attributes": {"type": "amalgamation of one or more Landkreise with one or more Kreisfreie St\u00e4dte", "purpose": "to implement simplification of administration at the district level"}, "paragraph_idx": 8}
{"from_node": "san-juan-city", "to_node": "san-jose-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "condado-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "san-juan-bay", "category": "contains"}
{"semantic_id": "san-jose-lagoon", "category": "location", "attributes": {"name": "San Jos\u00e9 Lagoon", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "condado-lagoon", "category": "location", "attributes": {"name": "Condado Lagoon", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "san-juan-bay", "category": "location", "attributes": {"name": "San Juan Bay", "type": "water body"}, "paragraph_idx": 7}
2024-04-22 23:21:20,343 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: b23a8544-765b-4713-a2a0-01c3f38fed6a: {'nodes': {'semantic_id': 'urban-hinterland', 'category': 'location', 'attributes': {'type': 'area surrounding a district-free city or town'}, 'paragraph_idx': 8}}
2024-04-22 23:21:20,343 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: a0c2f429-8515-4075-b051-af1985e1ac5c: {'nodes': {'semantic_id': 'district-level', 'category': 'location', 'attributes': {'type': 'administrative level'}, 'paragraph_idx': 8}}
2024-04-22 23:21:20,344 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 5447372d-faa0-4578-a285-d28ccd556385: {'nodes': {'semantic_id': 'kreisfreie-stadt', 'category': 'location', 'attributes': {'type': 'district-free city or town'}, 'paragraph_idx': 8}}
2024-04-22 23:21:20,344 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 37176eec-a55d-44e4-a6cb-8bfbfee933fa: {'nodes': {'semantic_id': 'local-associations', 'category': 'organization', 'attributes': {'type': 'amalgamation of one or more Landkreise with one or more Kreisfreie Städte', 'purpose': 'to implement simplification of administration at the district level'}, 'paragraph_idx': 8}}
2024-04-22 23:21:20,344 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 50b36c1c-0ca2-4111-a97e-258fdfb02e39: {'edges': {'from_node': UUID('5447372d-faa0-4578-a285-d28ccd556385'), 'to_node': UUID('b23a8544-765b-4713-a2a0-01c3f38fed6a'), 'category': 'associated_with'}}
2024-04-22 23:21:20,344 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: ff2e2d26-2cd5-4257-abf8-c10e7df94c02: {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'), 'to_node': UUID('a0c2f429-8515-4075-b051-af1985e1ac5c'), 'category': 'operates_at'}}
2024-04-22 23:21:20,345 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5: {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'), 'to_node': UUID('5447372d-faa0-4578-a285-d28ccd556385'), 'category': 'contains'}}
2024-04-22 23:21:20,346 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 6949c464-7c2f-4b0f-962b-3bce37d17ddc: {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'), 'to_node': UUID('0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6'), 'category': 'contains'}}
2024-04-22 23:21:20,347 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:20,348 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:20,349 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:20,349 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:20,350 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (5447372d-faa0-4578-a285-d28ccd556385, b23a8544-765b-4713-a2a0-01c3f38fed6a): 50b36c1c-0ca2-4111-a97e-258fdfb02e39
2024-04-22 23:21:20,350 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: local-associations: 37176eec-a55d-44e4-a6cb-8bfbfee933fa
2024-04-22 23:21:20,351 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: kreisfreie-stadt: 5447372d-faa0-4578-a285-d28ccd556385
2024-04-22 23:21:20,352 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: district-level: a0c2f429-8515-4075-b051-af1985e1ac5c
2024-04-22 23:21:20,352 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: urban-hinterland: b23a8544-765b-4713-a2a0-01c3f38fed6a
2024-04-22 23:21:20,353 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: landkreis: 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6
2024-04-22 23:21:20,353 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 9814602e-d7e0-480f-b86e-4b0670e8bdf0): 832b969e-08c7-4ad2-9f21-29e78f18f246
2024-04-22 23:21:20,354 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 278b8adb-3088-4b06-9348-5cc2c9bb3fc1): 03b81c23-907d-4f86-b12b-3fc300f8cecf
2024-04-22 23:21:20,354 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 72913ab5-4552-42e1-8604-7e016738c169): 17ecb67f-e311-489c-9df7-97d8e689ec3e
2024-04-22 23:21:20,355 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-jose-lagoon: 9814602e-d7e0-480f-b86e-4b0670e8bdf0
2024-04-22 23:21:20,355 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: condado-lagoon: 278b8adb-3088-4b06-9348-5cc2c9bb3fc1
2024-04-22 23:21:20,356 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-juan-bay: 72913ab5-4552-42e1-8604-7e016738c169
2024-04-22 23:21:20,357 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
{"from_node": "kreisfreie-stadt", "to_node": "urban-hinterland", "category": "associated_with"}
{"semantic_id": "local-associations", "category": "organization", "attributes": {"type": "amalgamation of one or more Landkreise with one or more Kreisfreie St\u00e4dte", "purpose": "to implement simplification of administration at the district level"}, "paragraph_idx": 8}
{"semantic_id": "kreisfreie-stadt", "category": "location", "attributes": {"type": "district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "district-level", "category": "location", "attributes": {"type": "administrative level"}, "paragraph_idx": 8}
{"semantic_id": "urban-hinterland", "category": "location", "attributes": {"type": "area surrounding a district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "landkreis", "category": "location", "attributes": {"type": "administrative district"}, "paragraph_idx": 8}
{"from_node": "san-juan-city", "to_node": "san-jose-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "condado-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "san-juan-bay", "category": "contains"}
{"semantic_id": "san-jose-lagoon", "category": "location", "attributes": {"name": "San Jos\u00e9 Lagoon", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "condado-lagoon", "category": "location", "attributes": {"name": "Condado Lagoon", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "san-juan-bay", "category": "location", "attributes": {"name": "San Juan Bay", "type": "water body"}, "paragraph_idx": 7}
2024-04-22 23:21:21,998 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6: {'nodes': {'semantic_id': 'norfolk-island', 'category': 'location', 'attributes': {'name': 'Norfolk Island', 'type': 'island', 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'location': 'South Pacific Ocean, east of the Australian mainland'}, 'paragraph_idx': 9}}
2024-04-22 23:21:21,998 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:21,999 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: norfolk-island: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6
2024-04-22 23:21:21,999 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:22,000 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:22,000 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:22,001 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (5447372d-faa0-4578-a285-d28ccd556385, b23a8544-765b-4713-a2a0-01c3f38fed6a): 50b36c1c-0ca2-4111-a97e-258fdfb02e39
2024-04-22 23:21:22,001 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: local-associations: 37176eec-a55d-44e4-a6cb-8bfbfee933fa
2024-04-22 23:21:22,002 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: kreisfreie-stadt: 5447372d-faa0-4578-a285-d28ccd556385
2024-04-22 23:21:22,002 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: district-level: a0c2f429-8515-4075-b051-af1985e1ac5c
2024-04-22 23:21:22,003 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: urban-hinterland: b23a8544-765b-4713-a2a0-01c3f38fed6a
2024-04-22 23:21:22,004 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: landkreis: 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6
2024-04-22 23:21:22,004 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 9814602e-d7e0-480f-b86e-4b0670e8bdf0): 832b969e-08c7-4ad2-9f21-29e78f18f246
2024-04-22 23:21:22,005 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 278b8adb-3088-4b06-9348-5cc2c9bb3fc1): 03b81c23-907d-4f86-b12b-3fc300f8cecf
2024-04-22 23:21:22,005 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 72913ab5-4552-42e1-8604-7e016738c169): 17ecb67f-e311-489c-9df7-97d8e689ec3e
2024-04-22 23:21:22,006 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-jose-lagoon: 9814602e-d7e0-480f-b86e-4b0670e8bdf0
2024-04-22 23:21:22,006 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: condado-lagoon: 278b8adb-3088-4b06-9348-5cc2c9bb3fc1
2024-04-22 23:21:22,007 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "norfolk-island", "category": "location", "attributes": {"name": "Norfolk Island", "type": "island", "coordinates": {"latitude": -29.033, "longitude": 167.95}, "location": "South Pacific Ocean, east of the Australian mainland"}, "paragraph_idx": 9}
{"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
{"from_node": "kreisfreie-stadt", "to_node": "urban-hinterland", "category": "associated_with"}
{"semantic_id": "local-associations", "category": "organization", "attributes": {"type": "amalgamation of one or more Landkreise with one or more Kreisfreie St\u00e4dte", "purpose": "to implement simplification of administration at the district level"}, "paragraph_idx": 8}
{"semantic_id": "kreisfreie-stadt", "category": "location", "attributes": {"type": "district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "district-level", "category": "location", "attributes": {"type": "administrative level"}, "paragraph_idx": 8}
{"semantic_id": "urban-hinterland", "category": "location", "attributes": {"type": "area surrounding a district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "landkreis", "category": "location", "attributes": {"type": "administrative district"}, "paragraph_idx": 8}
{"from_node": "san-juan-city", "to_node": "san-jose-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "condado-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "san-juan-bay", "category": "contains"}
{"semantic_id": "san-jose-lagoon", "category": "location", "attributes": {"name": "San Jos\u00e9 Lagoon", "type": "water body"}, "paragraph_idx": 7}
{"semantic_id": "condado-lagoon", "category": "location", "attributes": {"name": "Condado Lagoon", "type": "water body"}, "paragraph_idx": 7}
2024-04-22 23:21:23,730 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6: {'nodes': {'semantic_id': 'norfolk-island', 'category': 'location', 'attributes': {'name': 'Norfolk Island', 'type': 'island', 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'location': 'South Pacific Ocean, east of the Australian mainland', 'area': 34.6, 'area_unit': 'square kilometres', 'coastline': 32, 'coastline_unit': 'km', 'highest_point': 'Mount Bates'}, 'paragraph_idx': 9}}
2024-04-22 23:21:23,730 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:23,731 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: norfolk-island: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6
2024-04-22 23:21:23,731 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:23,732 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:23,732 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:23,733 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (5447372d-faa0-4578-a285-d28ccd556385, b23a8544-765b-4713-a2a0-01c3f38fed6a): 50b36c1c-0ca2-4111-a97e-258fdfb02e39
2024-04-22 23:21:23,733 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: local-associations: 37176eec-a55d-44e4-a6cb-8bfbfee933fa
2024-04-22 23:21:23,734 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: kreisfreie-stadt: 5447372d-faa0-4578-a285-d28ccd556385
2024-04-22 23:21:23,734 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: district-level: a0c2f429-8515-4075-b051-af1985e1ac5c
2024-04-22 23:21:23,735 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: urban-hinterland: b23a8544-765b-4713-a2a0-01c3f38fed6a
2024-04-22 23:21:23,736 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: landkreis: 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6
2024-04-22 23:21:23,736 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 9814602e-d7e0-480f-b86e-4b0670e8bdf0): 832b969e-08c7-4ad2-9f21-29e78f18f246
2024-04-22 23:21:23,737 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 278b8adb-3088-4b06-9348-5cc2c9bb3fc1): 03b81c23-907d-4f86-b12b-3fc300f8cecf
2024-04-22 23:21:23,738 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (9313d4b8-6d2e-4032-b214-b321fe5da7d3, 72913ab5-4552-42e1-8604-7e016738c169): 17ecb67f-e311-489c-9df7-97d8e689ec3e
2024-04-22 23:21:23,738 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: san-jose-lagoon: 9814602e-d7e0-480f-b86e-4b0670e8bdf0
2024-04-22 23:21:23,739 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "norfolk-island", "category": "location", "attributes": {"name": "Norfolk Island", "type": "island", "coordinates": {"latitude": -29.033, "longitude": 167.95}, "location": "South Pacific Ocean, east of the Australian mainland", "area": 34.6, "area_unit": "square kilometres", "coastline": 32, "coastline_unit": "km", "highest_point": "Mount Bates"}, "paragraph_idx": 9}
{"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
{"from_node": "kreisfreie-stadt", "to_node": "urban-hinterland", "category": "associated_with"}
{"semantic_id": "local-associations", "category": "organization", "attributes": {"type": "amalgamation of one or more Landkreise with one or more Kreisfreie St\u00e4dte", "purpose": "to implement simplification of administration at the district level"}, "paragraph_idx": 8}
{"semantic_id": "kreisfreie-stadt", "category": "location", "attributes": {"type": "district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "district-level", "category": "location", "attributes": {"type": "administrative level"}, "paragraph_idx": 8}
{"semantic_id": "urban-hinterland", "category": "location", "attributes": {"type": "area surrounding a district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "landkreis", "category": "location", "attributes": {"type": "administrative district"}, "paragraph_idx": 8}
{"from_node": "san-juan-city", "to_node": "san-jose-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "condado-lagoon", "category": "contains"}
{"from_node": "san-juan-city", "to_node": "san-juan-bay", "category": "contains"}
{"semantic_id": "san-jose-lagoon", "category": "location", "attributes": {"name": "San Jos\u00e9 Lagoon", "type": "water body"}, "paragraph_idx": 7}
2024-04-22 23:21:27,180 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6: {'nodes': {'semantic_id': 'norfolk-island', 'category': 'location', 'attributes': {'name': 'Norfolk Island', 'type': 'island', 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'location': 'South Pacific Ocean, east of the Australian mainland', 'area': 34.6, 'area_unit': 'square kilometres', 'coastline': 32, 'coastline_unit': 'km', 'highest_point': 'Mount Bates'}, 'paragraph_idx': 9}}
2024-04-22 23:21:27,181 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba: {'nodes': {'semantic_id': 'mount-bates', 'category': 'location', 'attributes': {'name': 'Mount Bates', 'elevation': 319, 'elevation_unit': 'metres', 'location': 'northwest quadrant of Norfolk Island'}, 'paragraph_idx': 9}}
2024-04-22 23:21:27,182 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb: {'nodes': {'semantic_id': 'phillip-island', 'category': 'location', 'attributes': {'name': 'Phillip Island', 'type': 'island', 'location': 'territory of Norfolk Island', 'size': 'second largest island'}, 'paragraph_idx': 9}}
2024-04-22 23:21:27,183 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: e698d0e2-1709-4262-97d6-196bd98cc2d3: {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'), 'to_node': UUID('19b0c9e8-39b6-4dde-b822-d032cf5e63ba'), 'category': 'contains'}}
2024-04-22 23:21:27,183 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 04e22c46-04cf-4f73-a4f1-39f7fc998ec3: {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'), 'to_node': UUID('a7bf1182-a4f6-4a73-89ce-0a00be00e2cb'), 'category': 'contains'}}
2024-04-22 23:21:27,184 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:27,185 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, a7bf1182-a4f6-4a73-89ce-0a00be00e2cb): 04e22c46-04cf-4f73-a4f1-39f7fc998ec3
2024-04-22 23:21:27,186 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, 19b0c9e8-39b6-4dde-b822-d032cf5e63ba): e698d0e2-1709-4262-97d6-196bd98cc2d3
2024-04-22 23:21:27,186 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb
2024-04-22 23:21:27,187 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: mount-bates: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba
2024-04-22 23:21:27,188 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: norfolk-island: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6
2024-04-22 23:21:27,188 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:27,189 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:27,189 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:27,190 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (5447372d-faa0-4578-a285-d28ccd556385, b23a8544-765b-4713-a2a0-01c3f38fed6a): 50b36c1c-0ca2-4111-a97e-258fdfb02e39
2024-04-22 23:21:27,190 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: local-associations: 37176eec-a55d-44e4-a6cb-8bfbfee933fa
2024-04-22 23:21:27,191 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: kreisfreie-stadt: 5447372d-faa0-4578-a285-d28ccd556385
2024-04-22 23:21:27,191 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: district-level: a0c2f429-8515-4075-b051-af1985e1ac5c
2024-04-22 23:21:27,192 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: urban-hinterland: b23a8544-765b-4713-a2a0-01c3f38fed6a
2024-04-22 23:21:27,192 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "norfolk-island", "to_node": "phillip-island", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "mount-bates", "category": "contains"}
{"semantic_id": "phillip-island", "category": "location", "attributes": {"name": "Phillip Island", "type": "island", "location": "territory of Norfolk Island", "size": "second largest island"}, "paragraph_idx": 9}
{"semantic_id": "mount-bates", "category": "location", "attributes": {"name": "Mount Bates", "elevation": 319, "elevation_unit": "metres", "location": "northwest quadrant of Norfolk Island"}, "paragraph_idx": 9}
{"semantic_id": "norfolk-island", "category": "location", "attributes": {"name": "Norfolk Island", "type": "island", "coordinates": {"latitude": -29.033, "longitude": 167.95}, "location": "South Pacific Ocean, east of the Australian mainland", "area": 34.6, "area_unit": "square kilometres", "coastline": 32, "coastline_unit": "km", "highest_point": "Mount Bates"}, "paragraph_idx": 9}
{"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
{"from_node": "kreisfreie-stadt", "to_node": "urban-hinterland", "category": "associated_with"}
{"semantic_id": "local-associations", "category": "organization", "attributes": {"type": "amalgamation of one or more Landkreise with one or more Kreisfreie St\u00e4dte", "purpose": "to implement simplification of administration at the district level"}, "paragraph_idx": 8}
{"semantic_id": "kreisfreie-stadt", "category": "location", "attributes": {"type": "district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "district-level", "category": "location", "attributes": {"type": "administrative level"}, "paragraph_idx": 8}
{"semantic_id": "urban-hinterland", "category": "location", "attributes": {"type": "area surrounding a district-free city or town"}, "paragraph_idx": 8}
2024-04-22 23:21:30,391 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6: {'nodes': {'semantic_id': 'norfolk-island', 'category': 'location', 'attributes': {'name': 'Norfolk Island', 'type': 'island', 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'location': 'South Pacific Ocean, east of the Australian mainland', 'area': 34.6, 'area_unit': 'square kilometres', 'coastline': 32, 'coastline_unit': 'km', 'highest_point': 'Mount Bates'}, 'paragraph_idx': 9}}
2024-04-22 23:21:30,392 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb: {'nodes': {'semantic_id': 'phillip-island', 'category': 'location', 'attributes': {'name': 'Phillip Island', 'type': 'island', 'location': 'territory of Norfolk Island', 'size': 'second largest island'}, 'paragraph_idx': 9}}
2024-04-22 23:21:30,392 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba: {'nodes': {'semantic_id': 'mount-bates', 'category': 'location', 'attributes': {'name': 'Mount Bates', 'elevation': 319, 'elevation_unit': 'metres', 'location': 'northwest quadrant of Norfolk Island'}, 'paragraph_idx': 9}}
2024-04-22 23:21:30,393 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 04e22c46-04cf-4f73-a4f1-39f7fc998ec3: {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'), 'to_node': UUID('a7bf1182-a4f6-4a73-89ce-0a00be00e2cb'), 'category': 'contains'}}
2024-04-22 23:21:30,393 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: e698d0e2-1709-4262-97d6-196bd98cc2d3: {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'), 'to_node': UUID('19b0c9e8-39b6-4dde-b822-d032cf5e63ba'), 'category': 'contains'}}
2024-04-22 23:21:30,393 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:30,394 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, 19b0c9e8-39b6-4dde-b822-d032cf5e63ba): e698d0e2-1709-4262-97d6-196bd98cc2d3
2024-04-22 23:21:30,395 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, a7bf1182-a4f6-4a73-89ce-0a00be00e2cb): 04e22c46-04cf-4f73-a4f1-39f7fc998ec3
2024-04-22 23:21:30,395 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: mount-bates: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba
2024-04-22 23:21:30,396 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb
2024-04-22 23:21:30,396 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: norfolk-island: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6
2024-04-22 23:21:30,396 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:30,397 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:30,398 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:30,398 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (5447372d-faa0-4578-a285-d28ccd556385, b23a8544-765b-4713-a2a0-01c3f38fed6a): 50b36c1c-0ca2-4111-a97e-258fdfb02e39
2024-04-22 23:21:30,399 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: local-associations: 37176eec-a55d-44e4-a6cb-8bfbfee933fa
2024-04-22 23:21:30,399 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: kreisfreie-stadt: 5447372d-faa0-4578-a285-d28ccd556385
2024-04-22 23:21:30,400 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: district-level: a0c2f429-8515-4075-b051-af1985e1ac5c
2024-04-22 23:21:30,401 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: urban-hinterland: b23a8544-765b-4713-a2a0-01c3f38fed6a
2024-04-22 23:21:30,401 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "norfolk-island", "to_node": "mount-bates", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "phillip-island", "category": "contains"}
{"semantic_id": "mount-bates", "category": "location", "attributes": {"name": "Mount Bates", "elevation": 319, "elevation_unit": "metres", "location": "northwest quadrant of Norfolk Island"}, "paragraph_idx": 9}
{"semantic_id": "phillip-island", "category": "location", "attributes": {"name": "Phillip Island", "type": "island", "location": "territory of Norfolk Island", "size": "second largest island"}, "paragraph_idx": 9}
{"semantic_id": "norfolk-island", "category": "location", "attributes": {"name": "Norfolk Island", "type": "island", "coordinates": {"latitude": -29.033, "longitude": 167.95}, "location": "South Pacific Ocean, east of the Australian mainland", "area": 34.6, "area_unit": "square kilometres", "coastline": 32, "coastline_unit": "km", "highest_point": "Mount Bates"}, "paragraph_idx": 9}
{"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
{"from_node": "kreisfreie-stadt", "to_node": "urban-hinterland", "category": "associated_with"}
{"semantic_id": "local-associations", "category": "organization", "attributes": {"type": "amalgamation of one or more Landkreise with one or more Kreisfreie St\u00e4dte", "purpose": "to implement simplification of administration at the district level"}, "paragraph_idx": 8}
{"semantic_id": "kreisfreie-stadt", "category": "location", "attributes": {"type": "district-free city or town"}, "paragraph_idx": 8}
{"semantic_id": "district-level", "category": "location", "attributes": {"type": "administrative level"}, "paragraph_idx": 8}
{"semantic_id": "urban-hinterland", "category": "location", "attributes": {"type": "area surrounding a district-free city or town"}, "paragraph_idx": 8}
2024-04-22 23:21:35,818 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6: {'nodes': {'semantic_id': 'norfolk-island', 'category': 'location', 'attributes': {'name': 'Norfolk Island', 'type': 'island', 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'location': 'South Pacific Ocean, east of the Australian mainland', 'area': 34.6, 'area_unit': 'square kilometres', 'coastline': 32, 'coastline_unit': 'km', 'highest_point': 'Mount Bates'}, 'paragraph_idx': 9}}
2024-04-22 23:21:35,819 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb: {'nodes': {'semantic_id': 'phillip-island', 'category': 'location', 'attributes': {'name': 'Phillip Island', 'type': 'island', 'location': 'territory of Norfolk Island', 'size': 'second largest island'}, 'paragraph_idx': 9}}
2024-04-22 23:21:35,819 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba: {'nodes': {'semantic_id': 'mount-bates', 'category': 'location', 'attributes': {'name': 'Mount Bates', 'elevation': 319, 'elevation_unit': 'metres', 'location': 'northwest quadrant of Norfolk Island'}, 'paragraph_idx': 9}}
2024-04-22 23:21:35,820 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: b21b44eb-f998-495d-9eb4-df1057959cf3: {'nodes': {'semantic_id': 'phillip-island-distance', 'category': 'distance', 'attributes': {'distance': 7, 'distance_unit': 'kilometres', 'direction': 'south', 'reference_location': 'main island'}, 'paragraph_idx': 9}}
2024-04-22 23:21:35,820 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: e698d0e2-1709-4262-97d6-196bd98cc2d3: {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'), 'to_node': UUID('19b0c9e8-39b6-4dde-b822-d032cf5e63ba'), 'category': 'contains'}}
2024-04-22 23:21:35,820 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 04e22c46-04cf-4f73-a4f1-39f7fc998ec3: {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'), 'to_node': UUID('a7bf1182-a4f6-4a73-89ce-0a00be00e2cb'), 'category': 'contains'}}
2024-04-22 23:21:35,821 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: cee43dbe-2d89-44ed-a1fa-0eafa878167a: {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'), 'to_node': UUID('b21b44eb-f998-495d-9eb4-df1057959cf3'), 'category': 'contains'}}
2024-04-22 23:21:35,822 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:35,823 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, b21b44eb-f998-495d-9eb4-df1057959cf3): cee43dbe-2d89-44ed-a1fa-0eafa878167a
2024-04-22 23:21:35,823 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, a7bf1182-a4f6-4a73-89ce-0a00be00e2cb): 04e22c46-04cf-4f73-a4f1-39f7fc998ec3
2024-04-22 23:21:35,824 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, 19b0c9e8-39b6-4dde-b822-d032cf5e63ba): e698d0e2-1709-4262-97d6-196bd98cc2d3
2024-04-22 23:21:35,825 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island-distance: b21b44eb-f998-495d-9eb4-df1057959cf3
2024-04-22 23:21:35,825 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: mount-bates: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba
2024-04-22 23:21:35,826 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb
2024-04-22 23:21:35,826 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: norfolk-island: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6
2024-04-22 23:21:35,827 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:35,828 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:35,828 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:35,829 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (5447372d-faa0-4578-a285-d28ccd556385, b23a8544-765b-4713-a2a0-01c3f38fed6a): 50b36c1c-0ca2-4111-a97e-258fdfb02e39
2024-04-22 23:21:35,829 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: local-associations: 37176eec-a55d-44e4-a6cb-8bfbfee933fa
2024-04-22 23:21:35,830 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: kreisfreie-stadt: 5447372d-faa0-4578-a285-d28ccd556385
2024-04-22 23:21:35,831 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "norfolk-island", "to_node": "phillip-island-distance", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "phillip-island", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "mount-bates", "category": "contains"}
{"semantic_id": "phillip-island-distance", "category": "distance", "attributes": {"distance": 7, "distance_unit": "kilometres", "direction": "south", "reference_location": "main island"}, "paragraph_idx": 9}
{"semantic_id": "mount-bates", "category": "location", "attributes": {"name": "Mount Bates", "elevation": 319, "elevation_unit": "metres", "location": "northwest quadrant of Norfolk Island"}, "paragraph_idx": 9}
{"semantic_id": "phillip-island", "category": "location", "attributes": {"name": "Phillip Island", "type": "island", "location": "territory of Norfolk Island", "size": "second largest island"}, "paragraph_idx": 9}
{"semantic_id": "norfolk-island", "category": "location", "attributes": {"name": "Norfolk Island", "type": "island", "coordinates": {"latitude": -29.033, "longitude": 167.95}, "location": "South Pacific Ocean, east of the Australian mainland", "area": 34.6, "area_unit": "square kilometres", "coastline": 32, "coastline_unit": "km", "highest_point": "Mount Bates"}, "paragraph_idx": 9}
{"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
{"from_node": "kreisfreie-stadt", "to_node": "urban-hinterland", "category": "associated_with"}
{"semantic_id": "local-associations", "category": "organization", "attributes": {"type": "amalgamation of one or more Landkreise with one or more Kreisfreie St\u00e4dte", "purpose": "to implement simplification of administration at the district level"}, "paragraph_idx": 8}
{"semantic_id": "kreisfreie-stadt", "category": "location", "attributes": {"type": "district-free city or town"}, "paragraph_idx": 8}
2024-04-22 23:21:38,255 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 08177c86-f5f7-4917-8a05-c1f311690aee: {'nodes': {'semantic_id': 'perm', 'category': 'location', 'attributes': {'name': 'Perm', 'type': 'city', 'administrative_center': 'Perm Krai', 'location': {'river': 'Kama River', 'region': 'European part of Russia', 'proximity': 'near the Ural Mountains'}}, 'paragraph_idx': 10}}
2024-04-22 23:21:38,256 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 08b31a77-8dc6-4490-925c-037ebf0b8d13: {'nodes': {'semantic_id': 'perm-krai', 'category': 'location', 'attributes': {'name': 'Perm Krai', 'type': 'administrative region', 'location': 'Russia'}, 'paragraph_idx': 10}}
2024-04-22 23:21:38,257 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 725b2459-e361-40e7-a5c5-463c81aaed93: {'edges': {'from_node': UUID('08177c86-f5f7-4917-8a05-c1f311690aee'), 'to_node': UUID('08b31a77-8dc6-4490-925c-037ebf0b8d13'), 'category': 'administrative_center_of'}}
2024-04-22 23:21:38,258 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:38,258 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (08177c86-f5f7-4917-8a05-c1f311690aee, 08b31a77-8dc6-4490-925c-037ebf0b8d13): 725b2459-e361-40e7-a5c5-463c81aaed93
2024-04-22 23:21:38,259 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: perm-krai: 08b31a77-8dc6-4490-925c-037ebf0b8d13
2024-04-22 23:21:38,259 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: perm: 08177c86-f5f7-4917-8a05-c1f311690aee
2024-04-22 23:21:38,260 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, b21b44eb-f998-495d-9eb4-df1057959cf3): cee43dbe-2d89-44ed-a1fa-0eafa878167a
2024-04-22 23:21:38,261 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, a7bf1182-a4f6-4a73-89ce-0a00be00e2cb): 04e22c46-04cf-4f73-a4f1-39f7fc998ec3
2024-04-22 23:21:38,261 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, 19b0c9e8-39b6-4dde-b822-d032cf5e63ba): e698d0e2-1709-4262-97d6-196bd98cc2d3
2024-04-22 23:21:38,262 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island-distance: b21b44eb-f998-495d-9eb4-df1057959cf3
2024-04-22 23:21:38,262 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: mount-bates: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba
2024-04-22 23:21:38,263 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb
2024-04-22 23:21:38,263 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: norfolk-island: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6
2024-04-22 23:21:38,264 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6): 6949c464-7c2f-4b0f-962b-3bce37d17ddc
2024-04-22 23:21:38,265 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, 5447372d-faa0-4578-a285-d28ccd556385): cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5
2024-04-22 23:21:38,265 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (37176eec-a55d-44e4-a6cb-8bfbfee933fa, a0c2f429-8515-4075-b051-af1985e1ac5c): ff2e2d26-2cd5-4257-abf8-c10e7df94c02
2024-04-22 23:21:38,266 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "perm", "to_node": "perm-krai", "category": "administrative_center_of"}
{"semantic_id": "perm-krai", "category": "location", "attributes": {"name": "Perm Krai", "type": "administrative region", "location": "Russia"}, "paragraph_idx": 10}
{"semantic_id": "perm", "category": "location", "attributes": {"name": "Perm", "type": "city", "administrative_center": "Perm Krai", "location": {"river": "Kama River", "region": "European part of Russia", "proximity": "near the Ural Mountains"}}, "paragraph_idx": 10}
{"from_node": "norfolk-island", "to_node": "phillip-island-distance", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "phillip-island", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "mount-bates", "category": "contains"}
{"semantic_id": "phillip-island-distance", "category": "distance", "attributes": {"distance": 7, "distance_unit": "kilometres", "direction": "south", "reference_location": "main island"}, "paragraph_idx": 9}
{"semantic_id": "mount-bates", "category": "location", "attributes": {"name": "Mount Bates", "elevation": 319, "elevation_unit": "metres", "location": "northwest quadrant of Norfolk Island"}, "paragraph_idx": 9}
{"semantic_id": "phillip-island", "category": "location", "attributes": {"name": "Phillip Island", "type": "island", "location": "territory of Norfolk Island", "size": "second largest island"}, "paragraph_idx": 9}
{"semantic_id": "norfolk-island", "category": "location", "attributes": {"name": "Norfolk Island", "type": "island", "coordinates": {"latitude": -29.033, "longitude": 167.95}, "location": "South Pacific Ocean, east of the Australian mainland", "area": 34.6, "area_unit": "square kilometres", "coastline": 32, "coastline_unit": "km", "highest_point": "Mount Bates"}, "paragraph_idx": 9}
{"from_node": "local-associations", "to_node": "landkreis", "category": "contains"}
{"from_node": "local-associations", "to_node": "kreisfreie-stadt", "category": "contains"}
{"from_node": "local-associations", "to_node": "district-level", "category": "operates_at"}
2024-04-22 23:21:41,420 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 5f092031-cf0d-408c-a4f1-896e7c8607be: {'nodes': {'semantic_id': 'star-stadium', 'category': 'location', 'attributes': {'name': 'Star (Zvezda) Stadium', 'previous_name': 'Lenin Komsomol Stadium', 'location': 'Perm, Russia', 'type': 'multi-use stadium', 'usage': 'football matches', 'home_of': 'FC Amkar Perm', 'capacity': 17000, 'opened_on': '1969-06-05'}, 'paragraph_idx': 11}}
2024-04-22 23:21:41,421 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 08177c86-f5f7-4917-8a05-c1f311690aee: {'nodes': {'semantic_id': 'perm', 'category': 'location', 'attributes': {'name': 'Perm', 'type': 'city', 'administrative_center': 'Perm Krai'}, 'paragraph_idx': 11}}
2024-04-22 23:21:41,421 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 08b31a77-8dc6-4490-925c-037ebf0b8d13: {'nodes': {'semantic_id': 'perm-krai', 'category': 'location', 'attributes': {'name': 'Perm Krai', 'type': 'administrative region', 'location': 'Russia'}, 'paragraph_idx': 11}}
2024-04-22 23:21:41,421 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 725b2459-e361-40e7-a5c5-463c81aaed93: {'edges': {'from_node': UUID('08177c86-f5f7-4917-8a05-c1f311690aee'), 'to_node': UUID('08b31a77-8dc6-4490-925c-037ebf0b8d13'), 'category': 'administrative_center_of'}}
2024-04-22 23:21:41,422 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:41,423 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (08177c86-f5f7-4917-8a05-c1f311690aee, 08b31a77-8dc6-4490-925c-037ebf0b8d13): 725b2459-e361-40e7-a5c5-463c81aaed93
2024-04-22 23:21:41,423 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: perm-krai: 08b31a77-8dc6-4490-925c-037ebf0b8d13
2024-04-22 23:21:41,424 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: perm: 08177c86-f5f7-4917-8a05-c1f311690aee
2024-04-22 23:21:41,424 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: star-stadium: 5f092031-cf0d-408c-a4f1-896e7c8607be
2024-04-22 23:21:41,425 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, b21b44eb-f998-495d-9eb4-df1057959cf3): cee43dbe-2d89-44ed-a1fa-0eafa878167a
2024-04-22 23:21:41,426 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, a7bf1182-a4f6-4a73-89ce-0a00be00e2cb): 04e22c46-04cf-4f73-a4f1-39f7fc998ec3
2024-04-22 23:21:41,426 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e3d9a61-a794-49f8-bafc-b9b64fec2fe6, 19b0c9e8-39b6-4dde-b822-d032cf5e63ba): e698d0e2-1709-4262-97d6-196bd98cc2d3
2024-04-22 23:21:41,427 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island-distance: b21b44eb-f998-495d-9eb4-df1057959cf3
2024-04-22 23:21:41,427 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: mount-bates: 19b0c9e8-39b6-4dde-b822-d032cf5e63ba
2024-04-22 23:21:41,428 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: phillip-island: a7bf1182-a4f6-4a73-89ce-0a00be00e2cb
2024-04-22 23:21:41,429 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: norfolk-island: 4e3d9a61-a794-49f8-bafc-b9b64fec2fe6
2024-04-22 23:21:41,430 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "perm", "to_node": "perm-krai", "category": "administrative_center_of"}
{"semantic_id": "perm-krai", "category": "location", "attributes": {"name": "Perm Krai", "type": "administrative region", "location": "Russia"}, "paragraph_idx": 11}
{"semantic_id": "perm", "category": "location", "attributes": {"name": "Perm", "type": "city", "administrative_center": "Perm Krai"}, "paragraph_idx": 11}
{"semantic_id": "star-stadium", "category": "location", "attributes": {"name": "Star (Zvezda) Stadium", "previous_name": "Lenin Komsomol Stadium", "location": "Perm, Russia", "type": "multi-use stadium", "usage": "football matches", "home_of": "FC Amkar Perm", "capacity": 17000, "opened_on": "1969-06-05"}, "paragraph_idx": 11}
{"from_node": "norfolk-island", "to_node": "phillip-island-distance", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "phillip-island", "category": "contains"}
{"from_node": "norfolk-island", "to_node": "mount-bates", "category": "contains"}
{"semantic_id": "phillip-island-distance", "category": "distance", "attributes": {"distance": 7, "distance_unit": "kilometres", "direction": "south", "reference_location": "main island"}, "paragraph_idx": 9}
{"semantic_id": "mount-bates", "category": "location", "attributes": {"name": "Mount Bates", "elevation": 319, "elevation_unit": "metres", "location": "northwest quadrant of Norfolk Island"}, "paragraph_idx": 9}
{"semantic_id": "phillip-island", "category": "location", "attributes": {"name": "Phillip Island", "type": "island", "location": "territory of Norfolk Island", "size": "second largest island"}, "paragraph_idx": 9}
{"semantic_id": "norfolk-island", "category": "location", "attributes": {"name": "Norfolk Island", "type": "island", "coordinates": {"latitude": -29.033, "longitude": 167.95}, "location": "South Pacific Ocean, east of the Australian mainland", "area": 34.6, "area_unit": "square kilometres", "coastline": 32, "coastline_unit": "km", "highest_point": "Mount Bates"}, "paragraph_idx": 9}
2024-04-22 23:21:47,918 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 0f802399-f15e-442d-a597-e0c84972a35f: {'nodes': {'semantic_id': 'paea', 'category': 'location', 'attributes': {'name': 'Paea', 'type': 'commune', 'location': 'Papeete, French Polynesia', 'island': 'Tahiti', 'administrative_subdivision': 'Windward Islands', 'part_of': 'Society Islands'}, 'paragraph_idx': 12}}
2024-04-22 23:21:47,919 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5: {'nodes': {'semantic_id': 'papeete', 'category': 'location', 'attributes': {'name': 'Papeete', 'type': 'city', 'location': 'French Polynesia'}, 'paragraph_idx': 12}}
2024-04-22 23:21:47,919 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: b8ed0c63-f06f-408a-832a-93d8b0a02d8e: {'nodes': {'semantic_id': 'french-polynesia', 'category': 'location', 'attributes': {'name': 'French Polynesia', 'type': 'overseas territory', 'location': 'South Pacific Ocean'}, 'paragraph_idx': 12}}
2024-04-22 23:21:47,919 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 604a99d8-6569-4fbb-a44d-c9e446100111: {'nodes': {'semantic_id': 'tahiti', 'category': 'location', 'attributes': {'name': 'Tahiti', 'type': 'island', 'part_of': 'Society Islands'}, 'paragraph_idx': 12}}
2024-04-22 23:21:47,920 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: cf0355f5-9078-4d93-8434-961fee590a47: {'nodes': {'semantic_id': 'windward-islands', 'category': 'location', 'attributes': {'name': 'Windward Islands', 'type': 'administrative subdivision', 'part_of': 'Society Islands'}, 'paragraph_idx': 12}}
2024-04-22 23:21:47,920 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: d2974cd5-7054-4bed-8222-0d92af1f90a6: {'nodes': {'semantic_id': 'society-islands', 'category': 'location', 'attributes': {'name': 'Society Islands', 'type': 'archipelago'}, 'paragraph_idx': 12}}
2024-04-22 23:21:47,921 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 202c4602-aa18-4147-92a8-a3c6344a048b: {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'), 'to_node': UUID('91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5'), 'category': 'located_in'}}
2024-04-22 23:21:47,921 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 4ac76cfb-455e-4987-bfe0-2f6b1416bb49: {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'), 'to_node': UUID('604a99d8-6569-4fbb-a44d-c9e446100111'), 'category': 'located_on'}}
2024-04-22 23:21:47,922 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: aafe3fb3-ee59-4d8c-b299-d0a9776878e7: {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'), 'to_node': UUID('cf0355f5-9078-4d93-8434-961fee590a47'), 'category': 'part_of'}}
2024-04-22 23:21:47,922 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 2ca5031f-d739-4910-8b2e-574ee94b4fc3: {'edges': {'from_node': UUID('604a99d8-6569-4fbb-a44d-c9e446100111'), 'to_node': UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'), 'category': 'part_of'}}
2024-04-22 23:21:47,923 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: ccd6454e-3a6a-4404-a2fa-f940a0039967: {'edges': {'from_node': UUID('cf0355f5-9078-4d93-8434-961fee590a47'), 'to_node': UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'), 'category': 'part_of'}}
2024-04-22 23:21:47,923 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: e650982f-8436-491a-8f3e-1a1124550783: {'edges': {'from_node': UUID('b8ed0c63-f06f-408a-832a-93d8b0a02d8e'), 'to_node': UUID('604a99d8-6569-4fbb-a44d-c9e446100111'), 'category': 'contains'}}
2024-04-22 23:21:47,924 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: f45c0231-3ade-44e5-9bb7-7722cca223f2: {'edges': {'from_node': UUID('b8ed0c63-f06f-408a-832a-93d8b0a02d8e'), 'to_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'), 'category': 'contains'}}
2024-04-22 23:21:47,924 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:47,925 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 0f802399-f15e-442d-a597-e0c84972a35f): f45c0231-3ade-44e5-9bb7-7722cca223f2
2024-04-22 23:21:47,926 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 604a99d8-6569-4fbb-a44d-c9e446100111): e650982f-8436-491a-8f3e-1a1124550783
2024-04-22 23:21:47,927 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (cf0355f5-9078-4d93-8434-961fee590a47, d2974cd5-7054-4bed-8222-0d92af1f90a6): ccd6454e-3a6a-4404-a2fa-f940a0039967
2024-04-22 23:21:47,927 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (604a99d8-6569-4fbb-a44d-c9e446100111, d2974cd5-7054-4bed-8222-0d92af1f90a6): 2ca5031f-d739-4910-8b2e-574ee94b4fc3
2024-04-22 23:21:47,928 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, cf0355f5-9078-4d93-8434-961fee590a47): aafe3fb3-ee59-4d8c-b299-d0a9776878e7
2024-04-22 23:21:47,928 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 604a99d8-6569-4fbb-a44d-c9e446100111): 4ac76cfb-455e-4987-bfe0-2f6b1416bb49
2024-04-22 23:21:47,929 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5): 202c4602-aa18-4147-92a8-a3c6344a048b
2024-04-22 23:21:47,930 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: society-islands: d2974cd5-7054-4bed-8222-0d92af1f90a6
2024-04-22 23:21:47,930 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: windward-islands: cf0355f5-9078-4d93-8434-961fee590a47
2024-04-22 23:21:47,931 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: tahiti: 604a99d8-6569-4fbb-a44d-c9e446100111
2024-04-22 23:21:47,931 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: french-polynesia: b8ed0c63-f06f-408a-832a-93d8b0a02d8e
2024-04-22 23:21:47,932 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: papeete: 91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5
2024-04-22 23:21:47,932 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: paea: 0f802399-f15e-442d-a597-e0c84972a35f
2024-04-22 23:21:47,933 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (08177c86-f5f7-4917-8a05-c1f311690aee, 08b31a77-8dc6-4490-925c-037ebf0b8d13): 725b2459-e361-40e7-a5c5-463c81aaed93
2024-04-22 23:21:47,934 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: perm-krai: 08b31a77-8dc6-4490-925c-037ebf0b8d13
2024-04-22 23:21:47,935 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "french-polynesia", "to_node": "paea", "category": "contains"}
{"from_node": "french-polynesia", "to_node": "tahiti", "category": "contains"}
{"from_node": "windward-islands", "to_node": "society-islands", "category": "part_of"}
{"from_node": "tahiti", "to_node": "society-islands", "category": "part_of"}
{"from_node": "paea", "to_node": "windward-islands", "category": "part_of"}
{"from_node": "paea", "to_node": "tahiti", "category": "located_on"}
{"from_node": "paea", "to_node": "papeete", "category": "located_in"}
{"semantic_id": "society-islands", "category": "location", "attributes": {"name": "Society Islands", "type": "archipelago"}, "paragraph_idx": 12}
{"semantic_id": "windward-islands", "category": "location", "attributes": {"name": "Windward Islands", "type": "administrative subdivision", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"semantic_id": "tahiti", "category": "location", "attributes": {"name": "Tahiti", "type": "island", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"semantic_id": "french-polynesia", "category": "location", "attributes": {"name": "French Polynesia", "type": "overseas territory", "location": "South Pacific Ocean"}, "paragraph_idx": 12}
{"semantic_id": "papeete", "category": "location", "attributes": {"name": "Papeete", "type": "city", "location": "French Polynesia"}, "paragraph_idx": 12}
{"semantic_id": "paea", "category": "location", "attributes": {"name": "Paea", "type": "commune", "location": "Papeete, French Polynesia", "island": "Tahiti", "administrative_subdivision": "Windward Islands", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"from_node": "perm", "to_node": "perm-krai", "category": "administrative_center_of"}
{"semantic_id": "perm-krai", "category": "location", "attributes": {"name": "Perm Krai", "type": "administrative region", "location": "Russia"}, "paragraph_idx": 11}
2024-04-22 23:21:50,696 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: d2974cd5-7054-4bed-8222-0d92af1f90a6: {'nodes': {'semantic_id': 'society-islands', 'category': 'location', 'attributes': {'name': 'Society Islands', 'type': 'archipelago'}, 'paragraph_idx': 12}}
2024-04-22 23:21:50,696 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 0f802399-f15e-442d-a597-e0c84972a35f: {'nodes': {'semantic_id': 'paea', 'category': 'location', 'attributes': {'name': 'Paea', 'type': 'commune', 'location': 'Papeete, French Polynesia', 'island': 'Tahiti', 'administrative_subdivision': 'Windward Islands', 'part_of': 'Society Islands'}, 'paragraph_idx': 12}}
2024-04-22 23:21:50,697 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 78c1c3dc-5f26-4176-830a-c0586e583955: {'nodes': {'semantic_id': 'population', 'category': 'attribute', 'attributes': {'value': 13021, 'year': 2017}, 'paragraph_idx': 12}}
2024-04-22 23:21:50,697 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 935abcd2-c7ec-4815-8026-14d9e8502b3e: {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'), 'to_node': UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'), 'category': 'part_of'}}
2024-04-22 23:21:50,697 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 2d09622d-df53-4f41-9707-24fc6698438c: {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'), 'to_node': UUID('78c1c3dc-5f26-4176-830a-c0586e583955'), 'category': 'has_attribute'}}
2024-04-22 23:21:50,698 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:50,699 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 78c1c3dc-5f26-4176-830a-c0586e583955): 2d09622d-df53-4f41-9707-24fc6698438c
2024-04-22 23:21:50,699 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, d2974cd5-7054-4bed-8222-0d92af1f90a6): 935abcd2-c7ec-4815-8026-14d9e8502b3e
2024-04-22 23:21:50,700 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: population: 78c1c3dc-5f26-4176-830a-c0586e583955
2024-04-22 23:21:50,700 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: paea: 0f802399-f15e-442d-a597-e0c84972a35f
2024-04-22 23:21:50,701 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: society-islands: d2974cd5-7054-4bed-8222-0d92af1f90a6
2024-04-22 23:21:50,701 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 0f802399-f15e-442d-a597-e0c84972a35f): f45c0231-3ade-44e5-9bb7-7722cca223f2
2024-04-22 23:21:50,702 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 604a99d8-6569-4fbb-a44d-c9e446100111): e650982f-8436-491a-8f3e-1a1124550783
2024-04-22 23:21:50,703 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (cf0355f5-9078-4d93-8434-961fee590a47, d2974cd5-7054-4bed-8222-0d92af1f90a6): ccd6454e-3a6a-4404-a2fa-f940a0039967
2024-04-22 23:21:50,703 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (604a99d8-6569-4fbb-a44d-c9e446100111, d2974cd5-7054-4bed-8222-0d92af1f90a6): 2ca5031f-d739-4910-8b2e-574ee94b4fc3
2024-04-22 23:21:50,704 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, cf0355f5-9078-4d93-8434-961fee590a47): aafe3fb3-ee59-4d8c-b299-d0a9776878e7
2024-04-22 23:21:50,704 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 604a99d8-6569-4fbb-a44d-c9e446100111): 4ac76cfb-455e-4987-bfe0-2f6b1416bb49
2024-04-22 23:21:50,705 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5): 202c4602-aa18-4147-92a8-a3c6344a048b
2024-04-22 23:21:50,706 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: windward-islands: cf0355f5-9078-4d93-8434-961fee590a47
2024-04-22 23:21:50,706 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: tahiti: 604a99d8-6569-4fbb-a44d-c9e446100111
2024-04-22 23:21:50,707 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: french-polynesia: b8ed0c63-f06f-408a-832a-93d8b0a02d8e
2024-04-22 23:21:50,707 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: papeete: 91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5
2024-04-22 23:21:50,708 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "paea", "to_node": "population", "category": "has_attribute"}
{"from_node": "paea", "to_node": "society-islands", "category": "part_of"}
{"semantic_id": "population", "category": "attribute", "attributes": {"value": 13021, "year": 2017}, "paragraph_idx": 12}
{"semantic_id": "paea", "category": "location", "attributes": {"name": "Paea", "type": "commune", "location": "Papeete, French Polynesia", "island": "Tahiti", "administrative_subdivision": "Windward Islands", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"semantic_id": "society-islands", "category": "location", "attributes": {"name": "Society Islands", "type": "archipelago"}, "paragraph_idx": 12}
{"from_node": "french-polynesia", "to_node": "paea", "category": "contains"}
{"from_node": "french-polynesia", "to_node": "tahiti", "category": "contains"}
{"from_node": "windward-islands", "to_node": "society-islands", "category": "part_of"}
{"from_node": "tahiti", "to_node": "society-islands", "category": "part_of"}
{"from_node": "paea", "to_node": "windward-islands", "category": "part_of"}
{"from_node": "paea", "to_node": "tahiti", "category": "located_on"}
{"from_node": "paea", "to_node": "papeete", "category": "located_in"}
{"semantic_id": "windward-islands", "category": "location", "attributes": {"name": "Windward Islands", "type": "administrative subdivision", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"semantic_id": "tahiti", "category": "location", "attributes": {"name": "Tahiti", "type": "island", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"semantic_id": "french-polynesia", "category": "location", "attributes": {"name": "French Polynesia", "type": "overseas territory", "location": "South Pacific Ocean"}, "paragraph_idx": 12}
{"semantic_id": "papeete", "category": "location", "attributes": {"name": "Papeete", "type": "city", "location": "French Polynesia"}, "paragraph_idx": 12}
2024-04-22 23:21:53,414 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 710a0044-84bc-4f53-a31c-1fb07c009351: {'nodes': {'semantic_id': 'potamogeton-amplifolius', 'category': 'plant', 'attributes': {'name': 'Potamogeton amplifolius', 'common_names': ['largeleaf pondweed', 'broad-leaved pondweed'], 'description': 'an aquatic plant of North America', 'habitat': ['lakes', 'ponds', 'rivers'], 'environment': 'deep water'}, 'paragraph_idx': 13}}
2024-04-22 23:21:53,415 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 4e1a454c-a0c5-4851-a0a0-092123232ce0: {'nodes': {'semantic_id': 'north-america', 'category': 'geographic_region', 'attributes': {'name': 'North America'}, 'paragraph_idx': 13}}
2024-04-22 23:21:53,415 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 9f17363c-01e0-4698-b96d-9425f00cd08b: {'edges': {'from_node': UUID('710a0044-84bc-4f53-a31c-1fb07c009351'), 'to_node': UUID('4e1a454c-a0c5-4851-a0a0-092123232ce0'), 'category': 'native_to'}}
2024-04-22 23:21:53,416 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:53,417 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (710a0044-84bc-4f53-a31c-1fb07c009351, 4e1a454c-a0c5-4851-a0a0-092123232ce0): 9f17363c-01e0-4698-b96d-9425f00cd08b
2024-04-22 23:21:53,417 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: north-america: 4e1a454c-a0c5-4851-a0a0-092123232ce0
2024-04-22 23:21:53,418 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: potamogeton-amplifolius: 710a0044-84bc-4f53-a31c-1fb07c009351
2024-04-22 23:21:53,418 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 78c1c3dc-5f26-4176-830a-c0586e583955): 2d09622d-df53-4f41-9707-24fc6698438c
2024-04-22 23:21:53,419 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, d2974cd5-7054-4bed-8222-0d92af1f90a6): 935abcd2-c7ec-4815-8026-14d9e8502b3e
2024-04-22 23:21:53,420 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: population: 78c1c3dc-5f26-4176-830a-c0586e583955
2024-04-22 23:21:53,420 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: paea: 0f802399-f15e-442d-a597-e0c84972a35f
2024-04-22 23:21:53,421 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: society-islands: d2974cd5-7054-4bed-8222-0d92af1f90a6
2024-04-22 23:21:53,422 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 0f802399-f15e-442d-a597-e0c84972a35f): f45c0231-3ade-44e5-9bb7-7722cca223f2
2024-04-22 23:21:53,422 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 604a99d8-6569-4fbb-a44d-c9e446100111): e650982f-8436-491a-8f3e-1a1124550783
2024-04-22 23:21:53,423 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (cf0355f5-9078-4d93-8434-961fee590a47, d2974cd5-7054-4bed-8222-0d92af1f90a6): ccd6454e-3a6a-4404-a2fa-f940a0039967
2024-04-22 23:21:53,423 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (604a99d8-6569-4fbb-a44d-c9e446100111, d2974cd5-7054-4bed-8222-0d92af1f90a6): 2ca5031f-d739-4910-8b2e-574ee94b4fc3
2024-04-22 23:21:53,424 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, cf0355f5-9078-4d93-8434-961fee590a47): aafe3fb3-ee59-4d8c-b299-d0a9776878e7
2024-04-22 23:21:53,425 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 604a99d8-6569-4fbb-a44d-c9e446100111): 4ac76cfb-455e-4987-bfe0-2f6b1416bb49
2024-04-22 23:21:53,425 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5): 202c4602-aa18-4147-92a8-a3c6344a048b
2024-04-22 23:21:53,426 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: windward-islands: cf0355f5-9078-4d93-8434-961fee590a47
2024-04-22 23:21:53,426 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "potamogeton-amplifolius", "to_node": "north-america", "category": "native_to"}
{"semantic_id": "north-america", "category": "geographic_region", "attributes": {"name": "North America"}, "paragraph_idx": 13}
{"semantic_id": "potamogeton-amplifolius", "category": "plant", "attributes": {"name": "Potamogeton amplifolius", "common_names": ["largeleaf pondweed", "broad-leaved pondweed"], "description": "an aquatic plant of North America", "habitat": ["lakes", "ponds", "rivers"], "environment": "deep water"}, "paragraph_idx": 13}
{"from_node": "paea", "to_node": "population", "category": "has_attribute"}
{"from_node": "paea", "to_node": "society-islands", "category": "part_of"}
{"semantic_id": "population", "category": "attribute", "attributes": {"value": 13021, "year": 2017}, "paragraph_idx": 12}
{"semantic_id": "paea", "category": "location", "attributes": {"name": "Paea", "type": "commune", "location": "Papeete, French Polynesia", "island": "Tahiti", "administrative_subdivision": "Windward Islands", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"semantic_id": "society-islands", "category": "location", "attributes": {"name": "Society Islands", "type": "archipelago"}, "paragraph_idx": 12}
{"from_node": "french-polynesia", "to_node": "paea", "category": "contains"}
{"from_node": "french-polynesia", "to_node": "tahiti", "category": "contains"}
{"from_node": "windward-islands", "to_node": "society-islands", "category": "part_of"}
{"from_node": "tahiti", "to_node": "society-islands", "category": "part_of"}
{"from_node": "paea", "to_node": "windward-islands", "category": "part_of"}
{"from_node": "paea", "to_node": "tahiti", "category": "located_on"}
{"from_node": "paea", "to_node": "papeete", "category": "located_in"}
{"semantic_id": "windward-islands", "category": "location", "attributes": {"name": "Windward Islands", "type": "administrative subdivision", "part_of": "Society Islands"}, "paragraph_idx": 12}
2024-04-22 23:21:56,066 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 10b5e6c7-bc63-41d5-b52d-38e728f085e2: {'nodes': {'semantic_id': 'biysky-district', 'category': 'location', 'attributes': {'name': 'Biysky District', 'type': 'administrative and municipal district', 'part_of': 'Altai Krai', 'location': 'Russia', 'borders': ['Zonalny', 'Tselinny', 'Soltonsky', 'Krasnogorsky', 'Sovetsky', 'Smolensky']}, 'paragraph_idx': 14}}
2024-04-22 23:21:56,067 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 8f0836c4-fff6-4fde-b259-f70b6128b348: {'nodes': {'semantic_id': 'altai-krai', 'category': 'location', 'attributes': {'name': 'Altai Krai', 'type': 'krai', 'location': 'Russia'}, 'paragraph_idx': 14}}
2024-04-22 23:21:56,067 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 68b15747-9269-48bf-ba9d-ca79b31ba192: {'edges': {'from_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'), 'to_node': UUID('8f0836c4-fff6-4fde-b259-f70b6128b348'), 'category': 'part_of'}}
2024-04-22 23:21:56,068 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:21:56,068 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (10b5e6c7-bc63-41d5-b52d-38e728f085e2, 8f0836c4-fff6-4fde-b259-f70b6128b348): 68b15747-9269-48bf-ba9d-ca79b31ba192
2024-04-22 23:21:56,069 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: altai-krai: 8f0836c4-fff6-4fde-b259-f70b6128b348
2024-04-22 23:21:56,069 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: biysky-district: 10b5e6c7-bc63-41d5-b52d-38e728f085e2
2024-04-22 23:21:56,070 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (710a0044-84bc-4f53-a31c-1fb07c009351, 4e1a454c-a0c5-4851-a0a0-092123232ce0): 9f17363c-01e0-4698-b96d-9425f00cd08b
2024-04-22 23:21:56,070 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: north-america: 4e1a454c-a0c5-4851-a0a0-092123232ce0
2024-04-22 23:21:56,071 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: potamogeton-amplifolius: 710a0044-84bc-4f53-a31c-1fb07c009351
2024-04-22 23:21:56,071 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, 78c1c3dc-5f26-4176-830a-c0586e583955): 2d09622d-df53-4f41-9707-24fc6698438c
2024-04-22 23:21:56,072 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (0f802399-f15e-442d-a597-e0c84972a35f, d2974cd5-7054-4bed-8222-0d92af1f90a6): 935abcd2-c7ec-4815-8026-14d9e8502b3e
2024-04-22 23:21:56,072 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: population: 78c1c3dc-5f26-4176-830a-c0586e583955
2024-04-22 23:21:56,073 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: paea: 0f802399-f15e-442d-a597-e0c84972a35f
2024-04-22 23:21:56,074 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: society-islands: d2974cd5-7054-4bed-8222-0d92af1f90a6
2024-04-22 23:21:56,074 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 0f802399-f15e-442d-a597-e0c84972a35f): f45c0231-3ade-44e5-9bb7-7722cca223f2
2024-04-22 23:21:56,075 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b8ed0c63-f06f-408a-832a-93d8b0a02d8e, 604a99d8-6569-4fbb-a44d-c9e446100111): e650982f-8436-491a-8f3e-1a1124550783
2024-04-22 23:21:56,076 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "biysky-district", "to_node": "altai-krai", "category": "part_of"}
{"semantic_id": "altai-krai", "category": "location", "attributes": {"name": "Altai Krai", "type": "krai", "location": "Russia"}, "paragraph_idx": 14}
{"semantic_id": "biysky-district", "category": "location", "attributes": {"name": "Biysky District", "type": "administrative and municipal district", "part_of": "Altai Krai", "location": "Russia", "borders": ["Zonalny", "Tselinny", "Soltonsky", "Krasnogorsky", "Sovetsky", "Smolensky"]}, "paragraph_idx": 14}
{"from_node": "potamogeton-amplifolius", "to_node": "north-america", "category": "native_to"}
{"semantic_id": "north-america", "category": "geographic_region", "attributes": {"name": "North America"}, "paragraph_idx": 13}
{"semantic_id": "potamogeton-amplifolius", "category": "plant", "attributes": {"name": "Potamogeton amplifolius", "common_names": ["largeleaf pondweed", "broad-leaved pondweed"], "description": "an aquatic plant of North America", "habitat": ["lakes", "ponds", "rivers"], "environment": "deep water"}, "paragraph_idx": 13}
{"from_node": "paea", "to_node": "population", "category": "has_attribute"}
{"from_node": "paea", "to_node": "society-islands", "category": "part_of"}
{"semantic_id": "population", "category": "attribute", "attributes": {"value": 13021, "year": 2017}, "paragraph_idx": 12}
{"semantic_id": "paea", "category": "location", "attributes": {"name": "Paea", "type": "commune", "location": "Papeete, French Polynesia", "island": "Tahiti", "administrative_subdivision": "Windward Islands", "part_of": "Society Islands"}, "paragraph_idx": 12}
{"semantic_id": "society-islands", "category": "location", "attributes": {"name": "Society Islands", "type": "archipelago"}, "paragraph_idx": 12}
{"from_node": "french-polynesia", "to_node": "paea", "category": "contains"}
{"from_node": "french-polynesia", "to_node": "tahiti", "category": "contains"}
2024-04-22 23:22:04,755 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 417a9a71-8b2b-43f7-9d04-7905c9d00075: {'nodes': {'semantic_id': 'soltonsky-district', 'category': 'location', 'attributes': {'name': 'Soltonsky District', 'type': 'administrative and municipal district', 'part_of': 'Altai Krai', 'location': 'Russia', 'borders': ['Biysky District']}, 'paragraph_idx': 14}}
2024-04-22 23:22:04,756 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 4b288fc3-091b-447f-b1e7-31736281589c: {'nodes': {'semantic_id': 'krasnogorsky-district', 'category': 'location', 'attributes': {'name': 'Krasnogorsky District', 'type': 'administrative and municipal district', 'part_of': 'Altai Krai', 'location': 'Russia', 'borders': ['Biysky District']}, 'paragraph_idx': 14}}
2024-04-22 23:22:04,757 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: a2849f7d-8ccd-4c95-8911-29b2f498d6b7: {'nodes': {'semantic_id': 'sovetsky-district', 'category': 'location', 'attributes': {'name': 'Sovetsky District', 'type': 'administrative and municipal district', 'part_of': 'Altai Krai', 'location': 'Russia', 'borders': ['Biysky District']}, 'paragraph_idx': 14}}
2024-04-22 23:22:04,758 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: b63a7d4f-9757-44f2-90c1-d29ef9d6c62a: {'nodes': {'semantic_id': 'smolensky-district', 'category': 'location', 'attributes': {'name': 'Smolensky District', 'type': 'administrative and municipal district', 'part_of': 'Altai Krai', 'location': 'Russia', 'borders': ['Biysky District']}, 'paragraph_idx': 14}}
2024-04-22 23:22:04,759 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: b980a3e8-8022-485f-addf-9c8d68716740: {'nodes': {'semantic_id': 'biysk', 'category': 'location', 'attributes': {'name': 'Biysk', 'type': 'city', 'part_of': 'Altai Krai', 'location': 'Russia', 'is_administrative_center': True}, 'paragraph_idx': 14}}
2024-04-22 23:22:04,759 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 10b5e6c7-bc63-41d5-b52d-38e728f085e2: {'nodes': {'semantic_id': 'biysky-district', 'category': 'location', 'attributes': {'name': 'Biysky District', 'type': 'administrative and municipal district', 'part_of': 'Altai Krai', 'location': 'Russia', 'borders': ['Soltonsky District', 'Krasnogorsky District', 'Sovetsky District', 'Smolensky District', 'Biysk']}, 'paragraph_idx': 14}}
2024-04-22 23:22:04,760 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 8f0836c4-fff6-4fde-b259-f70b6128b348: {'nodes': {'semantic_id': 'altai-krai', 'category': 'location', 'attributes': {'name': 'Altai Krai', 'type': 'krai', 'location': 'Russia'}, 'paragraph_idx': 14}}
2024-04-22 23:22:04,760 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: bab321a0-3f98-426b-8a2d-20d5ec639232: {'edges': {'from_node': UUID('417a9a71-8b2b-43f7-9d04-7905c9d00075'), 'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'), 'category': 'borders'}}
2024-04-22 23:22:04,761 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: cbd9207d-ab1e-4c0d-b63b-a4181fbace46: {'edges': {'from_node': UUID('4b288fc3-091b-447f-b1e7-31736281589c'), 'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'), 'category': 'borders'}}
2024-04-22 23:22:04,762 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: cb5c0d19-7b12-4a50-a477-cac8e0762a12: {'edges': {'from_node': UUID('a2849f7d-8ccd-4c95-8911-29b2f498d6b7'), 'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'), 'category': 'borders'}}
2024-04-22 23:22:04,762 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: e40f26ca-a97c-46ca-a9ed-a031a8088448: {'edges': {'from_node': UUID('b63a7d4f-9757-44f2-90c1-d29ef9d6c62a'), 'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'), 'category': 'borders'}}
2024-04-22 23:22:04,763 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: a09750f0-d5f8-4dab-82cc-be2e73691c97: {'edges': {'from_node': UUID('b980a3e8-8022-485f-addf-9c8d68716740'), 'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'), 'category': 'borders'}}
2024-04-22 23:22:04,763 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 68b15747-9269-48bf-ba9d-ca79b31ba192: {'edges': {'from_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'), 'to_node': UUID('8f0836c4-fff6-4fde-b259-f70b6128b348'), 'category': 'part_of'}}
2024-04-22 23:22:04,765 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:04,765 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (10b5e6c7-bc63-41d5-b52d-38e728f085e2, 8f0836c4-fff6-4fde-b259-f70b6128b348): 68b15747-9269-48bf-ba9d-ca79b31ba192
2024-04-22 23:22:04,766 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b980a3e8-8022-485f-addf-9c8d68716740, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): a09750f0-d5f8-4dab-82cc-be2e73691c97
2024-04-22 23:22:04,767 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b63a7d4f-9757-44f2-90c1-d29ef9d6c62a, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): e40f26ca-a97c-46ca-a9ed-a031a8088448
2024-04-22 23:22:04,767 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a2849f7d-8ccd-4c95-8911-29b2f498d6b7, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): cb5c0d19-7b12-4a50-a477-cac8e0762a12
2024-04-22 23:22:04,768 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4b288fc3-091b-447f-b1e7-31736281589c, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): cbd9207d-ab1e-4c0d-b63b-a4181fbace46
2024-04-22 23:22:04,769 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (417a9a71-8b2b-43f7-9d04-7905c9d00075, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): bab321a0-3f98-426b-8a2d-20d5ec639232
2024-04-22 23:22:04,769 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: altai-krai: 8f0836c4-fff6-4fde-b259-f70b6128b348
2024-04-22 23:22:04,770 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: biysky-district: 10b5e6c7-bc63-41d5-b52d-38e728f085e2
2024-04-22 23:22:04,771 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: biysk: b980a3e8-8022-485f-addf-9c8d68716740
2024-04-22 23:22:04,771 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: smolensky-district: b63a7d4f-9757-44f2-90c1-d29ef9d6c62a
2024-04-22 23:22:04,772 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: sovetsky-district: a2849f7d-8ccd-4c95-8911-29b2f498d6b7
2024-04-22 23:22:04,773 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "biysky-district", "to_node": "altai-krai", "category": "part_of"}
{"from_node": "biysk", "to_node": "biysky-district", "category": "borders"}
{"from_node": "smolensky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "sovetsky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "krasnogorsky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "soltonsky-district", "to_node": "biysky-district", "category": "borders"}
{"semantic_id": "altai-krai", "category": "location", "attributes": {"name": "Altai Krai", "type": "krai", "location": "Russia"}, "paragraph_idx": 14}
{"semantic_id": "biysky-district", "category": "location", "attributes": {"name": "Biysky District", "type": "administrative and municipal district", "part_of": "Altai Krai", "location": "Russia", "borders": ["Soltonsky District", "Krasnogorsky District", "Sovetsky District", "Smolensky District", "Biysk"]}, "paragraph_idx": 14}
{"semantic_id": "biysk", "category": "location", "attributes": {"name": "Biysk", "type": "city", "part_of": "Altai Krai", "location": "Russia", "is_administrative_center": true}, "paragraph_idx": 14}
{"semantic_id": "smolensky-district", "category": "location", "attributes": {"name": "Smolensky District", "type": "administrative and municipal district", "part_of": "Altai Krai", "location": "Russia", "borders": ["Biysky District"]}, "paragraph_idx": 14}
{"semantic_id": "sovetsky-district", "category": "location", "attributes": {"name": "Sovetsky District", "type": "administrative and municipal district", "part_of": "Altai Krai", "location": "Russia", "borders": ["Biysky District"]}, "paragraph_idx": 14}
2024-04-22 23:22:10,124 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 4e30cf7e-8223-4337-a65d-0c0c108e674e: {'nodes': {'semantic_id': 'contoocook-lake', 'category': 'location', 'attributes': {'name': 'Contoocook Lake', 'type': 'lake', 'location': {'county': 'Cheshire County', 'state': 'New Hampshire', 'country': 'United States'}, 'towns': ['Jaffrey', 'Rindge'], 'is_headwaters_of': 'contoocook-river'}, 'paragraph_idx': 15}}
2024-04-22 23:22:10,124 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: ada27367-85fa-47e6-9d1c-1f061b2e1dc6: {'nodes': {'semantic_id': 'pool-pond', 'category': 'location', 'attributes': {'name': 'Pool Pond', 'type': 'pond', 'location': {'county': 'Cheshire County', 'state': 'New Hampshire', 'country': 'United States'}, 'is_headwaters_of': 'contoocook-river'}, 'paragraph_idx': 15}}
2024-04-22 23:22:10,125 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 65cf9d75-79e6-46a5-aab9-ede4587f8e63: {'nodes': {'semantic_id': 'contoocook-river', 'category': 'location', 'attributes': {'name': 'Contoocook River', 'type': 'river', 'flows_to': 'merrimack-river', 'flows_from': ['contoocook-lake', 'pool-pond']}, 'paragraph_idx': 15}}
2024-04-22 23:22:10,125 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92: {'nodes': {'semantic_id': 'merrimack-river', 'category': 'location', 'attributes': {'name': 'Merrimack River', 'type': 'river', 'location': {'city': 'Penacook', 'state': 'New Hampshire', 'country': 'United States'}}, 'paragraph_idx': 15}}
2024-04-22 23:22:10,126 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: f39afbdf-aded-4076-b3fa-40f7541b98e6: {'edges': {'from_node': UUID('4e30cf7e-8223-4337-a65d-0c0c108e674e'), 'to_node': UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'), 'category': 'flows_into'}}
2024-04-22 23:22:10,126 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: e7f20049-4bf1-49ca-b9c9-3061af2aa15c: {'edges': {'from_node': UUID('ada27367-85fa-47e6-9d1c-1f061b2e1dc6'), 'to_node': UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'), 'category': 'flows_into'}}
2024-04-22 23:22:10,126 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: c7467973-16e6-4395-8ef9-420c0d1227aa: {'edges': {'from_node': UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'), 'to_node': UUID('9529f921-1f99-4ff7-b9a1-cdce2ff80f92'), 'category': 'flows_into'}}
2024-04-22 23:22:10,127 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:10,128 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:10,128 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ada27367-85fa-47e6-9d1c-1f061b2e1dc6, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): e7f20049-4bf1-49ca-b9c9-3061af2aa15c
2024-04-22 23:22:10,129 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e30cf7e-8223-4337-a65d-0c0c108e674e, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): f39afbdf-aded-4076-b3fa-40f7541b98e6
2024-04-22 23:22:10,130 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: merrimack-river: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92
2024-04-22 23:22:10,130 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-river: 65cf9d75-79e6-46a5-aab9-ede4587f8e63
2024-04-22 23:22:10,130 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: pool-pond: ada27367-85fa-47e6-9d1c-1f061b2e1dc6
2024-04-22 23:22:10,131 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-lake: 4e30cf7e-8223-4337-a65d-0c0c108e674e
2024-04-22 23:22:10,132 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (10b5e6c7-bc63-41d5-b52d-38e728f085e2, 8f0836c4-fff6-4fde-b259-f70b6128b348): 68b15747-9269-48bf-ba9d-ca79b31ba192
2024-04-22 23:22:10,132 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b980a3e8-8022-485f-addf-9c8d68716740, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): a09750f0-d5f8-4dab-82cc-be2e73691c97
2024-04-22 23:22:10,133 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b63a7d4f-9757-44f2-90c1-d29ef9d6c62a, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): e40f26ca-a97c-46ca-a9ed-a031a8088448
2024-04-22 23:22:10,134 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a2849f7d-8ccd-4c95-8911-29b2f498d6b7, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): cb5c0d19-7b12-4a50-a477-cac8e0762a12
2024-04-22 23:22:10,134 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4b288fc3-091b-447f-b1e7-31736281589c, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): cbd9207d-ab1e-4c0d-b63b-a4181fbace46
2024-04-22 23:22:10,135 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (417a9a71-8b2b-43f7-9d04-7905c9d00075, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): bab321a0-3f98-426b-8a2d-20d5ec639232
2024-04-22 23:22:10,136 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
{"from_node": "pool-pond", "to_node": "contoocook-river", "category": "flows_into"}
{"from_node": "contoocook-lake", "to_node": "contoocook-river", "category": "flows_into"}
{"semantic_id": "merrimack-river", "category": "location", "attributes": {"name": "Merrimack River", "type": "river", "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"semantic_id": "contoocook-river", "category": "location", "attributes": {"name": "Contoocook River", "type": "river", "flows_to": "merrimack-river", "flows_from": ["contoocook-lake", "pool-pond"]}, "paragraph_idx": 15}
{"semantic_id": "pool-pond", "category": "location", "attributes": {"name": "Pool Pond", "type": "pond", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"semantic_id": "contoocook-lake", "category": "location", "attributes": {"name": "Contoocook Lake", "type": "lake", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "towns": ["Jaffrey", "Rindge"], "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"from_node": "biysky-district", "to_node": "altai-krai", "category": "part_of"}
{"from_node": "biysk", "to_node": "biysky-district", "category": "borders"}
{"from_node": "smolensky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "sovetsky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "krasnogorsky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "soltonsky-district", "to_node": "biysky-district", "category": "borders"}
2024-04-22 23:22:12,740 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 65cf9d75-79e6-46a5-aab9-ede4587f8e63: {'nodes': {'semantic_id': 'contoocook-river', 'category': 'location', 'attributes': {'name': 'Contoocook River', 'type': 'river', 'flows_to': 'merrimack-river', 'flows_from': ['contoocook-lake', 'pool-pond'], 'location': {'city': 'Penacook', 'state': 'New Hampshire', 'country': 'United States'}}, 'paragraph_idx': 15}}
2024-04-22 23:22:12,741 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92: {'nodes': {'semantic_id': 'merrimack-river', 'category': 'location', 'attributes': {'name': 'Merrimack River', 'type': 'river', 'location': {'city': 'Penacook', 'state': 'New Hampshire', 'country': 'United States'}}, 'paragraph_idx': 15}}
2024-04-22 23:22:12,742 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: c7467973-16e6-4395-8ef9-420c0d1227aa: {'edges': {'from_node': UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'), 'to_node': UUID('9529f921-1f99-4ff7-b9a1-cdce2ff80f92'), 'category': 'flows_into'}}
2024-04-22 23:22:12,743 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:12,744 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:12,745 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: merrimack-river: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92
2024-04-22 23:22:12,746 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-river: 65cf9d75-79e6-46a5-aab9-ede4587f8e63
2024-04-22 23:22:12,747 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ada27367-85fa-47e6-9d1c-1f061b2e1dc6, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): e7f20049-4bf1-49ca-b9c9-3061af2aa15c
2024-04-22 23:22:12,747 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e30cf7e-8223-4337-a65d-0c0c108e674e, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): f39afbdf-aded-4076-b3fa-40f7541b98e6
2024-04-22 23:22:12,748 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: pool-pond: ada27367-85fa-47e6-9d1c-1f061b2e1dc6
2024-04-22 23:22:12,748 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-lake: 4e30cf7e-8223-4337-a65d-0c0c108e674e
2024-04-22 23:22:12,749 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (10b5e6c7-bc63-41d5-b52d-38e728f085e2, 8f0836c4-fff6-4fde-b259-f70b6128b348): 68b15747-9269-48bf-ba9d-ca79b31ba192
2024-04-22 23:22:12,750 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b980a3e8-8022-485f-addf-9c8d68716740, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): a09750f0-d5f8-4dab-82cc-be2e73691c97
2024-04-22 23:22:12,750 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (b63a7d4f-9757-44f2-90c1-d29ef9d6c62a, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): e40f26ca-a97c-46ca-a9ed-a031a8088448
2024-04-22 23:22:12,751 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a2849f7d-8ccd-4c95-8911-29b2f498d6b7, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): cb5c0d19-7b12-4a50-a477-cac8e0762a12
2024-04-22 23:22:12,751 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4b288fc3-091b-447f-b1e7-31736281589c, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): cbd9207d-ab1e-4c0d-b63b-a4181fbace46
2024-04-22 23:22:12,752 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (417a9a71-8b2b-43f7-9d04-7905c9d00075, 10b5e6c7-bc63-41d5-b52d-38e728f085e2): bab321a0-3f98-426b-8a2d-20d5ec639232
2024-04-22 23:22:12,753 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
{"semantic_id": "merrimack-river", "category": "location", "attributes": {"name": "Merrimack River", "type": "river", "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"semantic_id": "contoocook-river", "category": "location", "attributes": {"name": "Contoocook River", "type": "river", "flows_to": "merrimack-river", "flows_from": ["contoocook-lake", "pool-pond"], "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"from_node": "pool-pond", "to_node": "contoocook-river", "category": "flows_into"}
{"from_node": "contoocook-lake", "to_node": "contoocook-river", "category": "flows_into"}
{"semantic_id": "pool-pond", "category": "location", "attributes": {"name": "Pool Pond", "type": "pond", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"semantic_id": "contoocook-lake", "category": "location", "attributes": {"name": "Contoocook Lake", "type": "lake", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "towns": ["Jaffrey", "Rindge"], "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"from_node": "biysky-district", "to_node": "altai-krai", "category": "part_of"}
{"from_node": "biysk", "to_node": "biysky-district", "category": "borders"}
{"from_node": "smolensky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "sovetsky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "krasnogorsky-district", "to_node": "biysky-district", "category": "borders"}
{"from_node": "soltonsky-district", "to_node": "biysky-district", "category": "borders"}
2024-04-22 23:22:14,491 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: ad00a8de-78fe-4c90-87ec-97495cc749a3: {'nodes': {'semantic_id': 'bogota', 'category': 'location', 'attributes': {'name': 'Bogotá', 'type': 'city', 'pronunciation': {'en': ['ˈboʊɡətɑː', 'ˌbɒɡəˈtɑː', 'ˌboʊ -'], 'es': 'boɣoˈta'}, 'official_name': 'Bogotá'}, 'paragraph_idx': 16}}
2024-04-22 23:22:14,491 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:14,492 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bogota: ad00a8de-78fe-4c90-87ec-97495cc749a3
2024-04-22 23:22:14,493 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:14,493 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: merrimack-river: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92
2024-04-22 23:22:14,494 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-river: 65cf9d75-79e6-46a5-aab9-ede4587f8e63
2024-04-22 23:22:14,494 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ada27367-85fa-47e6-9d1c-1f061b2e1dc6, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): e7f20049-4bf1-49ca-b9c9-3061af2aa15c
2024-04-22 23:22:14,495 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e30cf7e-8223-4337-a65d-0c0c108e674e, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): f39afbdf-aded-4076-b3fa-40f7541b98e6
2024-04-22 23:22:14,495 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: pool-pond: ada27367-85fa-47e6-9d1c-1f061b2e1dc6
2024-04-22 23:22:14,496 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-lake: 4e30cf7e-8223-4337-a65d-0c0c108e674e
2024-04-22 23:22:14,496 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (10b5e6c7-bc63-41d5-b52d-38e728f085e2, 8f0836c4-fff6-4fde-b259-f70b6128b348): 68b15747-9269-48bf-ba9d-ca79b31ba192
2024-04-22 23:22:14,497 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "bogota", "category": "location", "attributes": {"name": "Bogot\u00e1", "type": "city", "pronunciation": {"en": ["\u02c8bo\u028a\u0261\u0259t\u0251\u02d0", "\u02ccb\u0252\u0261\u0259\u02c8t\u0251\u02d0", "\u02ccbo\u028a -"], "es": "bo\u0263o\u02c8ta"}, "official_name": "Bogot\u00e1"}, "paragraph_idx": 16}
{"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
{"semantic_id": "merrimack-river", "category": "location", "attributes": {"name": "Merrimack River", "type": "river", "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"semantic_id": "contoocook-river", "category": "location", "attributes": {"name": "Contoocook River", "type": "river", "flows_to": "merrimack-river", "flows_from": ["contoocook-lake", "pool-pond"], "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"from_node": "pool-pond", "to_node": "contoocook-river", "category": "flows_into"}
{"from_node": "contoocook-lake", "to_node": "contoocook-river", "category": "flows_into"}
{"semantic_id": "pool-pond", "category": "location", "attributes": {"name": "Pool Pond", "type": "pond", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"semantic_id": "contoocook-lake", "category": "location", "attributes": {"name": "Contoocook Lake", "type": "lake", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "towns": ["Jaffrey", "Rindge"], "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"from_node": "biysky-district", "to_node": "altai-krai", "category": "part_of"}
2024-04-22 23:22:16,461 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: ad00a8de-78fe-4c90-87ec-97495cc749a3: {'nodes': {'semantic_id': 'bogota', 'category': 'location', 'attributes': {'name': 'Bogotá', 'type': 'city', 'pronunciation': {'en': ['ˈboʊɡəˌtɑː', 'bɒˈɡoʊtə', 'boɪ -'], 'es': 'boɣoˈta'}, 'official_name': 'Bogotá'}, 'paragraph_idx': 16}}
2024-04-22 23:22:16,462 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:16,464 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bogota: ad00a8de-78fe-4c90-87ec-97495cc749a3
2024-04-22 23:22:16,464 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:16,465 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: merrimack-river: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92
2024-04-22 23:22:16,466 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-river: 65cf9d75-79e6-46a5-aab9-ede4587f8e63
2024-04-22 23:22:16,466 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ada27367-85fa-47e6-9d1c-1f061b2e1dc6, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): e7f20049-4bf1-49ca-b9c9-3061af2aa15c
2024-04-22 23:22:16,467 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e30cf7e-8223-4337-a65d-0c0c108e674e, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): f39afbdf-aded-4076-b3fa-40f7541b98e6
2024-04-22 23:22:16,468 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: pool-pond: ada27367-85fa-47e6-9d1c-1f061b2e1dc6
2024-04-22 23:22:16,468 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-lake: 4e30cf7e-8223-4337-a65d-0c0c108e674e
2024-04-22 23:22:16,469 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (10b5e6c7-bc63-41d5-b52d-38e728f085e2, 8f0836c4-fff6-4fde-b259-f70b6128b348): 68b15747-9269-48bf-ba9d-ca79b31ba192
2024-04-22 23:22:16,469 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"semantic_id": "bogota", "category": "location", "attributes": {"name": "Bogot\u00e1", "type": "city", "pronunciation": {"en": ["\u02c8bo\u028a\u0261\u0259\u02cct\u0251\u02d0", "b\u0252\u02c8\u0261o\u028at\u0259", "bo\u026a -"], "es": "bo\u0263o\u02c8ta"}, "official_name": "Bogot\u00e1"}, "paragraph_idx": 16}
{"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
{"semantic_id": "merrimack-river", "category": "location", "attributes": {"name": "Merrimack River", "type": "river", "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"semantic_id": "contoocook-river", "category": "location", "attributes": {"name": "Contoocook River", "type": "river", "flows_to": "merrimack-river", "flows_from": ["contoocook-lake", "pool-pond"], "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"from_node": "pool-pond", "to_node": "contoocook-river", "category": "flows_into"}
{"from_node": "contoocook-lake", "to_node": "contoocook-river", "category": "flows_into"}
{"semantic_id": "pool-pond", "category": "location", "attributes": {"name": "Pool Pond", "type": "pond", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"semantic_id": "contoocook-lake", "category": "location", "attributes": {"name": "Contoocook Lake", "type": "lake", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "towns": ["Jaffrey", "Rindge"], "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
{"from_node": "biysky-district", "to_node": "altai-krai", "category": "part_of"}
2024-04-22 23:22:19,105 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: ad00a8de-78fe-4c90-87ec-97495cc749a3: {'nodes': {'semantic_id': 'bogota', 'category': 'location', 'attributes': {'name': 'Bogotá', 'type': 'city', 'pronunciation': {'en': ['ˈboʊɡəˌtɑː', 'bɒˈɡoʊtə', 'boɪ -'], 'es': 'boɣoˈta'}, 'official_name': 'Bogotá'}, 'paragraph_idx': 16}}
2024-04-22 23:22:19,106 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a: {'nodes': {'semantic_id': 'colombia', 'category': 'location', 'attributes': {'name': 'Colombia', 'type': 'country', 'capital': 'Bogotá', 'role': 'political, economic, administrative, industrial, artistic, cultural, and sports center'}, 'paragraph_idx': 16}}
2024-04-22 23:22:19,106 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 2ef968e0-18eb-4cc5-8e40-85f944b23b16: {'edges': {'from_node': UUID('ad00a8de-78fe-4c90-87ec-97495cc749a3'), 'to_node': UUID('57a45a77-0a10-4b3c-aa0f-bb090c7df86a'), 'category': 'capital_of'}}
2024-04-22 23:22:19,107 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:19,108 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ad00a8de-78fe-4c90-87ec-97495cc749a3, 57a45a77-0a10-4b3c-aa0f-bb090c7df86a): 2ef968e0-18eb-4cc5-8e40-85f944b23b16
2024-04-22 23:22:19,108 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: colombia: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a
2024-04-22 23:22:19,109 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bogota: ad00a8de-78fe-4c90-87ec-97495cc749a3
2024-04-22 23:22:19,110 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:19,110 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: merrimack-river: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92
2024-04-22 23:22:19,111 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-river: 65cf9d75-79e6-46a5-aab9-ede4587f8e63
2024-04-22 23:22:19,111 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ada27367-85fa-47e6-9d1c-1f061b2e1dc6, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): e7f20049-4bf1-49ca-b9c9-3061af2aa15c
2024-04-22 23:22:19,112 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e30cf7e-8223-4337-a65d-0c0c108e674e, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): f39afbdf-aded-4076-b3fa-40f7541b98e6
2024-04-22 23:22:19,113 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: pool-pond: ada27367-85fa-47e6-9d1c-1f061b2e1dc6
2024-04-22 23:22:19,113 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "bogota", "to_node": "colombia", "category": "capital_of"}
{"semantic_id": "colombia", "category": "location", "attributes": {"name": "Colombia", "type": "country", "capital": "Bogot\u00e1", "role": "political, economic, administrative, industrial, artistic, cultural, and sports center"}, "paragraph_idx": 16}
{"semantic_id": "bogota", "category": "location", "attributes": {"name": "Bogot\u00e1", "type": "city", "pronunciation": {"en": ["\u02c8bo\u028a\u0261\u0259\u02cct\u0251\u02d0", "b\u0252\u02c8\u0261o\u028at\u0259", "bo\u026a -"], "es": "bo\u0263o\u02c8ta"}, "official_name": "Bogot\u00e1"}, "paragraph_idx": 16}
{"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
{"semantic_id": "merrimack-river", "category": "location", "attributes": {"name": "Merrimack River", "type": "river", "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"semantic_id": "contoocook-river", "category": "location", "attributes": {"name": "Contoocook River", "type": "river", "flows_to": "merrimack-river", "flows_from": ["contoocook-lake", "pool-pond"], "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"from_node": "pool-pond", "to_node": "contoocook-river", "category": "flows_into"}
{"from_node": "contoocook-lake", "to_node": "contoocook-river", "category": "flows_into"}
{"semantic_id": "pool-pond", "category": "location", "attributes": {"name": "Pool Pond", "type": "pond", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
2024-04-22 23:22:21,996 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: ad00a8de-78fe-4c90-87ec-97495cc749a3: {'nodes': {'semantic_id': 'bogota', 'category': 'location', 'attributes': {'name': 'Bogotá', 'type': 'city', 'pronunciation': {'en': ['ˈboʊɡəˌtɑː', 'bɒˈɡoʊtə', 'boɪ -'], 'es': 'boɣoˈta'}, 'official_name': 'Bogotá', 'role': 'political, economic, administrative, industrial, artistic, cultural, and sports center'}, 'paragraph_idx': 16}}
2024-04-22 23:22:21,997 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a: {'nodes': {'semantic_id': 'colombia', 'category': 'location', 'attributes': {'name': 'Colombia', 'type': 'country', 'capital': 'Bogotá'}, 'paragraph_idx': 16}}
2024-04-22 23:22:21,997 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 2ef968e0-18eb-4cc5-8e40-85f944b23b16: {'edges': {'from_node': UUID('ad00a8de-78fe-4c90-87ec-97495cc749a3'), 'to_node': UUID('57a45a77-0a10-4b3c-aa0f-bb090c7df86a'), 'category': 'capital_of'}}
2024-04-22 23:22:21,998 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:21,999 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ad00a8de-78fe-4c90-87ec-97495cc749a3, 57a45a77-0a10-4b3c-aa0f-bb090c7df86a): 2ef968e0-18eb-4cc5-8e40-85f944b23b16
2024-04-22 23:22:21,999 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: colombia: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a
2024-04-22 23:22:22,000 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bogota: ad00a8de-78fe-4c90-87ec-97495cc749a3
2024-04-22 23:22:22,000 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:22,001 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: merrimack-river: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92
2024-04-22 23:22:22,001 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-river: 65cf9d75-79e6-46a5-aab9-ede4587f8e63
2024-04-22 23:22:22,002 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ada27367-85fa-47e6-9d1c-1f061b2e1dc6, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): e7f20049-4bf1-49ca-b9c9-3061af2aa15c
2024-04-22 23:22:22,002 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (4e30cf7e-8223-4337-a65d-0c0c108e674e, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): f39afbdf-aded-4076-b3fa-40f7541b98e6
2024-04-22 23:22:22,003 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: pool-pond: ada27367-85fa-47e6-9d1c-1f061b2e1dc6
2024-04-22 23:22:22,004 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "bogota", "to_node": "colombia", "category": "capital_of"}
{"semantic_id": "colombia", "category": "location", "attributes": {"name": "Colombia", "type": "country", "capital": "Bogot\u00e1"}, "paragraph_idx": 16}
{"semantic_id": "bogota", "category": "location", "attributes": {"name": "Bogot\u00e1", "type": "city", "pronunciation": {"en": ["\u02c8bo\u028a\u0261\u0259\u02cct\u0251\u02d0", "b\u0252\u02c8\u0261o\u028at\u0259", "bo\u026a -"], "es": "bo\u0263o\u02c8ta"}, "official_name": "Bogot\u00e1", "role": "political, economic, administrative, industrial, artistic, cultural, and sports center"}, "paragraph_idx": 16}
{"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
{"semantic_id": "merrimack-river", "category": "location", "attributes": {"name": "Merrimack River", "type": "river", "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"semantic_id": "contoocook-river", "category": "location", "attributes": {"name": "Contoocook River", "type": "river", "flows_to": "merrimack-river", "flows_from": ["contoocook-lake", "pool-pond"], "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"from_node": "pool-pond", "to_node": "contoocook-river", "category": "flows_into"}
{"from_node": "contoocook-lake", "to_node": "contoocook-river", "category": "flows_into"}
{"semantic_id": "pool-pond", "category": "location", "attributes": {"name": "Pool Pond", "type": "pond", "location": {"county": "Cheshire County", "state": "New Hampshire", "country": "United States"}, "is_headwaters_of": "contoocook-river"}, "paragraph_idx": 15}
2024-04-22 23:22:24,113 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d: {'nodes': {'semantic_id': 'intracellular-fluid', 'category': 'substance', 'attributes': {'name': 'Intracellular fluid', 'amount_of_total_body_water': 0.625, 'amount_in_liters': 25, 'percentage_of_total_body_fluid': 62.5}, 'paragraph_idx': 17}}
2024-04-22 23:22:24,114 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 3650ecee-07ad-4858-8d38-4d4cc2703da5: {'nodes': {'semantic_id': 'total-body-fluid', 'category': 'substance', 'attributes': {'amount_in_liters': 40, 'total_body_weight': 72}, 'paragraph_idx': 17}}
2024-04-22 23:22:24,114 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 6a7ca929-c452-4102-92d3-696b92a385d0: {'edges': {'from_node': UUID('a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d'), 'to_node': UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'), 'category': 'part_of'}}
2024-04-22 23:22:24,115 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:24,116 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 6a7ca929-c452-4102-92d3-696b92a385d0
2024-04-22 23:22:24,116 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: total-body-fluid: 3650ecee-07ad-4858-8d38-4d4cc2703da5
2024-04-22 23:22:24,117 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: intracellular-fluid: a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d
2024-04-22 23:22:24,117 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ad00a8de-78fe-4c90-87ec-97495cc749a3, 57a45a77-0a10-4b3c-aa0f-bb090c7df86a): 2ef968e0-18eb-4cc5-8e40-85f944b23b16
2024-04-22 23:22:24,118 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: colombia: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a
2024-04-22 23:22:24,118 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bogota: ad00a8de-78fe-4c90-87ec-97495cc749a3
2024-04-22 23:22:24,119 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:24,119 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: merrimack-river: 9529f921-1f99-4ff7-b9a1-cdce2ff80f92
2024-04-22 23:22:24,120 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: contoocook-river: 65cf9d75-79e6-46a5-aab9-ede4587f8e63
2024-04-22 23:22:24,120 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ada27367-85fa-47e6-9d1c-1f061b2e1dc6, 65cf9d75-79e6-46a5-aab9-ede4587f8e63): e7f20049-4bf1-49ca-b9c9-3061af2aa15c
2024-04-22 23:22:24,121 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"semantic_id": "total-body-fluid", "category": "substance", "attributes": {"amount_in_liters": 40, "total_body_weight": 72}, "paragraph_idx": 17}
{"semantic_id": "intracellular-fluid", "category": "substance", "attributes": {"name": "Intracellular fluid", "amount_of_total_body_water": 0.625, "amount_in_liters": 25, "percentage_of_total_body_fluid": 62.5}, "paragraph_idx": 17}
{"from_node": "bogota", "to_node": "colombia", "category": "capital_of"}
{"semantic_id": "colombia", "category": "location", "attributes": {"name": "Colombia", "type": "country", "capital": "Bogot\u00e1"}, "paragraph_idx": 16}
{"semantic_id": "bogota", "category": "location", "attributes": {"name": "Bogot\u00e1", "type": "city", "pronunciation": {"en": ["\u02c8bo\u028a\u0261\u0259\u02cct\u0251\u02d0", "b\u0252\u02c8\u0261o\u028at\u0259", "bo\u026a -"], "es": "bo\u0263o\u02c8ta"}, "official_name": "Bogot\u00e1", "role": "political, economic, administrative, industrial, artistic, cultural, and sports center"}, "paragraph_idx": 16}
{"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
{"semantic_id": "merrimack-river", "category": "location", "attributes": {"name": "Merrimack River", "type": "river", "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"semantic_id": "contoocook-river", "category": "location", "attributes": {"name": "Contoocook River", "type": "river", "flows_to": "merrimack-river", "flows_from": ["contoocook-lake", "pool-pond"], "location": {"city": "Penacook", "state": "New Hampshire", "country": "United States"}}, "paragraph_idx": 15}
{"from_node": "pool-pond", "to_node": "contoocook-river", "category": "flows_into"}
2024-04-22 23:22:26,425 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 73813ec0-5dbc-4793-8468-420bed7a3cd1: {'nodes': {'semantic_id': 'territorial-waters', 'category': 'location', 'attributes': {'name': 'Territorial waters', 'type': 'sea', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state'}, 'paragraph_idx': 18}}
2024-04-22 23:22:26,425 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433: {'nodes': {'semantic_id': 'law-of-the-sea', 'category': 'legal_framework', 'attributes': {'name': 'United Nations Convention on the Law of the Sea', 'year': 1982}, 'paragraph_idx': 18}}
2024-04-22 23:22:26,426 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 1f97c243-fa43-4380-af8f-4404c5c5ce24: {'edges': {'from_node': UUID('73813ec0-5dbc-4793-8468-420bed7a3cd1'), 'to_node': UUID('84bcbbd4-0d38-42c3-9aa9-3b38227c0433'), 'category': 'defined_by'}}
2024-04-22 23:22:26,426 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:26,427 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:26,427 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: law-of-the-sea: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433
2024-04-22 23:22:26,428 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: territorial-waters: 73813ec0-5dbc-4793-8468-420bed7a3cd1
2024-04-22 23:22:26,428 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 6a7ca929-c452-4102-92d3-696b92a385d0
2024-04-22 23:22:26,429 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: total-body-fluid: 3650ecee-07ad-4858-8d38-4d4cc2703da5
2024-04-22 23:22:26,429 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: intracellular-fluid: a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d
2024-04-22 23:22:26,430 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ad00a8de-78fe-4c90-87ec-97495cc749a3, 57a45a77-0a10-4b3c-aa0f-bb090c7df86a): 2ef968e0-18eb-4cc5-8e40-85f944b23b16
2024-04-22 23:22:26,430 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: colombia: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a
2024-04-22 23:22:26,431 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bogota: ad00a8de-78fe-4c90-87ec-97495cc749a3
2024-04-22 23:22:26,431 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:26,432 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"semantic_id": "law-of-the-sea", "category": "legal_framework", "attributes": {"name": "United Nations Convention on the Law of the Sea", "year": 1982}, "paragraph_idx": 18}
{"semantic_id": "territorial-waters", "category": "location", "attributes": {"name": "Territorial waters", "type": "sea", "definition": "a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state"}, "paragraph_idx": 18}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"semantic_id": "total-body-fluid", "category": "substance", "attributes": {"amount_in_liters": 40, "total_body_weight": 72}, "paragraph_idx": 17}
{"semantic_id": "intracellular-fluid", "category": "substance", "attributes": {"name": "Intracellular fluid", "amount_of_total_body_water": 0.625, "amount_in_liters": 25, "percentage_of_total_body_fluid": 62.5}, "paragraph_idx": 17}
{"from_node": "bogota", "to_node": "colombia", "category": "capital_of"}
{"semantic_id": "colombia", "category": "location", "attributes": {"name": "Colombia", "type": "country", "capital": "Bogot\u00e1"}, "paragraph_idx": 16}
{"semantic_id": "bogota", "category": "location", "attributes": {"name": "Bogot\u00e1", "type": "city", "pronunciation": {"en": ["\u02c8bo\u028a\u0261\u0259\u02cct\u0251\u02d0", "b\u0252\u02c8\u0261o\u028at\u0259", "bo\u026a -"], "es": "bo\u0263o\u02c8ta"}, "official_name": "Bogot\u00e1", "role": "political, economic, administrative, industrial, artistic, cultural, and sports center"}, "paragraph_idx": 16}
{"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
2024-04-22 23:22:28,606 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 73813ec0-5dbc-4793-8468-420bed7a3cd1: {'nodes': {'semantic_id': 'territorial-waters', 'category': 'location', 'attributes': {'name': 'Territorial waters', 'type': 'sea', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state'}, 'paragraph_idx': 18}}
2024-04-22 23:22:28,607 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433: {'nodes': {'semantic_id': 'law-of-the-sea', 'category': 'legal_framework', 'attributes': {'name': 'United Nations Convention on the Law of the Sea', 'year': 1982}, 'paragraph_idx': 18}}
2024-04-22 23:22:28,607 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 1f97c243-fa43-4380-af8f-4404c5c5ce24: {'edges': {'from_node': UUID('73813ec0-5dbc-4793-8468-420bed7a3cd1'), 'to_node': UUID('84bcbbd4-0d38-42c3-9aa9-3b38227c0433'), 'category': 'defined_by'}}
2024-04-22 23:22:28,608 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:28,609 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:28,609 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: law-of-the-sea: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433
2024-04-22 23:22:28,610 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: territorial-waters: 73813ec0-5dbc-4793-8468-420bed7a3cd1
2024-04-22 23:22:28,610 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 6a7ca929-c452-4102-92d3-696b92a385d0
2024-04-22 23:22:28,611 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: total-body-fluid: 3650ecee-07ad-4858-8d38-4d4cc2703da5
2024-04-22 23:22:28,611 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: intracellular-fluid: a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d
2024-04-22 23:22:28,612 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ad00a8de-78fe-4c90-87ec-97495cc749a3, 57a45a77-0a10-4b3c-aa0f-bb090c7df86a): 2ef968e0-18eb-4cc5-8e40-85f944b23b16
2024-04-22 23:22:28,612 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: colombia: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a
2024-04-22 23:22:28,613 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bogota: ad00a8de-78fe-4c90-87ec-97495cc749a3
2024-04-22 23:22:28,614 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (65cf9d75-79e6-46a5-aab9-ede4587f8e63, 9529f921-1f99-4ff7-b9a1-cdce2ff80f92): c7467973-16e6-4395-8ef9-420c0d1227aa
2024-04-22 23:22:28,615 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"semantic_id": "law-of-the-sea", "category": "legal_framework", "attributes": {"name": "United Nations Convention on the Law of the Sea", "year": 1982}, "paragraph_idx": 18}
{"semantic_id": "territorial-waters", "category": "location", "attributes": {"name": "Territorial waters", "type": "sea", "definition": "a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state"}, "paragraph_idx": 18}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"semantic_id": "total-body-fluid", "category": "substance", "attributes": {"amount_in_liters": 40, "total_body_weight": 72}, "paragraph_idx": 17}
{"semantic_id": "intracellular-fluid", "category": "substance", "attributes": {"name": "Intracellular fluid", "amount_of_total_body_water": 0.625, "amount_in_liters": 25, "percentage_of_total_body_fluid": 62.5}, "paragraph_idx": 17}
{"from_node": "bogota", "to_node": "colombia", "category": "capital_of"}
{"semantic_id": "colombia", "category": "location", "attributes": {"name": "Colombia", "type": "country", "capital": "Bogot\u00e1"}, "paragraph_idx": 16}
{"semantic_id": "bogota", "category": "location", "attributes": {"name": "Bogot\u00e1", "type": "city", "pronunciation": {"en": ["\u02c8bo\u028a\u0261\u0259\u02cct\u0251\u02d0", "b\u0252\u02c8\u0261o\u028at\u0259", "bo\u026a -"], "es": "bo\u0263o\u02c8ta"}, "official_name": "Bogot\u00e1", "role": "political, economic, administrative, industrial, artistic, cultural, and sports center"}, "paragraph_idx": 16}
{"from_node": "contoocook-river", "to_node": "merrimack-river", "category": "flows_into"}
2024-04-22 23:22:30,647 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: bc1c5af9-c311-4e9f-975d-349d33d41a15: {'nodes': {'semantic_id': 'straits', 'category': 'location', 'attributes': {'name': 'Straits', 'type': 'body of water', 'sovereignty': 'This sovereignty extends to the airspace over and seabed below'}, 'paragraph_idx': 18}}
2024-04-22 23:22:30,648 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 72499573-c0cf-4a31-840a-da1dd1bf4c2f: {'nodes': {'semantic_id': 'maritime-delimitation', 'category': 'process', 'attributes': {'name': 'Maritime delimitation', 'description': 'Adjustment of the boundaries of territorial waters and exclusive economic zones'}, 'paragraph_idx': 18}}
2024-04-22 23:22:30,648 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 238e98a5-a6be-4048-adf2-f1a310fd78df: {'edges': {'from_node': UUID('bc1c5af9-c311-4e9f-975d-349d33d41a15'), 'to_node': UUID('72499573-c0cf-4a31-840a-da1dd1bf4c2f'), 'category': 'defined_by'}}
2024-04-22 23:22:30,650 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:30,651 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (bc1c5af9-c311-4e9f-975d-349d33d41a15, 72499573-c0cf-4a31-840a-da1dd1bf4c2f): 238e98a5-a6be-4048-adf2-f1a310fd78df
2024-04-22 23:22:30,651 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: maritime-delimitation: 72499573-c0cf-4a31-840a-da1dd1bf4c2f
2024-04-22 23:22:30,652 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: straits: bc1c5af9-c311-4e9f-975d-349d33d41a15
2024-04-22 23:22:30,652 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:30,653 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: law-of-the-sea: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433
2024-04-22 23:22:30,653 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: territorial-waters: 73813ec0-5dbc-4793-8468-420bed7a3cd1
2024-04-22 23:22:30,654 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 6a7ca929-c452-4102-92d3-696b92a385d0
2024-04-22 23:22:30,655 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: total-body-fluid: 3650ecee-07ad-4858-8d38-4d4cc2703da5
2024-04-22 23:22:30,655 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: intracellular-fluid: a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d
2024-04-22 23:22:30,656 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (ad00a8de-78fe-4c90-87ec-97495cc749a3, 57a45a77-0a10-4b3c-aa0f-bb090c7df86a): 2ef968e0-18eb-4cc5-8e40-85f944b23b16
2024-04-22 23:22:30,657 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: colombia: 57a45a77-0a10-4b3c-aa0f-bb090c7df86a
2024-04-22 23:22:30,658 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "straits", "to_node": "maritime-delimitation", "category": "defined_by"}
{"semantic_id": "maritime-delimitation", "category": "process", "attributes": {"name": "Maritime delimitation", "description": "Adjustment of the boundaries of territorial waters and exclusive economic zones"}, "paragraph_idx": 18}
{"semantic_id": "straits", "category": "location", "attributes": {"name": "Straits", "type": "body of water", "sovereignty": "This sovereignty extends to the airspace over and seabed below"}, "paragraph_idx": 18}
{"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"semantic_id": "law-of-the-sea", "category": "legal_framework", "attributes": {"name": "United Nations Convention on the Law of the Sea", "year": 1982}, "paragraph_idx": 18}
{"semantic_id": "territorial-waters", "category": "location", "attributes": {"name": "Territorial waters", "type": "sea", "definition": "a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state"}, "paragraph_idx": 18}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"semantic_id": "total-body-fluid", "category": "substance", "attributes": {"amount_in_liters": 40, "total_body_weight": 72}, "paragraph_idx": 17}
{"semantic_id": "intracellular-fluid", "category": "substance", "attributes": {"name": "Intracellular fluid", "amount_of_total_body_water": 0.625, "amount_in_liters": 25, "percentage_of_total_body_fluid": 62.5}, "paragraph_idx": 17}
{"from_node": "bogota", "to_node": "colombia", "category": "capital_of"}
{"semantic_id": "colombia", "category": "location", "attributes": {"name": "Colombia", "type": "country", "capital": "Bogot\u00e1"}, "paragraph_idx": 16}
2024-04-22 23:22:32,924 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 7540bcc4-0cb2-463c-9250-40aadee08d65: {'nodes': {'semantic_id': 'cyprus-popular-bank', 'category': 'organization', 'attributes': {'name': 'Cyprus Popular Bank', 'previous_names': ['Marfin Popular Bank'], 'status': 'shuttered in March 2013', 'description': 'Second largest banking group in Cyprus behind the Bank of Cyprus until 2013'}, 'paragraph_idx': 19}}
2024-04-22 23:22:32,924 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: cc1d4304-6583-4c76-9856-75f41f945f20: {'nodes': {'semantic_id': 'bank-of-cyprus', 'category': 'organization', 'attributes': {'name': 'Bank of Cyprus', 'description': 'Largest banking group in Cyprus', 'relationship': "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, 'paragraph_idx': 19}}
2024-04-22 23:22:32,925 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 51aade3e-39c7-41f8-87b2-38b9b595d6d3: {'edges': {'from_node': UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'), 'to_node': UUID('cc1d4304-6583-4c76-9856-75f41f945f20'), 'category': 'merged_with'}}
2024-04-22 23:22:32,925 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:32,926 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7540bcc4-0cb2-463c-9250-40aadee08d65, cc1d4304-6583-4c76-9856-75f41f945f20): 51aade3e-39c7-41f8-87b2-38b9b595d6d3
2024-04-22 23:22:32,926 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bank-of-cyprus: cc1d4304-6583-4c76-9856-75f41f945f20
2024-04-22 23:22:32,927 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: cyprus-popular-bank: 7540bcc4-0cb2-463c-9250-40aadee08d65
2024-04-22 23:22:32,928 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (bc1c5af9-c311-4e9f-975d-349d33d41a15, 72499573-c0cf-4a31-840a-da1dd1bf4c2f): 238e98a5-a6be-4048-adf2-f1a310fd78df
2024-04-22 23:22:32,928 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: maritime-delimitation: 72499573-c0cf-4a31-840a-da1dd1bf4c2f
2024-04-22 23:22:32,929 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: straits: bc1c5af9-c311-4e9f-975d-349d33d41a15
2024-04-22 23:22:32,930 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:32,930 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: law-of-the-sea: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433
2024-04-22 23:22:32,931 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: territorial-waters: 73813ec0-5dbc-4793-8468-420bed7a3cd1
2024-04-22 23:22:32,931 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 6a7ca929-c452-4102-92d3-696b92a385d0
2024-04-22 23:22:32,932 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: total-body-fluid: 3650ecee-07ad-4858-8d38-4d4cc2703da5
2024-04-22 23:22:32,933 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "cyprus-popular-bank", "to_node": "bank-of-cyprus", "category": "merged_with"}
{"semantic_id": "bank-of-cyprus", "category": "organization", "attributes": {"name": "Bank of Cyprus", "description": "Largest banking group in Cyprus", "relationship": "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, "paragraph_idx": 19}
{"semantic_id": "cyprus-popular-bank", "category": "organization", "attributes": {"name": "Cyprus Popular Bank", "previous_names": ["Marfin Popular Bank"], "status": "shuttered in March 2013", "description": "Second largest banking group in Cyprus behind the Bank of Cyprus until 2013"}, "paragraph_idx": 19}
{"from_node": "straits", "to_node": "maritime-delimitation", "category": "defined_by"}
{"semantic_id": "maritime-delimitation", "category": "process", "attributes": {"name": "Maritime delimitation", "description": "Adjustment of the boundaries of territorial waters and exclusive economic zones"}, "paragraph_idx": 18}
{"semantic_id": "straits", "category": "location", "attributes": {"name": "Straits", "type": "body of water", "sovereignty": "This sovereignty extends to the airspace over and seabed below"}, "paragraph_idx": 18}
{"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"semantic_id": "law-of-the-sea", "category": "legal_framework", "attributes": {"name": "United Nations Convention on the Law of the Sea", "year": 1982}, "paragraph_idx": 18}
{"semantic_id": "territorial-waters", "category": "location", "attributes": {"name": "Territorial waters", "type": "sea", "definition": "a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state"}, "paragraph_idx": 18}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"semantic_id": "total-body-fluid", "category": "substance", "attributes": {"amount_in_liters": 40, "total_body_weight": 72}, "paragraph_idx": 17}
2024-04-22 23:22:39,133 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: cc1d4304-6583-4c76-9856-75f41f945f20: {'nodes': {'semantic_id': 'bank-of-cyprus', 'category': 'organization', 'attributes': {'name': 'Bank of Cyprus', 'description': 'Largest banking group in Cyprus', 'relationship': "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, 'paragraph_idx': 19}}
2024-04-22 23:22:39,134 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 7540bcc4-0cb2-463c-9250-40aadee08d65: {'nodes': {'semantic_id': 'cyprus-popular-bank', 'category': 'organization', 'attributes': {'name': 'Cyprus Popular Bank', 'previous_names': ['Marfin Popular Bank'], 'status': 'shuttered in March 2013', 'description': 'Second largest banking group in Cyprus behind the Bank of Cyprus until 2013'}, 'paragraph_idx': 19}}
2024-04-22 23:22:39,135 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 72499573-c0cf-4a31-840a-da1dd1bf4c2f: {'nodes': {'semantic_id': 'maritime-delimitation', 'category': 'process', 'attributes': {'name': 'Maritime delimitation', 'description': 'Adjustment of the boundaries of territorial waters and exclusive economic zones'}, 'paragraph_idx': 19}}
2024-04-22 23:22:39,135 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: bc1c5af9-c311-4e9f-975d-349d33d41a15: {'nodes': {'semantic_id': 'straits', 'category': 'location', 'attributes': {'name': 'Straits', 'type': 'body of water', 'sovereignty': 'This sovereignty extends to the airspace over and seabed below'}, 'paragraph_idx': 19}}
2024-04-22 23:22:39,136 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433: {'nodes': {'semantic_id': 'law-of-the-sea', 'category': 'legal_framework', 'attributes': {'name': 'United Nations Convention on the Law of the Sea', 'year': 1982}, 'paragraph_idx': 19}}
2024-04-22 23:22:39,136 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 73813ec0-5dbc-4793-8468-420bed7a3cd1: {'nodes': {'semantic_id': 'territorial-waters', 'category': 'location', 'attributes': {'name': 'Territorial waters', 'type': 'sea', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state'}, 'paragraph_idx': 19}}
2024-04-22 23:22:39,136 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 3650ecee-07ad-4858-8d38-4d4cc2703da5: {'nodes': {'semantic_id': 'total-body-fluid', 'category': 'substance', 'attributes': {'amount_in_liters': 40, 'total_body_weight': 72}, 'paragraph_idx': 19}}
2024-04-22 23:22:39,137 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 8994bac8-1a03-45a7-9e76-e2125548d7c9: {'nodes': {'semantic_id': 'intracellular-fluid', 'category': 'substance', 'paragraph_idx': 19}}
2024-04-22 23:22:39,137 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 51aade3e-39c7-41f8-87b2-38b9b595d6d3: {'edges': {'from_node': UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'), 'to_node': UUID('cc1d4304-6583-4c76-9856-75f41f945f20'), 'category': 'merged_with'}}
2024-04-22 23:22:39,138 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 238e98a5-a6be-4048-adf2-f1a310fd78df: {'edges': {'from_node': UUID('bc1c5af9-c311-4e9f-975d-349d33d41a15'), 'to_node': UUID('72499573-c0cf-4a31-840a-da1dd1bf4c2f'), 'category': 'defined_by'}}
2024-04-22 23:22:39,138 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 1f97c243-fa43-4380-af8f-4404c5c5ce24: {'edges': {'from_node': UUID('73813ec0-5dbc-4793-8468-420bed7a3cd1'), 'to_node': UUID('84bcbbd4-0d38-42c3-9aa9-3b38227c0433'), 'category': 'defined_by'}}
2024-04-22 23:22:39,139 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 8d3a66e1-85c3-4cf9-a995-9eb0c91c2510: {'edges': {'from_node': UUID('8994bac8-1a03-45a7-9e76-e2125548d7c9'), 'to_node': UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'), 'category': 'part_of'}}
2024-04-22 23:22:39,139 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:39,140 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (8994bac8-1a03-45a7-9e76-e2125548d7c9, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 8d3a66e1-85c3-4cf9-a995-9eb0c91c2510
2024-04-22 23:22:39,141 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:39,142 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (bc1c5af9-c311-4e9f-975d-349d33d41a15, 72499573-c0cf-4a31-840a-da1dd1bf4c2f): 238e98a5-a6be-4048-adf2-f1a310fd78df
2024-04-22 23:22:39,142 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7540bcc4-0cb2-463c-9250-40aadee08d65, cc1d4304-6583-4c76-9856-75f41f945f20): 51aade3e-39c7-41f8-87b2-38b9b595d6d3
2024-04-22 23:22:39,143 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: intracellular-fluid: 8994bac8-1a03-45a7-9e76-e2125548d7c9
2024-04-22 23:22:39,144 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: total-body-fluid: 3650ecee-07ad-4858-8d38-4d4cc2703da5
2024-04-22 23:22:39,145 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: territorial-waters: 73813ec0-5dbc-4793-8468-420bed7a3cd1
2024-04-22 23:22:39,145 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: law-of-the-sea: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433
2024-04-22 23:22:39,146 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: straits: bc1c5af9-c311-4e9f-975d-349d33d41a15
2024-04-22 23:22:39,147 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: maritime-delimitation: 72499573-c0cf-4a31-840a-da1dd1bf4c2f
2024-04-22 23:22:39,148 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: cyprus-popular-bank: 7540bcc4-0cb2-463c-9250-40aadee08d65
2024-04-22 23:22:39,148 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bank-of-cyprus: cc1d4304-6583-4c76-9856-75f41f945f20
2024-04-22 23:22:39,149 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 6a7ca929-c452-4102-92d3-696b92a385d0
2024-04-22 23:22:39,150 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"from_node": "straits", "to_node": "maritime-delimitation", "category": "defined_by"}
{"from_node": "cyprus-popular-bank", "to_node": "bank-of-cyprus", "category": "merged_with"}
{"semantic_id": "intracellular-fluid", "category": "substance", "paragraph_idx": 19}
{"semantic_id": "total-body-fluid", "category": "substance", "attributes": {"amount_in_liters": 40, "total_body_weight": 72}, "paragraph_idx": 19}
{"semantic_id": "territorial-waters", "category": "location", "attributes": {"name": "Territorial waters", "type": "sea", "definition": "a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state"}, "paragraph_idx": 19}
{"semantic_id": "law-of-the-sea", "category": "legal_framework", "attributes": {"name": "United Nations Convention on the Law of the Sea", "year": 1982}, "paragraph_idx": 19}
{"semantic_id": "straits", "category": "location", "attributes": {"name": "Straits", "type": "body of water", "sovereignty": "This sovereignty extends to the airspace over and seabed below"}, "paragraph_idx": 19}
{"semantic_id": "maritime-delimitation", "category": "process", "attributes": {"name": "Maritime delimitation", "description": "Adjustment of the boundaries of territorial waters and exclusive economic zones"}, "paragraph_idx": 19}
{"semantic_id": "cyprus-popular-bank", "category": "organization", "attributes": {"name": "Cyprus Popular Bank", "previous_names": ["Marfin Popular Bank"], "status": "shuttered in March 2013", "description": "Second largest banking group in Cyprus behind the Bank of Cyprus until 2013"}, "paragraph_idx": 19}
{"semantic_id": "bank-of-cyprus", "category": "organization", "attributes": {"name": "Bank of Cyprus", "description": "Largest banking group in Cyprus", "relationship": "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, "paragraph_idx": 19}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
2024-04-22 23:22:47,132 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 8994bac8-1a03-45a7-9e76-e2125548d7c9: {'nodes': {'semantic_id': 'intracellular-fluid', 'category': 'substance', 'paragraph_idx': 19}}
2024-04-22 23:22:47,133 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 3650ecee-07ad-4858-8d38-4d4cc2703da5: {'nodes': {'semantic_id': 'total-body-fluid', 'category': 'substance', 'attributes': {'amount_in_liters': 40, 'total_body_weight': 72}, 'paragraph_idx': 19}}
2024-04-22 23:22:47,134 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 73813ec0-5dbc-4793-8468-420bed7a3cd1: {'nodes': {'semantic_id': 'territorial-waters', 'category': 'location', 'attributes': {'name': 'Territorial waters', 'type': 'sea', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state'}, 'paragraph_idx': 19}}
2024-04-22 23:22:47,134 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433: {'nodes': {'semantic_id': 'law-of-the-sea', 'category': 'legal_framework', 'attributes': {'name': 'United Nations Convention on the Law of the Sea', 'year': 1982}, 'paragraph_idx': 19}}
2024-04-22 23:22:47,135 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: bc1c5af9-c311-4e9f-975d-349d33d41a15: {'nodes': {'semantic_id': 'straits', 'category': 'location', 'attributes': {'name': 'Straits', 'type': 'body of water', 'sovereignty': 'This sovereignty extends to the airspace over and seabed below'}, 'paragraph_idx': 19}}
2024-04-22 23:22:47,135 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 72499573-c0cf-4a31-840a-da1dd1bf4c2f: {'nodes': {'semantic_id': 'maritime-delimitation', 'category': 'process', 'attributes': {'name': 'Maritime delimitation', 'description': 'Adjustment of the boundaries of territorial waters and exclusive economic zones'}, 'paragraph_idx': 19}}
2024-04-22 23:22:47,136 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 7540bcc4-0cb2-463c-9250-40aadee08d65: {'nodes': {'semantic_id': 'cyprus-popular-bank', 'category': 'organization', 'attributes': {'name': 'Cyprus Popular Bank', 'previous_names': ['Marfin Popular Bank'], 'status': 'shuttered in March 2013', 'description': 'Second largest banking group in Cyprus behind the Bank of Cyprus until 2013'}, 'paragraph_idx': 19}}
2024-04-22 23:22:47,136 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: cc1d4304-6583-4c76-9856-75f41f945f20: {'nodes': {'semantic_id': 'bank-of-cyprus', 'category': 'organization', 'attributes': {'name': 'Bank of Cyprus', 'description': 'Largest banking group in Cyprus', 'relationship': "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, 'paragraph_idx': 19}}
2024-04-22 23:22:47,137 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 8d3a66e1-85c3-4cf9-a995-9eb0c91c2510: {'edges': {'from_node': UUID('8994bac8-1a03-45a7-9e76-e2125548d7c9'), 'to_node': UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'), 'category': 'part_of'}}
2024-04-22 23:22:47,137 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 1f97c243-fa43-4380-af8f-4404c5c5ce24: {'edges': {'from_node': UUID('73813ec0-5dbc-4793-8468-420bed7a3cd1'), 'to_node': UUID('84bcbbd4-0d38-42c3-9aa9-3b38227c0433'), 'category': 'defined_by'}}
2024-04-22 23:22:47,138 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 238e98a5-a6be-4048-adf2-f1a310fd78df: {'edges': {'from_node': UUID('bc1c5af9-c311-4e9f-975d-349d33d41a15'), 'to_node': UUID('72499573-c0cf-4a31-840a-da1dd1bf4c2f'), 'category': 'defined_by'}}
2024-04-22 23:22:47,139 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 51aade3e-39c7-41f8-87b2-38b9b595d6d3: {'edges': {'from_node': UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'), 'to_node': UUID('cc1d4304-6583-4c76-9856-75f41f945f20'), 'category': 'merged_with'}}
2024-04-22 23:22:47,139 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: 8d3a66e1-85c3-4cf9-a995-9eb0c91c2510: {'edges': {'from_node': UUID('8994bac8-1a03-45a7-9e76-e2125548d7c9'), 'to_node': UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'), 'category': 'part_of'}}
2024-04-22 23:22:47,139 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:47,140 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (8994bac8-1a03-45a7-9e76-e2125548d7c9, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 8d3a66e1-85c3-4cf9-a995-9eb0c91c2510
2024-04-22 23:22:47,141 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7540bcc4-0cb2-463c-9250-40aadee08d65, cc1d4304-6583-4c76-9856-75f41f945f20): 51aade3e-39c7-41f8-87b2-38b9b595d6d3
2024-04-22 23:22:47,141 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (bc1c5af9-c311-4e9f-975d-349d33d41a15, 72499573-c0cf-4a31-840a-da1dd1bf4c2f): 238e98a5-a6be-4048-adf2-f1a310fd78df
2024-04-22 23:22:47,142 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:47,142 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bank-of-cyprus: cc1d4304-6583-4c76-9856-75f41f945f20
2024-04-22 23:22:47,143 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: cyprus-popular-bank: 7540bcc4-0cb2-463c-9250-40aadee08d65
2024-04-22 23:22:47,143 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: maritime-delimitation: 72499573-c0cf-4a31-840a-da1dd1bf4c2f
2024-04-22 23:22:47,144 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: straits: bc1c5af9-c311-4e9f-975d-349d33d41a15
2024-04-22 23:22:47,145 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: law-of-the-sea: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433
2024-04-22 23:22:47,145 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: territorial-waters: 73813ec0-5dbc-4793-8468-420bed7a3cd1
2024-04-22 23:22:47,146 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: total-body-fluid: 3650ecee-07ad-4858-8d38-4d4cc2703da5
2024-04-22 23:22:47,146 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: intracellular-fluid: 8994bac8-1a03-45a7-9e76-e2125548d7c9
2024-04-22 23:22:47,147 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 6a7ca929-c452-4102-92d3-696b92a385d0
2024-04-22 23:22:47,148 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"from_node": "cyprus-popular-bank", "to_node": "bank-of-cyprus", "category": "merged_with"}
{"from_node": "straits", "to_node": "maritime-delimitation", "category": "defined_by"}
{"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"semantic_id": "bank-of-cyprus", "category": "organization", "attributes": {"name": "Bank of Cyprus", "description": "Largest banking group in Cyprus", "relationship": "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, "paragraph_idx": 19}
{"semantic_id": "cyprus-popular-bank", "category": "organization", "attributes": {"name": "Cyprus Popular Bank", "previous_names": ["Marfin Popular Bank"], "status": "shuttered in March 2013", "description": "Second largest banking group in Cyprus behind the Bank of Cyprus until 2013"}, "paragraph_idx": 19}
{"semantic_id": "maritime-delimitation", "category": "process", "attributes": {"name": "Maritime delimitation", "description": "Adjustment of the boundaries of territorial waters and exclusive economic zones"}, "paragraph_idx": 19}
{"semantic_id": "straits", "category": "location", "attributes": {"name": "Straits", "type": "body of water", "sovereignty": "This sovereignty extends to the airspace over and seabed below"}, "paragraph_idx": 19}
{"semantic_id": "law-of-the-sea", "category": "legal_framework", "attributes": {"name": "United Nations Convention on the Law of the Sea", "year": 1982}, "paragraph_idx": 19}
{"semantic_id": "territorial-waters", "category": "location", "attributes": {"name": "Territorial waters", "type": "sea", "definition": "a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state"}, "paragraph_idx": 19}
{"semantic_id": "total-body-fluid", "category": "substance", "attributes": {"amount_in_liters": 40, "total_body_weight": 72}, "paragraph_idx": 19}
{"semantic_id": "intracellular-fluid", "category": "substance", "paragraph_idx": 19}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
2024-04-22 23:22:50,963 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 7540bcc4-0cb2-463c-9250-40aadee08d65: {'nodes': {'semantic_id': 'cyprus-popular-bank', 'category': 'organization', 'attributes': {'name': 'Cyprus Popular Bank', 'previous_names': ['Marfin Popular Bank'], 'status': 'shuttered in March 2013', 'description': 'Second largest banking group in Cyprus behind the Bank of Cyprus until 2013'}, 'paragraph_idx': 19}}
2024-04-22 23:22:50,963 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 883c8cec-7a77-44ff-9d5d-0aefda29ce21: {'nodes': {'semantic_id': 'special-administrator', 'category': 'person', 'attributes': {'name': 'Andri Antoniadou', 'position': 'ran the legacy entity of Cyprus Popular Bank for two years, from March 2013 until 3 March 2015'}, 'paragraph_idx': 19}}
2024-04-22 23:22:50,964 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 7b7ab7bd-43ab-4a85-a863-587230a60496: {'nodes': {'semantic_id': 'legacy-entity', 'category': 'organization', 'attributes': {'name': 'Legacy entity of Cyprus Popular Bank', 'description': 'Holds all the overseas operations of the now defunct Cyprus Popular Bank, until they are sold by the Special Administrator'}, 'paragraph_idx': 19}}
2024-04-22 23:22:50,964 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: b9ef6b09-848c-4ee3-94b8-2a0dbb4e88bb: {'edges': {'from_node': UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'), 'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'), 'category': 'owns'}}
2024-04-22 23:22:50,965 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: ddeb860c-8a26-4602-81b2-80c3a81058b9: {'edges': {'from_node': UUID('883c8cec-7a77-44ff-9d5d-0aefda29ce21'), 'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'), 'category': 'manages'}}
2024-04-22 23:22:50,965 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:50,966 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (883c8cec-7a77-44ff-9d5d-0aefda29ce21, 7b7ab7bd-43ab-4a85-a863-587230a60496): ddeb860c-8a26-4602-81b2-80c3a81058b9
2024-04-22 23:22:50,966 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7540bcc4-0cb2-463c-9250-40aadee08d65, 7b7ab7bd-43ab-4a85-a863-587230a60496): b9ef6b09-848c-4ee3-94b8-2a0dbb4e88bb
2024-04-22 23:22:50,967 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: legacy-entity: 7b7ab7bd-43ab-4a85-a863-587230a60496
2024-04-22 23:22:50,968 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: special-administrator: 883c8cec-7a77-44ff-9d5d-0aefda29ce21
2024-04-22 23:22:50,968 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: cyprus-popular-bank: 7540bcc4-0cb2-463c-9250-40aadee08d65
2024-04-22 23:22:50,969 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (8994bac8-1a03-45a7-9e76-e2125548d7c9, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 8d3a66e1-85c3-4cf9-a995-9eb0c91c2510
2024-04-22 23:22:50,969 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7540bcc4-0cb2-463c-9250-40aadee08d65, cc1d4304-6583-4c76-9856-75f41f945f20): 51aade3e-39c7-41f8-87b2-38b9b595d6d3
2024-04-22 23:22:50,970 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (bc1c5af9-c311-4e9f-975d-349d33d41a15, 72499573-c0cf-4a31-840a-da1dd1bf4c2f): 238e98a5-a6be-4048-adf2-f1a310fd78df
2024-04-22 23:22:50,970 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:50,971 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bank-of-cyprus: cc1d4304-6583-4c76-9856-75f41f945f20
2024-04-22 23:22:50,972 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: maritime-delimitation: 72499573-c0cf-4a31-840a-da1dd1bf4c2f
2024-04-22 23:22:50,972 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: straits: bc1c5af9-c311-4e9f-975d-349d33d41a15
2024-04-22 23:22:50,973 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: law-of-the-sea: 84bcbbd4-0d38-42c3-9aa9-3b38227c0433
2024-04-22 23:22:50,974 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "special-administrator", "to_node": "legacy-entity", "category": "manages"}
{"from_node": "cyprus-popular-bank", "to_node": "legacy-entity", "category": "owns"}
{"semantic_id": "legacy-entity", "category": "organization", "attributes": {"name": "Legacy entity of Cyprus Popular Bank", "description": "Holds all the overseas operations of the now defunct Cyprus Popular Bank, until they are sold by the Special Administrator"}, "paragraph_idx": 19}
{"semantic_id": "special-administrator", "category": "person", "attributes": {"name": "Andri Antoniadou", "position": "ran the legacy entity of Cyprus Popular Bank for two years, from March 2013 until 3 March 2015"}, "paragraph_idx": 19}
{"semantic_id": "cyprus-popular-bank", "category": "organization", "attributes": {"name": "Cyprus Popular Bank", "previous_names": ["Marfin Popular Bank"], "status": "shuttered in March 2013", "description": "Second largest banking group in Cyprus behind the Bank of Cyprus until 2013"}, "paragraph_idx": 19}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"from_node": "cyprus-popular-bank", "to_node": "bank-of-cyprus", "category": "merged_with"}
{"from_node": "straits", "to_node": "maritime-delimitation", "category": "defined_by"}
{"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"semantic_id": "bank-of-cyprus", "category": "organization", "attributes": {"name": "Bank of Cyprus", "description": "Largest banking group in Cyprus", "relationship": "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, "paragraph_idx": 19}
{"semantic_id": "maritime-delimitation", "category": "process", "attributes": {"name": "Maritime delimitation", "description": "Adjustment of the boundaries of territorial waters and exclusive economic zones"}, "paragraph_idx": 19}
{"semantic_id": "straits", "category": "location", "attributes": {"name": "Straits", "type": "body of water", "sovereignty": "This sovereignty extends to the airspace over and seabed below"}, "paragraph_idx": 19}
{"semantic_id": "law-of-the-sea", "category": "legal_framework", "attributes": {"name": "United Nations Convention on the Law of the Sea", "year": 1982}, "paragraph_idx": 19}
2024-04-22 23:22:55,363 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 7b7ab7bd-43ab-4a85-a863-587230a60496: {'nodes': {'semantic_id': 'legacy-entity', 'category': 'organization', 'attributes': {'name': 'Legacy entity of Cyprus Popular Bank', 'description': 'Holds all the overseas operations of the now defunct Cyprus Popular Bank, until they are sold by the Special Administrator'}, 'paragraph_idx': 19}}
2024-04-22 23:22:55,364 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 883c8cec-7a77-44ff-9d5d-0aefda29ce21: {'nodes': {'semantic_id': 'special-administrator', 'category': 'person', 'attributes': {'name': 'Andri Antoniadou', 'position': 'ran the legacy entity of Cyprus Popular Bank for two years, from March 2013 until 3 March 2015'}, 'paragraph_idx': 19}}
2024-04-22 23:22:55,364 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: d4c1831d-40c6-44ad-ba34-a8945f1ddfb3: {'nodes': {'semantic_id': 'central-bank-of-cyprus', 'category': 'organization', 'attributes': {'name': 'Central Bank of Cyprus', 'description': 'The central bank that amended the lawyers of the legacy entity without consulting the special administrator'}, 'paragraph_idx': 19}}
2024-04-22 23:22:55,365 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: 3b46a61b-149b-4102-afd7-da851e1dda5c: {'nodes': {'semantic_id': 'veteran-banker', 'category': 'person', 'attributes': {'name': 'Chris Pavlou', 'expertise': 'expert in Treasury'}, 'paragraph_idx': 19}}
2024-04-22 23:22:55,365 - DEBUG - root - 1783301770 - add_history - 74 - Edge exists in latest_history_mapping, moving to end of history: ddeb860c-8a26-4602-81b2-80c3a81058b9: {'edges': {'from_node': UUID('883c8cec-7a77-44ff-9d5d-0aefda29ce21'), 'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'), 'category': 'manages'}}
2024-04-22 23:22:55,366 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: edad1ce6-fc15-4785-8188-9be0a9e2fb30: {'edges': {'from_node': UUID('d4c1831d-40c6-44ad-ba34-a8945f1ddfb3'), 'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'), 'category': 'amended_lawyers'}}
2024-04-22 23:22:55,366 - DEBUG - root - 1783301770 - get_history_window - 90 - Cleared latest_history_mapping and latest_history
2024-04-22 23:22:55,367 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (d4c1831d-40c6-44ad-ba34-a8945f1ddfb3, 7b7ab7bd-43ab-4a85-a863-587230a60496): edad1ce6-fc15-4785-8188-9be0a9e2fb30
2024-04-22 23:22:55,367 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (883c8cec-7a77-44ff-9d5d-0aefda29ce21, 7b7ab7bd-43ab-4a85-a863-587230a60496): ddeb860c-8a26-4602-81b2-80c3a81058b9
2024-04-22 23:22:55,368 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: veteran-banker: 3b46a61b-149b-4102-afd7-da851e1dda5c
2024-04-22 23:22:55,369 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: central-bank-of-cyprus: d4c1831d-40c6-44ad-ba34-a8945f1ddfb3
2024-04-22 23:22:55,369 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: special-administrator: 883c8cec-7a77-44ff-9d5d-0aefda29ce21
2024-04-22 23:22:55,370 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: legacy-entity: 7b7ab7bd-43ab-4a85-a863-587230a60496
2024-04-22 23:22:55,370 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7540bcc4-0cb2-463c-9250-40aadee08d65, 7b7ab7bd-43ab-4a85-a863-587230a60496): b9ef6b09-848c-4ee3-94b8-2a0dbb4e88bb
2024-04-22 23:22:55,371 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: cyprus-popular-bank: 7540bcc4-0cb2-463c-9250-40aadee08d65
2024-04-22 23:22:55,371 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (8994bac8-1a03-45a7-9e76-e2125548d7c9, 3650ecee-07ad-4858-8d38-4d4cc2703da5): 8d3a66e1-85c3-4cf9-a995-9eb0c91c2510
2024-04-22 23:22:55,372 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (7540bcc4-0cb2-463c-9250-40aadee08d65, cc1d4304-6583-4c76-9856-75f41f945f20): 51aade3e-39c7-41f8-87b2-38b9b595d6d3
2024-04-22 23:22:55,372 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (bc1c5af9-c311-4e9f-975d-349d33d41a15, 72499573-c0cf-4a31-840a-da1dd1bf4c2f): 238e98a5-a6be-4048-adf2-f1a310fd78df
2024-04-22 23:22:55,373 - DEBUG - root - 1783301770 - get_history_window - 103 - Added edge to latest_history_mapping: (73813ec0-5dbc-4793-8468-420bed7a3cd1, 84bcbbd4-0d38-42c3-9aa9-3b38227c0433): 1f97c243-fa43-4380-af8f-4404c5c5ce24
2024-04-22 23:22:55,373 - DEBUG - root - 1783301770 - get_history_window - 100 - Added node to latest_history_mapping: bank-of-cyprus: cc1d4304-6583-4c76-9856-75f41f945f20
2024-04-22 23:22:55,374 - DEBUG - root - 1783301770 - get_history_str - 126 - JSON History string created: {"from_node": "central-bank-of-cyprus", "to_node": "legacy-entity", "category": "amended_lawyers"}
{"from_node": "special-administrator", "to_node": "legacy-entity", "category": "manages"}
{"semantic_id": "veteran-banker", "category": "person", "attributes": {"name": "Chris Pavlou", "expertise": "expert in Treasury"}, "paragraph_idx": 19}
{"semantic_id": "central-bank-of-cyprus", "category": "organization", "attributes": {"name": "Central Bank of Cyprus", "description": "The central bank that amended the lawyers of the legacy entity without consulting the special administrator"}, "paragraph_idx": 19}
{"semantic_id": "special-administrator", "category": "person", "attributes": {"name": "Andri Antoniadou", "position": "ran the legacy entity of Cyprus Popular Bank for two years, from March 2013 until 3 March 2015"}, "paragraph_idx": 19}
{"semantic_id": "legacy-entity", "category": "organization", "attributes": {"name": "Legacy entity of Cyprus Popular Bank", "description": "Holds all the overseas operations of the now defunct Cyprus Popular Bank, until they are sold by the Special Administrator"}, "paragraph_idx": 19}
{"from_node": "cyprus-popular-bank", "to_node": "legacy-entity", "category": "owns"}
{"semantic_id": "cyprus-popular-bank", "category": "organization", "attributes": {"name": "Cyprus Popular Bank", "previous_names": ["Marfin Popular Bank"], "status": "shuttered in March 2013", "description": "Second largest banking group in Cyprus behind the Bank of Cyprus until 2013"}, "paragraph_idx": 19}
{"from_node": "intracellular-fluid", "to_node": "total-body-fluid", "category": "part_of"}
{"from_node": "cyprus-popular-bank", "to_node": "bank-of-cyprus", "category": "merged_with"}
{"from_node": "straits", "to_node": "maritime-delimitation", "category": "defined_by"}
{"from_node": "territorial-waters", "to_node": "law-of-the-sea", "category": "defined_by"}
{"semantic_id": "bank-of-cyprus", "category": "organization", "attributes": {"name": "Bank of Cyprus", "description": "Largest banking group in Cyprus", "relationship": "merged with the 'good' Cypriot part of Cyprus Popular Bank"}, "paragraph_idx": 19}
KeyError: veteran-banker or treasury not found in latest_history_mapping
2024-04-22 23:22:58,703 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 7b7ab7bd-43ab-4a85-a863-587230a60496: {'nodes': {'semantic_id': 'legacy-entity', 'category': 'organization', 'attributes': {'name': 'Legacy entity of Cyprus Popular Bank', 'description': 'Holds all the overseas operations of the now defunct Cyprus Popular Bank, until they are sold by the Special Administrator'}, 'paragraph_idx': 19}}
2024-04-22 23:22:58,704 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 3b46a61b-149b-4102-afd7-da851e1dda5c: {'nodes': {'semantic_id': 'veteran-banker', 'category': 'person', 'attributes': {'name': 'Chris Pavlou', 'expertise': 'expert in Treasury'}, 'paragraph_idx': 19}}
2024-04-22 23:22:58,704 - DEBUG - root - 1783301770 - add_history - 47 - Node exists in latest_history, moving to end of history: 883c8cec-7a77-44ff-9d5d-0aefda29ce21: {'nodes': {'semantic_id': 'special-administrator', 'category': 'person', 'attributes': {'name': 'Andri Antoniadou', 'position': 'ran the legacy entity of Cyprus Popular Bank for two years, from March 2013 until 3 March 2015'}, 'paragraph_idx': 19}}
2024-04-22 23:22:58,705 - DEBUG - root - 1783301770 - add_history - 51 - Added node to history: f9641a28-4283-4cdd-92cd-391f7888e7f4: {'nodes': {'semantic_id': 'marfin-investment-group', 'category': 'organization', 'attributes': {'name': 'Marfin Investment Group', 'relationship': 'former major shareholder of the legacy entity'}, 'paragraph_idx': 19}}
2024-04-22 23:22:58,705 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 5b9c4ae3-5301-41ec-b7eb-73da084dd865: {'edges': {'from_node': UUID('3b46a61b-149b-4102-afd7-da851e1dda5c'), 'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'), 'category': 'took_over_as'}}
2024-04-22 23:22:58,705 - DEBUG - root - 1783301770 - add_history - 78 - Added edge to history: 76e5ee79-b64a-4624-b350-1e01a6753954: {'edges': {'from_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'), 'to_node': UUID('f9641a28-4283-4cdd-92cd-391f7888e7f4'), 'category': 'pursuing_legal_action_against'}}
token = 0
runs = 0
for paragraph in paragraphs:
    splits = splitter.split_text(paragraph['paragraph_text'])
    for split in splits:
        token += token_len(split)
        runs += 1
token, runs
(2565, 43)
graph_history.history
OrderedDict([(UUID('acc73dc0-d5ae-499e-8cc4-63f70f2d935f'),
              {'nodes': {'semantic_id': 'insular_government',
                'category': 'political_entity',
                'attributes': {'name': 'Insular Government',
                 'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'}}}),
             (UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
              {'nodes': {'semantic_id': 'commonwealth_of_the_philippines',
                'category': 'political_entity',
                'attributes': {'name': 'Commonwealth of the Philippines',
                 'years_active': '1935 to 1946',
                 'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'}}}),
             (UUID('9555e806-1679-4bc0-99d7-55717f21bdef'),
              {'nodes': {'semantic_id': 'tydings_mcduffie_act',
                'category': 'legal_document',
                'attributes': {'name': 'Tydings–McDuffie Act',
                 'description': "The act that established the Commonwealth of the Philippines as a transitional administration in preparation for the country's full achievement of independence."}}}),
             (UUID('90d9b404-119e-4b31-a0cf-ad102105687f'),
              {'edges': {'from_node': UUID('acc73dc0-d5ae-499e-8cc4-63f70f2d935f'),
                'to_node': UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
                'category': 'replaced'}}),
             (UUID('2cdca930-c9f5-4d65-8da0-4fcc351ac2d0'),
              {'edges': {'from_node': UUID('9555e806-1679-4bc0-99d7-55717f21bdef'),
                'to_node': UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
                'category': 'established'}}),
             (UUID('c7120f30-4152-4e88-bec1-698bfdd2d5e1'),
              {'nodes': {'semantic_id': 'lake_oesa',
                'category': 'natural_feature',
                'attributes': {'name': 'Lake Oesa',
                 'elevation': 2267,
                 'elevation_unit': 'm',
                 'location': {'park': 'Yoho National Park',
                  'city': 'Field',
                  'province': 'British Columbia',
                  'country': 'Canada'}}}}),
             (UUID('7c83cf46-05fc-491d-9667-20acf68fe70f'),
              {'nodes': {'semantic_id': 'arafura_swamp',
                'category': 'natural_feature',
                'attributes': {'name': 'Arafura Swamp',
                 'type': 'inland freshwater wetland',
                 'location': {'region': 'Arnhem Land',
                  'territory': 'Northern Territory',
                  'country': 'Australia'},
                 'size': {'area': {'value': None, 'unit': 'km2'},
                  'expansion_during_wet_season': True},
                 'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia',
                 'cultural_significance': 'of great cultural significance to the Yolngu people, in particular the Ramingining community',
                 'filming_location': 'Ten Canoes'}}}),
             (UUID('f39070c7-1d59-4d1b-a4a4-c8a18c222f85'),
              {'nodes': {'semantic_id': 'wapizagonke_lake',
                'category': 'natural_feature',
                'attributes': {'name': 'Wapizagonke Lake',
                 'type': 'body of water',
                 'location': {'sector': 'Lac-Wapizagonke',
                  'city': 'Shawinigan',
                  'park': 'La Mauricie National Park',
                  'region': 'Mauricie',
                  'province': 'Quebec',
                  'country': 'Canada'}}}}),
             (UUID('9a8a31e6-d311-4085-845d-48ae33707b51'),
              {'nodes': {'semantic_id': 'amursky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Amursky District',
                 'country': 'Russia',
                 'region': 'Khabarovsk Krai'}}}),
             (UUID('f85fb9ae-7e0f-46b2-b039-63ee01e6ce5d'),
              {'nodes': {'semantic_id': 'khabarovsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Khabarovsky District',
                 'country': 'Russia',
                 'region': 'Khabarovsk Krai',
                 'area': None,
                 'area_unit': None,
                 'administrative_center': 'Khabarovsk'}}}),
             (UUID('21425234-233f-4f40-b6b3-98e818755151'),
              {'edges': {'from_node': UUID('f85fb9ae-7e0f-46b2-b039-63ee01e6ce5d'),
                'to_node': UUID('9a8a31e6-d311-4085-845d-48ae33707b51'),
                'category': 'separated_by'}}),
             (UUID('43464202-f216-469b-94d2-8ca7ad3d92f1'),
              {'nodes': {'semantic_id': 'silver_lake',
                'category': 'natural_feature',
                'attributes': {'name': 'Silver Lake',
                 'type': 'body of water',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States',
                  'towns': ['Harrisville', 'Nelson']},
                 'outflows': ['Minnewawa Brook', 'The Branch'],
                 'ultimate_recipient': 'Connecticut River'}}}),
             (UUID('f938374c-ec1e-49b0-b049-91257d6ae64d'),
              {'nodes': {'semantic_id': 'hyderabad_police_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad Police area',
                 'jurisdiction_size': 'smallest'}}}),
             (UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
              {'nodes': {'semantic_id': 'hyderabad_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad district',
                 'jurisdiction_size': 'second_smallest'}}}),
             (UUID('b3beb831-6954-4ca9-87f3-052767e60856'),
              {'edges': {'from_node': UUID('f938374c-ec1e-49b0-b049-91257d6ae64d'),
                'to_node': UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('252323ba-7590-4b55-ae43-e6b9da12ff9e'),
              {'edges': {'from_node': UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
                'to_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('723c0ccc-8f09-43ad-bbcf-97b08d5c1bd8'),
              {'edges': {'from_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'to_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
              {'nodes': {'semantic_id': 'hmda_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area',
                 'jurisdiction_size': 'largest',
                 'type': 'urban_planning_agency',
                 'apolitical': True,
                 'covers': ['ghmc_area', 'suburbs_of_ghmc_area']}}}),
             (UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
              {'nodes': {'semantic_id': 'ghmc_area',
                'category': 'administrative_district',
                'attributes': {'name': 'GHMC area',
                 'jurisdiction_size': 'second_largest',
                 'alternate_name': 'Hyderabad city'}}}),
             (UUID('90c5ce53-79aa-4aaf-a27d-7400e6ac1c08'),
              {'nodes': {'semantic_id': 'suburbs_of_ghmc_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Suburbs of GHMC area',
                 'jurisdiction_size': 'medium',
                 'type': 'residential'}}}),
             (UUID('9a4b69f8-749a-4b7c-a3e3-e2db4f3823d1'),
              {'nodes': {'semantic_id': 'hmwssb',
                'category': 'administrative_body',
                'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board',
                 'type': 'water_management'}}}),
             (UUID('c48817dd-b382-4db9-ad18-d3e2190cdcf5'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('4b64fe19-941d-44ce-8cd0-8f94f503dea5'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('90c5ce53-79aa-4aaf-a27d-7400e6ac1c08'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('268f7e8f-a2c7-4a83-94b9-24baeca1be73'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('9a4b69f8-749a-4b7c-a3e3-e2db4f3823d1'),
                'category': 'manages'}}),
             (UUID('7956f84b-20a8-4836-ae7a-c7311d716cd1'),
              {'nodes': {'semantic_id': 'san_juan',
                'category': 'city',
                'attributes': {'name': 'San Juan',
                 'location': {'country': 'Puerto Rico',
                  'region': 'north-eastern coast'},
                 'borders': {'north': 'Atlantic Ocean',
                  'south': ['Caguas', 'Trujillo Alto'],
                  'east': ['Carolina'],
                  'west': ['Guaynabo']},
                 'area': {'value': 76.93, 'unit': 'square miles'},
                 'water_bodies': ['San Juan Bay',
                  'Condado Lagoon',
                  'San José Lagoon'],
                 'water_area': {'value': 29.11,
                  'unit': 'square miles',
                  'percentage': 37.83}}}}),
             (UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
              {'nodes': {'semantic_id': 'urban_hinterland',
                'category': 'administrative_district',
                'attributes': {'name': 'Urban hinterland',
                 'type': 'urban_area'}}}),
             (UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
              {'nodes': {'semantic_id': 'kreisfreie_stadte',
                'category': 'administrative_district',
                'attributes': {'name': 'Kreisfreie Städte',
                 'type': 'district-free_city_or_town'}}}),
             (UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
              {'nodes': {'semantic_id': 'landkreise_amalgamation',
                'category': 'administrative_district',
                'attributes': {'name': 'Local associations of a special kind',
                 'type': 'amalgamation_of_districts',
                 'purpose': 'simplification_of_administration'}}}),
             (UUID('0114478c-292d-43e4-940c-349f0b8d8060'),
              {'edges': {'from_node': UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
                'to_node': UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
                'category': 'grouping'}}),
             (UUID('9c504b5a-98b9-4620-9d56-0c18fe35005f'),
              {'edges': {'from_node': UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
                'to_node': UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
                'category': 'comprises'}}),
             (UUID('6b27c2fc-9694-4f6e-b61c-425360f1c8f7'),
              {'edges': {'from_node': UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
                'to_node': UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
                'category': 'comprises'}}),
             (UUID('7715b916-5807-45f4-8408-2770897a7581'),
              {'nodes': {'semantic_id': 'norfolk_island',
                'category': 'island',
                'attributes': {'name': 'Norfolk Island',
                 'location': {'ocean': 'South Pacific Ocean',
                  'relative_location': 'east of Australian mainland'},
                 'coordinates': {'latitude': -29.033, 'longitude': 167.95},
                 'area': {'value': 34.6, 'unit': 'square kilometres'},
                 'coastline': {'length': 32, 'unit': 'km'},
                 'highest_point': 'Mount Bates'}}}),
             (UUID('0db9008a-ae7e-4e32-a7b3-ae5c7d8f93d2'),
              {'edges': {'from_node': UUID('7715b916-5807-45f4-8408-2770897a7581'),
                'to_node': UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
                'category': 'part_of'}}),
             (UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
              {'nodes': {'semantic_id': 'phillip_island',
                'category': 'island',
                'attributes': {'name': 'Phillip Island',
                 'location': {'relation': 'second largest island of the territory',
                  'coordinates': {'latitude': -29.117, 'longitude': 167.95},
                  'distance_from_main_island': {'value': 7,
                   'unit': 'kilometres'}}}}}),
             (UUID('52ec31ee-9fc6-42a1-9e6c-daf0ea0a9390'),
              {'edges': {'from_node': UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
                'to_node': UUID('7715b916-5807-45f4-8408-2770897a7581'),
                'category': 'part_of'}}),
             (UUID('08f207c1-6915-4237-ac4e-902815d9cfae'),
              {'nodes': {'semantic_id': 'star_stadium',
                'category': 'stadium',
                'attributes': {'name': 'Star (Zvezda) Stadium',
                 'former_name': 'Lenin Komsomol Stadium',
                 'location': {'city': 'Perm', 'country': 'Russia'},
                 'usage': 'football matches',
                 'home_team': 'FC Amkar Perm',
                 'capacity': 17000,
                 'opened': '1969-06-05'}}}),
             (UUID('5be79bf7-cd2a-487f-8833-36ae11257df8'),
              {'nodes': {'semantic_id': 'perm',
                'category': 'city',
                'attributes': {'name': 'Perm',
                 'location': {'river': 'Kama River',
                  'region': 'Perm Krai',
                  'country': 'Russia',
                  'geography': 'European part of Russia near the Ural Mountains'},
                 'administrative_status': 'administrative centre'}}}),
             (UUID('e9a848ba-35b3-42e4-b9e6-aa0ea8651d92'),
              {'edges': {'from_node': UUID('08f207c1-6915-4237-ac4e-902815d9cfae'),
                'to_node': UUID('5be79bf7-cd2a-487f-8833-36ae11257df8'),
                'category': 'located_in'}}),
             (UUID('57c8adca-9dcc-4257-be85-bfb48eacd310'),
              {'nodes': {'semantic_id': 'paea',
                'category': 'municipality',
                'attributes': {'name': 'Paea',
                 'location': {'island': 'Tahiti',
                  'subdivision': 'Windward Islands',
                  'region': 'Society Islands',
                  'country': 'French Polynesia',
                  'territory': 'France'},
                 'population': 13021}}}),
             (UUID('62866902-6285-4c38-98b0-7496dbe73fd3'),
              {'nodes': {'semantic_id': 'potamogeton_amplifolius',
                'category': 'plant',
                'attributes': {'common_names': ['largeleaf pondweed',
                  'broad-leaved pondweed'],
                 'habitat': ['lakes', 'ponds', 'rivers'],
                 'water_depth': 'often in deep water',
                 'distribution': 'North America'}}}),
             (UUID('0da6e66c-64c6-4155-bb6f-88e1b0c9a349'),
              {'nodes': {'semantic_id': 'soltonsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Soltonsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('2bdd9668-a653-4815-bcde-f43dcf5ff4a5'),
              {'nodes': {'semantic_id': 'krasnogorsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Krasnogorsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('e9620276-009f-4f5a-99b6-b41d93fbe791'),
              {'nodes': {'semantic_id': 'sovetsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Sovetsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('4bdbb329-0688-4621-9c67-e1af0e8d57fe'),
              {'nodes': {'semantic_id': 'smolensky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Smolensky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
              {'nodes': {'semantic_id': 'biysky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Biysky District',
                 'location': {'region': 'Altai Krai',
                  'country': 'Russia',
                  'geography': 'east of the krai'},
                 'administrative_status': 'administrative and municipal district (raion)',
                 'bordering_districts': ['Soltonsky_district',
                  'Krasnogorsky_district',
                  'Sovetsky_district',
                  'Smolensky_district',
                  'City_of_Biysk']}}}),
             (UUID('a375ae9a-9282-4916-9e6b-02da8a824e3f'),
              {'nodes': {'semantic_id': 'city_of_biysk',
                'category': 'city',
                'attributes': {'name': 'Biysk',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'},
                 'administrative_status': 'administrative center'}}}),
             (UUID('6674891e-b1e6-4c85-9821-54b4a7fd923a'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('0da6e66c-64c6-4155-bb6f-88e1b0c9a349'),
                'category': 'bordering'}}),
             (UUID('5f81b958-60c6-40a5-8bea-9fdacae9f671'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('2bdd9668-a653-4815-bcde-f43dcf5ff4a5'),
                'category': 'bordering'}}),
             (UUID('8077d42e-5e70-44dd-aade-c764087f139f'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('e9620276-009f-4f5a-99b6-b41d93fbe791'),
                'category': 'bordering'}}),
             (UUID('abe4eb3e-0a01-48f2-b97d-67a30519a4d3'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('4bdbb329-0688-4621-9c67-e1af0e8d57fe'),
                'category': 'bordering'}}),
             (UUID('a27a6ceb-536d-4dbe-9798-e5d86e9755c6'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('a375ae9a-9282-4916-9e6b-02da8a824e3f'),
                'category': 'bordering'}}),
             (UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
              {'nodes': {'semantic_id': 'contoocook_lake',
                'category': 'lake',
                'attributes': {'name': 'Contoocook Lake',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States',
                  'towns': ['Jaffrey', 'Rindge']},
                 'connection': {'to': 'pool_pond',
                  'type': 'forms_headwaters_of'},
                 'outflow': {'to': 'contoocook_river', 'direction': 'north'},
                 'outflow_destination': 'merrimack_river'}}}),
             (UUID('1eafa7a8-a830-4472-8b32-c071159c8140'),
              {'nodes': {'semantic_id': 'pool_pond',
                'category': 'lake',
                'attributes': {'name': 'Pool Pond',
                 'connection': {'to': 'contoocook_lake',
                  'type': 'forms_headwaters_of'}}}}),
             (UUID('f841df5f-a4ff-4a6b-8656-1458252aca37'),
              {'edges': {'from_node': UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
                'to_node': UUID('1eafa7a8-a830-4472-8b32-c071159c8140'),
                'category': 'forms_headwaters_of'}}),
             (UUID('d50d66d9-c89d-4c0a-9c61-fa4e856ab2c2'),
              {'edges': {'from_node': UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
                'to_node': UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
                'category': 'outflows_to'}}),
             (UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
              {'nodes': {'semantic_id': 'contoocook_river',
                'category': 'river',
                'attributes': {'name': 'Contoocook River',
                 'flow_direction': 'north',
                 'outflow_destination': 'merrimack_river'}}}),
             (UUID('0c92123d-fbc3-47e7-b752-65df1d6680c0'),
              {'nodes': {'semantic_id': 'merrimack_river',
                'category': 'river',
                'attributes': {'name': 'Merrimack River',
                 'location': {'city': 'Penacook',
                  'state': 'New Hampshire',
                  'country': 'United States'}}}}),
             (UUID('6e9b6a2d-926e-4b20-97ab-d8bb217a5029'),
              {'edges': {'from_node': UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
                'to_node': UUID('0c92123d-fbc3-47e7-b752-65df1d6680c0'),
                'category': 'flows_into'}}),
             (UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
              {'nodes': {'semantic_id': 'bogota',
                'category': 'city',
                'attributes': {'name': 'Bogotá',
                 'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/',
                   '/ˌboʊ-/',
                   '/ˈbɔɪ-/'],
                  'spanish': 'boˈɣota'},
                 'official_name': 'Bogotá',
                 'administration': 'Capital District'}}}),
             (UUID('adc293cf-401b-49b6-928d-ada04da0e4bf'),
              {'nodes': {'semantic_id': 'political_center',
                'category': 'function',
                'attributes': {'name': 'political center',
                 'location': 'Bogotá'}}}),
             (UUID('108added-3b0f-4b67-9e28-fce89a168e46'),
              {'nodes': {'semantic_id': 'economic_center',
                'category': 'function',
                'attributes': {'name': 'economic center',
                 'location': 'Bogotá'}}}),
             (UUID('7fad3f22-d955-4f54-a1e2-5683bf4639e8'),
              {'nodes': {'semantic_id': 'administrative_center',
                'category': 'function',
                'attributes': {'name': 'administrative center',
                 'location': 'Bogotá'}}}),
             (UUID('404e8a42-e9e9-4081-9890-669ba48d1b36'),
              {'nodes': {'semantic_id': 'industrial_center',
                'category': 'function',
                'attributes': {'name': 'industrial center',
                 'location': 'Bogotá'}}}),
             (UUID('8b80ba4f-77b2-4ee6-8548-a66108963fb7'),
              {'nodes': {'semantic_id': 'artistic_center',
                'category': 'function',
                'attributes': {'name': 'artistic center',
                 'location': 'Bogotá'}}}),
             (UUID('056f1544-f292-4506-ba8d-18d6e294d433'),
              {'nodes': {'semantic_id': 'cultural_center',
                'category': 'function',
                'attributes': {'name': 'cultural center',
                 'location': 'Bogotá'}}}),
             (UUID('d747fcf6-5b60-4595-a127-f3e247cbb8a3'),
              {'nodes': {'semantic_id': 'sports_center',
                'category': 'function',
                'attributes': {'name': 'sports center',
                 'location': 'Bogotá'}}}),
             (UUID('59719cce-5c68-47cf-8111-481c74e73c3b'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
                'category': 'capital_of'}}),
             (UUID('0bc7053b-2183-41df-995a-faecd919ad45'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('5576789f-9306-4a82-8736-882db81abdf2'),
                'category': 'part_of'}}),
             (UUID('73230839-050b-4ace-9dd1-7927b1bd1034'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('adc293cf-401b-49b6-928d-ada04da0e4bf'),
                'category': 'functions_as'}}),
             (UUID('04b8ded0-c2c1-441f-b7f7-069b05f80338'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('108added-3b0f-4b67-9e28-fce89a168e46'),
                'category': 'functions_as'}}),
             (UUID('0a86d51a-bd57-4a63-b494-08075a2bcb4a'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('7fad3f22-d955-4f54-a1e2-5683bf4639e8'),
                'category': 'functions_as'}}),
             (UUID('58c0a891-5c05-48e5-ba2a-1c230b588997'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('404e8a42-e9e9-4081-9890-669ba48d1b36'),
                'category': 'functions_as'}}),
             (UUID('5bad3267-dceb-4067-8d02-bc8c748d50d3'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('8b80ba4f-77b2-4ee6-8548-a66108963fb7'),
                'category': 'functions_as'}}),
             (UUID('d80bed21-cd68-454d-a142-223fb30d5db6'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('056f1544-f292-4506-ba8d-18d6e294d433'),
                'category': 'functions_as'}}),
             (UUID('6c12a6ad-244d-4d7e-8c25-f3a6288967fb'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('d747fcf6-5b60-4595-a127-f3e247cbb8a3'),
                'category': 'functions_as'}}),
             (UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
              {'nodes': {'semantic_id': 'bogota',
                'category': 'city',
                'attributes': {'name': 'Bogotá',
                 'functions': ['political center',
                  'economic center',
                  'administrative center',
                  'industrial center',
                  'artistic center',
                  'cultural center',
                  'sports center']}}}),
             (UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
              {'nodes': {'semantic_id': 'colombia',
                'category': 'country',
                'attributes': {'name': 'Colombia',
                 'capital': 'Bogotá',
                 'status': 'capital and largest city'}}}),
             (UUID('5576789f-9306-4a82-8736-882db81abdf2'),
              {'nodes': {'semantic_id': 'cundinamarca',
                'category': 'region',
                'attributes': {'name': 'Cundinamarca',
                 'relation_to_bogota': 'often thought of as part of'}}}),
             (UUID('af6b4ebf-7c7c-4dd0-a58e-ab8c292eaf7c'),
              {'edges': {'from_node': UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
                'to_node': UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
                'category': 'capital_of'}}),
             (UUID('3265632a-4065-46c4-82cf-527b3d4abc13'),
              {'edges': {'from_node': UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
                'to_node': UUID('5576789f-9306-4a82-8736-882db81abdf2'),
                'category': 'part_of'}}),
             (UUID('d97d057d-2564-427d-9703-e77a61ff58c7'),
              {'nodes': {'semantic_id': 'intracellular_fluid',
                'category': 'fluid',
                'attributes': {'name': 'intracellular fluid',
                 'volume': '2/3 of body water',
                 'amount_in_72_kg_body': '25 litres',
                 'percentage_of_total_body_fluid': 62.5}}}),
             (UUID('380f506f-c2cf-453e-879f-fb58b3f3d1db'),
              {'nodes': {'semantic_id': 'body_fluid',
                'category': 'fluid',
                'attributes': {'name': 'body fluid',
                 'total_volume_in_72_kg_body': '40 litres'}}}),
             (UUID('1b0bebc1-49a1-419f-bfb2-d50cffeed740'),
              {'edges': {'from_node': UUID('d97d057d-2564-427d-9703-e77a61ff58c7'),
                'to_node': UUID('380f506f-c2cf-453e-879f-fb58b3f3d1db'),
                'category': 'part_of'}}),
             (UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
              {'nodes': {'semantic_id': 'territorial_waters',
                'category': 'geographic_area',
                'attributes': {'name': 'territorial waters',
                 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
                 'source': '1982 United Nations Convention on the Law of the Sea'}}}),
             (UUID('443e77c0-cff1-43e4-89f2-ba748d4421a1'),
              {'edges': {'from_node': UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
                'to_node': UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
                'category': 'extends_from'}}),
             (UUID('58b64eae-e6c2-47f1-8916-eaf1dcc87e6b'),
              {'edges': {'from_node': UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
              {'nodes': {'semantic_id': 'territorial_sea',
                'category': 'geographic_area',
                'attributes': {'name': 'territorial sea',
                 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
                 'sovereign_territory': True,
                 'foreign_ship_passage': 'innocent passage through it or transit passage for straits',
                 'jurisdiction': 'extends to airspace over and seabed below'}}}),
             (UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
              {'nodes': {'semantic_id': 'baseline',
                'category': 'geographic_feature',
                'attributes': {'name': 'baseline',
                 'definition': 'usually the mean low-water mark of a coastal state'}}}),
             (UUID('11903999-15a7-4776-8bae-f1803429147f'),
              {'nodes': {'semantic_id': 'coastal_state',
                'category': 'legal_entity',
                'attributes': {'name': 'coastal state'}}}),
             (UUID('7a93cd6e-7f97-43fa-9054-22d3e4478ecf'),
              {'edges': {'from_node': UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('4dec6036-1299-4093-ae68-3b6cecc73053'),
              {'edges': {'from_node': UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
                'to_node': UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
                'category': 'extends_from'}}),
             (UUID('d86a7f75-df06-47f1-a30d-67a921d822bf'),
              {'nodes': {'semantic_id': 'strait',
                'category': 'geographic_feature',
                'attributes': {'name': 'strait',
                 'sovereign_territory': True,
                 'jurisdiction': {'airspace': True, 'seabed': True}}}}),
             (UUID('1baf2bf2-6083-481f-8980-d2f9793f58e6'),
              {'nodes': {'semantic_id': 'maritime_delimitation',
                'category': 'legal_concept',
                'attributes': {'name': 'maritime delimitation',
                 'definition': "Adjustment of the boundaries of a coastal state's territorial sea, exclusive economic zone, or continental shelf"}}}),
             (UUID('396cc35f-de5f-4717-9cb5-2cf511456fb2'),
              {'edges': {'from_node': UUID('d86a7f75-df06-47f1-a30d-67a921d822bf'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('88b88486-07be-4ae4-8d51-c2d88ca9f125'),
              {'edges': {'from_node': UUID('1baf2bf2-6083-481f-8980-d2f9793f58e6'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'involves'}}),
             (UUID('d8b37bae-dbdb-49c8-9e35-6c87c902f3f9'),
              {'nodes': {'semantic_id': 'uninsured_depositor',
                'category': 'stakeholder',
                'attributes': {'deposit_amount': '>100,000 Euro',
                 'treatment': 'subject to a bail-in',
                 'new_role': 'new shareholders of the legacy entity'}}}),
             (UUID('7862ab2f-0f92-48af-ba10-12cdac45a10f'),
              {'nodes': {'semantic_id': 'bank_of_cyprus',
                'category': 'organization',
                'attributes': {'name': 'Bank of Cyprus',
                 'size': 'largest banking group in Cyprus',
                 'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"}}}),
             (UUID('1c509f8b-300e-47ac-ad62-4dcf675ca11d'),
              {'nodes': {'semantic_id': 'cyprus_popular_bank',
                'category': 'organization',
                'attributes': {'name': 'Cyprus Popular Bank',
                 'previous_name': 'Marfin Popular Bank',
                 'status': 'shuttered in 2013',
                 'size': 'second largest banking group in Cyprus',
                 'parent': 'Bank of Cyprus'}}}),
             (UUID('82b3a659-7692-4909-a812-fc247f97ed6c'),
              {'edges': {'from_node': UUID('d8b37bae-dbdb-49c8-9e35-6c87c902f3f9'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'holds_deposits'}}),
             (UUID('a80831eb-a3c9-4ad6-a6ba-9db107876050'),
              {'edges': {'from_node': UUID('1c509f8b-300e-47ac-ad62-4dcf675ca11d'),
                'to_node': UUID('7862ab2f-0f92-48af-ba10-12cdac45a10f'),
                'category': 'merged_with'}}),
             (UUID('2d393fc3-fe9b-46dd-90f7-2fadb227fccd'),
              {'nodes': {'semantic_id': 'central_bank_of_cyprus',
                'category': 'organization',
                'attributes': {'name': 'Central Bank of Cyprus',
                 'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'}}}),
             (UUID('87a173a3-a32b-4a36-a1b2-6248a92eb14c'),
              {'nodes': {'semantic_id': 'veteran_banker',
                'category': 'stakeholder',
                'attributes': {'name': 'Chris Pavlou',
                 'expertise': 'Treasury'}}}),
             (UUID('7af74b0b-30ab-44c4-8adf-8e19ecf04a14'),
              {'nodes': {'semantic_id': 'special_administrator',
                'category': 'stakeholder',
                'attributes': {'name': 'Andri Antoniadou',
                 'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'}}}),
             (UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
              {'nodes': {'semantic_id': 'legacy_entity',
                'category': 'organization',
                'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
                 'ownership_stake': '4.8% of Bank of Cyprus',
                 'board_representation': 'does not hold a board seat',
                 'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'}}}),
             (UUID('bfe012be-e584-401f-bd34-f6d147e7831c'),
              {'nodes': {'semantic_id': 'marfin_investment_group',
                'category': 'stakeholder',
                'attributes': {'name': 'Marfin Investment Group',
                 'role': 'former major shareholder of the legacy entity'}}}),
             (UUID('14585bad-087d-4ce7-bbc2-1d89e4cd7548'),
              {'edges': {'from_node': UUID('2d393fc3-fe9b-46dd-90f7-2fadb227fccd'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'amended_lawyers_without_consulting'}}),
             (UUID('14eb57de-1b12-42b5-8b91-945cdfd08442'),
              {'edges': {'from_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'to_node': UUID('7af74b0b-30ab-44c4-8adf-8e19ecf04a14'),
                'category': 'managed_by'}}),
             (UUID('e367aa2a-74bb-426e-b17c-f4ecf2032e6f'),
              {'edges': {'from_node': UUID('87a173a3-a32b-4a36-a1b2-6248a92eb14c'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'took_over_as_special_administrator'}}),
             (UUID('1c9504d1-c7e5-4b0b-ad7a-24a03cc9c498'),
              {'edges': {'from_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'to_node': UUID('bfe012be-e584-401f-bd34-f6d147e7831c'),
                'category': 'pursuing_legal_action_against'}})])
import rustworkx as rx
from rustworkx.visualization import mpl_draw

digraph = rx.PyDiGraph()

node_indices = {}
# Iterate through the history to add nodes and edges
for uuid, data in graph_history.history.items():
    if 'nodes' in data:
        # Add node to the graph and store the index with its UUID
        node_index = digraph.add_node(data['nodes'])
        node_indices[uuid] = node_index

for uuid, data in graph_history.history.items():
    if 'edges' in data:
        # Retrieve indices of the from and to nodes using their UUIDs
        from_index = node_indices.get(data['edges']['from_node'])
        to_index = node_indices.get(data['edges']['to_node'])
        if from_index is not None and to_index is not None:
            # Add edge to the graph
            digraph.add_edge(from_index, to_index, data['edges'])

# Visualize the graph with labels based on node and edge categories
layout = rx.digraph_spring_layout(digraph, repulsive_exponent=50, num_iter=200)
mpl_draw(digraph, with_labels=True, pos=layout,
         labels=lambda node: f'{node["category"]}',
        #  edge_labels=lambda edge: f'{edge["category"]}',
         font_size=9, node_size=50)

len_list = [len(digraph.incident_edges(n, all_edges=True)) for n in range(len(digraph.node_indices()))]
len_list.sort(reverse=True)
len_list[:]
[9,
 5,
 5,
 4,
 4,
 3,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 2,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 1,
 0,
 0,
 0,
 0,
 0,
 0,
 0]
from collections import Counter

# Count the occurrences of each length in len_list and sort them by length
counted_lengths = sorted(Counter(len_list).items())
counted_lengths
[(0, 7), (1, 34), (2, 15), (3, 1), (4, 2), (5, 2), (9, 1)]
edge_lens = [len(g['edges']) for g in graph_components]
import rustworkx as rx
from rustworkx.visualization import mpl_draw

# Assuming 'graph' is your existing PyDiGraph object
node_index = 35  # Example node index

# Get predecessors and successors
predecessors = list(digraph.predecessor_indices(node_index))
successors = list(digraph.successor_indices(node_index))

# Include the original node and ensure uniqueness of nodes
subgraph_nodes = list(set([node_index] + predecessors + successors))

# Create the subgraph
subgraph = digraph.subgraph(subgraph_nodes)


# Visualize the graph with labels based on node and edge categories
mpl_draw(subgraph, with_labels=True,
         labels=lambda node: f'{node["category"]}\n{node.get("attributes", "")}',
         edge_labels=lambda edge: f'{edge["category"]}',
         font_size=9)

len_list = [len(digraph.incident_edges(n, all_edges=True)) for n in range(len(digraph.node_indices()))]
len_list
[9, 1, 1, 1, 1, 1, 1, 1, 1, 1]
import pickle

# Pickle the graph components
with open('graph_components.pkl', 'wb') as f:
    pickle.dump(graph_components, f)

# Pickle the graph history
with open('graph_history.pkl', 'wb') as f:
    pickle.dump(graph_history, f)
import pickle

# Read the pickled graph components
with open('graph_components.pkl', 'rb') as f:
    graph_components0 = pickle.load(f)

# Read the pickled graph history
with open('graph_history.pkl', 'rb') as f:
    graph_history0 = pickle.load(f)
graph_history0.history
OrderedDict([(UUID('acc73dc0-d5ae-499e-8cc4-63f70f2d935f'),
              {'nodes': {'semantic_id': 'insular_government',
                'category': 'political_entity',
                'attributes': {'name': 'Insular Government',
                 'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'}}}),
             (UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
              {'nodes': {'semantic_id': 'commonwealth_of_the_philippines',
                'category': 'political_entity',
                'attributes': {'name': 'Commonwealth of the Philippines',
                 'years_active': '1935 to 1946',
                 'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'}}}),
             (UUID('9555e806-1679-4bc0-99d7-55717f21bdef'),
              {'nodes': {'semantic_id': 'tydings_mcduffie_act',
                'category': 'legal_document',
                'attributes': {'name': 'Tydings–McDuffie Act',
                 'description': "The act that established the Commonwealth of the Philippines as a transitional administration in preparation for the country's full achievement of independence."}}}),
             (UUID('90d9b404-119e-4b31-a0cf-ad102105687f'),
              {'edges': {'from_node': UUID('acc73dc0-d5ae-499e-8cc4-63f70f2d935f'),
                'to_node': UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
                'category': 'replaced'}}),
             (UUID('2cdca930-c9f5-4d65-8da0-4fcc351ac2d0'),
              {'edges': {'from_node': UUID('9555e806-1679-4bc0-99d7-55717f21bdef'),
                'to_node': UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
                'category': 'established'}}),
             (UUID('c7120f30-4152-4e88-bec1-698bfdd2d5e1'),
              {'nodes': {'semantic_id': 'lake_oesa',
                'category': 'natural_feature',
                'attributes': {'name': 'Lake Oesa',
                 'elevation': 2267,
                 'elevation_unit': 'm',
                 'location': {'park': 'Yoho National Park',
                  'city': 'Field',
                  'province': 'British Columbia',
                  'country': 'Canada'}}}}),
             (UUID('7c83cf46-05fc-491d-9667-20acf68fe70f'),
              {'nodes': {'semantic_id': 'arafura_swamp',
                'category': 'natural_feature',
                'attributes': {'name': 'Arafura Swamp',
                 'type': 'inland freshwater wetland',
                 'location': {'region': 'Arnhem Land',
                  'territory': 'Northern Territory',
                  'country': 'Australia'},
                 'size': {'area': {'value': None, 'unit': 'km2'},
                  'expansion_during_wet_season': True},
                 'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia',
                 'cultural_significance': 'of great cultural significance to the Yolngu people, in particular the Ramingining community',
                 'filming_location': 'Ten Canoes'}}}),
             (UUID('f39070c7-1d59-4d1b-a4a4-c8a18c222f85'),
              {'nodes': {'semantic_id': 'wapizagonke_lake',
                'category': 'natural_feature',
                'attributes': {'name': 'Wapizagonke Lake',
                 'type': 'body of water',
                 'location': {'sector': 'Lac-Wapizagonke',
                  'city': 'Shawinigan',
                  'park': 'La Mauricie National Park',
                  'region': 'Mauricie',
                  'province': 'Quebec',
                  'country': 'Canada'}}}}),
             (UUID('9a8a31e6-d311-4085-845d-48ae33707b51'),
              {'nodes': {'semantic_id': 'amursky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Amursky District',
                 'country': 'Russia',
                 'region': 'Khabarovsk Krai'}}}),
             (UUID('f85fb9ae-7e0f-46b2-b039-63ee01e6ce5d'),
              {'nodes': {'semantic_id': 'khabarovsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Khabarovsky District',
                 'country': 'Russia',
                 'region': 'Khabarovsk Krai',
                 'area': None,
                 'area_unit': None,
                 'administrative_center': 'Khabarovsk'}}}),
             (UUID('21425234-233f-4f40-b6b3-98e818755151'),
              {'edges': {'from_node': UUID('f85fb9ae-7e0f-46b2-b039-63ee01e6ce5d'),
                'to_node': UUID('9a8a31e6-d311-4085-845d-48ae33707b51'),
                'category': 'separated_by'}}),
             (UUID('43464202-f216-469b-94d2-8ca7ad3d92f1'),
              {'nodes': {'semantic_id': 'silver_lake',
                'category': 'natural_feature',
                'attributes': {'name': 'Silver Lake',
                 'type': 'body of water',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States',
                  'towns': ['Harrisville', 'Nelson']},
                 'outflows': ['Minnewawa Brook', 'The Branch'],
                 'ultimate_recipient': 'Connecticut River'}}}),
             (UUID('f938374c-ec1e-49b0-b049-91257d6ae64d'),
              {'nodes': {'semantic_id': 'hyderabad_police_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad Police area',
                 'jurisdiction_size': 'smallest'}}}),
             (UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
              {'nodes': {'semantic_id': 'hyderabad_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad district',
                 'jurisdiction_size': 'second_smallest'}}}),
             (UUID('b3beb831-6954-4ca9-87f3-052767e60856'),
              {'edges': {'from_node': UUID('f938374c-ec1e-49b0-b049-91257d6ae64d'),
                'to_node': UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('252323ba-7590-4b55-ae43-e6b9da12ff9e'),
              {'edges': {'from_node': UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
                'to_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('723c0ccc-8f09-43ad-bbcf-97b08d5c1bd8'),
              {'edges': {'from_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'to_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
              {'nodes': {'semantic_id': 'hmda_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area',
                 'jurisdiction_size': 'largest',
                 'type': 'urban_planning_agency',
                 'apolitical': True,
                 'covers': ['ghmc_area', 'suburbs_of_ghmc_area']}}}),
             (UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
              {'nodes': {'semantic_id': 'ghmc_area',
                'category': 'administrative_district',
                'attributes': {'name': 'GHMC area',
                 'jurisdiction_size': 'second_largest',
                 'alternate_name': 'Hyderabad city'}}}),
             (UUID('90c5ce53-79aa-4aaf-a27d-7400e6ac1c08'),
              {'nodes': {'semantic_id': 'suburbs_of_ghmc_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Suburbs of GHMC area',
                 'jurisdiction_size': 'medium',
                 'type': 'residential'}}}),
             (UUID('9a4b69f8-749a-4b7c-a3e3-e2db4f3823d1'),
              {'nodes': {'semantic_id': 'hmwssb',
                'category': 'administrative_body',
                'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board',
                 'type': 'water_management'}}}),
             (UUID('c48817dd-b382-4db9-ad18-d3e2190cdcf5'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('4b64fe19-941d-44ce-8cd0-8f94f503dea5'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('90c5ce53-79aa-4aaf-a27d-7400e6ac1c08'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('268f7e8f-a2c7-4a83-94b9-24baeca1be73'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('9a4b69f8-749a-4b7c-a3e3-e2db4f3823d1'),
                'category': 'manages'}}),
             (UUID('7956f84b-20a8-4836-ae7a-c7311d716cd1'),
              {'nodes': {'semantic_id': 'san_juan',
                'category': 'city',
                'attributes': {'name': 'San Juan',
                 'location': {'country': 'Puerto Rico',
                  'region': 'north-eastern coast'},
                 'borders': {'north': 'Atlantic Ocean',
                  'south': ['Caguas', 'Trujillo Alto'],
                  'east': ['Carolina'],
                  'west': ['Guaynabo']},
                 'area': {'value': 76.93, 'unit': 'square miles'},
                 'water_bodies': ['San Juan Bay',
                  'Condado Lagoon',
                  'San José Lagoon'],
                 'water_area': {'value': 29.11,
                  'unit': 'square miles',
                  'percentage': 37.83}}}}),
             (UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
              {'nodes': {'semantic_id': 'urban_hinterland',
                'category': 'administrative_district',
                'attributes': {'name': 'Urban hinterland',
                 'type': 'urban_area'}}}),
             (UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
              {'nodes': {'semantic_id': 'kreisfreie_stadte',
                'category': 'administrative_district',
                'attributes': {'name': 'Kreisfreie Städte',
                 'type': 'district-free_city_or_town'}}}),
             (UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
              {'nodes': {'semantic_id': 'landkreise_amalgamation',
                'category': 'administrative_district',
                'attributes': {'name': 'Local associations of a special kind',
                 'type': 'amalgamation_of_districts',
                 'purpose': 'simplification_of_administration'}}}),
             (UUID('0114478c-292d-43e4-940c-349f0b8d8060'),
              {'edges': {'from_node': UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
                'to_node': UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
                'category': 'grouping'}}),
             (UUID('9c504b5a-98b9-4620-9d56-0c18fe35005f'),
              {'edges': {'from_node': UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
                'to_node': UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
                'category': 'comprises'}}),
             (UUID('6b27c2fc-9694-4f6e-b61c-425360f1c8f7'),
              {'edges': {'from_node': UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
                'to_node': UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
                'category': 'comprises'}}),
             (UUID('7715b916-5807-45f4-8408-2770897a7581'),
              {'nodes': {'semantic_id': 'norfolk_island',
                'category': 'island',
                'attributes': {'name': 'Norfolk Island',
                 'location': {'ocean': 'South Pacific Ocean',
                  'relative_location': 'east of Australian mainland'},
                 'coordinates': {'latitude': -29.033, 'longitude': 167.95},
                 'area': {'value': 34.6, 'unit': 'square kilometres'},
                 'coastline': {'length': 32, 'unit': 'km'},
                 'highest_point': 'Mount Bates'}}}),
             (UUID('0db9008a-ae7e-4e32-a7b3-ae5c7d8f93d2'),
              {'edges': {'from_node': UUID('7715b916-5807-45f4-8408-2770897a7581'),
                'to_node': UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
                'category': 'part_of'}}),
             (UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
              {'nodes': {'semantic_id': 'phillip_island',
                'category': 'island',
                'attributes': {'name': 'Phillip Island',
                 'location': {'relation': 'second largest island of the territory',
                  'coordinates': {'latitude': -29.117, 'longitude': 167.95},
                  'distance_from_main_island': {'value': 7,
                   'unit': 'kilometres'}}}}}),
             (UUID('52ec31ee-9fc6-42a1-9e6c-daf0ea0a9390'),
              {'edges': {'from_node': UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
                'to_node': UUID('7715b916-5807-45f4-8408-2770897a7581'),
                'category': 'part_of'}}),
             (UUID('08f207c1-6915-4237-ac4e-902815d9cfae'),
              {'nodes': {'semantic_id': 'star_stadium',
                'category': 'stadium',
                'attributes': {'name': 'Star (Zvezda) Stadium',
                 'former_name': 'Lenin Komsomol Stadium',
                 'location': {'city': 'Perm', 'country': 'Russia'},
                 'usage': 'football matches',
                 'home_team': 'FC Amkar Perm',
                 'capacity': 17000,
                 'opened': '1969-06-05'}}}),
             (UUID('5be79bf7-cd2a-487f-8833-36ae11257df8'),
              {'nodes': {'semantic_id': 'perm',
                'category': 'city',
                'attributes': {'name': 'Perm',
                 'location': {'river': 'Kama River',
                  'region': 'Perm Krai',
                  'country': 'Russia',
                  'geography': 'European part of Russia near the Ural Mountains'},
                 'administrative_status': 'administrative centre'}}}),
             (UUID('e9a848ba-35b3-42e4-b9e6-aa0ea8651d92'),
              {'edges': {'from_node': UUID('08f207c1-6915-4237-ac4e-902815d9cfae'),
                'to_node': UUID('5be79bf7-cd2a-487f-8833-36ae11257df8'),
                'category': 'located_in'}}),
             (UUID('57c8adca-9dcc-4257-be85-bfb48eacd310'),
              {'nodes': {'semantic_id': 'paea',
                'category': 'municipality',
                'attributes': {'name': 'Paea',
                 'location': {'island': 'Tahiti',
                  'subdivision': 'Windward Islands',
                  'region': 'Society Islands',
                  'country': 'French Polynesia',
                  'territory': 'France'},
                 'population': 13021}}}),
             (UUID('62866902-6285-4c38-98b0-7496dbe73fd3'),
              {'nodes': {'semantic_id': 'potamogeton_amplifolius',
                'category': 'plant',
                'attributes': {'common_names': ['largeleaf pondweed',
                  'broad-leaved pondweed'],
                 'habitat': ['lakes', 'ponds', 'rivers'],
                 'water_depth': 'often in deep water',
                 'distribution': 'North America'}}}),
             (UUID('0da6e66c-64c6-4155-bb6f-88e1b0c9a349'),
              {'nodes': {'semantic_id': 'soltonsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Soltonsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('2bdd9668-a653-4815-bcde-f43dcf5ff4a5'),
              {'nodes': {'semantic_id': 'krasnogorsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Krasnogorsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('e9620276-009f-4f5a-99b6-b41d93fbe791'),
              {'nodes': {'semantic_id': 'sovetsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Sovetsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('4bdbb329-0688-4621-9c67-e1af0e8d57fe'),
              {'nodes': {'semantic_id': 'smolensky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Smolensky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
              {'nodes': {'semantic_id': 'biysky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Biysky District',
                 'location': {'region': 'Altai Krai',
                  'country': 'Russia',
                  'geography': 'east of the krai'},
                 'administrative_status': 'administrative and municipal district (raion)',
                 'bordering_districts': ['Soltonsky_district',
                  'Krasnogorsky_district',
                  'Sovetsky_district',
                  'Smolensky_district',
                  'City_of_Biysk']}}}),
             (UUID('a375ae9a-9282-4916-9e6b-02da8a824e3f'),
              {'nodes': {'semantic_id': 'city_of_biysk',
                'category': 'city',
                'attributes': {'name': 'Biysk',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'},
                 'administrative_status': 'administrative center'}}}),
             (UUID('6674891e-b1e6-4c85-9821-54b4a7fd923a'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('0da6e66c-64c6-4155-bb6f-88e1b0c9a349'),
                'category': 'bordering'}}),
             (UUID('5f81b958-60c6-40a5-8bea-9fdacae9f671'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('2bdd9668-a653-4815-bcde-f43dcf5ff4a5'),
                'category': 'bordering'}}),
             (UUID('8077d42e-5e70-44dd-aade-c764087f139f'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('e9620276-009f-4f5a-99b6-b41d93fbe791'),
                'category': 'bordering'}}),
             (UUID('abe4eb3e-0a01-48f2-b97d-67a30519a4d3'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('4bdbb329-0688-4621-9c67-e1af0e8d57fe'),
                'category': 'bordering'}}),
             (UUID('a27a6ceb-536d-4dbe-9798-e5d86e9755c6'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('a375ae9a-9282-4916-9e6b-02da8a824e3f'),
                'category': 'bordering'}}),
             (UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
              {'nodes': {'semantic_id': 'contoocook_lake',
                'category': 'lake',
                'attributes': {'name': 'Contoocook Lake',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States',
                  'towns': ['Jaffrey', 'Rindge']},
                 'connection': {'to': 'pool_pond',
                  'type': 'forms_headwaters_of'},
                 'outflow': {'to': 'contoocook_river', 'direction': 'north'},
                 'outflow_destination': 'merrimack_river'}}}),
             (UUID('1eafa7a8-a830-4472-8b32-c071159c8140'),
              {'nodes': {'semantic_id': 'pool_pond',
                'category': 'lake',
                'attributes': {'name': 'Pool Pond',
                 'connection': {'to': 'contoocook_lake',
                  'type': 'forms_headwaters_of'}}}}),
             (UUID('f841df5f-a4ff-4a6b-8656-1458252aca37'),
              {'edges': {'from_node': UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
                'to_node': UUID('1eafa7a8-a830-4472-8b32-c071159c8140'),
                'category': 'forms_headwaters_of'}}),
             (UUID('d50d66d9-c89d-4c0a-9c61-fa4e856ab2c2'),
              {'edges': {'from_node': UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
                'to_node': UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
                'category': 'outflows_to'}}),
             (UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
              {'nodes': {'semantic_id': 'contoocook_river',
                'category': 'river',
                'attributes': {'name': 'Contoocook River',
                 'flow_direction': 'north',
                 'outflow_destination': 'merrimack_river'}}}),
             (UUID('0c92123d-fbc3-47e7-b752-65df1d6680c0'),
              {'nodes': {'semantic_id': 'merrimack_river',
                'category': 'river',
                'attributes': {'name': 'Merrimack River',
                 'location': {'city': 'Penacook',
                  'state': 'New Hampshire',
                  'country': 'United States'}}}}),
             (UUID('6e9b6a2d-926e-4b20-97ab-d8bb217a5029'),
              {'edges': {'from_node': UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
                'to_node': UUID('0c92123d-fbc3-47e7-b752-65df1d6680c0'),
                'category': 'flows_into'}}),
             (UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
              {'nodes': {'semantic_id': 'bogota',
                'category': 'city',
                'attributes': {'name': 'Bogotá',
                 'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/',
                   '/ˌboʊ-/',
                   '/ˈbɔɪ-/'],
                  'spanish': 'boˈɣota'},
                 'official_name': 'Bogotá',
                 'administration': 'Capital District'}}}),
             (UUID('adc293cf-401b-49b6-928d-ada04da0e4bf'),
              {'nodes': {'semantic_id': 'political_center',
                'category': 'function',
                'attributes': {'name': 'political center',
                 'location': 'Bogotá'}}}),
             (UUID('108added-3b0f-4b67-9e28-fce89a168e46'),
              {'nodes': {'semantic_id': 'economic_center',
                'category': 'function',
                'attributes': {'name': 'economic center',
                 'location': 'Bogotá'}}}),
             (UUID('7fad3f22-d955-4f54-a1e2-5683bf4639e8'),
              {'nodes': {'semantic_id': 'administrative_center',
                'category': 'function',
                'attributes': {'name': 'administrative center',
                 'location': 'Bogotá'}}}),
             (UUID('404e8a42-e9e9-4081-9890-669ba48d1b36'),
              {'nodes': {'semantic_id': 'industrial_center',
                'category': 'function',
                'attributes': {'name': 'industrial center',
                 'location': 'Bogotá'}}}),
             (UUID('8b80ba4f-77b2-4ee6-8548-a66108963fb7'),
              {'nodes': {'semantic_id': 'artistic_center',
                'category': 'function',
                'attributes': {'name': 'artistic center',
                 'location': 'Bogotá'}}}),
             (UUID('056f1544-f292-4506-ba8d-18d6e294d433'),
              {'nodes': {'semantic_id': 'cultural_center',
                'category': 'function',
                'attributes': {'name': 'cultural center',
                 'location': 'Bogotá'}}}),
             (UUID('d747fcf6-5b60-4595-a127-f3e247cbb8a3'),
              {'nodes': {'semantic_id': 'sports_center',
                'category': 'function',
                'attributes': {'name': 'sports center',
                 'location': 'Bogotá'}}}),
             (UUID('59719cce-5c68-47cf-8111-481c74e73c3b'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
                'category': 'capital_of'}}),
             (UUID('0bc7053b-2183-41df-995a-faecd919ad45'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('5576789f-9306-4a82-8736-882db81abdf2'),
                'category': 'part_of'}}),
             (UUID('73230839-050b-4ace-9dd1-7927b1bd1034'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('adc293cf-401b-49b6-928d-ada04da0e4bf'),
                'category': 'functions_as'}}),
             (UUID('04b8ded0-c2c1-441f-b7f7-069b05f80338'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('108added-3b0f-4b67-9e28-fce89a168e46'),
                'category': 'functions_as'}}),
             (UUID('0a86d51a-bd57-4a63-b494-08075a2bcb4a'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('7fad3f22-d955-4f54-a1e2-5683bf4639e8'),
                'category': 'functions_as'}}),
             (UUID('58c0a891-5c05-48e5-ba2a-1c230b588997'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('404e8a42-e9e9-4081-9890-669ba48d1b36'),
                'category': 'functions_as'}}),
             (UUID('5bad3267-dceb-4067-8d02-bc8c748d50d3'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('8b80ba4f-77b2-4ee6-8548-a66108963fb7'),
                'category': 'functions_as'}}),
             (UUID('d80bed21-cd68-454d-a142-223fb30d5db6'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('056f1544-f292-4506-ba8d-18d6e294d433'),
                'category': 'functions_as'}}),
             (UUID('6c12a6ad-244d-4d7e-8c25-f3a6288967fb'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('d747fcf6-5b60-4595-a127-f3e247cbb8a3'),
                'category': 'functions_as'}}),
             (UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
              {'nodes': {'semantic_id': 'bogota',
                'category': 'city',
                'attributes': {'name': 'Bogotá',
                 'functions': ['political center',
                  'economic center',
                  'administrative center',
                  'industrial center',
                  'artistic center',
                  'cultural center',
                  'sports center']}}}),
             (UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
              {'nodes': {'semantic_id': 'colombia',
                'category': 'country',
                'attributes': {'name': 'Colombia',
                 'capital': 'Bogotá',
                 'status': 'capital and largest city'}}}),
             (UUID('5576789f-9306-4a82-8736-882db81abdf2'),
              {'nodes': {'semantic_id': 'cundinamarca',
                'category': 'region',
                'attributes': {'name': 'Cundinamarca',
                 'relation_to_bogota': 'often thought of as part of'}}}),
             (UUID('af6b4ebf-7c7c-4dd0-a58e-ab8c292eaf7c'),
              {'edges': {'from_node': UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
                'to_node': UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
                'category': 'capital_of'}}),
             (UUID('3265632a-4065-46c4-82cf-527b3d4abc13'),
              {'edges': {'from_node': UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
                'to_node': UUID('5576789f-9306-4a82-8736-882db81abdf2'),
                'category': 'part_of'}}),
             (UUID('d97d057d-2564-427d-9703-e77a61ff58c7'),
              {'nodes': {'semantic_id': 'intracellular_fluid',
                'category': 'fluid',
                'attributes': {'name': 'intracellular fluid',
                 'volume': '2/3 of body water',
                 'amount_in_72_kg_body': '25 litres',
                 'percentage_of_total_body_fluid': 62.5}}}),
             (UUID('380f506f-c2cf-453e-879f-fb58b3f3d1db'),
              {'nodes': {'semantic_id': 'body_fluid',
                'category': 'fluid',
                'attributes': {'name': 'body fluid',
                 'total_volume_in_72_kg_body': '40 litres'}}}),
             (UUID('1b0bebc1-49a1-419f-bfb2-d50cffeed740'),
              {'edges': {'from_node': UUID('d97d057d-2564-427d-9703-e77a61ff58c7'),
                'to_node': UUID('380f506f-c2cf-453e-879f-fb58b3f3d1db'),
                'category': 'part_of'}}),
             (UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
              {'nodes': {'semantic_id': 'territorial_waters',
                'category': 'geographic_area',
                'attributes': {'name': 'territorial waters',
                 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
                 'source': '1982 United Nations Convention on the Law of the Sea'}}}),
             (UUID('443e77c0-cff1-43e4-89f2-ba748d4421a1'),
              {'edges': {'from_node': UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
                'to_node': UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
                'category': 'extends_from'}}),
             (UUID('58b64eae-e6c2-47f1-8916-eaf1dcc87e6b'),
              {'edges': {'from_node': UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
              {'nodes': {'semantic_id': 'territorial_sea',
                'category': 'geographic_area',
                'attributes': {'name': 'territorial sea',
                 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
                 'sovereign_territory': True,
                 'foreign_ship_passage': 'innocent passage through it or transit passage for straits',
                 'jurisdiction': 'extends to airspace over and seabed below'}}}),
             (UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
              {'nodes': {'semantic_id': 'baseline',
                'category': 'geographic_feature',
                'attributes': {'name': 'baseline',
                 'definition': 'usually the mean low-water mark of a coastal state'}}}),
             (UUID('11903999-15a7-4776-8bae-f1803429147f'),
              {'nodes': {'semantic_id': 'coastal_state',
                'category': 'legal_entity',
                'attributes': {'name': 'coastal state'}}}),
             (UUID('7a93cd6e-7f97-43fa-9054-22d3e4478ecf'),
              {'edges': {'from_node': UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('4dec6036-1299-4093-ae68-3b6cecc73053'),
              {'edges': {'from_node': UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
                'to_node': UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
                'category': 'extends_from'}}),
             (UUID('d86a7f75-df06-47f1-a30d-67a921d822bf'),
              {'nodes': {'semantic_id': 'strait',
                'category': 'geographic_feature',
                'attributes': {'name': 'strait',
                 'sovereign_territory': True,
                 'jurisdiction': {'airspace': True, 'seabed': True}}}}),
             (UUID('1baf2bf2-6083-481f-8980-d2f9793f58e6'),
              {'nodes': {'semantic_id': 'maritime_delimitation',
                'category': 'legal_concept',
                'attributes': {'name': 'maritime delimitation',
                 'definition': "Adjustment of the boundaries of a coastal state's territorial sea, exclusive economic zone, or continental shelf"}}}),
             (UUID('396cc35f-de5f-4717-9cb5-2cf511456fb2'),
              {'edges': {'from_node': UUID('d86a7f75-df06-47f1-a30d-67a921d822bf'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('88b88486-07be-4ae4-8d51-c2d88ca9f125'),
              {'edges': {'from_node': UUID('1baf2bf2-6083-481f-8980-d2f9793f58e6'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'involves'}}),
             (UUID('d8b37bae-dbdb-49c8-9e35-6c87c902f3f9'),
              {'nodes': {'semantic_id': 'uninsured_depositor',
                'category': 'stakeholder',
                'attributes': {'deposit_amount': '>100,000 Euro',
                 'treatment': 'subject to a bail-in',
                 'new_role': 'new shareholders of the legacy entity'}}}),
             (UUID('7862ab2f-0f92-48af-ba10-12cdac45a10f'),
              {'nodes': {'semantic_id': 'bank_of_cyprus',
                'category': 'organization',
                'attributes': {'name': 'Bank of Cyprus',
                 'size': 'largest banking group in Cyprus',
                 'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"}}}),
             (UUID('1c509f8b-300e-47ac-ad62-4dcf675ca11d'),
              {'nodes': {'semantic_id': 'cyprus_popular_bank',
                'category': 'organization',
                'attributes': {'name': 'Cyprus Popular Bank',
                 'previous_name': 'Marfin Popular Bank',
                 'status': 'shuttered in 2013',
                 'size': 'second largest banking group in Cyprus',
                 'parent': 'Bank of Cyprus'}}}),
             (UUID('82b3a659-7692-4909-a812-fc247f97ed6c'),
              {'edges': {'from_node': UUID('d8b37bae-dbdb-49c8-9e35-6c87c902f3f9'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'holds_deposits'}}),
             (UUID('a80831eb-a3c9-4ad6-a6ba-9db107876050'),
              {'edges': {'from_node': UUID('1c509f8b-300e-47ac-ad62-4dcf675ca11d'),
                'to_node': UUID('7862ab2f-0f92-48af-ba10-12cdac45a10f'),
                'category': 'merged_with'}}),
             (UUID('2d393fc3-fe9b-46dd-90f7-2fadb227fccd'),
              {'nodes': {'semantic_id': 'central_bank_of_cyprus',
                'category': 'organization',
                'attributes': {'name': 'Central Bank of Cyprus',
                 'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'}}}),
             (UUID('87a173a3-a32b-4a36-a1b2-6248a92eb14c'),
              {'nodes': {'semantic_id': 'veteran_banker',
                'category': 'stakeholder',
                'attributes': {'name': 'Chris Pavlou',
                 'expertise': 'Treasury'}}}),
             (UUID('7af74b0b-30ab-44c4-8adf-8e19ecf04a14'),
              {'nodes': {'semantic_id': 'special_administrator',
                'category': 'stakeholder',
                'attributes': {'name': 'Andri Antoniadou',
                 'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'}}}),
             (UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
              {'nodes': {'semantic_id': 'legacy_entity',
                'category': 'organization',
                'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
                 'ownership_stake': '4.8% of Bank of Cyprus',
                 'board_representation': 'does not hold a board seat',
                 'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'}}}),
             (UUID('bfe012be-e584-401f-bd34-f6d147e7831c'),
              {'nodes': {'semantic_id': 'marfin_investment_group',
                'category': 'stakeholder',
                'attributes': {'name': 'Marfin Investment Group',
                 'role': 'former major shareholder of the legacy entity'}}}),
             (UUID('14585bad-087d-4ce7-bbc2-1d89e4cd7548'),
              {'edges': {'from_node': UUID('2d393fc3-fe9b-46dd-90f7-2fadb227fccd'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'amended_lawyers_without_consulting'}}),
             (UUID('14eb57de-1b12-42b5-8b91-945cdfd08442'),
              {'edges': {'from_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'to_node': UUID('7af74b0b-30ab-44c4-8adf-8e19ecf04a14'),
                'category': 'managed_by'}}),
             (UUID('e367aa2a-74bb-426e-b17c-f4ecf2032e6f'),
              {'edges': {'from_node': UUID('87a173a3-a32b-4a36-a1b2-6248a92eb14c'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'took_over_as_special_administrator'}}),
             (UUID('1c9504d1-c7e5-4b0b-ad7a-24a03cc9c498'),
              {'edges': {'from_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'to_node': UUID('bfe012be-e584-401f-bd34-f6d147e7831c'),
                'category': 'pursuing_legal_action_against'}})])
graph_components0
[{'nodes': [{'semantic_id': 'commonwealth_of_the_philippines',
    'category': 'political_entity',
    'attributes': {'name': 'Commonwealth of the Philippines',
     'years_active': '1935 to 1946',
     'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'},
    'paragraph_idx': 0},
   {'semantic_id': 'insular_government',
    'category': 'political_entity',
    'attributes': {'name': 'Insular Government',
     'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'},
    'paragraph_idx': 0}],
  'edges': [{'from_node': 'insular_government',
    'to_node': 'commonwealth_of_the_philippines',
    'category': 'replaced'}]},
 {'nodes': [{'semantic_id': 'insular_government',
    'category': 'political_entity',
    'attributes': {'name': 'Insular Government',
     'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'},
    'paragraph_idx': 0},
   {'semantic_id': 'commonwealth_of_the_philippines',
    'category': 'political_entity',
    'attributes': {'name': 'Commonwealth of the Philippines',
     'years_active': '1935 to 1946',
     'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'},
    'paragraph_idx': 0},
   {'semantic_id': 'tydings_mcduffie_act',
    'category': 'legal_document',
    'attributes': {'name': 'Tydings–McDuffie Act',
     'description': "The act that established the Commonwealth of the Philippines as a transitional administration in preparation for the country's full achievement of independence."},
    'paragraph_idx': 0}],
  'edges': [{'from_node': 'insular_government',
    'to_node': 'commonwealth_of_the_philippines',
    'category': 'replaced'},
   {'from_node': 'tydings_mcduffie_act',
    'to_node': 'commonwealth_of_the_philippines',
    'category': 'established'}]},
 {'nodes': [{'semantic_id': 'lake_oesa',
    'category': 'natural_feature',
    'attributes': {'name': 'Lake Oesa',
     'elevation': 2267,
     'elevation_unit': 'm',
     'location': {'park': 'Yoho National Park',
      'city': 'Field',
      'province': 'British Columbia',
      'country': 'Canada'}},
    'paragraph_idx': 1}],
  'edges': []},
 {'nodes': [{'semantic_id': 'arafura_swamp',
    'category': 'natural_feature',
    'attributes': {'name': 'Arafura Swamp',
     'type': 'inland freshwater wetland',
     'location': {'region': 'Arnhem Land',
      'territory': 'Northern Territory',
      'country': 'Australia'},
     'size': {'area': {'value': None, 'unit': 'km2'},
      'expansion_during_wet_season': True},
     'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia'},
    'paragraph_idx': 2}],
  'edges': []},
 {'nodes': [{'semantic_id': 'arafura_swamp',
    'category': 'natural_feature',
    'attributes': {'name': 'Arafura Swamp',
     'type': 'inland freshwater wetland',
     'location': {'region': 'Arnhem Land',
      'territory': 'Northern Territory',
      'country': 'Australia'},
     'size': {'area': {'value': None, 'unit': 'km2'},
      'expansion_during_wet_season': True},
     'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia',
     'cultural_significance': 'of great cultural significance to the Yolngu people, in particular the Ramingining community',
     'filming_location': 'Ten Canoes'},
    'paragraph_idx': 2}],
  'edges': []},
 {'nodes': [{'semantic_id': 'wapizagonke_lake',
    'category': 'natural_feature',
    'attributes': {'name': 'Wapizagonke Lake',
     'type': 'body of water',
     'location': {'sector': 'Lac-Wapizagonke',
      'city': 'Shawinigan',
      'park': 'La Mauricie National Park',
      'region': 'Mauricie',
      'province': 'Quebec',
      'country': 'Canada'}},
    'paragraph_idx': 3}],
  'edges': []},
 {'nodes': [{'semantic_id': 'khabarovsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Khabarovsky District',
     'country': 'Russia',
     'region': 'Khabarovsk Krai',
     'area': None,
     'area_unit': None,
     'administrative_center': None},
    'paragraph_idx': 4},
   {'semantic_id': 'amursky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Amursky District',
     'country': 'Russia',
     'region': 'Khabarovsk Krai'},
    'paragraph_idx': 4}],
  'edges': [{'from_node': 'khabarovsky_district',
    'to_node': 'amursky_district',
    'category': 'separated_by'}]},
 {'nodes': [{'semantic_id': 'khabarovsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Khabarovsky District',
     'country': 'Russia',
     'region': 'Khabarovsk Krai',
     'area': None,
     'area_unit': None,
     'administrative_center': 'Khabarovsk'},
    'paragraph_idx': 4}],
  'edges': [{'from_node': 'khabarovsky_district',
    'to_node': 'amursky_district',
    'category': 'separated_by'}]},
 {'nodes': [{'semantic_id': 'silver_lake',
    'category': 'natural_feature',
    'attributes': {'name': 'Silver Lake',
     'type': 'body of water',
     'location': {'county': 'Cheshire County',
      'state': 'New Hampshire',
      'country': 'United States',
      'towns': ['Harrisville', 'Nelson']},
     'outflows': ['Minnewawa Brook', 'The Branch'],
     'ultimate_recipient': 'Connecticut River'},
    'paragraph_idx': 5}],
  'edges': [{'from_node': 'silver_lake',
    'to_node': 'minnewawa_brook',
    'category': 'flows_via'},
   {'from_node': 'silver_lake',
    'to_node': 'the_branch',
    'category': 'flows_via'},
   {'from_node': 'minnewawa_brook',
    'to_node': 'ashuelot_river',
    'category': 'flows_to'},
   {'from_node': 'the_branch',
    'to_node': 'ashuelot_river',
    'category': 'flows_to'},
   {'from_node': 'ashuelot_river',
    'to_node': 'connecticut_river',
    'category': 'tributary_of'}]},
 {'nodes': [{'semantic_id': 'hyderabad_police_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad Police area',
     'jurisdiction_size': 'smallest'},
    'paragraph_idx': 6},
   {'semantic_id': 'hyderabad_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad district',
     'jurisdiction_size': 'second_smallest'},
    'paragraph_idx': 6},
   {'semantic_id': 'ghmc_area',
    'category': 'administrative_district',
    'attributes': {'name': 'GHMC area',
     'jurisdiction_size': 'second_largest',
     'alternate_name': 'Hyderabad city'},
    'paragraph_idx': 6},
   {'semantic_id': 'hmda_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area',
     'jurisdiction_size': 'largest',
     'type': 'urban_planning_agency',
     'apolitical': True,
     'covers': ['ghmc_area', 'suburbs_of_ghmc_area']},
    'paragraph_idx': 6}],
  'edges': [{'from_node': 'hyderabad_police_area',
    'to_node': 'hyderabad_district',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'hyderabad_district',
    'to_node': 'ghmc_area',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'ghmc_area',
    'to_node': 'hmda_area',
    'category': 'jurisdiction_size_hierarchy'}]},
 {'nodes': [{'semantic_id': 'hmda_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area',
     'jurisdiction_size': 'largest',
     'type': 'urban_planning_agency',
     'apolitical': True,
     'covers': ['ghmc_area', 'suburbs_of_ghmc_area']},
    'paragraph_idx': 6},
   {'semantic_id': 'ghmc_area',
    'category': 'administrative_district',
    'attributes': {'name': 'GHMC area',
     'jurisdiction_size': 'second_largest',
     'alternate_name': 'Hyderabad city'},
    'paragraph_idx': 6},
   {'semantic_id': 'suburbs_of_ghmc_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Suburbs of GHMC area',
     'jurisdiction_size': 'medium',
     'type': 'residential'},
    'paragraph_idx': 6},
   {'semantic_id': 'hmwssb',
    'category': 'administrative_body',
    'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board',
     'type': 'water_management'},
    'paragraph_idx': 6}],
  'edges': [{'from_node': 'hmda_area',
    'to_node': 'ghmc_area',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'hmda_area',
    'to_node': 'suburbs_of_ghmc_area',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'hmda_area', 'to_node': 'hmwssb', 'category': 'manages'}]},
 {'nodes': [{'semantic_id': 'san_juan',
    'category': 'city',
    'attributes': {'name': 'San Juan',
     'location': {'country': 'Puerto Rico', 'region': 'north-eastern coast'},
     'borders': {'north': 'Atlantic Ocean',
      'south': ['Caguas', 'Trujillo Alto'],
      'east': ['Carolina'],
      'west': ['Guaynabo']},
     'area': {'value': 76.93, 'unit': 'square miles'}},
    'paragraph_idx': 7}],
  'edges': []},
 {'nodes': [{'semantic_id': 'san_juan',
    'category': 'city',
    'attributes': {'name': 'San Juan',
     'location': {'country': 'Puerto Rico', 'region': 'north-eastern coast'},
     'borders': {'north': 'Atlantic Ocean',
      'south': ['Caguas', 'Trujillo Alto'],
      'east': ['Carolina'],
      'west': ['Guaynabo']},
     'area': {'value': 76.93, 'unit': 'square miles'},
     'water_bodies': ['San Juan Bay', 'Condado Lagoon', 'San José Lagoon'],
     'water_area': {'value': 29.11,
      'unit': 'square miles',
      'percentage': 37.83}},
    'paragraph_idx': 7}],
  'edges': []},
 {'nodes': [{'semantic_id': 'landkreise_amalgamation',
    'category': 'administrative_district',
    'attributes': {'name': 'Local associations of a special kind',
     'type': 'amalgamation_of_districts',
     'purpose': 'simplification_of_administration'},
    'paragraph_idx': 8},
   {'semantic_id': 'kreisfreie_stadte',
    'category': 'administrative_district',
    'attributes': {'name': 'Kreisfreie Städte',
     'type': 'district-free_city_or_town'},
    'paragraph_idx': 8},
   {'semantic_id': 'urban_hinterland',
    'category': 'administrative_district',
    'attributes': {'name': 'Urban hinterland', 'type': 'urban_area'},
    'paragraph_idx': 8}],
  'edges': [{'from_node': 'landkreise_amalgamation',
    'to_node': 'kreisfreie_stadte',
    'category': 'comprises'},
   {'from_node': 'landkreise_amalgamation',
    'to_node': 'urban_hinterland',
    'category': 'comprises'},
   {'from_node': 'kreisfreie_stadte',
    'to_node': 'urban_hinterland',
    'category': 'grouping'}]},
 {'nodes': [{'semantic_id': 'urban_hinterland',
    'category': 'administrative_district',
    'attributes': {'name': 'Urban hinterland', 'type': 'urban_area'},
    'paragraph_idx': 8},
   {'semantic_id': 'kreisfreie_stadte',
    'category': 'administrative_district',
    'attributes': {'name': 'Kreisfreie Städte',
     'type': 'district-free_city_or_town'},
    'paragraph_idx': 8},
   {'semantic_id': 'landkreise_amalgamation',
    'category': 'administrative_district',
    'attributes': {'name': 'Local associations of a special kind',
     'type': 'amalgamation_of_districts',
     'purpose': 'simplification_of_administration'},
    'paragraph_idx': 8}],
  'edges': [{'from_node': 'kreisfreie_stadte',
    'to_node': 'urban_hinterland',
    'category': 'grouping'},
   {'from_node': 'landkreise_amalgamation',
    'to_node': 'urban_hinterland',
    'category': 'comprises'},
   {'from_node': 'landkreise_amalgamation',
    'to_node': 'kreisfreie_stadte',
    'category': 'comprises'}]},
 {'nodes': [{'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95}},
    'paragraph_idx': 9}],
  'edges': []},
 {'nodes': [{'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95},
     'area': {'value': 34.6, 'unit': 'square kilometres'},
     'coastline': {'length': 32, 'unit': 'km'},
     'highest_point': 'Mount Bates'},
    'paragraph_idx': 9}],
  'edges': []},
 {'nodes': [{'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95},
     'area': {'value': 34.6, 'unit': 'square kilometres'},
     'coastline': {'length': 32, 'unit': 'km'},
     'highest_point': 'Mount Bates'},
    'paragraph_idx': 9},
   {'semantic_id': 'phillip_island',
    'category': 'island',
    'attributes': {'name': 'Phillip Island',
     'location': {'relation': 'second largest island of the territory'}},
    'paragraph_idx': 9}],
  'edges': [{'from_node': 'norfolk_island',
    'to_node': 'phillip_island',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'phillip_island',
    'category': 'island',
    'attributes': {'name': 'Phillip Island',
     'location': {'relation': 'second largest island of the territory',
      'coordinates': {'latitude': -29.117, 'longitude': 167.95},
      'distance_from_main_island': {'value': 7, 'unit': 'kilometres'}}},
    'paragraph_idx': 9},
   {'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95},
     'area': {'value': 34.6, 'unit': 'square kilometres'},
     'coastline': {'length': 32, 'unit': 'km'},
     'highest_point': 'Mount Bates'},
    'paragraph_idx': 9}],
  'edges': [{'from_node': 'norfolk_island',
    'to_node': 'phillip_island',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'phillip_island',
    'category': 'island',
    'attributes': {'name': 'Phillip Island',
     'location': {'relation': 'second largest island of the territory',
      'coordinates': {'latitude': -29.117, 'longitude': 167.95},
      'distance_from_main_island': {'value': 7, 'unit': 'kilometres'}}},
    'paragraph_idx': 9}],
  'edges': [{'from_node': 'phillip_island',
    'to_node': 'norfolk_island',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'perm',
    'category': 'city',
    'attributes': {'name': 'Perm',
     'location': {'river': 'Kama River',
      'region': 'Perm Krai',
      'country': 'Russia',
      'geography': 'European part of Russia near the Ural Mountains'},
     'administrative_status': 'administrative centre'},
    'paragraph_idx': 10}],
  'edges': [{'from_node': 'perm',
    'to_node': 'perm_krai',
    'category': 'administrative_centre_of'},
   {'from_node': 'perm', 'to_node': 'kama_river', 'category': 'located_on'},
   {'from_node': 'perm', 'to_node': 'ural_mountains', 'category': 'near'},
   {'from_node': 'perm', 'to_node': 'russia', 'category': 'located_in'},
   {'from_node': 'perm', 'to_node': 'europe', 'category': 'located_in'}]},
 {'nodes': [{'semantic_id': 'star_stadium',
    'category': 'stadium',
    'attributes': {'name': 'Star (Zvezda) Stadium',
     'former_name': 'Lenin Komsomol Stadium',
     'location': {'city': 'Perm', 'country': 'Russia'},
     'usage': 'football matches',
     'home_team': 'FC Amkar Perm',
     'capacity': 17000,
     'opened': '1969-06-05'},
    'paragraph_idx': 11},
   {'semantic_id': 'perm',
    'category': 'city',
    'attributes': {'name': 'Perm',
     'location': {'river': 'Kama River',
      'region': 'Perm Krai',
      'country': 'Russia',
      'geography': 'European part of Russia near the Ural Mountains'},
     'administrative_status': 'administrative centre'},
    'paragraph_idx': 11}],
  'edges': [{'from_node': 'star_stadium',
    'to_node': 'perm',
    'category': 'located_in'}]},
 {'nodes': [{'semantic_id': 'paea',
    'category': 'municipality',
    'attributes': {'name': 'Paea',
     'location': {'island': 'Tahiti',
      'subdivision': 'Windward Islands',
      'region': 'Society Islands',
      'country': 'French Polynesia',
      'territory': 'France'},
     'population': 16282},
    'paragraph_idx': 12}],
  'edges': [{'from_node': 'paea',
    'to_node': 'papeete',
    'category': 'located_in'},
   {'from_node': 'paea', 'to_node': 'tahiti', 'category': 'located_on'},
   {'from_node': 'paea', 'to_node': 'windward_islands', 'category': 'part_of'},
   {'from_node': 'paea', 'to_node': 'society_islands', 'category': 'part_of'},
   {'from_node': 'paea',
    'to_node': 'french_polynesia',
    'category': 'located_in'},
   {'from_node': 'paea', 'to_node': 'france', 'category': 'administered_by'}]},
 {'nodes': [{'semantic_id': 'paea',
    'category': 'municipality',
    'attributes': {'name': 'Paea',
     'location': {'island': 'Tahiti',
      'subdivision': 'Windward Islands',
      'region': 'Society Islands',
      'country': 'French Polynesia',
      'territory': 'France'},
     'population': 13021},
    'paragraph_idx': 12}],
  'edges': []},
 {'nodes': [{'semantic_id': 'potamogeton_amplifolius',
    'category': 'plant',
    'attributes': {'common_names': ['largeleaf pondweed',
      'broad-leaved pondweed'],
     'habitat': ['lakes', 'ponds', 'rivers'],
     'water_depth': 'often in deep water',
     'distribution': 'North America'},
    'paragraph_idx': 13}],
  'edges': []},
 {'nodes': [{'semantic_id': 'biysky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Biysky District',
     'location': {'region': 'Altai Krai',
      'country': 'Russia',
      'geography': 'east of the krai'},
     'administrative_status': 'administrative and municipal district (raion)',
     'bordering_districts': ['Zonalny',
      'Tselinny',
      'Soltonsky',
      'Krasnogorsky',
      'Sovetsky',
      'Smolensky']},
    'paragraph_idx': 14}],
  'edges': []},
 {'nodes': [{'semantic_id': 'soltonsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Soltonsky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'krasnogorsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Krasnogorsky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'sovetsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Sovetsky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'smolensky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Smolensky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'biysky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Biysky District',
     'location': {'region': 'Altai Krai',
      'country': 'Russia',
      'geography': 'east of the krai'},
     'administrative_status': 'administrative and municipal district (raion)',
     'bordering_districts': ['Soltonsky_district',
      'Krasnogorsky_district',
      'Sovetsky_district',
      'Smolensky_district',
      'City_of_Biysk']},
    'paragraph_idx': 14},
   {'semantic_id': 'city_of_biysk',
    'category': 'city',
    'attributes': {'name': 'Biysk',
     'location': {'region': 'Altai Krai', 'country': 'Russia'},
     'administrative_status': 'administrative center'},
    'paragraph_idx': 14}],
  'edges': [{'from_node': 'biysky_district',
    'to_node': 'soltonsky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'krasnogorsky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'sovetsky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'smolensky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'city_of_biysk',
    'category': 'bordering'}]},
 {'nodes': [{'semantic_id': 'contoocook_lake',
    'category': 'lake',
    'attributes': {'name': 'Contoocook Lake',
     'location': {'county': 'Cheshire County',
      'state': 'New Hampshire',
      'country': 'United States',
      'towns': ['Jaffrey', 'Rindge']},
     'connection': {'to': 'pool_pond', 'type': 'forms_headwaters_of'},
     'outflow': {'to': 'contoocook_river', 'direction': 'north'},
     'outflow_destination': 'merrimack_river'},
    'paragraph_idx': 15},
   {'semantic_id': 'pool_pond',
    'category': 'lake',
    'attributes': {'name': 'Pool Pond',
     'connection': {'to': 'contoocook_lake', 'type': 'forms_headwaters_of'}},
    'paragraph_idx': 15},
   {'semantic_id': 'contoocook_river',
    'category': 'river',
    'attributes': {'name': 'Contoocook River',
     'flow_direction': 'north',
     'outflow_destination': 'merrimack_river'},
    'paragraph_idx': 15},
   {'semantic_id': 'merrimack_river',
    'category': 'river',
    'attributes': {'name': 'Merrimack River',
     'location': {'city': 'Penacook',
      'state': 'New Hampshire',
      'country': 'United States'}},
    'paragraph_idx': 15}],
  'edges': [{'from_node': 'contoocook_lake',
    'to_node': 'pool_pond',
    'category': 'forms_headwaters_of'},
   {'from_node': 'contoocook_lake',
    'to_node': 'contoocook_river',
    'category': 'outflows_to'},
   {'from_node': 'contoocook_river',
    'to_node': 'merrimack_river',
    'category': 'flows_into'}]},
 {'nodes': [{'semantic_id': 'contoocook_river',
    'category': 'river',
    'attributes': {'name': 'Contoocook River',
     'flow_direction': 'north',
     'outflow_destination': 'merrimack_river'},
    'paragraph_idx': 15},
   {'semantic_id': 'merrimack_river',
    'category': 'river',
    'attributes': {'name': 'Merrimack River',
     'location': {'city': 'Penacook',
      'state': 'New Hampshire',
      'country': 'United States'}},
    'paragraph_idx': 15}],
  'edges': [{'from_node': 'contoocook_river',
    'to_node': 'merrimack_river',
    'category': 'flows_into'}]},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'pronunciation': {'english': ['/ˈboʊɡətɑː/', '/ˌbɒɡəˈtɑː/', '/ˌboʊ-/'],
      'spanish': 'boɣoˈta'},
     'official_name': 'Bogotá'},
    'paragraph_idx': 16}],
  'edges': []},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/', '/ˌboʊɡəˈtɑː/', '/ˌboɪ-/'],
      'spanish': 'boɣoˈta'},
     'official_name': 'Bogotá',
     'administration': 'Capital District'},
    'paragraph_idx': 16}],
  'edges': []},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/', '/ˌboʊ-/', '/ˈbɔɪ-/'],
      'spanish': 'boˈɣota'},
     'official_name': 'Bogotá',
     'administration': 'Capital District'},
    'paragraph_idx': 16},
   {'semantic_id': 'colombia',
    'category': 'country',
    'attributes': {'name': 'Colombia',
     'capital': 'Bogotá',
     'status': 'capital and largest city'},
    'paragraph_idx': 16},
   {'semantic_id': 'cundinamarca',
    'category': 'region',
    'attributes': {'name': 'Cundinamarca',
     'relation_to_bogota': 'often thought of as part of'},
    'paragraph_idx': 16},
   {'semantic_id': 'political_center',
    'category': 'function',
    'attributes': {'name': 'political center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'economic_center',
    'category': 'function',
    'attributes': {'name': 'economic center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'administrative_center',
    'category': 'function',
    'attributes': {'name': 'administrative center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'industrial_center',
    'category': 'function',
    'attributes': {'name': 'industrial center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'artistic_center',
    'category': 'function',
    'attributes': {'name': 'artistic center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'cultural_center',
    'category': 'function',
    'attributes': {'name': 'cultural center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'sports_center',
    'category': 'function',
    'attributes': {'name': 'sports center', 'location': 'Bogotá'},
    'paragraph_idx': 16}],
  'edges': [{'from_node': 'bogota',
    'to_node': 'colombia',
    'category': 'capital_of'},
   {'from_node': 'bogota', 'to_node': 'cundinamarca', 'category': 'part_of'},
   {'from_node': 'bogota',
    'to_node': 'political_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'economic_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'administrative_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'industrial_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'artistic_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'cultural_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'sports_center',
    'category': 'functions_as'}]},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'functions': ['political center',
      'economic center',
      'administrative center',
      'industrial center',
      'artistic center',
      'cultural center',
      'sports center']},
    'paragraph_idx': 16},
   {'semantic_id': 'colombia',
    'category': 'country',
    'attributes': {'name': 'Colombia',
     'capital': 'Bogotá',
     'status': 'capital and largest city'},
    'paragraph_idx': 16},
   {'semantic_id': 'cundinamarca',
    'category': 'region',
    'attributes': {'name': 'Cundinamarca',
     'relation_to_bogota': 'often thought of as part of'},
    'paragraph_idx': 16}],
  'edges': [{'from_node': 'bogota',
    'to_node': 'colombia',
    'category': 'capital_of'},
   {'from_node': 'bogota', 'to_node': 'cundinamarca', 'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'intracellular_fluid',
    'category': 'fluid',
    'attributes': {'name': 'intracellular fluid',
     'volume': '2/3 of body water',
     'amount_in_72_kg_body': '25 litres',
     'percentage_of_total_body_fluid': 62.5},
    'paragraph_idx': 17},
   {'semantic_id': 'body_fluid',
    'category': 'fluid',
    'attributes': {'name': 'body fluid',
     'total_volume_in_72_kg_body': '40 litres'},
    'paragraph_idx': 17}],
  'edges': [{'from_node': 'intracellular_fluid',
    'to_node': 'body_fluid',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'territorial_waters',
    'category': 'geographic_area',
    'attributes': {'name': 'territorial waters',
     'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
     'source': '1982 United Nations Convention on the Law of the Sea'},
    'paragraph_idx': 18},
   {'semantic_id': 'baseline',
    'category': 'geographic_feature',
    'attributes': {'name': 'baseline',
     'definition': 'usually the mean low-water mark of a coastal state'},
    'paragraph_idx': 18},
   {'semantic_id': 'coastal_state',
    'category': 'legal_entity',
    'attributes': {'name': 'coastal state'},
    'paragraph_idx': 18}],
  'edges': [{'from_node': 'territorial_waters',
    'to_node': 'baseline',
    'category': 'extends_from'},
   {'from_node': 'territorial_waters',
    'to_node': 'coastal_state',
    'category': 'belongs_to'}]},
 {'nodes': [{'semantic_id': 'territorial_sea',
    'category': 'geographic_area',
    'attributes': {'name': 'territorial sea',
     'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
     'sovereign_territory': True,
     'foreign_ship_passage': 'innocent passage through it or transit passage for straits',
     'jurisdiction': 'extends to airspace over and seabed below'},
    'paragraph_idx': 18},
   {'semantic_id': 'baseline',
    'category': 'geographic_feature',
    'attributes': {'name': 'baseline',
     'definition': 'usually the mean low-water mark of a coastal state'},
    'paragraph_idx': 18},
   {'semantic_id': 'coastal_state',
    'category': 'legal_entity',
    'attributes': {'name': 'coastal state'},
    'paragraph_idx': 18}],
  'edges': [{'from_node': 'territorial_sea',
    'to_node': 'coastal_state',
    'category': 'belongs_to'},
   {'from_node': 'territorial_sea',
    'to_node': 'baseline',
    'category': 'extends_from'}]},
 {'nodes': [{'semantic_id': 'strait',
    'category': 'geographic_feature',
    'attributes': {'name': 'strait',
     'sovereign_territory': True,
     'jurisdiction': {'airspace': True, 'seabed': True}},
    'paragraph_idx': 18},
   {'semantic_id': 'maritime_delimitation',
    'category': 'legal_concept',
    'attributes': {'name': 'maritime delimitation',
     'definition': "Adjustment of the boundaries of a coastal state's territorial sea, exclusive economic zone, or continental shelf"},
    'paragraph_idx': 18}],
  'edges': [{'from_node': 'strait',
    'to_node': 'coastal_state',
    'category': 'belongs_to'},
   {'from_node': 'strait', 'to_node': 'airspace', 'category': 'extends_to'},
   {'from_node': 'strait', 'to_node': 'seabed', 'category': 'extends_to'},
   {'from_node': 'maritime_delimitation',
    'to_node': 'coastal_state',
    'category': 'involves'}]},
 {'nodes': [{'semantic_id': 'cyprus_popular_bank',
    'category': 'organization',
    'attributes': {'name': 'Cyprus Popular Bank',
     'previous_name': 'Marfin Popular Bank',
     'status': 'shuttered in 2013',
     'size': 'second largest banking group in Cyprus',
     'parent': 'Bank of Cyprus'},
    'paragraph_idx': 19},
   {'semantic_id': 'bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Bank of Cyprus',
     'size': 'largest banking group in Cyprus',
     'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'cyprus_popular_bank',
    'to_node': 'bank_of_cyprus',
    'category': 'merged_with'}]},
 {'nodes': [{'semantic_id': 'cyprus_popular_bank',
    'category': 'organization',
    'attributes': {'name': 'Cyprus Popular Bank',
     'previous_name': 'Marfin Popular Bank',
     'status': 'shuttered in 2013',
     'size': 'second largest banking group in Cyprus',
     'parent': 'Bank of Cyprus'},
    'paragraph_idx': 19},
   {'semantic_id': 'bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Bank of Cyprus',
     'size': 'largest banking group in Cyprus',
     'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"},
    'paragraph_idx': 19},
   {'semantic_id': 'uninsured_depositor',
    'category': 'stakeholder',
    'attributes': {'deposit_amount': '>100,000 Euro',
     'treatment': 'subject to a bail-in'},
    'paragraph_idx': 19},
   {'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds"},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'cyprus_popular_bank',
    'to_node': 'bank_of_cyprus',
    'category': 'merged_with'},
   {'from_node': 'uninsured_depositor',
    'to_node': 'legacy_entity',
    'category': 'holds_deposits'}]},
 {'nodes': [{'semantic_id': 'uninsured_depositor',
    'category': 'stakeholder',
    'attributes': {'deposit_amount': '>100,000 Euro',
     'treatment': 'subject to a bail-in',
     'new_role': 'new shareholders of the legacy entity'},
    'paragraph_idx': 19},
   {'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat'},
    'paragraph_idx': 19},
   {'semantic_id': 'bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Bank of Cyprus',
     'size': 'largest banking group in Cyprus',
     'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"},
    'paragraph_idx': 19},
   {'semantic_id': 'cyprus_popular_bank',
    'category': 'organization',
    'attributes': {'name': 'Cyprus Popular Bank',
     'previous_name': 'Marfin Popular Bank',
     'status': 'shuttered in 2013',
     'size': 'second largest banking group in Cyprus',
     'parent': 'Bank of Cyprus'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'uninsured_depositor',
    'to_node': 'legacy_entity',
    'category': 'holds_deposits'},
   {'from_node': 'cyprus_popular_bank',
    'to_node': 'bank_of_cyprus',
    'category': 'merged_with'}]},
 {'nodes': [{'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat',
     'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'},
    'paragraph_idx': 19},
   {'semantic_id': 'special_administrator',
    'category': 'stakeholder',
    'attributes': {'name': 'Andri Antoniadou',
     'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'legacy_entity',
    'to_node': 'special_administrator',
    'category': 'managed_by'}]},
 {'nodes': [{'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat',
     'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'},
    'paragraph_idx': 19},
   {'semantic_id': 'special_administrator',
    'category': 'stakeholder',
    'attributes': {'name': 'Andri Antoniadou',
     'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'},
    'paragraph_idx': 19},
   {'semantic_id': 'veteran_banker',
    'category': 'stakeholder',
    'attributes': {'name': 'Chris Pavlou', 'expertise': 'Treasury'},
    'paragraph_idx': 19},
   {'semantic_id': 'central_bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Central Bank of Cyprus',
     'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'legacy_entity',
    'to_node': 'special_administrator',
    'category': 'managed_by'},
   {'from_node': 'central_bank_of_cyprus',
    'to_node': 'legacy_entity',
    'category': 'amended_lawyers_without_consulting'}]},
 {'nodes': [{'semantic_id': 'central_bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Central Bank of Cyprus',
     'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'},
    'paragraph_idx': 19},
   {'semantic_id': 'veteran_banker',
    'category': 'stakeholder',
    'attributes': {'name': 'Chris Pavlou', 'expertise': 'Treasury'},
    'paragraph_idx': 19},
   {'semantic_id': 'special_administrator',
    'category': 'stakeholder',
    'attributes': {'name': 'Andri Antoniadou',
     'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'},
    'paragraph_idx': 19},
   {'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat',
     'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'},
    'paragraph_idx': 19},
   {'semantic_id': 'marfin_investment_group',
    'category': 'stakeholder',
    'attributes': {'name': 'Marfin Investment Group',
     'role': 'former major shareholder of the legacy entity'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'central_bank_of_cyprus',
    'to_node': 'legacy_entity',
    'category': 'amended_lawyers_without_consulting'},
   {'from_node': 'legacy_entity',
    'to_node': 'special_administrator',
    'category': 'managed_by'},
   {'from_node': 'veteran_banker',
    'to_node': 'legacy_entity',
    'category': 'took_over_as_special_administrator'},
   {'from_node': 'legacy_entity',
    'to_node': 'marfin_investment_group',
    'category': 'pursuing_legal_action_against'}]}]

Creating Vector DB

import chromadb
2024-05-14 21:56:41,453 - DEBUG - chromadb.auth.registry - registry - decorator - 56 - Registering provider: token_config
2024-05-14 21:56:41,455 - DEBUG - chromadb.auth.registry - registry - decorator - 56 - Registering provider: user_token_config
2024-05-14 21:56:41,456 - DEBUG - chromadb.auth.registry - registry - decorator - 56 - Registering provider: token
2024-05-14 21:56:41,458 - DEBUG - chromadb.auth.registry - registry - decorator - 56 - Registering provider: token
from chromadb.utils import embedding_functions

ef = embedding_functions.DefaultEmbeddingFunction()
ef('sup')
/root/.cache/chroma/onnx_models/all-MiniLM-L6-v2/onnx.tar.gz: 100%|██████████| 79.3M/79.3M [01:21<00:00, 1.02MiB/s]
[[-0.08815008401870728,
  0.0389120951294899,
  -0.06267453730106354,
  0.025976944714784622,
  0.021272214129567146,
  0.036165427416563034,
  0.06472509354352951,
  0.03273024782538414,
  -0.022812241688370705,
  0.03426264598965645,
  -0.011476818472146988,
  -0.0558527335524559,
  0.0752527117729187,
  0.02892010472714901,
  -0.012184866704046726,
  -0.06143530085682869,
  0.057932790368795395,
  -0.02354748174548149,
  -0.037457771599292755,
  0.007783312350511551,
  -0.043894387781620026,
  -0.0005846268613822758,
  -0.05005178228020668,
  0.05256332457065582,
  0.041017238050699234,
  0.027247676625847816,
  -0.007769174408167601,
  0.006663127336651087,
  -0.0582849495112896,
  -0.058276500552892685,
  -0.008283257484436035,
  0.011540266685187817,
  0.09883619099855423,
  0.014246460050344467,
  0.021976888179779053,
  -0.042441871017217636,
  0.01698663830757141,
  0.05459064990282059,
  0.027719488367438316,
  0.040375471115112305,
  -0.07192573696374893,
  -0.0697317123413086,
  -0.007513706106692553,
  0.040573637932538986,
  0.031709592789411545,
  0.020085664466023445,
  -0.024455910548567772,
  0.021748993545770645,
  0.021665506064891815,
  -0.0782397910952568,
  0.012301645241677761,
  -0.07262903451919556,
  0.0020467431750148535,
  -0.007664070930331945,
  -0.0009409540216438472,
  0.02634112909436226,
  -0.017131712287664413,
  -0.04711078107357025,
  -0.03610646724700928,
  -0.08455827087163925,
  0.018454650416970253,
  -0.09647984802722931,
  -0.06264247000217438,
  0.04708629846572876,
  0.010321928188204765,
  0.10852538794279099,
  -0.017284022644162178,
  0.02371356077492237,
  0.004756816662847996,
  0.05711206793785095,
  -0.0002290358825121075,
  0.041850537061691284,
  -0.08036033064126968,
  0.05354780703783035,
  -0.011950146406888962,
  0.03304034471511841,
  0.04630657285451889,
  -0.01785254292190075,
  0.11931655555963516,
  -0.008362460881471634,
  0.004671791102737188,
  -0.005780027247965336,
  -0.06775062531232834,
  0.009449469856917858,
  0.023738745599985123,
  0.011783314868807793,
  -0.06681878864765167,
  -0.027939554303884506,
  0.006354610435664654,
  0.05730771645903587,
  -0.0838579311966896,
  -0.08851093053817749,
  0.08038954436779022,
  -0.02845342643558979,
  -0.047472529113292694,
  -0.07104448974132538,
  -0.002936464035883546,
  0.015265177004039288,
  -0.08989954739809036,
  0.2169521003961563,
  0.03967348858714104,
  0.05828956514596939,
  0.04222771152853966,
  0.0014037664514034986,
  -0.008869979530572891,
  -0.004865588154643774,
  -0.07116992026567459,
  -0.006799907423555851,
  -0.021581022068858147,
  -0.009085524827241898,
  -0.04695131257176399,
  -0.03597227856516838,
  0.04183044284582138,
  -0.025456368923187256,
  0.044091127812862396,
  0.017077835276722908,
  0.008213749155402184,
  0.011404010467231274,
  0.018198302015662193,
  -0.027580946683883667,
  0.03153375908732414,
  0.023579945787787437,
  -0.048822250217199326,
  0.02161264233291149,
  -0.017332669347524643,
  -0.08839226514101028,
  0.016617678105831146,
  -4.6542501285938574e-33,
  -0.05196730047464371,
  -0.021989643573760986,
  -0.029618987813591957,
  0.04105169698596001,
  -0.001578746596351266,
  0.009363578632473946,
  9.751021570991725e-05,
  0.01197210792452097,
  -0.034649863839149475,
  0.08685518056154251,
  -0.12436547130346298,
  -0.003243502229452133,
  -0.002412007190287113,
  0.005630753934383392,
  0.03797269985079765,
  0.06566265970468521,
  0.055325284600257874,
  -0.0033867782913148403,
  0.011790132150053978,
  0.01466473750770092,
  -0.044716041535139084,
  0.04668736830353737,
  -0.014505395665764809,
  0.01251885388046503,
  0.012130805291235447,
  -0.0644056648015976,
  0.06459583342075348,
  -0.04979125037789345,
  -0.013997192494571209,
  0.021896356716752052,
  0.01764928363263607,
  0.05214817821979523,
  -0.010583145543932915,
  -0.003208221634849906,
  -0.009506486356258392,
  0.010158931836485863,
  0.07064365595579147,
  -0.03242914006114006,
  0.00295675708912313,
  0.013653669506311417,
  0.04893507435917854,
  -0.005207119043916464,
  -0.037282273173332214,
  0.020390242338180542,
  0.02464980259537697,
  0.13883742690086365,
  -0.01673075370490551,
  0.042279619723558426,
  0.022591179236769676,
  0.044542353600263596,
  -0.01938001625239849,
  -0.017139442265033722,
  -0.0965004563331604,
  0.07410972565412521,
  -0.016040310263633728,
  0.027394499629735947,
  0.037999849766492844,
  -0.12169472128152847,
  -0.020582005381584167,
  0.00526941055431962,
  -0.024848125874996185,
  0.027975235134363174,
  0.0037561592180281878,
  -0.047139592468738556,
  -0.018269620835781097,
  -0.01704198122024536,
  -0.0066906544379889965,
  0.009610410779714584,
  0.018008427694439888,
  -0.029211603105068207,
  -0.09012635052204132,
  0.04693446308374405,
  0.1192922294139862,
  -0.010401724837720394,
  -0.02767297811806202,
  -0.026894785463809967,
  0.0003243408282287419,
  0.0372999832034111,
  0.10321266204118729,
  0.06125738471746445,
  -0.030062777921557426,
  -0.024563796818256378,
  -0.04380808770656586,
  -0.017787475138902664,
  0.06220285966992378,
  -0.06743179261684418,
  -0.021958552300930023,
  -0.08504771441221237,
  0.02000092715024948,
  -0.07109654694795609,
  -0.07193907350301743,
  0.007110072765499353,
  0.022553864866495132,
  0.07761543989181519,
  -0.0371822714805603,
  3.57144056859803e-33,
  -0.12020888924598694,
  0.013511578552424908,
  -0.0289490707218647,
  0.11010584235191345,
  0.01200167741626501,
  0.028086191043257713,
  0.011599362827837467,
  0.07943497598171234,
  -0.0704106017947197,
  0.0671350285410881,
  0.0107227498665452,
  0.018502017483115196,
  5.1427494327072054e-05,
  0.008013452403247356,
  -0.07282835990190506,
  0.023772109299898148,
  0.037625912576913834,
  -0.04462224245071411,
  -0.01509601715952158,
  -0.042705561965703964,
  -0.07307127118110657,
  0.040167830884456635,
  0.030199574306607246,
  0.06414608657360077,
  -0.040885623544454575,
  0.03525718301534653,
  -0.0314037948846817,
  0.058473147451877594,
  -0.016143586486577988,
  0.06214723363518715,
  0.0829816684126854,
  -0.05530810356140137,
  -0.06572870165109634,
  -0.010672389529645443,
  -0.013648229651153088,
  0.09427978098392487,
  0.02804470807313919,
  0.05287085473537445,
  -0.03369517996907234,
  -0.03602980077266693,
  0.06818007677793503,
  0.034106336534023285,
  0.019399693235754967,
  0.13262902200222015,
  0.008388478308916092,
  -0.012109436094760895,
  -0.039171162992715836,
  0.04033154994249344,
  0.07947935163974762,
  -0.041443053632974625,
  -0.08641794323921204,
  -0.030400192365050316,
  -0.1173543781042099,
  0.01031400915235281,
  -0.0023436383344233036,
  0.01253805123269558,
  -0.011449051089584827,
  0.014291658997535706,
  -0.06617258489131927,
  -0.062245313078165054,
  0.016467729583382607,
  -0.021559713408350945,
  -0.12505009770393372,
  0.026197155937552452,
  0.03813409060239792,
  0.02372247911989689,
  -0.05612555146217346,
  -0.06524056941270828,
  0.06582044064998627,
  -0.03490298241376877,
  0.1096431165933609,
  -0.03801364451646805,
  -0.10172274708747864,
  0.02089136838912964,
  -0.030176719650626183,
  -0.042703595012426376,
  -0.09114976972341537,
  0.04517712444067001,
  0.023939063772559166,
  -0.09658173471689224,
  -0.04929523169994354,
  -0.03724968805909157,
  0.008202498778700829,
  -0.022094616666436195,
  -0.018428556621074677,
  -0.005160237662494183,
  0.048229608684778214,
  0.027110382914543152,
  0.007152666803449392,
  0.005330891814082861,
  -0.0068723480217158794,
  0.0018026132602244616,
  0.08163446187973022,
  -0.024795232340693474,
  0.010881287977099419,
  -1.4566762018830559e-08,
  -0.004322580993175507,
  0.04305461049079895,
  -0.010600777342915535,
  0.0520879402756691,
  0.01802789233624935,
  0.06296617537736893,
  -0.08677810430526733,
  0.05512265861034393,
  0.08509743213653564,
  -0.020693860948085785,
  0.025800291448831558,
  0.019232159480452538,
  0.03931315243244171,
  0.003466429654508829,
  0.09492921084165573,
  -0.11571865528821945,
  -0.027029260993003845,
  0.10171782970428467,
  -0.03151828050613403,
  -0.020022252574563026,
  0.047960057854652405,
  0.025010110810399055,
  -0.015095007605850697,
  -0.03136930614709854,
  -0.003722142893821001,
  0.023892076686024666,
  -0.07897274196147919,
  0.04714563861489296,
  0.059783853590488434,
  0.029727943241596222,
  0.030625857412815094,
  -0.03413188084959984,
  -0.044605743139982224,
  0.024206150323152542,
  -0.0047183409333229065,
  -0.09526648372411728,
  -0.0770496353507042,
  -0.023633528500795364,
  0.09743858128786087,
  0.023828059434890747,
  -0.06587085127830505,
  -0.01218477264046669,
  0.03613143786787987,
  0.025722352787852287,
  -0.0845530703663826,
  0.004904137924313545,
  0.02101745456457138,
  0.0778331533074379,
  0.008732018992304802,
  -0.02525472640991211,
  -0.019046053290367126,
  -0.062338367104530334,
  0.011163970455527306,
  0.051886264234781265,
  0.14340852200984955,
  -0.031872380524873734,
  0.08313193172216415,
  0.008561764843761921,
  -0.0066390009596943855,
  0.05894242599606514,
  0.17481203377246857,
  0.024079544469714165,
  0.06344451010227203,
  0.02097688615322113],
 [-0.04983491450548172,
  0.047410059720277786,
  0.02075684443116188,
  0.0036884364672005177,
  0.029070785269141197,
  -0.06910350918769836,
  0.08781661838293076,
  0.033720798790454865,
  -0.016201989725232124,
  -0.04258463904261589,
  -0.05077064782381058,
  -0.053096938878297806,
  0.010030844248831272,
  0.012911750003695488,
  -0.012379195541143417,
  0.019358906894922256,
  -0.043964337557554245,
  0.0069747064262628555,
  -0.12316861003637314,
  -0.03856316953897476,
  -0.059056028723716736,
  0.06396914273500443,
  -0.020070277154445648,
  0.006908354815095663,
  -0.006557208485901356,
  -0.0001876982132671401,
  0.02345268242061138,
  0.05240260809659958,
  0.0265529602766037,
  -0.07057984918355942,
  0.018865060061216354,
  0.020978499203920364,
  0.041112422943115234,
  -0.028897671028971672,
  0.017154252156615257,
  -0.07860083878040314,
  -0.002234338317066431,
  -0.09510375559329987,
  0.03294316679239273,
  -0.009585811756551266,
  0.0640038251876831,
  -0.054985951632261276,
  0.06381730735301971,
  0.08698870241641998,
  0.10791453719139099,
  -0.018108127638697624,
  -0.00902014970779419,
  -0.03244858980178833,
  -0.02320343442261219,
  0.005078401416540146,
  0.04470254108309746,
  0.03359563276171684,
  0.04604236036539078,
  -0.054577603936195374,
  0.04181097820401192,
  0.04240523278713226,
  -0.04973261058330536,
  0.05762714892625809,
  0.03101509064435959,
  -0.055506374686956406,
  -0.024889405816793442,
  -0.009903420694172382,
  -0.10245583951473236,
  0.01849268190562725,
  0.09669843316078186,
  0.07571932673454285,
  -0.011814001947641373,
  0.008919758722186089,
  0.003123517381027341,
  -0.024138275533914566,
  0.015244080685079098,
  -0.024572260677814484,
  -0.07963927090167999,
  -0.04529915004968643,
  0.013277383521199226,
  0.0034561562351882458,
  0.06617144495248795,
  -0.03489890694618225,
  0.054232001304626465,
  0.049301907420158386,
  0.032285790890455246,
  -0.023837726563215256,
  -0.03968697786331177,
  -0.010161404497921467,
  -0.03578844293951988,
  -0.01881159096956253,
  0.022683821618556976,
  0.0351443849503994,
  -0.0010485335951671004,
  0.043829578906297684,
  0.0006098029552958906,
  -0.0550968274474144,
  0.034580301493406296,
  -0.020073121413588524,
  -0.08755818754434586,
  -0.03540779650211334,
  0.011154117062687874,
  -0.0520784854888916,
  -0.15004262328147888,
  0.2681502103805542,
  0.030406050384044647,
  0.026617038995027542,
  0.05415184050798416,
  0.018776625394821167,
  0.042038992047309875,
  0.01726127415895462,
  -0.03079761378467083,
  -0.002363220788538456,
  -0.012735975906252861,
  -0.024430427700281143,
  -0.024994466453790665,
  -0.012831549160182476,
  -0.10614868998527527,
  -0.0018657597247511148,
  -0.014149500988423824,
  0.03079080954194069,
  0.07474779337644577,
  -0.018895870074629784,
  0.029106391593813896,
  -0.08749617636203766,
  -0.05088314041495323,
  0.025541841983795166,
  -0.05021941289305687,
  0.0480412095785141,
  0.01865716092288494,
  -0.09822224825620651,
  0.05018414929509163,
  -1.4838867631284532e-33,
  0.03884870931506157,
  -0.025667142122983932,
  0.02762446179986,
  -0.04209671914577484,
  0.04037243872880936,
  0.06572036445140839,
  0.007036568131297827,
  -0.05030665919184685,
  -0.06949353963136673,
  -0.001430327189154923,
  0.0025782908778637648,
  0.01627175323665142,
  -0.019736241549253464,
  0.13940340280532837,
  0.11830995231866837,
  0.03684194013476372,
  0.09667646884918213,
  0.035070668905973434,
  0.0030133521649986506,
  -0.02321743220090866,
  0.019989095628261566,
  0.04470452293753624,
  0.0468166321516037,
  -0.023899244144558907,
  -0.021024813875555992,
  -0.02398647367954254,
  -0.026457354426383972,
  -0.05276739224791527,
  0.00587608153000474,
  0.03353196382522583,
  -0.007357672322541475,
  0.07106026262044907,
  -0.050913695245981216,
  -0.014338360168039799,
  -0.020886778831481934,
  -0.05181949585676193,
  0.031943611800670624,
  -0.04700925573706627,
  -0.02591674216091633,
  0.03265475481748581,
  -0.0022596963681280613,
  0.0024534505791962147,
  -0.06230804696679115,
  0.014108811505138874,
  0.044037144631147385,
  0.07213321328163147,
  0.06292419135570526,
  0.054413922131061554,
  -0.03602677211165428,
  -0.012107857502996922,
  0.0008751358254812658,
  0.01607143133878708,
  -0.10015927255153656,
  -0.01413557305932045,
  -0.05868290737271309,
  -0.02065744437277317,
  0.003992758225649595,
  -0.027841778472065926,
  0.029690319672226906,
  -0.014045015908777714,
  0.012597735971212387,
  0.08387438952922821,
  0.025408174842596054,
  -0.02001335471868515,
  -0.1182464063167572,
  -0.07764327526092529,
  0.023960299789905548,
  -0.015867924317717552,
  0.05507713183760643,
  -0.02569189853966236,
  -0.007574737071990967,
  0.026194175705313683,
  0.08373300731182098,
  0.005349453072994947,
  0.0318538062274456,
  -0.03233488276600838,
  0.017826825380325317,
  0.04583629220724106,
  -0.005807076580822468,
  -0.0661909282207489,
  0.00222235219553113,
  -0.014013771899044514,
  -0.027658652514219284,
  0.013542433269321918,
  0.04124703258275986,
  -0.0021795800421386957,
  -0.022596431896090508,
  -0.04924686625599861,
  -0.020406177267432213,
  -0.014784698374569416,
  -0.027839312329888344,
  0.035210106521844864,
  0.04620129242539406,
  0.03757832199335098,
  0.060697849839925766,
  3.0536386131386742e-34,
  0.08456361293792725,
  0.08147523552179337,
  -0.03336191549897194,
  0.05588332191109657,
  -0.02144193835556507,
  0.031138231977820396,
  0.02581152506172657,
  0.036460887640714645,
  0.016490254551172256,
  0.039796460419893265,
  0.021281400695443153,
  -0.09978808462619781,
  0.004475805442780256,
  -0.035769592970609665,
  0.04402599483728409,
  0.05466220900416374,
  0.10019738972187042,
  0.06424931436777115,
  -0.0407014936208725,
  0.03219299763441086,
  -0.0424066036939621,
  -0.017641497775912285,
  -0.04640892148017883,
  -0.06045156344771385,
  0.020258430391550064,
  0.033182986080646515,
  0.07075486332178116,
  0.040032193064689636,
  0.009616355411708355,
  0.008757013827562332,
  0.10673677921295166,
  -0.008585454896092415,
  -0.15125617384910583,
  0.004044604022055864,
  0.05798352137207985,
  0.09982240200042725,
  -0.054999690502882004,
  7.34408968128264e-05,
  0.10417070239782333,
  -0.08970246464014053,
  -0.0010847192024812102,
  0.0041154432110488415,
  0.03306804969906807,
  0.06667356193065643,
  0.001998799853026867,
  -0.07468786090612411,
  0.001044120523147285,
  -0.04047010466456413,
  -0.11857438087463379,
  0.03889648988842964,
  -0.06465069204568863,
  -0.04404180869460106,
  0.004789887927472591,
  -0.009365632198750973,
  -0.05295458436012268,
  0.04391732066869736,
  0.003941838163882494,
  0.010463234037160873,
  0.07796397805213928,
  0.0043679894879460335,
  -0.012168857268989086,
  0.0563892163336277,
  -0.032958246767520905,
  0.03640003502368927,
  -0.09901245683431625,
  0.013477855361998081,
  0.032833945006132126,
  0.008632335811853409,
  -0.015237522311508656,
  -0.045996278524398804,
  0.04744485393166542,
  -0.07848397642374039,
  -0.16673746705055237,
  -0.0009817220270633698,
  0.018159205093979836,
  0.0026159381959587336,
  -0.007587607018649578,
  0.001863642712123692,
  -0.0036697215400636196,
  -0.015728477388620377,
  -0.026224736124277115,
  -0.016035711392760277,
  0.03500324487686157,
  0.031706396490335464,
  -0.04410845413804054,
  -0.014305949211120605,
  0.06842508912086487,
  0.038970187306404114,
  -0.02548116073012352,
  -0.0811067596077919,
  -0.03804240748286247,
  0.0904158502817154,
  0.08024118095636368,
  -0.051469288766384125,
  0.006724147591739893,
  -1.4127249592377211e-08,
  -0.020074211061000824,
  -0.011974949389696121,
  0.02793658711016178,
  0.01786523126065731,
  0.03110302984714508,
  0.06413517892360687,
  -0.023988382890820503,
  -0.02752196229994297,
  -0.0033636605367064476,
  0.018158163875341415,
  0.12096750736236572,
  -0.008486862294375896,
  0.003321684431284666,
  -0.05455714836716652,
  0.044992756098508835,
  -0.0405462272465229,
  -0.03711879998445511,
  0.010892139747738838,
  0.010922703891992569,
  -0.10120225697755814,
  0.015770189464092255,
  0.049801792949438095,
  -0.09360873699188232,
  -0.08038635551929474,
  -0.043886736035346985,
  0.028670772910118103,
  0.007357894442975521,
  0.06992929428815842,
  0.03247477114200592,
  0.023066222667694092,
  -0.003743191948160529,
  0.03887111693620682,
  -0.013057591393589973,
  -0.023052601143717766,
  0.0647343099117279,
  -0.02109169401228428,
  -0.045990969985723495,
  -0.0717756599187851,
  0.016904039308428764,
  0.07475024461746216,
  -0.03764820471405983,
  0.007682626601308584,
  -0.041594963520765305,
  0.03814854100346565,
  -0.0941794365644455,
  0.011091839522123337,
  -0.05915017053484917,
  -0.031279437243938446,
  -0.033687345683574677,
  -0.030321571975946426,
  -0.009191246703267097,
  -0.032031286507844925,
  0.019655127078294754,
  0.09318964183330536,
  0.07215450704097748,
  -0.027178803458809853,
  -0.02098594605922699,
  -0.0187591090798378,
  0.02367139235138893,
  -0.021888094022870064,
  0.19160978496074677,
  0.0034248465672135353,
  -0.016104642301797867,
  -0.0016335448017343879],
 [-0.047706857323646545,
  0.029799047857522964,
  -0.029307443648576736,
  -0.028761692345142365,
  -0.049182552844285965,
  -0.04869556427001953,
  0.11003480106592178,
  0.029769031330943108,
  -0.006188513245433569,
  0.05534925311803818,
  0.0204521082341671,
  -0.05075625330209732,
  0.017509188503026962,
  0.008488249965012074,
  -0.04395948350429535,
  0.043411411345005035,
  -0.02037900686264038,
  -0.029790835455060005,
  0.044171810150146484,
  0.04676878824830055,
  -0.06464889645576477,
  0.07507970184087753,
  -0.011289148591458797,
  -0.004592073615640402,
  -0.015927044674754143,
  -0.003337560687214136,
  0.011098247952759266,
  0.10217370092868805,
  0.003518056822940707,
  -0.00919096078723669,
  0.017634805291891098,
  0.13972388207912445,
  0.05070934444665909,
  -0.02783096209168434,
  -0.0035908205900341272,
  -0.017583072185516357,
  -0.01819441467523575,
  -0.0054838648065924644,
  -0.022460605949163437,
  -0.04451676085591316,
  0.015791790559887886,
  -0.052957527339458466,
  0.005793462041765451,
  0.008374476805329323,
  0.03262092545628548,
  0.018899861723184586,
  -0.046665385365486145,
  -0.035868432372808456,
  -0.09819971024990082,
  -0.07561742514371872,
  -0.05793742090463638,
  0.055713143199682236,
  -0.00451300572603941,
  -0.05914030969142914,
  -0.04867144674062729,
  -0.0016276733949780464,
  -0.05643262341618538,
  -0.01853669248521328,
  -0.015230373479425907,
  -0.046567272394895554,
  -0.05330246686935425,
  0.011304951272904873,
  -0.11495313793420792,
  0.10305533558130264,
  0.05283502861857414,
  0.035230714827775955,
  0.016496378928422928,
  0.06500715762376785,
  0.005075459368526936,
  0.05328008159995079,
  -0.09429473429918289,
  0.009930397383868694,
  -0.06478379666805267,
  -0.04124986752867699,
  -0.05471572279930115,
  -0.0025090426206588745,
  0.03856153413653374,
  -0.02158009260892868,
  0.01686421036720276,
  0.030112208798527718,
  0.04350303113460541,
  0.0060177212581038475,
  -0.08983737975358963,
  0.023844074457883835,
  -0.0712917149066925,
  0.040687259286642075,
  0.02212377078831196,
  -0.03225473314523697,
  -0.09825507551431656,
  -0.012814310379326344,
  -0.05137163773179054,
  -0.0508715882897377,
  0.0356665775179863,
  0.06474190205335617,
  0.009078755974769592,
  -0.004626876208931208,
  -0.07715008407831192,
  -0.026909487321972847,
  -0.0634487047791481,
  0.24540770053863525,
  0.012282876297831535,
  -0.01706986129283905,
  -0.0012511075474321842,
  0.09647370129823685,
  -0.015949472784996033,
  0.007039134856313467,
  -0.014715258032083511,
  0.07577571272850037,
  0.03402278572320938,
  0.016772856935858727,
  0.0407135896384716,
  -0.008325525559484959,
  0.0016099949134513736,
  -0.012871264480054379,
  0.006253060884773731,
  -0.006250512786209583,
  -0.06602701544761658,
  0.013166422955691814,
  0.056004662066698074,
  -0.005936720408499241,
  0.02952989563345909,
  0.04650561138987541,
  0.05884496122598648,
  0.013950488530099392,
  -0.06323590874671936,
  -0.10772714763879776,
  0.09244363754987717,
  -3.246199648824735e-33,
  0.0029519363306462765,
  0.006624347530305386,
  -0.008346017450094223,
  0.009051835164427757,
  0.011032729409635067,
  0.07775413244962692,
  -0.030210910364985466,
  -0.011178763583302498,
  -0.046471260488033295,
  -0.015059034340083599,
  0.019916005432605743,
  -0.031136564910411835,
  -0.029937807470560074,
  0.026371324434876442,
  0.07905584573745728,
  -0.013263785280287266,
  0.05271025374531746,
  0.011820263229310513,
  0.023462682962417603,
  -0.041535381227731705,
  0.047901179641485214,
  0.011175201274454594,
  0.03211263194680214,
  0.04854049161076546,
  -0.05309046432375908,
  0.019062289968132973,
  -0.07798046618700027,
  -0.051897455006837845,
  -0.012413928285241127,
  0.03742313012480736,
  0.03230714052915573,
  0.026786386966705322,
  -0.027452530339360237,
  0.03520464897155762,
  -0.027697881683707237,
  -0.10518944263458252,
  0.04265424981713295,
  -0.10761565715074539,
  -0.050626687705516815,
  -0.017929106950759888,
  -0.022524379193782806,
  -0.039096981287002563,
  0.005315706599503756,
  0.05732399597764015,
  -0.04626333341002464,
  0.1416749656200409,
  -0.003580145537853241,
  0.037116218358278275,
  -0.006159882992506027,
  0.0014393212040886283,
  -0.05447343736886978,
  0.04099242761731148,
  -0.06244586408138275,
  0.05919301509857178,
  -0.030249932780861855,
  -0.033237360417842865,
  0.0049431296065449715,
  -0.07026117295026779,
  0.014024087227880955,
  0.051771726459264755,
  0.10352329909801483,
  0.024088077247142792,
  -0.03357868269085884,
  -0.004287239629775286,
  -0.01730150356888771,
  -0.07488695532083511,
  0.0003908060898538679,
  0.027570074424147606,
  -0.006252780091017485,
  -0.011089310981333256,
  0.0015536113642156124,
  -0.01308933924883604,
  0.1115591824054718,
  -0.05212273821234703,
  -0.0008197210845537484,
  0.025414563715457916,
  -0.0542709156870842,
  0.06618258357048035,
  0.03905229642987251,
  -0.004908710718154907,
  -0.013656924478709698,
  -0.003472711890935898,
  -0.06016167253255844,
  0.09176601469516754,
  0.04260535165667534,
  0.014385431073606014,
  0.027647485956549644,
  -0.07417813688516617,
  0.02283564582467079,
  -0.01586580090224743,
  -0.057338546961545944,
  0.010580653324723244,
  -0.005484357010573149,
  -0.026165256276726723,
  -0.008293806575238705,
  2.464531537700423e-33,
  0.03300580382347107,
  -0.01715261861681938,
  -0.03981883451342583,
  0.12353211641311646,
  -0.018451036885380745,
  0.014379706233739853,
  0.007427100092172623,
  0.0691729485988617,
  0.004493155516684055,
  0.10061202198266983,
  -0.05466959998011589,
  -0.10337553918361664,
  0.015087230131030083,
  -0.02494097501039505,
  -0.011892091482877731,
  0.03944435715675354,
  0.0327325202524662,
  0.010209660977125168,
  -0.09678077697753906,
  0.05819498747587204,
  -0.021728919818997383,
  -0.0386483408510685,
  0.000588937196880579,
  0.03783798962831497,
  -0.006611840333789587,
  0.06505469977855682,
  0.007079144939780235,
  0.06694035977125168,
  0.02415173314511776,
  0.04724515601992607,
  -0.006329400464892387,
  0.009057571180164814,
  -0.17014440894126892,
  -0.09140679240226746,
  0.017401646822690964,
  0.014095580205321312,
  -0.0787372812628746,
  0.0340920127928257,
  0.00824121292680502,
  0.04303678125143051,
  0.028128890320658684,
  -0.013432754203677177,
  0.037219978868961334,
  0.08892519026994705,
  0.012009781785309315,
  -0.06090620532631874,
  0.04102039709687233,
  0.04714181274175644,
  0.04708763211965561,
  -0.007145935203880072,
  -0.11487235873937607,
  -0.0040723965503275394,
  -0.07931794226169586,
  -0.030520547181367874,
  -0.09297792613506317,
  0.09480515867471695,
  0.020443223416805267,
  0.028473814949393272,
  0.00041346283978782594,
  -0.02046920917928219,
  -0.029133779928088188,
  0.013769570738077164,
  -0.021100269630551338,
  0.0700802206993103,
  -0.05099467560648918,
  -0.029298126697540283,
  -0.03564852848649025,
  0.009335000067949295,
  0.03160358965396881,
  -0.025795651599764824,
  0.07977144420146942,
  0.07508014142513275,
  -0.1043272390961647,
  0.0448288656771183,
  -0.050185561180114746,
  -0.0022289904300123453,
  -0.0046245078556239605,
  0.07300306856632233,
  0.07366469502449036,
  -0.016212882474064827,
  -0.033664144575595856,
  -0.07147421687841415,
  -0.02958005666732788,
  -0.0550491102039814,
  -0.010064290836453438,
  -0.005727516021579504,
  0.026934267953038216,
  -0.03192150965332985,
  0.019922709092497826,
  -0.016294335946440697,
  -0.019558662548661232,
  0.05691475421190262,
  0.11258960515260696,
  -0.02651376836001873,
  0.03533240407705307,
  -1.4853220875465922e-08,
  0.03286905214190483,
  0.013584330677986145,
  0.027436375617980957,
  -0.020878814160823822,
  0.10895758867263794,
  -0.030983706936240196,
  0.01623149774968624,
  0.016538944095373154,
  -0.04223388433456421,
  -0.019880937412381172,
  0.03786994889378548,
  -0.012722354382276535,
  0.051184702664613724,
  0.06075378507375717,
  0.027147572487592697,
  -0.008108423091471195,
  -0.013375341892242432,
  0.06135622411966324,
  -0.008997654542326927,
  -0.0575055293738842,
  -0.012919194996356964,
  0.046400099992752075,
  -0.02051331289112568,
  0.09030464291572571,
  -0.007730551529675722,
  0.069735087454319,
  -0.01826024241745472,
  0.0924258679151535,
  -0.00493173161521554,
  -0.04797661304473877,
  0.0553850494325161,
  -0.023436525836586952,
  -0.0447758287191391,
  -0.014637939631938934,
  0.00925927609205246,
  0.040850620716810226,
  -0.009064082987606525,
  -0.006945107597857714,
  -0.029200484976172447,
  0.14852873980998993,
  -0.04326893389225006,
  -0.1545904129743576,
  0.02772088348865509,
  0.0037093476857990026,
  -0.0880642905831337,
  0.023423565551638603,
  -0.05173948407173157,
  -0.01798063889145851,
  -0.0048668175004422665,
  -0.02943151257932186,
  -0.006786121055483818,
  -0.0043993447907269,
  0.0326085165143013,
  0.04477005451917648,
  0.07737607508897781,
  0.035019759088754654,
  0.03378671780228615,
  0.019712766632437706,
  -0.03159867227077484,
  0.005404326599091291,
  0.17780664563179016,
  -0.037863682955503464,
  -0.06350429356098175,
  0.014291122555732727]]
len(ef('sup')), len(ef(['sup']))
(3, 1)
from chromadb.utils.distance_functions import cosine
from chromadb.utils.distance_functions import cosine

p0_list = []
p19_list = []
for v in graph_history.history.values():
    if 'nodes' in v:
        if (v['nodes']['paragraph_idx'] == 0):
            p0_list.append(v['nodes'])
        if v['nodes']['paragraph_idx'] == 19:
            p19_list.append(v['nodes'])

print('paragraph 0 - paragraph 0 comparisons: ', cosine(ef([str(p0_list[0])])[0], ef([str(p0_list[1])])[0]), cosine(ef([str(p0_list[0])])[0], ef([str(p0_list[2])])[0]),
      '\nparagraph 1 - paragraph 19 comparisons: ', cosine(ef([str(p0_list[0])])[0], ef([str(p19_list[0])])[0]), cosine(ef([str(p0_list[0])])[0], ef([str(p19_list[1])])[0]))
paragraph 0 - paragraph 0 comparisons:  0.22135839656360656 0.14691759339122346 
paragraph 1 - paragraph 19 comparisons:  0.3139882121419234 0.2947411460832846
chroma_client = chromadb.Client()

collection = chroma_client.create_collection(
    name='musique_benchmark',
    embedding_function=ef,
    metadata={"hsnw:space": "cosine"}
    )
chroma_client = chromadb.Client()


chroma_client.delete_collection('musique_benchmark')
2024-05-14 21:57:23,828 - INFO - chromadb.telemetry.product.posthog - posthog - __init__ - 20 - Anonymized telemetry enabled. See                     https://docs.trychroma.com/telemetry for more information.
2024-05-14 21:57:23,893 - DEBUG - chromadb.config - config - start - 297 - Starting component System
2024-05-14 21:57:23,894 - DEBUG - chromadb.config - config - start - 297 - Starting component Posthog
2024-05-14 21:57:23,894 - DEBUG - chromadb.config - config - start - 297 - Starting component OpenTelemetryClient
2024-05-14 21:57:23,894 - DEBUG - chromadb.config - config - start - 297 - Starting component SimpleAssignmentPolicy
2024-05-14 21:57:23,895 - DEBUG - chromadb.config - config - start - 297 - Starting component SqliteDB
2024-05-14 21:57:23,897 - DEBUG - chromadb.config - config - start - 297 - Starting component QuotaEnforcer
2024-05-14 21:57:23,897 - DEBUG - chromadb.config - config - start - 297 - Starting component LocalSegmentManager
2024-05-14 21:57:23,898 - DEBUG - chromadb.config - config - start - 297 - Starting component SegmentAPI
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[13], line 4
      1 chroma_client = chromadb.Client()
----> 4 chroma_client.delete_collection('musique_benchmark')

File ~/miniconda3/envs/nlp/lib/python3.12/site-packages/chromadb/api/client.py:264, in Client.delete_collection(self, name)
    259 @override
    260 def delete_collection(
    261     self,
    262     name: str,
    263 ) -> None:
--> 264     return self._server.delete_collection(
    265         name=name,
    266         tenant=self.tenant,
    267         database=self.database,
    268     )

File ~/miniconda3/envs/nlp/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/__init__.py:127, in trace_method.<locals>.decorator.<locals>.wrapper(*args, **kwargs)
    125 global tracer, granularity
    126 if trace_granularity < granularity:
--> 127     return f(*args, **kwargs)
    128 if not tracer:
    129     return f(*args, **kwargs)

File ~/miniconda3/envs/nlp/lib/python3.12/site-packages/chromadb/api/segment.py:347, in SegmentAPI.delete_collection(self, name, tenant, database)
    345         del self._collection_cache[existing[0]["id"]]
    346 else:
--> 347     raise ValueError(f"Collection {name} does not exist.")

ValueError: Collection musique_benchmark does not exist.
graph_history.history
OrderedDict([(UUID('bdbf44f6-c5ab-4e93-95f9-913c4472c483'),
              {'nodes': {'semantic_id': 'world-war-2',
                'category': 'historical-event',
                'attributes': {'name': 'Second World War',
                 'duration': '1942 - 1945',
                 'impact': 'Japan occupied the Philippines during this period'},
                'paragraph_idx': 0}}),
             (UUID('26dc571e-2d3f-405e-be4c-11be4dbb4e21'),
              {'edges': {'from_node': UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'),
                'to_node': UUID('bdbf44f6-c5ab-4e93-95f9-913c4472c483'),
                'category': 'affected_by'}}),
             (UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'),
              {'nodes': {'semantic_id': 'philippines-commonwealth',
                'category': 'government',
                'attributes': {'name': 'Commonwealth of the Philippines',
                 'duration': '1935 - 1946',
                 'status': 'replaced the Insular Government',
                 'description': 'The administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country.',
                 'established_by': 'Tydings–McDuffie Act'},
                'paragraph_idx': 0}}),
             (UUID('45454413-bccb-4305-b606-2fa6386a64b6'),
              {'nodes': {'semantic_id': 'insular-government',
                'category': 'government',
                'attributes': {'name': 'Insular Government',
                 'type': 'United States territorial government',
                 'replaced_by': 'philippines-commonwealth'},
                'paragraph_idx': 0}}),
             (UUID('fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e'),
              {'nodes': {'semantic_id': 'transition-to-independence',
                'category': 'process',
                'attributes': {'name': 'Transitional administration',
                 'purpose': "in preparation for the country's full achievement of independence"},
                'paragraph_idx': 0}}),
             (UUID('d456f405-4f08-48a4-8ede-5e3c39bda952'),
              {'edges': {'from_node': UUID('45454413-bccb-4305-b606-2fa6386a64b6'),
                'to_node': UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'),
                'category': 'replaced'}}),
             (UUID('4c6e9ebc-b61f-4514-93dd-628f4b3efc63'),
              {'edges': {'from_node': UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'),
                'to_node': UUID('fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e'),
                'category': 'part_of'}}),
             (UUID('b88ccc2e-89f4-4799-bf64-38ca5d0badf8'),
              {'nodes': {'semantic_id': 'lake-oesa',
                'category': 'location',
                'attributes': {'name': 'Lake Oesa',
                 'elevation': 2267,
                 'unit': 'm',
                 'elevation_ft': 7438,
                 'location': {'park': 'Yoho National Park',
                  'city': 'Field',
                  'province': 'British Columbia',
                  'country': 'Canada'}},
                'paragraph_idx': 1}}),
             (UUID('fa964c2f-3cf7-4b61-99f4-6029ace56ccb'),
              {'nodes': {'semantic_id': 'arafura-swamp',
                'category': 'location',
                'attributes': {'name': 'Arafura Swamp',
                 'type': 'largest wooded swamp in the Northern Territory and possibly in Australia',
                 'location': {'region': 'Arnhem Land',
                  'territory': 'Northern Territory',
                  'country': 'Australia'},
                 'size': {'area': {'max': 5850, 'unit': 'km^2'},
                  'expansion': 'may expand by the end of the wet season'},
                 'status': 'near pristine floodplain',
                 'cultural_significance': 'great cultural significance to the Yolngu people, in particular the Ramingining community',
                 'filming_location': 'Ten Canoes'},
                'paragraph_idx': 2}}),
             (UUID('4c1c52c9-a5a5-4bc8-999d-cf7539d57322'),
              {'nodes': {'semantic_id': 'wapizagonke-lake',
                'category': 'location',
                'attributes': {'name': 'Wapizagonke Lake',
                 'location': {'sector': 'Lac-Wapizagonke',
                  'city': 'Shawinigan',
                  'park': 'La Mauricie National Park',
                  'region': 'Mauricie',
                  'province': 'Quebec',
                  'country': 'Canada'}},
                'paragraph_idx': 3}}),
             (UUID('dc5e696f-cdb0-4ae7-bf44-cc4eef5af46d'),
              {'nodes': {'semantic_id': 'khabarovsky-district',
                'category': 'location',
                'attributes': {'name': 'Khabarovsky District',
                 'type': 'administrative and municipal district',
                 'region': 'Khabarovsk Krai',
                 'country': 'Russia',
                 'area': {'value': 45140, 'unit': 'km^2'},
                 'segments': {'description': 'two unconnected segments separated by the territory of Amursky District',
                  'location': 'southwest of the krai'},
                 'administrative_center': {'name': 'Khabarovsk'}},
                'paragraph_idx': 4}}),
             (UUID('38724952-3d65-44b0-b5f8-03d13f501b6e'),
              {'nodes': {'semantic_id': 'silver-lake',
                'category': 'location',
                'attributes': {'name': 'Silver Lake',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'region': 'southwestern',
                  'country': 'United States'},
                 'towns': ['Harrisville', 'Nelson'],
                 'water_flow': {'from': 'Silver Lake',
                  'via': ['Minnewawa Brook', 'The Branch'],
                  'to': 'Ashuelot River'}},
                'paragraph_idx': 5}}),
             (UUID('85f00f66-e471-4e29-90f1-a11634734dc9'),
              {'nodes': {'semantic_id': 'ashuelot-river',
                'category': 'location',
                'attributes': {'name': 'Ashuelot River',
                 'type': 'tributary',
                 'of': 'Connecticut River'},
                'paragraph_idx': 5}}),
             (UUID('7c057b91-d6fb-4058-af7e-6d3104e1eed1'),
              {'nodes': {'semantic_id': 'hmda',
                'category': 'organization',
                'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA)',
                 'type': 'apolitical urban planning agency'},
                'paragraph_idx': 6}}),
             (UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'),
              {'nodes': {'semantic_id': 'hmda-area',
                'category': 'location',
                'attributes': {'name': 'area under the Hyderabad Metropolitan Development Authority (HMDA)',
                 'size': 'largest',
                 'description': 'covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city'},
                'paragraph_idx': 6}}),
             (UUID('50db0180-d74c-4009-8812-aad530beef99'),
              {'nodes': {'semantic_id': 'ghmc-area',
                'category': 'location',
                'attributes': {'name': 'GHMC area',
                 'alias': 'Hyderabad city',
                 'size': 'larger than Hyderabad district'},
                'paragraph_idx': 6}}),
             (UUID('c01036cf-69f0-4589-a53f-c967eb829736'),
              {'nodes': {'semantic_id': 'hyderabad-district',
                'category': 'location',
                'attributes': {'name': 'Hyderabad district',
                 'size': 'larger than Hyderabad Police area'},
                'paragraph_idx': 6}}),
             (UUID('b325368a-939a-4b13-bc90-bb48ffa68859'),
              {'nodes': {'semantic_id': 'hyderabad-police-area',
                'category': 'location',
                'attributes': {'name': 'Hyderabad Police area',
                 'size': 'smallest'},
                'paragraph_idx': 6}}),
             (UUID('85d71a58-5af2-438e-9f73-72c8363a57f8'),
              {'nodes': {'semantic_id': 'hmwssb',
                'category': 'organization',
                'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board',
                 'description': 'bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB) that HMDA manages the administration of'},
                'paragraph_idx': 6}}),
             (UUID('e11ba81b-0525-4e60-b433-2f0f4438784a'),
              {'edges': {'from_node': UUID('7c057b91-d6fb-4058-af7e-6d3104e1eed1'),
                'to_node': UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'),
                'category': 'manages'}}),
             (UUID('0dd83ca3-69c1-473a-ba60-6afc5fcf0acf'),
              {'edges': {'from_node': UUID('50db0180-d74c-4009-8812-aad530beef99'),
                'to_node': UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'),
                'category': 'part_of'}}),
             (UUID('9ff064a2-672f-4964-81c3-70316ecae3ec'),
              {'edges': {'from_node': UUID('c01036cf-69f0-4589-a53f-c967eb829736'),
                'to_node': UUID('50db0180-d74c-4009-8812-aad530beef99'),
                'category': 'part_of'}}),
             (UUID('bbd34f51-b77f-4d25-854c-52b0383ffc45'),
              {'edges': {'from_node': UUID('b325368a-939a-4b13-bc90-bb48ffa68859'),
                'to_node': UUID('c01036cf-69f0-4589-a53f-c967eb829736'),
                'category': 'part_of'}}),
             (UUID('e5d4bd92-ab18-4a9a-8479-6f840f818812'),
              {'edges': {'from_node': UUID('7c057b91-d6fb-4058-af7e-6d3104e1eed1'),
                'to_node': UUID('85d71a58-5af2-438e-9f73-72c8363a57f8'),
                'category': 'manages'}}),
             (UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'),
              {'nodes': {'semantic_id': 'san-juan-city',
                'category': 'location',
                'attributes': {'name': 'San Juan city',
                 'size': '76.93 square miles (199.2 km²)',
                 'water_area': '29.11 square miles (75.4 km²) (37.83%)'},
                'paragraph_idx': 7}}),
             (UUID('72913ab5-4552-42e1-8604-7e016738c169'),
              {'nodes': {'semantic_id': 'san-juan-bay',
                'category': 'location',
                'attributes': {'name': 'San Juan Bay', 'type': 'water body'},
                'paragraph_idx': 7}}),
             (UUID('278b8adb-3088-4b06-9348-5cc2c9bb3fc1'),
              {'nodes': {'semantic_id': 'condado-lagoon',
                'category': 'location',
                'attributes': {'name': 'Condado Lagoon', 'type': 'water body'},
                'paragraph_idx': 7}}),
             (UUID('9814602e-d7e0-480f-b86e-4b0670e8bdf0'),
              {'nodes': {'semantic_id': 'san-jose-lagoon',
                'category': 'location',
                'attributes': {'name': 'San José Lagoon',
                 'type': 'water body'},
                'paragraph_idx': 7}}),
             (UUID('17ecb67f-e311-489c-9df7-97d8e689ec3e'),
              {'edges': {'from_node': UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'),
                'to_node': UUID('72913ab5-4552-42e1-8604-7e016738c169'),
                'category': 'contains'}}),
             (UUID('03b81c23-907d-4f86-b12b-3fc300f8cecf'),
              {'edges': {'from_node': UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'),
                'to_node': UUID('278b8adb-3088-4b06-9348-5cc2c9bb3fc1'),
                'category': 'contains'}}),
             (UUID('832b969e-08c7-4ad2-9f21-29e78f18f246'),
              {'edges': {'from_node': UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'),
                'to_node': UUID('9814602e-d7e0-480f-b86e-4b0670e8bdf0'),
                'category': 'contains'}}),
             (UUID('0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6'),
              {'nodes': {'semantic_id': 'landkreis',
                'category': 'location',
                'attributes': {'type': 'administrative district'},
                'paragraph_idx': 8}}),
             (UUID('b23a8544-765b-4713-a2a0-01c3f38fed6a'),
              {'nodes': {'semantic_id': 'urban-hinterland',
                'category': 'location',
                'attributes': {'type': 'area surrounding a district-free city or town'},
                'paragraph_idx': 8}}),
             (UUID('a0c2f429-8515-4075-b051-af1985e1ac5c'),
              {'nodes': {'semantic_id': 'district-level',
                'category': 'location',
                'attributes': {'type': 'administrative level'},
                'paragraph_idx': 8}}),
             (UUID('5447372d-faa0-4578-a285-d28ccd556385'),
              {'nodes': {'semantic_id': 'kreisfreie-stadt',
                'category': 'location',
                'attributes': {'type': 'district-free city or town'},
                'paragraph_idx': 8}}),
             (UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'),
              {'nodes': {'semantic_id': 'local-associations',
                'category': 'organization',
                'attributes': {'type': 'amalgamation of one or more Landkreise with one or more Kreisfreie Städte',
                 'purpose': 'to implement simplification of administration at the district level'},
                'paragraph_idx': 8}}),
             (UUID('50b36c1c-0ca2-4111-a97e-258fdfb02e39'),
              {'edges': {'from_node': UUID('5447372d-faa0-4578-a285-d28ccd556385'),
                'to_node': UUID('b23a8544-765b-4713-a2a0-01c3f38fed6a'),
                'category': 'associated_with'}}),
             (UUID('ff2e2d26-2cd5-4257-abf8-c10e7df94c02'),
              {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'),
                'to_node': UUID('a0c2f429-8515-4075-b051-af1985e1ac5c'),
                'category': 'operates_at'}}),
             (UUID('cc430a8c-0f62-4bcc-ad2c-4d1f7ce5f6d5'),
              {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'),
                'to_node': UUID('5447372d-faa0-4578-a285-d28ccd556385'),
                'category': 'contains'}}),
             (UUID('6949c464-7c2f-4b0f-962b-3bce37d17ddc'),
              {'edges': {'from_node': UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'),
                'to_node': UUID('0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6'),
                'category': 'contains'}}),
             (UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'),
              {'nodes': {'semantic_id': 'norfolk-island',
                'category': 'location',
                'attributes': {'name': 'Norfolk Island',
                 'type': 'island',
                 'coordinates': {'latitude': -29.033, 'longitude': 167.95},
                 'location': 'South Pacific Ocean, east of the Australian mainland',
                 'area': 34.6,
                 'area_unit': 'square kilometres',
                 'coastline': 32,
                 'coastline_unit': 'km',
                 'highest_point': 'Mount Bates'},
                'paragraph_idx': 9}}),
             (UUID('a7bf1182-a4f6-4a73-89ce-0a00be00e2cb'),
              {'nodes': {'semantic_id': 'phillip-island',
                'category': 'location',
                'attributes': {'name': 'Phillip Island',
                 'type': 'island',
                 'location': 'territory of Norfolk Island',
                 'size': 'second largest island'},
                'paragraph_idx': 9}}),
             (UUID('19b0c9e8-39b6-4dde-b822-d032cf5e63ba'),
              {'nodes': {'semantic_id': 'mount-bates',
                'category': 'location',
                'attributes': {'name': 'Mount Bates',
                 'elevation': 319,
                 'elevation_unit': 'metres',
                 'location': 'northwest quadrant of Norfolk Island'},
                'paragraph_idx': 9}}),
             (UUID('b21b44eb-f998-495d-9eb4-df1057959cf3'),
              {'nodes': {'semantic_id': 'phillip-island-distance',
                'category': 'distance',
                'attributes': {'distance': 7,
                 'distance_unit': 'kilometres',
                 'direction': 'south',
                 'reference_location': 'main island'},
                'paragraph_idx': 9}}),
             (UUID('e698d0e2-1709-4262-97d6-196bd98cc2d3'),
              {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'),
                'to_node': UUID('19b0c9e8-39b6-4dde-b822-d032cf5e63ba'),
                'category': 'contains'}}),
             (UUID('04e22c46-04cf-4f73-a4f1-39f7fc998ec3'),
              {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'),
                'to_node': UUID('a7bf1182-a4f6-4a73-89ce-0a00be00e2cb'),
                'category': 'contains'}}),
             (UUID('cee43dbe-2d89-44ed-a1fa-0eafa878167a'),
              {'edges': {'from_node': UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'),
                'to_node': UUID('b21b44eb-f998-495d-9eb4-df1057959cf3'),
                'category': 'contains'}}),
             (UUID('5f092031-cf0d-408c-a4f1-896e7c8607be'),
              {'nodes': {'semantic_id': 'star-stadium',
                'category': 'location',
                'attributes': {'name': 'Star (Zvezda) Stadium',
                 'previous_name': 'Lenin Komsomol Stadium',
                 'location': 'Perm, Russia',
                 'type': 'multi-use stadium',
                 'usage': 'football matches',
                 'home_of': 'FC Amkar Perm',
                 'capacity': 17000,
                 'opened_on': '1969-06-05'},
                'paragraph_idx': 11}}),
             (UUID('08177c86-f5f7-4917-8a05-c1f311690aee'),
              {'nodes': {'semantic_id': 'perm',
                'category': 'location',
                'attributes': {'name': 'Perm',
                 'type': 'city',
                 'administrative_center': 'Perm Krai'},
                'paragraph_idx': 11}}),
             (UUID('08b31a77-8dc6-4490-925c-037ebf0b8d13'),
              {'nodes': {'semantic_id': 'perm-krai',
                'category': 'location',
                'attributes': {'name': 'Perm Krai',
                 'type': 'administrative region',
                 'location': 'Russia'},
                'paragraph_idx': 11}}),
             (UUID('725b2459-e361-40e7-a5c5-463c81aaed93'),
              {'edges': {'from_node': UUID('08177c86-f5f7-4917-8a05-c1f311690aee'),
                'to_node': UUID('08b31a77-8dc6-4490-925c-037ebf0b8d13'),
                'category': 'administrative_center_of'}}),
             (UUID('91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5'),
              {'nodes': {'semantic_id': 'papeete',
                'category': 'location',
                'attributes': {'name': 'Papeete',
                 'type': 'city',
                 'location': 'French Polynesia'},
                'paragraph_idx': 12}}),
             (UUID('b8ed0c63-f06f-408a-832a-93d8b0a02d8e'),
              {'nodes': {'semantic_id': 'french-polynesia',
                'category': 'location',
                'attributes': {'name': 'French Polynesia',
                 'type': 'overseas territory',
                 'location': 'South Pacific Ocean'},
                'paragraph_idx': 12}}),
             (UUID('604a99d8-6569-4fbb-a44d-c9e446100111'),
              {'nodes': {'semantic_id': 'tahiti',
                'category': 'location',
                'attributes': {'name': 'Tahiti',
                 'type': 'island',
                 'part_of': 'Society Islands'},
                'paragraph_idx': 12}}),
             (UUID('cf0355f5-9078-4d93-8434-961fee590a47'),
              {'nodes': {'semantic_id': 'windward-islands',
                'category': 'location',
                'attributes': {'name': 'Windward Islands',
                 'type': 'administrative subdivision',
                 'part_of': 'Society Islands'},
                'paragraph_idx': 12}}),
             (UUID('202c4602-aa18-4147-92a8-a3c6344a048b'),
              {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'),
                'to_node': UUID('91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5'),
                'category': 'located_in'}}),
             (UUID('4ac76cfb-455e-4987-bfe0-2f6b1416bb49'),
              {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'),
                'to_node': UUID('604a99d8-6569-4fbb-a44d-c9e446100111'),
                'category': 'located_on'}}),
             (UUID('aafe3fb3-ee59-4d8c-b299-d0a9776878e7'),
              {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'),
                'to_node': UUID('cf0355f5-9078-4d93-8434-961fee590a47'),
                'category': 'part_of'}}),
             (UUID('2ca5031f-d739-4910-8b2e-574ee94b4fc3'),
              {'edges': {'from_node': UUID('604a99d8-6569-4fbb-a44d-c9e446100111'),
                'to_node': UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'),
                'category': 'part_of'}}),
             (UUID('ccd6454e-3a6a-4404-a2fa-f940a0039967'),
              {'edges': {'from_node': UUID('cf0355f5-9078-4d93-8434-961fee590a47'),
                'to_node': UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'),
                'category': 'part_of'}}),
             (UUID('e650982f-8436-491a-8f3e-1a1124550783'),
              {'edges': {'from_node': UUID('b8ed0c63-f06f-408a-832a-93d8b0a02d8e'),
                'to_node': UUID('604a99d8-6569-4fbb-a44d-c9e446100111'),
                'category': 'contains'}}),
             (UUID('f45c0231-3ade-44e5-9bb7-7722cca223f2'),
              {'edges': {'from_node': UUID('b8ed0c63-f06f-408a-832a-93d8b0a02d8e'),
                'to_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'),
                'category': 'contains'}}),
             (UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'),
              {'nodes': {'semantic_id': 'society-islands',
                'category': 'location',
                'attributes': {'name': 'Society Islands',
                 'type': 'archipelago'},
                'paragraph_idx': 12}}),
             (UUID('0f802399-f15e-442d-a597-e0c84972a35f'),
              {'nodes': {'semantic_id': 'paea',
                'category': 'location',
                'attributes': {'name': 'Paea',
                 'type': 'commune',
                 'location': 'Papeete, French Polynesia',
                 'island': 'Tahiti',
                 'administrative_subdivision': 'Windward Islands',
                 'part_of': 'Society Islands'},
                'paragraph_idx': 12}}),
             (UUID('78c1c3dc-5f26-4176-830a-c0586e583955'),
              {'nodes': {'semantic_id': 'population',
                'category': 'attribute',
                'attributes': {'value': 13021, 'year': 2017},
                'paragraph_idx': 12}}),
             (UUID('935abcd2-c7ec-4815-8026-14d9e8502b3e'),
              {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'),
                'to_node': UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'),
                'category': 'part_of'}}),
             (UUID('2d09622d-df53-4f41-9707-24fc6698438c'),
              {'edges': {'from_node': UUID('0f802399-f15e-442d-a597-e0c84972a35f'),
                'to_node': UUID('78c1c3dc-5f26-4176-830a-c0586e583955'),
                'category': 'has_attribute'}}),
             (UUID('710a0044-84bc-4f53-a31c-1fb07c009351'),
              {'nodes': {'semantic_id': 'potamogeton-amplifolius',
                'category': 'plant',
                'attributes': {'name': 'Potamogeton amplifolius',
                 'common_names': ['largeleaf pondweed',
                  'broad-leaved pondweed'],
                 'description': 'an aquatic plant of North America',
                 'habitat': ['lakes', 'ponds', 'rivers'],
                 'environment': 'deep water'},
                'paragraph_idx': 13}}),
             (UUID('4e1a454c-a0c5-4851-a0a0-092123232ce0'),
              {'nodes': {'semantic_id': 'north-america',
                'category': 'geographic_region',
                'attributes': {'name': 'North America'},
                'paragraph_idx': 13}}),
             (UUID('9f17363c-01e0-4698-b96d-9425f00cd08b'),
              {'edges': {'from_node': UUID('710a0044-84bc-4f53-a31c-1fb07c009351'),
                'to_node': UUID('4e1a454c-a0c5-4851-a0a0-092123232ce0'),
                'category': 'native_to'}}),
             (UUID('417a9a71-8b2b-43f7-9d04-7905c9d00075'),
              {'nodes': {'semantic_id': 'soltonsky-district',
                'category': 'location',
                'attributes': {'name': 'Soltonsky District',
                 'type': 'administrative and municipal district',
                 'part_of': 'Altai Krai',
                 'location': 'Russia',
                 'borders': ['Biysky District']},
                'paragraph_idx': 14}}),
             (UUID('4b288fc3-091b-447f-b1e7-31736281589c'),
              {'nodes': {'semantic_id': 'krasnogorsky-district',
                'category': 'location',
                'attributes': {'name': 'Krasnogorsky District',
                 'type': 'administrative and municipal district',
                 'part_of': 'Altai Krai',
                 'location': 'Russia',
                 'borders': ['Biysky District']},
                'paragraph_idx': 14}}),
             (UUID('a2849f7d-8ccd-4c95-8911-29b2f498d6b7'),
              {'nodes': {'semantic_id': 'sovetsky-district',
                'category': 'location',
                'attributes': {'name': 'Sovetsky District',
                 'type': 'administrative and municipal district',
                 'part_of': 'Altai Krai',
                 'location': 'Russia',
                 'borders': ['Biysky District']},
                'paragraph_idx': 14}}),
             (UUID('b63a7d4f-9757-44f2-90c1-d29ef9d6c62a'),
              {'nodes': {'semantic_id': 'smolensky-district',
                'category': 'location',
                'attributes': {'name': 'Smolensky District',
                 'type': 'administrative and municipal district',
                 'part_of': 'Altai Krai',
                 'location': 'Russia',
                 'borders': ['Biysky District']},
                'paragraph_idx': 14}}),
             (UUID('b980a3e8-8022-485f-addf-9c8d68716740'),
              {'nodes': {'semantic_id': 'biysk',
                'category': 'location',
                'attributes': {'name': 'Biysk',
                 'type': 'city',
                 'part_of': 'Altai Krai',
                 'location': 'Russia',
                 'is_administrative_center': True},
                'paragraph_idx': 14}}),
             (UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'),
              {'nodes': {'semantic_id': 'biysky-district',
                'category': 'location',
                'attributes': {'name': 'Biysky District',
                 'type': 'administrative and municipal district',
                 'part_of': 'Altai Krai',
                 'location': 'Russia',
                 'borders': ['Soltonsky District',
                  'Krasnogorsky District',
                  'Sovetsky District',
                  'Smolensky District',
                  'Biysk']},
                'paragraph_idx': 14}}),
             (UUID('8f0836c4-fff6-4fde-b259-f70b6128b348'),
              {'nodes': {'semantic_id': 'altai-krai',
                'category': 'location',
                'attributes': {'name': 'Altai Krai',
                 'type': 'krai',
                 'location': 'Russia'},
                'paragraph_idx': 14}}),
             (UUID('bab321a0-3f98-426b-8a2d-20d5ec639232'),
              {'edges': {'from_node': UUID('417a9a71-8b2b-43f7-9d04-7905c9d00075'),
                'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'),
                'category': 'borders'}}),
             (UUID('cbd9207d-ab1e-4c0d-b63b-a4181fbace46'),
              {'edges': {'from_node': UUID('4b288fc3-091b-447f-b1e7-31736281589c'),
                'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'),
                'category': 'borders'}}),
             (UUID('cb5c0d19-7b12-4a50-a477-cac8e0762a12'),
              {'edges': {'from_node': UUID('a2849f7d-8ccd-4c95-8911-29b2f498d6b7'),
                'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'),
                'category': 'borders'}}),
             (UUID('e40f26ca-a97c-46ca-a9ed-a031a8088448'),
              {'edges': {'from_node': UUID('b63a7d4f-9757-44f2-90c1-d29ef9d6c62a'),
                'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'),
                'category': 'borders'}}),
             (UUID('a09750f0-d5f8-4dab-82cc-be2e73691c97'),
              {'edges': {'from_node': UUID('b980a3e8-8022-485f-addf-9c8d68716740'),
                'to_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'),
                'category': 'borders'}}),
             (UUID('68b15747-9269-48bf-ba9d-ca79b31ba192'),
              {'edges': {'from_node': UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'),
                'to_node': UUID('8f0836c4-fff6-4fde-b259-f70b6128b348'),
                'category': 'part_of'}}),
             (UUID('4e30cf7e-8223-4337-a65d-0c0c108e674e'),
              {'nodes': {'semantic_id': 'contoocook-lake',
                'category': 'location',
                'attributes': {'name': 'Contoocook Lake',
                 'type': 'lake',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States'},
                 'towns': ['Jaffrey', 'Rindge'],
                 'is_headwaters_of': 'contoocook-river'},
                'paragraph_idx': 15}}),
             (UUID('ada27367-85fa-47e6-9d1c-1f061b2e1dc6'),
              {'nodes': {'semantic_id': 'pool-pond',
                'category': 'location',
                'attributes': {'name': 'Pool Pond',
                 'type': 'pond',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States'},
                 'is_headwaters_of': 'contoocook-river'},
                'paragraph_idx': 15}}),
             (UUID('f39afbdf-aded-4076-b3fa-40f7541b98e6'),
              {'edges': {'from_node': UUID('4e30cf7e-8223-4337-a65d-0c0c108e674e'),
                'to_node': UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'),
                'category': 'flows_into'}}),
             (UUID('e7f20049-4bf1-49ca-b9c9-3061af2aa15c'),
              {'edges': {'from_node': UUID('ada27367-85fa-47e6-9d1c-1f061b2e1dc6'),
                'to_node': UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'),
                'category': 'flows_into'}}),
             (UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'),
              {'nodes': {'semantic_id': 'contoocook-river',
                'category': 'location',
                'attributes': {'name': 'Contoocook River',
                 'type': 'river',
                 'flows_to': 'merrimack-river',
                 'flows_from': ['contoocook-lake', 'pool-pond'],
                 'location': {'city': 'Penacook',
                  'state': 'New Hampshire',
                  'country': 'United States'}},
                'paragraph_idx': 15}}),
             (UUID('9529f921-1f99-4ff7-b9a1-cdce2ff80f92'),
              {'nodes': {'semantic_id': 'merrimack-river',
                'category': 'location',
                'attributes': {'name': 'Merrimack River',
                 'type': 'river',
                 'location': {'city': 'Penacook',
                  'state': 'New Hampshire',
                  'country': 'United States'}},
                'paragraph_idx': 15}}),
             (UUID('c7467973-16e6-4395-8ef9-420c0d1227aa'),
              {'edges': {'from_node': UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'),
                'to_node': UUID('9529f921-1f99-4ff7-b9a1-cdce2ff80f92'),
                'category': 'flows_into'}}),
             (UUID('ad00a8de-78fe-4c90-87ec-97495cc749a3'),
              {'nodes': {'semantic_id': 'bogota',
                'category': 'location',
                'attributes': {'name': 'Bogotá',
                 'type': 'city',
                 'pronunciation': {'en': ['ˈboʊɡəˌtɑː', 'bɒˈɡoʊtə', 'boɪ -'],
                  'es': 'boɣoˈta'},
                 'official_name': 'Bogotá',
                 'role': 'political, economic, administrative, industrial, artistic, cultural, and sports center'},
                'paragraph_idx': 16}}),
             (UUID('57a45a77-0a10-4b3c-aa0f-bb090c7df86a'),
              {'nodes': {'semantic_id': 'colombia',
                'category': 'location',
                'attributes': {'name': 'Colombia',
                 'type': 'country',
                 'capital': 'Bogotá'},
                'paragraph_idx': 16}}),
             (UUID('2ef968e0-18eb-4cc5-8e40-85f944b23b16'),
              {'edges': {'from_node': UUID('ad00a8de-78fe-4c90-87ec-97495cc749a3'),
                'to_node': UUID('57a45a77-0a10-4b3c-aa0f-bb090c7df86a'),
                'category': 'capital_of'}}),
             (UUID('a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d'),
              {'nodes': {'semantic_id': 'intracellular-fluid',
                'category': 'substance',
                'attributes': {'name': 'Intracellular fluid',
                 'amount_of_total_body_water': 0.625,
                 'amount_in_liters': 25,
                 'percentage_of_total_body_fluid': 62.5},
                'paragraph_idx': 17}}),
             (UUID('6a7ca929-c452-4102-92d3-696b92a385d0'),
              {'edges': {'from_node': UUID('a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d'),
                'to_node': UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'),
                'category': 'part_of'}}),
             (UUID('8994bac8-1a03-45a7-9e76-e2125548d7c9'),
              {'nodes': {'semantic_id': 'intracellular-fluid',
                'category': 'substance',
                'paragraph_idx': 19}}),
             (UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'),
              {'nodes': {'semantic_id': 'total-body-fluid',
                'category': 'substance',
                'attributes': {'amount_in_liters': 40,
                 'total_body_weight': 72},
                'paragraph_idx': 19}}),
             (UUID('73813ec0-5dbc-4793-8468-420bed7a3cd1'),
              {'nodes': {'semantic_id': 'territorial-waters',
                'category': 'location',
                'attributes': {'name': 'Territorial waters',
                 'type': 'sea',
                 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state'},
                'paragraph_idx': 19}}),
             (UUID('84bcbbd4-0d38-42c3-9aa9-3b38227c0433'),
              {'nodes': {'semantic_id': 'law-of-the-sea',
                'category': 'legal_framework',
                'attributes': {'name': 'United Nations Convention on the Law of the Sea',
                 'year': 1982},
                'paragraph_idx': 19}}),
             (UUID('bc1c5af9-c311-4e9f-975d-349d33d41a15'),
              {'nodes': {'semantic_id': 'straits',
                'category': 'location',
                'attributes': {'name': 'Straits',
                 'type': 'body of water',
                 'sovereignty': 'This sovereignty extends to the airspace over and seabed below'},
                'paragraph_idx': 19}}),
             (UUID('72499573-c0cf-4a31-840a-da1dd1bf4c2f'),
              {'nodes': {'semantic_id': 'maritime-delimitation',
                'category': 'process',
                'attributes': {'name': 'Maritime delimitation',
                 'description': 'Adjustment of the boundaries of territorial waters and exclusive economic zones'},
                'paragraph_idx': 19}}),
             (UUID('cc1d4304-6583-4c76-9856-75f41f945f20'),
              {'nodes': {'semantic_id': 'bank-of-cyprus',
                'category': 'organization',
                'attributes': {'name': 'Bank of Cyprus',
                 'description': 'Largest banking group in Cyprus',
                 'relationship': "merged with the 'good' Cypriot part of Cyprus Popular Bank"},
                'paragraph_idx': 19}}),
             (UUID('1f97c243-fa43-4380-af8f-4404c5c5ce24'),
              {'edges': {'from_node': UUID('73813ec0-5dbc-4793-8468-420bed7a3cd1'),
                'to_node': UUID('84bcbbd4-0d38-42c3-9aa9-3b38227c0433'),
                'category': 'defined_by'}}),
             (UUID('238e98a5-a6be-4048-adf2-f1a310fd78df'),
              {'edges': {'from_node': UUID('bc1c5af9-c311-4e9f-975d-349d33d41a15'),
                'to_node': UUID('72499573-c0cf-4a31-840a-da1dd1bf4c2f'),
                'category': 'defined_by'}}),
             (UUID('51aade3e-39c7-41f8-87b2-38b9b595d6d3'),
              {'edges': {'from_node': UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'),
                'to_node': UUID('cc1d4304-6583-4c76-9856-75f41f945f20'),
                'category': 'merged_with'}}),
             (UUID('8d3a66e1-85c3-4cf9-a995-9eb0c91c2510'),
              {'edges': {'from_node': UUID('8994bac8-1a03-45a7-9e76-e2125548d7c9'),
                'to_node': UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'),
                'category': 'part_of'}}),
             (UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'),
              {'nodes': {'semantic_id': 'cyprus-popular-bank',
                'category': 'organization',
                'attributes': {'name': 'Cyprus Popular Bank',
                 'previous_names': ['Marfin Popular Bank'],
                 'status': 'shuttered in March 2013',
                 'description': 'Second largest banking group in Cyprus behind the Bank of Cyprus until 2013'},
                'paragraph_idx': 19}}),
             (UUID('b9ef6b09-848c-4ee3-94b8-2a0dbb4e88bb'),
              {'edges': {'from_node': UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'),
                'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'),
                'category': 'owns'}}),
             (UUID('d4c1831d-40c6-44ad-ba34-a8945f1ddfb3'),
              {'nodes': {'semantic_id': 'central-bank-of-cyprus',
                'category': 'organization',
                'attributes': {'name': 'Central Bank of Cyprus',
                 'description': 'The central bank that amended the lawyers of the legacy entity without consulting the special administrator'},
                'paragraph_idx': 19}}),
             (UUID('ddeb860c-8a26-4602-81b2-80c3a81058b9'),
              {'edges': {'from_node': UUID('883c8cec-7a77-44ff-9d5d-0aefda29ce21'),
                'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'),
                'category': 'manages'}}),
             (UUID('edad1ce6-fc15-4785-8188-9be0a9e2fb30'),
              {'edges': {'from_node': UUID('d4c1831d-40c6-44ad-ba34-a8945f1ddfb3'),
                'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'),
                'category': 'amended_lawyers'}}),
             (UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'),
              {'nodes': {'semantic_id': 'legacy-entity',
                'category': 'organization',
                'attributes': {'name': 'Legacy entity of Cyprus Popular Bank',
                 'description': 'Holds all the overseas operations of the now defunct Cyprus Popular Bank, until they are sold by the Special Administrator'},
                'paragraph_idx': 19}}),
             (UUID('3b46a61b-149b-4102-afd7-da851e1dda5c'),
              {'nodes': {'semantic_id': 'veteran-banker',
                'category': 'person',
                'attributes': {'name': 'Chris Pavlou',
                 'expertise': 'expert in Treasury'},
                'paragraph_idx': 19}}),
             (UUID('883c8cec-7a77-44ff-9d5d-0aefda29ce21'),
              {'nodes': {'semantic_id': 'special-administrator',
                'category': 'person',
                'attributes': {'name': 'Andri Antoniadou',
                 'position': 'ran the legacy entity of Cyprus Popular Bank for two years, from March 2013 until 3 March 2015'},
                'paragraph_idx': 19}}),
             (UUID('f9641a28-4283-4cdd-92cd-391f7888e7f4'),
              {'nodes': {'semantic_id': 'marfin-investment-group',
                'category': 'organization',
                'attributes': {'name': 'Marfin Investment Group',
                 'relationship': 'former major shareholder of the legacy entity'},
                'paragraph_idx': 19}}),
             (UUID('5b9c4ae3-5301-41ec-b7eb-73da084dd865'),
              {'edges': {'from_node': UUID('3b46a61b-149b-4102-afd7-da851e1dda5c'),
                'to_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'),
                'category': 'took_over_as'}}),
             (UUID('76e5ee79-b64a-4624-b350-1e01a6753954'),
              {'edges': {'from_node': UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'),
                'to_node': UUID('f9641a28-4283-4cdd-92cd-391f7888e7f4'),
                'category': 'pursuing_legal_action_against'}})])
node_dict = {k:v['nodes']['semantic_id'] for k,v in graph_history.history.items() if 'nodes' in v}
node_dict
{UUID('bdbf44f6-c5ab-4e93-95f9-913c4472c483'): 'world-war-2',
 UUID('7c74cbd4-d37e-48ee-b07b-8e743cb4e571'): 'philippines-commonwealth',
 UUID('45454413-bccb-4305-b606-2fa6386a64b6'): 'insular-government',
 UUID('fd95bdaf-d7b3-4795-b0c3-bb239fa17d0e'): 'transition-to-independence',
 UUID('b88ccc2e-89f4-4799-bf64-38ca5d0badf8'): 'lake-oesa',
 UUID('fa964c2f-3cf7-4b61-99f4-6029ace56ccb'): 'arafura-swamp',
 UUID('4c1c52c9-a5a5-4bc8-999d-cf7539d57322'): 'wapizagonke-lake',
 UUID('dc5e696f-cdb0-4ae7-bf44-cc4eef5af46d'): 'khabarovsky-district',
 UUID('38724952-3d65-44b0-b5f8-03d13f501b6e'): 'silver-lake',
 UUID('85f00f66-e471-4e29-90f1-a11634734dc9'): 'ashuelot-river',
 UUID('7c057b91-d6fb-4058-af7e-6d3104e1eed1'): 'hmda',
 UUID('a0f921c0-73c3-41db-980a-c86d1bc3906b'): 'hmda-area',
 UUID('50db0180-d74c-4009-8812-aad530beef99'): 'ghmc-area',
 UUID('c01036cf-69f0-4589-a53f-c967eb829736'): 'hyderabad-district',
 UUID('b325368a-939a-4b13-bc90-bb48ffa68859'): 'hyderabad-police-area',
 UUID('85d71a58-5af2-438e-9f73-72c8363a57f8'): 'hmwssb',
 UUID('9313d4b8-6d2e-4032-b214-b321fe5da7d3'): 'san-juan-city',
 UUID('72913ab5-4552-42e1-8604-7e016738c169'): 'san-juan-bay',
 UUID('278b8adb-3088-4b06-9348-5cc2c9bb3fc1'): 'condado-lagoon',
 UUID('9814602e-d7e0-480f-b86e-4b0670e8bdf0'): 'san-jose-lagoon',
 UUID('0f3a0e4d-3a1b-4d2b-befc-676b8009d1f6'): 'landkreis',
 UUID('b23a8544-765b-4713-a2a0-01c3f38fed6a'): 'urban-hinterland',
 UUID('a0c2f429-8515-4075-b051-af1985e1ac5c'): 'district-level',
 UUID('5447372d-faa0-4578-a285-d28ccd556385'): 'kreisfreie-stadt',
 UUID('37176eec-a55d-44e4-a6cb-8bfbfee933fa'): 'local-associations',
 UUID('4e3d9a61-a794-49f8-bafc-b9b64fec2fe6'): 'norfolk-island',
 UUID('a7bf1182-a4f6-4a73-89ce-0a00be00e2cb'): 'phillip-island',
 UUID('19b0c9e8-39b6-4dde-b822-d032cf5e63ba'): 'mount-bates',
 UUID('b21b44eb-f998-495d-9eb4-df1057959cf3'): 'phillip-island-distance',
 UUID('5f092031-cf0d-408c-a4f1-896e7c8607be'): 'star-stadium',
 UUID('08177c86-f5f7-4917-8a05-c1f311690aee'): 'perm',
 UUID('08b31a77-8dc6-4490-925c-037ebf0b8d13'): 'perm-krai',
 UUID('91b73ee9-b9f7-4858-b7bc-c761f5e8b4b5'): 'papeete',
 UUID('b8ed0c63-f06f-408a-832a-93d8b0a02d8e'): 'french-polynesia',
 UUID('604a99d8-6569-4fbb-a44d-c9e446100111'): 'tahiti',
 UUID('cf0355f5-9078-4d93-8434-961fee590a47'): 'windward-islands',
 UUID('d2974cd5-7054-4bed-8222-0d92af1f90a6'): 'society-islands',
 UUID('0f802399-f15e-442d-a597-e0c84972a35f'): 'paea',
 UUID('78c1c3dc-5f26-4176-830a-c0586e583955'): 'population',
 UUID('710a0044-84bc-4f53-a31c-1fb07c009351'): 'potamogeton-amplifolius',
 UUID('4e1a454c-a0c5-4851-a0a0-092123232ce0'): 'north-america',
 UUID('417a9a71-8b2b-43f7-9d04-7905c9d00075'): 'soltonsky-district',
 UUID('4b288fc3-091b-447f-b1e7-31736281589c'): 'krasnogorsky-district',
 UUID('a2849f7d-8ccd-4c95-8911-29b2f498d6b7'): 'sovetsky-district',
 UUID('b63a7d4f-9757-44f2-90c1-d29ef9d6c62a'): 'smolensky-district',
 UUID('b980a3e8-8022-485f-addf-9c8d68716740'): 'biysk',
 UUID('10b5e6c7-bc63-41d5-b52d-38e728f085e2'): 'biysky-district',
 UUID('8f0836c4-fff6-4fde-b259-f70b6128b348'): 'altai-krai',
 UUID('4e30cf7e-8223-4337-a65d-0c0c108e674e'): 'contoocook-lake',
 UUID('ada27367-85fa-47e6-9d1c-1f061b2e1dc6'): 'pool-pond',
 UUID('65cf9d75-79e6-46a5-aab9-ede4587f8e63'): 'contoocook-river',
 UUID('9529f921-1f99-4ff7-b9a1-cdce2ff80f92'): 'merrimack-river',
 UUID('ad00a8de-78fe-4c90-87ec-97495cc749a3'): 'bogota',
 UUID('57a45a77-0a10-4b3c-aa0f-bb090c7df86a'): 'colombia',
 UUID('a20af2cd-8a3a-4fb9-bdb3-f0c2934ec84d'): 'intracellular-fluid',
 UUID('8994bac8-1a03-45a7-9e76-e2125548d7c9'): 'intracellular-fluid',
 UUID('3650ecee-07ad-4858-8d38-4d4cc2703da5'): 'total-body-fluid',
 UUID('73813ec0-5dbc-4793-8468-420bed7a3cd1'): 'territorial-waters',
 UUID('84bcbbd4-0d38-42c3-9aa9-3b38227c0433'): 'law-of-the-sea',
 UUID('bc1c5af9-c311-4e9f-975d-349d33d41a15'): 'straits',
 UUID('72499573-c0cf-4a31-840a-da1dd1bf4c2f'): 'maritime-delimitation',
 UUID('cc1d4304-6583-4c76-9856-75f41f945f20'): 'bank-of-cyprus',
 UUID('7540bcc4-0cb2-463c-9250-40aadee08d65'): 'cyprus-popular-bank',
 UUID('d4c1831d-40c6-44ad-ba34-a8945f1ddfb3'): 'central-bank-of-cyprus',
 UUID('7b7ab7bd-43ab-4a85-a863-587230a60496'): 'legacy-entity',
 UUID('3b46a61b-149b-4102-afd7-da851e1dda5c'): 'veteran-banker',
 UUID('883c8cec-7a77-44ff-9d5d-0aefda29ce21'): 'special-administrator',
 UUID('f9641a28-4283-4cdd-92cd-391f7888e7f4'): 'marfin-investment-group'}
graph_history = graph_history0
for k,v in graph_history.history.items():
    if 'nodes' in v:
        collection.add(documents=[str(v['nodes'])], ids=[str(k)])
2024-05-14 21:58:26,116 - DEBUG - chromadb.utils.embedding_functions - embedding_functions - model - 498 - WARNING: No ONNX providers provided, defaulting to available providers: ['AzureExecutionProvider', 'CPUExecutionProvider']
2024-05-14 21:58:26,242 - DEBUG - chromadb.config - config - start - 297 - Starting component LocalHnswSegment
['__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__getstate__',
 '__gt__',
 '__hash__',
 '__init__',
 '__init_subclass__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__setstate__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 '_item_to_json_str',
 '_param__parameters',
 '_param__private',
 '_param_watchers',
 'add_history',
 'edges_alias',
 'get_history_str',
 'get_history_window',
 'history',
 'latest_history',
 'latest_history_mapping',
 'name',
 'nodes_alias',
 'param',
 'token_max']
top_results = collection.query(
    query_texts=["What is the largest island in the pacific?"]
    )
top_results['documents'], top_results['ids']
(["{'semantic_id': 'norfolk-island', 'category': 'location', 'attributes': {'name': 'Norfolk Island', 'type': 'island', 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'location': 'South Pacific Ocean, east of the Australian mainland', 'area': 34.6, 'area_unit': 'square kilometres', 'coastline': 32, 'coastline_unit': 'km', 'highest_point': 'Mount Bates'}, 'paragraph_idx': 9}",
  "{'semantic_id': 'phillip-island', 'category': 'location', 'attributes': {'name': 'Phillip Island', 'type': 'island', 'location': 'territory of Norfolk Island', 'size': 'second largest island'}, 'paragraph_idx': 9}",
  "{'semantic_id': 'tahiti', 'category': 'location', 'attributes': {'name': 'Tahiti', 'type': 'island', 'part_of': 'Society Islands'}, 'paragraph_idx': 12}",
  "{'semantic_id': 'territorial-waters', 'category': 'location', 'attributes': {'name': 'Territorial waters', 'type': 'sea', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state'}, 'paragraph_idx': 19}",
  "{'semantic_id': 'french-polynesia', 'category': 'location', 'attributes': {'name': 'French Polynesia', 'type': 'overseas territory', 'location': 'South Pacific Ocean'}, 'paragraph_idx': 12}",
  "{'semantic_id': 'san-juan-city', 'category': 'location', 'attributes': {'name': 'San Juan city', 'size': '76.93 square miles (199.2 km²)', 'water_area': '29.11 square miles (75.4 km²) (37.83%)'}, 'paragraph_idx': 7}",
  "{'semantic_id': 'phillip-island-distance', 'category': 'distance', 'attributes': {'distance': 7, 'distance_unit': 'kilometres', 'direction': 'south', 'reference_location': 'main island'}, 'paragraph_idx': 9}",
  "{'semantic_id': 'paea', 'category': 'location', 'attributes': {'name': 'Paea', 'type': 'commune', 'location': 'Papeete, French Polynesia', 'island': 'Tahiti', 'administrative_subdivision': 'Windward Islands', 'part_of': 'Society Islands'}, 'paragraph_idx': 12}",
  "{'semantic_id': 'straits', 'category': 'location', 'attributes': {'name': 'Straits', 'type': 'body of water', 'sovereignty': 'This sovereignty extends to the airspace over and seabed below'}, 'paragraph_idx': 19}",
  "{'semantic_id': 'arafura-swamp', 'category': 'location', 'attributes': {'name': 'Arafura Swamp', 'type': 'largest wooded swamp in the Northern Territory and possibly in Australia', 'location': {'region': 'Arnhem Land', 'territory': 'Northern Territory', 'country': 'Australia'}, 'size': {'area': {'max': 5850, 'unit': 'km^2'}, 'expansion': 'may expand by the end of the wet season'}, 'status': 'near pristine floodplain', 'cultural_significance': 'great cultural significance to the Yolngu people, in particular the Ramingining community', 'filming_location': 'Ten Canoes'}, 'paragraph_idx': 2}"],
 ['4e3d9a61-a794-49f8-bafc-b9b64fec2fe6',
  'a7bf1182-a4f6-4a73-89ce-0a00be00e2cb',
  '604a99d8-6569-4fbb-a44d-c9e446100111',
  '73813ec0-5dbc-4793-8468-420bed7a3cd1',
  'b8ed0c63-f06f-408a-832a-93d8b0a02d8e',
  '9313d4b8-6d2e-4032-b214-b321fe5da7d3',
  'b21b44eb-f998-495d-9eb4-df1057959cf3',
  '0f802399-f15e-442d-a597-e0c84972a35f',
  'bc1c5af9-c311-4e9f-975d-349d33d41a15',
  'fa964c2f-3cf7-4b61-99f4-6029ace56ccb'])
list(digraph.edge_indices())
[0,
 1,
 2,
 3,
 4,
 5,
 6,
 7,
 8,
 9,
 10,
 11,
 12,
 13,
 14,
 15,
 16,
 17,
 18,
 19,
 20,
 21,
 22,
 23,
 24,
 25,
 26,
 27,
 28,
 29,
 30,
 31,
 32,
 33,
 34,
 35,
 36,
 37,
 38,
 39,
 40,
 41,
 42,
 43,
 44,
 45,
 46,
 47,
 48]
import uuid
import uuid

# Constructing a UUID version 4 from a string
uuid_str = top_results['ids'][0][0]
top_uuid = uuid.UUID(uuid_str, version=4)

top_node = digraph[node_indices[top_uuid]]
top_node
{'semantic_id': 'norfolk-island',
 'category': 'location',
 'attributes': {'name': 'Norfolk Island',
  'type': 'island',
  'coordinates': {'latitude': -29.033, 'longitude': 167.95},
  'location': 'South Pacific Ocean, east of the Australian mainland',
  'area': 34.6,
  'area_unit': 'square kilometres',
  'coastline': 32,
  'coastline_unit': 'km',
  'highest_point': 'Mount Bates'},
 'paragraph_idx': 9}
for idx in digraph.neighbors(node_indices[top_uuid]):
    print(digraph[idx])
{'semantic_id': 'mount-bates', 'category': 'location', 'attributes': {'name': 'Mount Bates', 'elevation': 319, 'elevation_unit': 'metres', 'location': 'northwest quadrant of Norfolk Island'}, 'paragraph_idx': 9}
{'semantic_id': 'phillip-island-distance', 'category': 'distance', 'attributes': {'distance': 7, 'distance_unit': 'kilometres', 'direction': 'south', 'reference_location': 'main island'}, 'paragraph_idx': 9}
{'semantic_id': 'phillip-island', 'category': 'location', 'attributes': {'name': 'Phillip Island', 'type': 'island', 'location': 'territory of Norfolk Island', 'size': 'second largest island'}, 'paragraph_idx': 9}

Question answering

lines[-2]
{'id': '2hop__604134_131944',
 'paragraphs': [{'idx': 0,
   'title': 'Commonwealth of the Philippines',
   'paragraph_text': "The Commonwealth of the Philippines (; ) was the administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country. It replaced the Insular Government, a United States territorial government, and was established by the Tydings–McDuffie Act. The Commonwealth was designed as a transitional administration in preparation for the country's full achievement of independence.",
   'is_supporting': False},
  {'idx': 1,
   'title': 'Lake Oesa',
   'paragraph_text': 'Lake Oesa is a body of water located at an elevation of 2,267m (7438 ft) in the mountains of Yoho National Park, near Field, British Columbia, Canada.',
   'is_supporting': False},
  {'idx': 2,
   'title': 'Arafura Swamp',
   'paragraph_text': 'The Arafura Swamp is a large inland freshwater wetland in Arnhem Land, in the Top End of the Northern Territory of Australia. It is a near pristine floodplain with an area of that may expand to by the end of the wet season, making it the largest wooded swamp in the Northern Territory and, possibly, in Australia. It has a strong seasonal variation in depth of water. The area is of great cultural significance to the Yolngu people, in particular the Ramingining community. It was the filming location for the film "Ten Canoes".',
   'is_supporting': False},
  {'idx': 3,
   'title': 'Wapizagonke Lake',
   'paragraph_text': 'The Wapizagonke Lake is one of the bodies of water located the sector "Lac-Wapizagonke", in the city of Shawinigan, in the La Mauricie National Park, in the region of Mauricie, in Quebec, in Canada.',
   'is_supporting': False},
  {'idx': 4,
   'title': 'Khabarovsky District',
   'paragraph_text': 'Khabarovsky District () is an administrative and municipal district (raion), one of the seventeen in Khabarovsk Krai, Russia. It consists of two unconnected segments separated by the territory of Amursky District, which are located in the southwest of the krai. The area of the district is . Its administrative center is the city of Khabarovsk (which is not administratively a part of the district). Population:',
   'is_supporting': False},
  {'idx': 5,
   'title': 'Silver Lake (Harrisville, New Hampshire)',
   'paragraph_text': 'Silver Lake is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Harrisville and Nelson. Water from Silver Lake flows via Minnewawa Brook and The Branch to the Ashuelot River, a tributary of the Connecticut River.',
   'is_supporting': False},
  {'idx': 6,
   'title': 'Hyderabad',
   'paragraph_text': 'The jurisdictions of the city\'s administrative agencies are, in ascending order of size: the Hyderabad Police area, Hyderabad district, the GHMC area ("Hyderabad city") and the area under the Hyderabad Metropolitan Development Authority (HMDA). The HMDA is an apolitical urban planning agency that covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city. It coordinates the development activities of GHMC and suburban municipalities and manages the administration of bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB).',
   'is_supporting': False},
  {'idx': 7,
   'title': 'San Juan, Puerto Rico',
   'paragraph_text': "San Juan is located along the north - eastern coast of Puerto Rico. It lies south of the Atlantic Ocean; north of Caguas and Trujillo Alto; east of and Guaynabo; and west of Carolina. The city occupies an area of 76.93 square miles (199.2 km), of which, 29.11 square miles (75.4 km) (37.83%) is water. San Juan's main water bodies are San Juan Bay and two natural lagoons, the Condado and San José.",
   'is_supporting': False},
  {'idx': 8,
   'title': 'States of Germany',
   'paragraph_text': 'Local associations of a special kind are an amalgamation of one or more Landkreise with one or more Kreisfreie Städte to form a replacement of the aforementioned administrative entities at the district level. They are intended to implement simplification of administration at that level. Typically, a district-free city or town and its urban hinterland are grouped into such an association, or Kommunalverband besonderer Art. Such an organization requires the issuing of special laws by the governing state, since they are not covered by the normal administrative structure of the respective states.',
   'is_supporting': False},
  {'idx': 9,
   'title': 'Norfolk Island',
   'paragraph_text': "Norfolk Island is located in the South Pacific Ocean, east of the Australian mainland. Norfolk Island is the main island of the island group the territory encompasses and is located at 29°02′S 167°57′E\ufeff / \ufeff29.033°S 167.950°E\ufeff / -29.033; 167.950. It has an area of 34.6 square kilometres (13.4 sq mi), with no large-scale internal bodies of water and 32 km (20 mi) of coastline. The island's highest point is Mount Bates (319 metres (1,047 feet) above sea level), located in the northwest quadrant of the island. The majority of the terrain is suitable for farming and other agricultural uses. Phillip Island, the second largest island of the territory, is located at 29°07′S 167°57′E\ufeff / \ufeff29.117°S 167.950°E\ufeff / -29.117; 167.950, seven kilometres (4.3 miles) south of the main island.",
   'is_supporting': False},
  {'idx': 10,
   'title': 'Perm',
   'paragraph_text': 'Perm (;) is a city and the administrative centre of Perm Krai, Russia, located on the banks of the Kama River in the European part of Russia near the Ural Mountains.',
   'is_supporting': True},
  {'idx': 11,
   'title': 'Zvezda Stadium',
   'paragraph_text': 'Star (Zvezda) Stadium (), until 1991 Lenin Komsomol Stadium (), is a multi-use stadium in Perm, Russia. It is currently used mostly for football matches and is the home ground of FC Amkar Perm. The stadium holds 17,000 people and was opened on June 5, 1969.',
   'is_supporting': True},
  {'idx': 12,
   'title': 'Paea',
   'paragraph_text': 'Paea is a commune in the suburbs of Papeete in French Polynesia, an overseas territory of France in the southern Pacific Ocean. Paea is located on the island of Tahiti, in the administrative subdivision of the Windward Islands, themselves part of the Society Islands. At the 2017 census it had a population of 13,021.',
   'is_supporting': False},
  {'idx': 13,
   'title': 'Potamogeton amplifolius',
   'paragraph_text': 'Potamogeton amplifolius, commonly known as largeleaf pondweed or broad-leaved pondweed, is an aquatic plant of North America. It grows in water bodies such as lakes, ponds, and rivers, often in deep water.',
   'is_supporting': False},
  {'idx': 14,
   'title': 'Biysky District',
   'paragraph_text': "Biysky District () is an administrative and municipal district (raion), one of the fifty-nine in Altai Krai, Russia. It is located in the east of the krai and borders with Zonalny, Tselinny, Soltonsky, Krasnogorsky, Sovetsky, and Smolensky Districts, as well as with the territory of the City of Biysk. The area of the district is . Its administrative center is the city of Biysk (which is not administratively a part of the district). District's population:",
   'is_supporting': False},
  {'idx': 15,
   'title': 'Contoocook Lake',
   'paragraph_text': 'Contoocook Lake () is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Jaffrey and Rindge. The lake, along with Pool Pond, forms the headwaters of the Contoocook River, which flows north to the Merrimack River in Penacook, New Hampshire.',
   'is_supporting': False},
  {'idx': 16,
   'title': 'Bogotá',
   'paragraph_text': 'Bogotá (/ ˈboʊɡətɑː /, / ˌbɒɡəˈtɑː /, / ˌboʊ - /; Spanish pronunciation: (boɣoˈta) (listen)), officially Bogotá, Distrito Capital, abbreviated Bogotá, D.C., and formerly known as Santafé de Bogotá between 1991 and 2000, is the capital and largest city of Colombia, administered as the Capital District, although often thought of as part of Cundinamarca. Bogotá is a territorial entity of the first order, with the same administrative status as the departments of Colombia. It is the political, economic, administrative, industrial, artistic, cultural, and sports center of the country.',
   'is_supporting': False},
  {'idx': 17,
   'title': 'Body water',
   'paragraph_text': "Intracellular fluid (2 / 3 of body water) is fluid contained within cells. In a 72 - kg body containing 40 litres of fluid, about 25 litres is intracellular, which amounts to 62.5%. Jackson's texts states 70% of body fluid is intracellular.",
   'is_supporting': False},
  {'idx': 18,
   'title': 'Territorial waters',
   'paragraph_text': 'Territorial waters or a territorial sea, as defined by the 1982 United Nations Convention on the Law of the Sea, is a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state. The territorial sea is regarded as the sovereign territory of the state, although foreign ships (civilian) are allowed innocent passage through it, or transit passage for straits; this sovereignty also extends to the airspace over and seabed below. Adjustment of these boundaries is called, in international law, maritime delimitation.',
   'is_supporting': False},
  {'idx': 19,
   'title': 'Cyprus Popular Bank',
   'paragraph_text': "Cyprus Popular Bank (from 2006 to 2011 known as Marfin Popular Bank) was the second largest banking group in Cyprus behind the Bank of Cyprus until it was 'shuttered' in March 2013 and split into two parts. The 'good' Cypriot part was merged into the Bank of Cyprus (including insured deposits under 100,000 Euro) and the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds. The uninsured depositors were subject to a bail-in and became the new shareholders of the legacy entity. As at May 2017, the legacy entity is one of the largest shareholders of Bank of Cyprus with 4.8% but does not hold a board seat. All the overseas operations, of the now defunct Cyprus Popular Bank, are also held by the legacy entity, until they are sold by the Special Administrator, at first Ms Andri Antoniadou, who ran the legacy entity for two years, from March 2013 until 3 March 2015. She tendered her resignation due to disagreements, with the Governor of the Central Bank of Cyprus and the Central Bank Board members, who amended the lawyers of the legacy entity, without consulting her. Veteran banker Chris Pavlou who is an expert in Treasury and risk management took over as Special Administrator of the legacy entity in April 2015 until December 2016. The legacy entity is pursuing legal action against former major shareholder Marfin Investment Group.",
   'is_supporting': False}],
 'question': 'What is the body of water by the city where Zvezda stadium is located?',
 'question_decomposition': [{'id': 604134,
   'question': 'Zvezda >> located in the administrative territorial entity',
   'answer': 'Perm',
   'paragraph_support_idx': 11},
  {'id': 131944,
   'question': 'Which is the body of water by #1 ?',
   'answer': 'Kama River',
   'paragraph_support_idx': 10}],
 'answer': 'Kama River',
 'answer_aliases': ['Kama'],
 'answerable': True}

format of predictions

{'id': '2hop__252311_366220',
 'predicted_answer': 'Steven Spielberg',
 'predicted_answerable': True,
 'predicted_support_idxs': [10, 18]}

Prediction prompts

from pydantic import BaseModel
from langchain_core.messages import SystemMessage
from pydantic import Field
from typing import List
from langchain_core.messages import SystemMessage

guidance_str = \
"You are the best taker of tests, particularly excelling at \
answering questions based on information provided to you. \
You will be given nodes and edges from a knowledge graph in \
a JSON format and you are expected to answer a question based \
on them. The 'from_node' and 'to_node' fields in the edges correspond \
to the 'connecting_id' fields in the nodes. \
Your output will only be JSON, and nothing more. \
No yapping.\n"

class Answer(BaseModel):
    answerable: bool = Field(..., description="true or false value. Whether or not the answer is answerable based on the provided nodes and edges")
    answer: str = Field(..., description="The answer to the question. Terse and concise.")
    support_idxs: List[int] = Field(..., description="The indices of the nodes that support the answer. From 'paragraph_idx' field")

format_str = f"This JSON Schema is the format you will be using: {json.dumps(Answer.model_json_schema())}"

system_message = SystemMessage(guidance_str + format_str)
system_message
SystemMessage(content='You are the best taker of tests, particularly excelling at answering questions based on information provided to you. You will be given nodes and edges from a knowledge graph in a JSON format and you are expected to answer a question based on them. The \'from_node\' and \'to_node\' fields in the edges correspond to the \'connecting_id\' fields in the nodes. Your output will only be JSON, and nothing more. No yapping.\nThis JSON Schema is the format you will be using: {"properties": {"answerable": {"description": "true or false value. Whether or not the answer is answerable based on the provided nodes and edges", "title": "Answerable", "type": "boolean"}, "answer": {"description": "The answer to the question. Terse and concise.", "title": "Answer", "type": "string"}, "support_idxs": {"description": "The indices of the nodes that support the answer. From \'paragraph_idx\' field", "items": {"type": "integer"}, "title": "Support Idxs", "type": "array"}}, "required": ["answerable", "answer", "support_idxs"], "title": "Answer", "type": "object"}')
json.dumps(Answer.model_json_schema())
'{"properties": {"answerable": {"description": "true or false value. Whether or not the answer is answerable based on the provided nodes and edges", "title": "Answerable", "type": "boolean"}, "answer": {"description": "The answer to the question. Terse and concise.", "title": "Answer", "type": "string"}, "support_idxs": {"description": "The indices of the nodes that support the answer. From \'paragraph_idx\' field", "items": {"type": "integer"}, "title": "Support Idxs", "type": "array"}}, "required": ["answerable", "answer", "support_idxs"], "title": "Answer", "type": "object"}'
from langchain_core.prompts import (
    HumanMessagePromptTemplate,
    SystemMessagePromptTemplate,
)
human_str = "Question: {question}\n\n Supporting Evidence:\n {evidence}"
human_template = HumanMessagePromptTemplate.from_template(human_str)
from langchain.output_parsers import PydanticOutputParser, OutputFixingParser

_output_parser = PydanticOutputParser(pydantic_object=Answer)
output_parser = OutputFixingParser.from_llm(parser=_output_parser, llm=chat_model, max_retries=3)
lines[-2]['question']
'What is the body of water by the city where Zvezda stadium is located?'
graph_components0
[{'nodes': [{'semantic_id': 'commonwealth_of_the_philippines',
    'category': 'political_entity',
    'attributes': {'name': 'Commonwealth of the Philippines',
     'years_active': '1935 to 1946',
     'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'},
    'paragraph_idx': 0},
   {'semantic_id': 'insular_government',
    'category': 'political_entity',
    'attributes': {'name': 'Insular Government',
     'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'},
    'paragraph_idx': 0}],
  'edges': [{'from_node': 'insular_government',
    'to_node': 'commonwealth_of_the_philippines',
    'category': 'replaced'}]},
 {'nodes': [{'semantic_id': 'insular_government',
    'category': 'political_entity',
    'attributes': {'name': 'Insular Government',
     'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'},
    'paragraph_idx': 0},
   {'semantic_id': 'commonwealth_of_the_philippines',
    'category': 'political_entity',
    'attributes': {'name': 'Commonwealth of the Philippines',
     'years_active': '1935 to 1946',
     'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'},
    'paragraph_idx': 0},
   {'semantic_id': 'tydings_mcduffie_act',
    'category': 'legal_document',
    'attributes': {'name': 'Tydings–McDuffie Act',
     'description': "The act that established the Commonwealth of the Philippines as a transitional administration in preparation for the country's full achievement of independence."},
    'paragraph_idx': 0}],
  'edges': [{'from_node': 'insular_government',
    'to_node': 'commonwealth_of_the_philippines',
    'category': 'replaced'},
   {'from_node': 'tydings_mcduffie_act',
    'to_node': 'commonwealth_of_the_philippines',
    'category': 'established'}]},
 {'nodes': [{'semantic_id': 'lake_oesa',
    'category': 'natural_feature',
    'attributes': {'name': 'Lake Oesa',
     'elevation': 2267,
     'elevation_unit': 'm',
     'location': {'park': 'Yoho National Park',
      'city': 'Field',
      'province': 'British Columbia',
      'country': 'Canada'}},
    'paragraph_idx': 1}],
  'edges': []},
 {'nodes': [{'semantic_id': 'arafura_swamp',
    'category': 'natural_feature',
    'attributes': {'name': 'Arafura Swamp',
     'type': 'inland freshwater wetland',
     'location': {'region': 'Arnhem Land',
      'territory': 'Northern Territory',
      'country': 'Australia'},
     'size': {'area': {'value': None, 'unit': 'km2'},
      'expansion_during_wet_season': True},
     'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia'},
    'paragraph_idx': 2}],
  'edges': []},
 {'nodes': [{'semantic_id': 'arafura_swamp',
    'category': 'natural_feature',
    'attributes': {'name': 'Arafura Swamp',
     'type': 'inland freshwater wetland',
     'location': {'region': 'Arnhem Land',
      'territory': 'Northern Territory',
      'country': 'Australia'},
     'size': {'area': {'value': None, 'unit': 'km2'},
      'expansion_during_wet_season': True},
     'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia',
     'cultural_significance': 'of great cultural significance to the Yolngu people, in particular the Ramingining community',
     'filming_location': 'Ten Canoes'},
    'paragraph_idx': 2}],
  'edges': []},
 {'nodes': [{'semantic_id': 'wapizagonke_lake',
    'category': 'natural_feature',
    'attributes': {'name': 'Wapizagonke Lake',
     'type': 'body of water',
     'location': {'sector': 'Lac-Wapizagonke',
      'city': 'Shawinigan',
      'park': 'La Mauricie National Park',
      'region': 'Mauricie',
      'province': 'Quebec',
      'country': 'Canada'}},
    'paragraph_idx': 3}],
  'edges': []},
 {'nodes': [{'semantic_id': 'khabarovsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Khabarovsky District',
     'country': 'Russia',
     'region': 'Khabarovsk Krai',
     'area': None,
     'area_unit': None,
     'administrative_center': None},
    'paragraph_idx': 4},
   {'semantic_id': 'amursky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Amursky District',
     'country': 'Russia',
     'region': 'Khabarovsk Krai'},
    'paragraph_idx': 4}],
  'edges': [{'from_node': 'khabarovsky_district',
    'to_node': 'amursky_district',
    'category': 'separated_by'}]},
 {'nodes': [{'semantic_id': 'khabarovsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Khabarovsky District',
     'country': 'Russia',
     'region': 'Khabarovsk Krai',
     'area': None,
     'area_unit': None,
     'administrative_center': 'Khabarovsk'},
    'paragraph_idx': 4}],
  'edges': [{'from_node': 'khabarovsky_district',
    'to_node': 'amursky_district',
    'category': 'separated_by'}]},
 {'nodes': [{'semantic_id': 'silver_lake',
    'category': 'natural_feature',
    'attributes': {'name': 'Silver Lake',
     'type': 'body of water',
     'location': {'county': 'Cheshire County',
      'state': 'New Hampshire',
      'country': 'United States',
      'towns': ['Harrisville', 'Nelson']},
     'outflows': ['Minnewawa Brook', 'The Branch'],
     'ultimate_recipient': 'Connecticut River'},
    'paragraph_idx': 5}],
  'edges': [{'from_node': 'silver_lake',
    'to_node': 'minnewawa_brook',
    'category': 'flows_via'},
   {'from_node': 'silver_lake',
    'to_node': 'the_branch',
    'category': 'flows_via'},
   {'from_node': 'minnewawa_brook',
    'to_node': 'ashuelot_river',
    'category': 'flows_to'},
   {'from_node': 'the_branch',
    'to_node': 'ashuelot_river',
    'category': 'flows_to'},
   {'from_node': 'ashuelot_river',
    'to_node': 'connecticut_river',
    'category': 'tributary_of'}]},
 {'nodes': [{'semantic_id': 'hyderabad_police_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad Police area',
     'jurisdiction_size': 'smallest'},
    'paragraph_idx': 6},
   {'semantic_id': 'hyderabad_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad district',
     'jurisdiction_size': 'second_smallest'},
    'paragraph_idx': 6},
   {'semantic_id': 'ghmc_area',
    'category': 'administrative_district',
    'attributes': {'name': 'GHMC area',
     'jurisdiction_size': 'second_largest',
     'alternate_name': 'Hyderabad city'},
    'paragraph_idx': 6},
   {'semantic_id': 'hmda_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area',
     'jurisdiction_size': 'largest',
     'type': 'urban_planning_agency',
     'apolitical': True,
     'covers': ['ghmc_area', 'suburbs_of_ghmc_area']},
    'paragraph_idx': 6}],
  'edges': [{'from_node': 'hyderabad_police_area',
    'to_node': 'hyderabad_district',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'hyderabad_district',
    'to_node': 'ghmc_area',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'ghmc_area',
    'to_node': 'hmda_area',
    'category': 'jurisdiction_size_hierarchy'}]},
 {'nodes': [{'semantic_id': 'hmda_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area',
     'jurisdiction_size': 'largest',
     'type': 'urban_planning_agency',
     'apolitical': True,
     'covers': ['ghmc_area', 'suburbs_of_ghmc_area']},
    'paragraph_idx': 6},
   {'semantic_id': 'ghmc_area',
    'category': 'administrative_district',
    'attributes': {'name': 'GHMC area',
     'jurisdiction_size': 'second_largest',
     'alternate_name': 'Hyderabad city'},
    'paragraph_idx': 6},
   {'semantic_id': 'suburbs_of_ghmc_area',
    'category': 'administrative_district',
    'attributes': {'name': 'Suburbs of GHMC area',
     'jurisdiction_size': 'medium',
     'type': 'residential'},
    'paragraph_idx': 6},
   {'semantic_id': 'hmwssb',
    'category': 'administrative_body',
    'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board',
     'type': 'water_management'},
    'paragraph_idx': 6}],
  'edges': [{'from_node': 'hmda_area',
    'to_node': 'ghmc_area',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'hmda_area',
    'to_node': 'suburbs_of_ghmc_area',
    'category': 'jurisdiction_size_hierarchy'},
   {'from_node': 'hmda_area', 'to_node': 'hmwssb', 'category': 'manages'}]},
 {'nodes': [{'semantic_id': 'san_juan',
    'category': 'city',
    'attributes': {'name': 'San Juan',
     'location': {'country': 'Puerto Rico', 'region': 'north-eastern coast'},
     'borders': {'north': 'Atlantic Ocean',
      'south': ['Caguas', 'Trujillo Alto'],
      'east': ['Carolina'],
      'west': ['Guaynabo']},
     'area': {'value': 76.93, 'unit': 'square miles'}},
    'paragraph_idx': 7}],
  'edges': []},
 {'nodes': [{'semantic_id': 'san_juan',
    'category': 'city',
    'attributes': {'name': 'San Juan',
     'location': {'country': 'Puerto Rico', 'region': 'north-eastern coast'},
     'borders': {'north': 'Atlantic Ocean',
      'south': ['Caguas', 'Trujillo Alto'],
      'east': ['Carolina'],
      'west': ['Guaynabo']},
     'area': {'value': 76.93, 'unit': 'square miles'},
     'water_bodies': ['San Juan Bay', 'Condado Lagoon', 'San José Lagoon'],
     'water_area': {'value': 29.11,
      'unit': 'square miles',
      'percentage': 37.83}},
    'paragraph_idx': 7}],
  'edges': []},
 {'nodes': [{'semantic_id': 'landkreise_amalgamation',
    'category': 'administrative_district',
    'attributes': {'name': 'Local associations of a special kind',
     'type': 'amalgamation_of_districts',
     'purpose': 'simplification_of_administration'},
    'paragraph_idx': 8},
   {'semantic_id': 'kreisfreie_stadte',
    'category': 'administrative_district',
    'attributes': {'name': 'Kreisfreie Städte',
     'type': 'district-free_city_or_town'},
    'paragraph_idx': 8},
   {'semantic_id': 'urban_hinterland',
    'category': 'administrative_district',
    'attributes': {'name': 'Urban hinterland', 'type': 'urban_area'},
    'paragraph_idx': 8}],
  'edges': [{'from_node': 'landkreise_amalgamation',
    'to_node': 'kreisfreie_stadte',
    'category': 'comprises'},
   {'from_node': 'landkreise_amalgamation',
    'to_node': 'urban_hinterland',
    'category': 'comprises'},
   {'from_node': 'kreisfreie_stadte',
    'to_node': 'urban_hinterland',
    'category': 'grouping'}]},
 {'nodes': [{'semantic_id': 'urban_hinterland',
    'category': 'administrative_district',
    'attributes': {'name': 'Urban hinterland', 'type': 'urban_area'},
    'paragraph_idx': 8},
   {'semantic_id': 'kreisfreie_stadte',
    'category': 'administrative_district',
    'attributes': {'name': 'Kreisfreie Städte',
     'type': 'district-free_city_or_town'},
    'paragraph_idx': 8},
   {'semantic_id': 'landkreise_amalgamation',
    'category': 'administrative_district',
    'attributes': {'name': 'Local associations of a special kind',
     'type': 'amalgamation_of_districts',
     'purpose': 'simplification_of_administration'},
    'paragraph_idx': 8}],
  'edges': [{'from_node': 'kreisfreie_stadte',
    'to_node': 'urban_hinterland',
    'category': 'grouping'},
   {'from_node': 'landkreise_amalgamation',
    'to_node': 'urban_hinterland',
    'category': 'comprises'},
   {'from_node': 'landkreise_amalgamation',
    'to_node': 'kreisfreie_stadte',
    'category': 'comprises'}]},
 {'nodes': [{'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95}},
    'paragraph_idx': 9}],
  'edges': []},
 {'nodes': [{'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95},
     'area': {'value': 34.6, 'unit': 'square kilometres'},
     'coastline': {'length': 32, 'unit': 'km'},
     'highest_point': 'Mount Bates'},
    'paragraph_idx': 9}],
  'edges': []},
 {'nodes': [{'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95},
     'area': {'value': 34.6, 'unit': 'square kilometres'},
     'coastline': {'length': 32, 'unit': 'km'},
     'highest_point': 'Mount Bates'},
    'paragraph_idx': 9},
   {'semantic_id': 'phillip_island',
    'category': 'island',
    'attributes': {'name': 'Phillip Island',
     'location': {'relation': 'second largest island of the territory'}},
    'paragraph_idx': 9}],
  'edges': [{'from_node': 'norfolk_island',
    'to_node': 'phillip_island',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'phillip_island',
    'category': 'island',
    'attributes': {'name': 'Phillip Island',
     'location': {'relation': 'second largest island of the territory',
      'coordinates': {'latitude': -29.117, 'longitude': 167.95},
      'distance_from_main_island': {'value': 7, 'unit': 'kilometres'}}},
    'paragraph_idx': 9},
   {'semantic_id': 'norfolk_island',
    'category': 'island',
    'attributes': {'name': 'Norfolk Island',
     'location': {'ocean': 'South Pacific Ocean',
      'relative_location': 'east of Australian mainland'},
     'coordinates': {'latitude': -29.033, 'longitude': 167.95},
     'area': {'value': 34.6, 'unit': 'square kilometres'},
     'coastline': {'length': 32, 'unit': 'km'},
     'highest_point': 'Mount Bates'},
    'paragraph_idx': 9}],
  'edges': [{'from_node': 'norfolk_island',
    'to_node': 'phillip_island',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'phillip_island',
    'category': 'island',
    'attributes': {'name': 'Phillip Island',
     'location': {'relation': 'second largest island of the territory',
      'coordinates': {'latitude': -29.117, 'longitude': 167.95},
      'distance_from_main_island': {'value': 7, 'unit': 'kilometres'}}},
    'paragraph_idx': 9}],
  'edges': [{'from_node': 'phillip_island',
    'to_node': 'norfolk_island',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'perm',
    'category': 'city',
    'attributes': {'name': 'Perm',
     'location': {'river': 'Kama River',
      'region': 'Perm Krai',
      'country': 'Russia',
      'geography': 'European part of Russia near the Ural Mountains'},
     'administrative_status': 'administrative centre'},
    'paragraph_idx': 10}],
  'edges': [{'from_node': 'perm',
    'to_node': 'perm_krai',
    'category': 'administrative_centre_of'},
   {'from_node': 'perm', 'to_node': 'kama_river', 'category': 'located_on'},
   {'from_node': 'perm', 'to_node': 'ural_mountains', 'category': 'near'},
   {'from_node': 'perm', 'to_node': 'russia', 'category': 'located_in'},
   {'from_node': 'perm', 'to_node': 'europe', 'category': 'located_in'}]},
 {'nodes': [{'semantic_id': 'star_stadium',
    'category': 'stadium',
    'attributes': {'name': 'Star (Zvezda) Stadium',
     'former_name': 'Lenin Komsomol Stadium',
     'location': {'city': 'Perm', 'country': 'Russia'},
     'usage': 'football matches',
     'home_team': 'FC Amkar Perm',
     'capacity': 17000,
     'opened': '1969-06-05'},
    'paragraph_idx': 11},
   {'semantic_id': 'perm',
    'category': 'city',
    'attributes': {'name': 'Perm',
     'location': {'river': 'Kama River',
      'region': 'Perm Krai',
      'country': 'Russia',
      'geography': 'European part of Russia near the Ural Mountains'},
     'administrative_status': 'administrative centre'},
    'paragraph_idx': 11}],
  'edges': [{'from_node': 'star_stadium',
    'to_node': 'perm',
    'category': 'located_in'}]},
 {'nodes': [{'semantic_id': 'paea',
    'category': 'municipality',
    'attributes': {'name': 'Paea',
     'location': {'island': 'Tahiti',
      'subdivision': 'Windward Islands',
      'region': 'Society Islands',
      'country': 'French Polynesia',
      'territory': 'France'},
     'population': 16282},
    'paragraph_idx': 12}],
  'edges': [{'from_node': 'paea',
    'to_node': 'papeete',
    'category': 'located_in'},
   {'from_node': 'paea', 'to_node': 'tahiti', 'category': 'located_on'},
   {'from_node': 'paea', 'to_node': 'windward_islands', 'category': 'part_of'},
   {'from_node': 'paea', 'to_node': 'society_islands', 'category': 'part_of'},
   {'from_node': 'paea',
    'to_node': 'french_polynesia',
    'category': 'located_in'},
   {'from_node': 'paea', 'to_node': 'france', 'category': 'administered_by'}]},
 {'nodes': [{'semantic_id': 'paea',
    'category': 'municipality',
    'attributes': {'name': 'Paea',
     'location': {'island': 'Tahiti',
      'subdivision': 'Windward Islands',
      'region': 'Society Islands',
      'country': 'French Polynesia',
      'territory': 'France'},
     'population': 13021},
    'paragraph_idx': 12}],
  'edges': []},
 {'nodes': [{'semantic_id': 'potamogeton_amplifolius',
    'category': 'plant',
    'attributes': {'common_names': ['largeleaf pondweed',
      'broad-leaved pondweed'],
     'habitat': ['lakes', 'ponds', 'rivers'],
     'water_depth': 'often in deep water',
     'distribution': 'North America'},
    'paragraph_idx': 13}],
  'edges': []},
 {'nodes': [{'semantic_id': 'biysky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Biysky District',
     'location': {'region': 'Altai Krai',
      'country': 'Russia',
      'geography': 'east of the krai'},
     'administrative_status': 'administrative and municipal district (raion)',
     'bordering_districts': ['Zonalny',
      'Tselinny',
      'Soltonsky',
      'Krasnogorsky',
      'Sovetsky',
      'Smolensky']},
    'paragraph_idx': 14}],
  'edges': []},
 {'nodes': [{'semantic_id': 'soltonsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Soltonsky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'krasnogorsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Krasnogorsky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'sovetsky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Sovetsky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'smolensky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Smolensky District',
     'location': {'region': 'Altai Krai', 'country': 'Russia'}},
    'paragraph_idx': 14},
   {'semantic_id': 'biysky_district',
    'category': 'administrative_district',
    'attributes': {'name': 'Biysky District',
     'location': {'region': 'Altai Krai',
      'country': 'Russia',
      'geography': 'east of the krai'},
     'administrative_status': 'administrative and municipal district (raion)',
     'bordering_districts': ['Soltonsky_district',
      'Krasnogorsky_district',
      'Sovetsky_district',
      'Smolensky_district',
      'City_of_Biysk']},
    'paragraph_idx': 14},
   {'semantic_id': 'city_of_biysk',
    'category': 'city',
    'attributes': {'name': 'Biysk',
     'location': {'region': 'Altai Krai', 'country': 'Russia'},
     'administrative_status': 'administrative center'},
    'paragraph_idx': 14}],
  'edges': [{'from_node': 'biysky_district',
    'to_node': 'soltonsky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'krasnogorsky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'sovetsky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'smolensky_district',
    'category': 'bordering'},
   {'from_node': 'biysky_district',
    'to_node': 'city_of_biysk',
    'category': 'bordering'}]},
 {'nodes': [{'semantic_id': 'contoocook_lake',
    'category': 'lake',
    'attributes': {'name': 'Contoocook Lake',
     'location': {'county': 'Cheshire County',
      'state': 'New Hampshire',
      'country': 'United States',
      'towns': ['Jaffrey', 'Rindge']},
     'connection': {'to': 'pool_pond', 'type': 'forms_headwaters_of'},
     'outflow': {'to': 'contoocook_river', 'direction': 'north'},
     'outflow_destination': 'merrimack_river'},
    'paragraph_idx': 15},
   {'semantic_id': 'pool_pond',
    'category': 'lake',
    'attributes': {'name': 'Pool Pond',
     'connection': {'to': 'contoocook_lake', 'type': 'forms_headwaters_of'}},
    'paragraph_idx': 15},
   {'semantic_id': 'contoocook_river',
    'category': 'river',
    'attributes': {'name': 'Contoocook River',
     'flow_direction': 'north',
     'outflow_destination': 'merrimack_river'},
    'paragraph_idx': 15},
   {'semantic_id': 'merrimack_river',
    'category': 'river',
    'attributes': {'name': 'Merrimack River',
     'location': {'city': 'Penacook',
      'state': 'New Hampshire',
      'country': 'United States'}},
    'paragraph_idx': 15}],
  'edges': [{'from_node': 'contoocook_lake',
    'to_node': 'pool_pond',
    'category': 'forms_headwaters_of'},
   {'from_node': 'contoocook_lake',
    'to_node': 'contoocook_river',
    'category': 'outflows_to'},
   {'from_node': 'contoocook_river',
    'to_node': 'merrimack_river',
    'category': 'flows_into'}]},
 {'nodes': [{'semantic_id': 'contoocook_river',
    'category': 'river',
    'attributes': {'name': 'Contoocook River',
     'flow_direction': 'north',
     'outflow_destination': 'merrimack_river'},
    'paragraph_idx': 15},
   {'semantic_id': 'merrimack_river',
    'category': 'river',
    'attributes': {'name': 'Merrimack River',
     'location': {'city': 'Penacook',
      'state': 'New Hampshire',
      'country': 'United States'}},
    'paragraph_idx': 15}],
  'edges': [{'from_node': 'contoocook_river',
    'to_node': 'merrimack_river',
    'category': 'flows_into'}]},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'pronunciation': {'english': ['/ˈboʊɡətɑː/', '/ˌbɒɡəˈtɑː/', '/ˌboʊ-/'],
      'spanish': 'boɣoˈta'},
     'official_name': 'Bogotá'},
    'paragraph_idx': 16}],
  'edges': []},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/', '/ˌboʊɡəˈtɑː/', '/ˌboɪ-/'],
      'spanish': 'boɣoˈta'},
     'official_name': 'Bogotá',
     'administration': 'Capital District'},
    'paragraph_idx': 16}],
  'edges': []},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/', '/ˌboʊ-/', '/ˈbɔɪ-/'],
      'spanish': 'boˈɣota'},
     'official_name': 'Bogotá',
     'administration': 'Capital District'},
    'paragraph_idx': 16},
   {'semantic_id': 'colombia',
    'category': 'country',
    'attributes': {'name': 'Colombia',
     'capital': 'Bogotá',
     'status': 'capital and largest city'},
    'paragraph_idx': 16},
   {'semantic_id': 'cundinamarca',
    'category': 'region',
    'attributes': {'name': 'Cundinamarca',
     'relation_to_bogota': 'often thought of as part of'},
    'paragraph_idx': 16},
   {'semantic_id': 'political_center',
    'category': 'function',
    'attributes': {'name': 'political center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'economic_center',
    'category': 'function',
    'attributes': {'name': 'economic center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'administrative_center',
    'category': 'function',
    'attributes': {'name': 'administrative center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'industrial_center',
    'category': 'function',
    'attributes': {'name': 'industrial center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'artistic_center',
    'category': 'function',
    'attributes': {'name': 'artistic center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'cultural_center',
    'category': 'function',
    'attributes': {'name': 'cultural center', 'location': 'Bogotá'},
    'paragraph_idx': 16},
   {'semantic_id': 'sports_center',
    'category': 'function',
    'attributes': {'name': 'sports center', 'location': 'Bogotá'},
    'paragraph_idx': 16}],
  'edges': [{'from_node': 'bogota',
    'to_node': 'colombia',
    'category': 'capital_of'},
   {'from_node': 'bogota', 'to_node': 'cundinamarca', 'category': 'part_of'},
   {'from_node': 'bogota',
    'to_node': 'political_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'economic_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'administrative_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'industrial_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'artistic_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'cultural_center',
    'category': 'functions_as'},
   {'from_node': 'bogota',
    'to_node': 'sports_center',
    'category': 'functions_as'}]},
 {'nodes': [{'semantic_id': 'bogota',
    'category': 'city',
    'attributes': {'name': 'Bogotá',
     'functions': ['political center',
      'economic center',
      'administrative center',
      'industrial center',
      'artistic center',
      'cultural center',
      'sports center']},
    'paragraph_idx': 16},
   {'semantic_id': 'colombia',
    'category': 'country',
    'attributes': {'name': 'Colombia',
     'capital': 'Bogotá',
     'status': 'capital and largest city'},
    'paragraph_idx': 16},
   {'semantic_id': 'cundinamarca',
    'category': 'region',
    'attributes': {'name': 'Cundinamarca',
     'relation_to_bogota': 'often thought of as part of'},
    'paragraph_idx': 16}],
  'edges': [{'from_node': 'bogota',
    'to_node': 'colombia',
    'category': 'capital_of'},
   {'from_node': 'bogota', 'to_node': 'cundinamarca', 'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'intracellular_fluid',
    'category': 'fluid',
    'attributes': {'name': 'intracellular fluid',
     'volume': '2/3 of body water',
     'amount_in_72_kg_body': '25 litres',
     'percentage_of_total_body_fluid': 62.5},
    'paragraph_idx': 17},
   {'semantic_id': 'body_fluid',
    'category': 'fluid',
    'attributes': {'name': 'body fluid',
     'total_volume_in_72_kg_body': '40 litres'},
    'paragraph_idx': 17}],
  'edges': [{'from_node': 'intracellular_fluid',
    'to_node': 'body_fluid',
    'category': 'part_of'}]},
 {'nodes': [{'semantic_id': 'territorial_waters',
    'category': 'geographic_area',
    'attributes': {'name': 'territorial waters',
     'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
     'source': '1982 United Nations Convention on the Law of the Sea'},
    'paragraph_idx': 18},
   {'semantic_id': 'baseline',
    'category': 'geographic_feature',
    'attributes': {'name': 'baseline',
     'definition': 'usually the mean low-water mark of a coastal state'},
    'paragraph_idx': 18},
   {'semantic_id': 'coastal_state',
    'category': 'legal_entity',
    'attributes': {'name': 'coastal state'},
    'paragraph_idx': 18}],
  'edges': [{'from_node': 'territorial_waters',
    'to_node': 'baseline',
    'category': 'extends_from'},
   {'from_node': 'territorial_waters',
    'to_node': 'coastal_state',
    'category': 'belongs_to'}]},
 {'nodes': [{'semantic_id': 'territorial_sea',
    'category': 'geographic_area',
    'attributes': {'name': 'territorial sea',
     'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
     'sovereign_territory': True,
     'foreign_ship_passage': 'innocent passage through it or transit passage for straits',
     'jurisdiction': 'extends to airspace over and seabed below'},
    'paragraph_idx': 18},
   {'semantic_id': 'baseline',
    'category': 'geographic_feature',
    'attributes': {'name': 'baseline',
     'definition': 'usually the mean low-water mark of a coastal state'},
    'paragraph_idx': 18},
   {'semantic_id': 'coastal_state',
    'category': 'legal_entity',
    'attributes': {'name': 'coastal state'},
    'paragraph_idx': 18}],
  'edges': [{'from_node': 'territorial_sea',
    'to_node': 'coastal_state',
    'category': 'belongs_to'},
   {'from_node': 'territorial_sea',
    'to_node': 'baseline',
    'category': 'extends_from'}]},
 {'nodes': [{'semantic_id': 'strait',
    'category': 'geographic_feature',
    'attributes': {'name': 'strait',
     'sovereign_territory': True,
     'jurisdiction': {'airspace': True, 'seabed': True}},
    'paragraph_idx': 18},
   {'semantic_id': 'maritime_delimitation',
    'category': 'legal_concept',
    'attributes': {'name': 'maritime delimitation',
     'definition': "Adjustment of the boundaries of a coastal state's territorial sea, exclusive economic zone, or continental shelf"},
    'paragraph_idx': 18}],
  'edges': [{'from_node': 'strait',
    'to_node': 'coastal_state',
    'category': 'belongs_to'},
   {'from_node': 'strait', 'to_node': 'airspace', 'category': 'extends_to'},
   {'from_node': 'strait', 'to_node': 'seabed', 'category': 'extends_to'},
   {'from_node': 'maritime_delimitation',
    'to_node': 'coastal_state',
    'category': 'involves'}]},
 {'nodes': [{'semantic_id': 'cyprus_popular_bank',
    'category': 'organization',
    'attributes': {'name': 'Cyprus Popular Bank',
     'previous_name': 'Marfin Popular Bank',
     'status': 'shuttered in 2013',
     'size': 'second largest banking group in Cyprus',
     'parent': 'Bank of Cyprus'},
    'paragraph_idx': 19},
   {'semantic_id': 'bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Bank of Cyprus',
     'size': 'largest banking group in Cyprus',
     'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'cyprus_popular_bank',
    'to_node': 'bank_of_cyprus',
    'category': 'merged_with'}]},
 {'nodes': [{'semantic_id': 'cyprus_popular_bank',
    'category': 'organization',
    'attributes': {'name': 'Cyprus Popular Bank',
     'previous_name': 'Marfin Popular Bank',
     'status': 'shuttered in 2013',
     'size': 'second largest banking group in Cyprus',
     'parent': 'Bank of Cyprus'},
    'paragraph_idx': 19},
   {'semantic_id': 'bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Bank of Cyprus',
     'size': 'largest banking group in Cyprus',
     'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"},
    'paragraph_idx': 19},
   {'semantic_id': 'uninsured_depositor',
    'category': 'stakeholder',
    'attributes': {'deposit_amount': '>100,000 Euro',
     'treatment': 'subject to a bail-in'},
    'paragraph_idx': 19},
   {'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds"},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'cyprus_popular_bank',
    'to_node': 'bank_of_cyprus',
    'category': 'merged_with'},
   {'from_node': 'uninsured_depositor',
    'to_node': 'legacy_entity',
    'category': 'holds_deposits'}]},
 {'nodes': [{'semantic_id': 'uninsured_depositor',
    'category': 'stakeholder',
    'attributes': {'deposit_amount': '>100,000 Euro',
     'treatment': 'subject to a bail-in',
     'new_role': 'new shareholders of the legacy entity'},
    'paragraph_idx': 19},
   {'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat'},
    'paragraph_idx': 19},
   {'semantic_id': 'bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Bank of Cyprus',
     'size': 'largest banking group in Cyprus',
     'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"},
    'paragraph_idx': 19},
   {'semantic_id': 'cyprus_popular_bank',
    'category': 'organization',
    'attributes': {'name': 'Cyprus Popular Bank',
     'previous_name': 'Marfin Popular Bank',
     'status': 'shuttered in 2013',
     'size': 'second largest banking group in Cyprus',
     'parent': 'Bank of Cyprus'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'uninsured_depositor',
    'to_node': 'legacy_entity',
    'category': 'holds_deposits'},
   {'from_node': 'cyprus_popular_bank',
    'to_node': 'bank_of_cyprus',
    'category': 'merged_with'}]},
 {'nodes': [{'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat',
     'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'},
    'paragraph_idx': 19},
   {'semantic_id': 'special_administrator',
    'category': 'stakeholder',
    'attributes': {'name': 'Andri Antoniadou',
     'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'legacy_entity',
    'to_node': 'special_administrator',
    'category': 'managed_by'}]},
 {'nodes': [{'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat',
     'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'},
    'paragraph_idx': 19},
   {'semantic_id': 'special_administrator',
    'category': 'stakeholder',
    'attributes': {'name': 'Andri Antoniadou',
     'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'},
    'paragraph_idx': 19},
   {'semantic_id': 'veteran_banker',
    'category': 'stakeholder',
    'attributes': {'name': 'Chris Pavlou', 'expertise': 'Treasury'},
    'paragraph_idx': 19},
   {'semantic_id': 'central_bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Central Bank of Cyprus',
     'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'legacy_entity',
    'to_node': 'special_administrator',
    'category': 'managed_by'},
   {'from_node': 'central_bank_of_cyprus',
    'to_node': 'legacy_entity',
    'category': 'amended_lawyers_without_consulting'}]},
 {'nodes': [{'semantic_id': 'central_bank_of_cyprus',
    'category': 'organization',
    'attributes': {'name': 'Central Bank of Cyprus',
     'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'},
    'paragraph_idx': 19},
   {'semantic_id': 'veteran_banker',
    'category': 'stakeholder',
    'attributes': {'name': 'Chris Pavlou', 'expertise': 'Treasury'},
    'paragraph_idx': 19},
   {'semantic_id': 'special_administrator',
    'category': 'stakeholder',
    'attributes': {'name': 'Andri Antoniadou',
     'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'},
    'paragraph_idx': 19},
   {'semantic_id': 'legacy_entity',
    'category': 'organization',
    'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
     'ownership_stake': '4.8% of Bank of Cyprus',
     'board_representation': 'does not hold a board seat',
     'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'},
    'paragraph_idx': 19},
   {'semantic_id': 'marfin_investment_group',
    'category': 'stakeholder',
    'attributes': {'name': 'Marfin Investment Group',
     'role': 'former major shareholder of the legacy entity'},
    'paragraph_idx': 19}],
  'edges': [{'from_node': 'central_bank_of_cyprus',
    'to_node': 'legacy_entity',
    'category': 'amended_lawyers_without_consulting'},
   {'from_node': 'legacy_entity',
    'to_node': 'special_administrator',
    'category': 'managed_by'},
   {'from_node': 'veteran_banker',
    'to_node': 'legacy_entity',
    'category': 'took_over_as_special_administrator'},
   {'from_node': 'legacy_entity',
    'to_node': 'marfin_investment_group',
    'category': 'pursuing_legal_action_against'}]}]
graph_history.history
OrderedDict([(UUID('acc73dc0-d5ae-499e-8cc4-63f70f2d935f'),
              {'nodes': {'semantic_id': 'insular_government',
                'category': 'political_entity',
                'attributes': {'name': 'Insular Government',
                 'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'}}}),
             (UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
              {'nodes': {'semantic_id': 'commonwealth_of_the_philippines',
                'category': 'political_entity',
                'attributes': {'name': 'Commonwealth of the Philippines',
                 'years_active': '1935 to 1946',
                 'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'}}}),
             (UUID('9555e806-1679-4bc0-99d7-55717f21bdef'),
              {'nodes': {'semantic_id': 'tydings_mcduffie_act',
                'category': 'legal_document',
                'attributes': {'name': 'Tydings–McDuffie Act',
                 'description': "The act that established the Commonwealth of the Philippines as a transitional administration in preparation for the country's full achievement of independence."}}}),
             (UUID('90d9b404-119e-4b31-a0cf-ad102105687f'),
              {'edges': {'from_node': UUID('acc73dc0-d5ae-499e-8cc4-63f70f2d935f'),
                'to_node': UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
                'category': 'replaced'}}),
             (UUID('2cdca930-c9f5-4d65-8da0-4fcc351ac2d0'),
              {'edges': {'from_node': UUID('9555e806-1679-4bc0-99d7-55717f21bdef'),
                'to_node': UUID('38d26bc0-e096-4524-945a-77b9e4ae0f49'),
                'category': 'established'}}),
             (UUID('c7120f30-4152-4e88-bec1-698bfdd2d5e1'),
              {'nodes': {'semantic_id': 'lake_oesa',
                'category': 'natural_feature',
                'attributes': {'name': 'Lake Oesa',
                 'elevation': 2267,
                 'elevation_unit': 'm',
                 'location': {'park': 'Yoho National Park',
                  'city': 'Field',
                  'province': 'British Columbia',
                  'country': 'Canada'}}}}),
             (UUID('7c83cf46-05fc-491d-9667-20acf68fe70f'),
              {'nodes': {'semantic_id': 'arafura_swamp',
                'category': 'natural_feature',
                'attributes': {'name': 'Arafura Swamp',
                 'type': 'inland freshwater wetland',
                 'location': {'region': 'Arnhem Land',
                  'territory': 'Northern Territory',
                  'country': 'Australia'},
                 'size': {'area': {'value': None, 'unit': 'km2'},
                  'expansion_during_wet_season': True},
                 'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia',
                 'cultural_significance': 'of great cultural significance to the Yolngu people, in particular the Ramingining community',
                 'filming_location': 'Ten Canoes'}}}),
             (UUID('f39070c7-1d59-4d1b-a4a4-c8a18c222f85'),
              {'nodes': {'semantic_id': 'wapizagonke_lake',
                'category': 'natural_feature',
                'attributes': {'name': 'Wapizagonke Lake',
                 'type': 'body of water',
                 'location': {'sector': 'Lac-Wapizagonke',
                  'city': 'Shawinigan',
                  'park': 'La Mauricie National Park',
                  'region': 'Mauricie',
                  'province': 'Quebec',
                  'country': 'Canada'}}}}),
             (UUID('9a8a31e6-d311-4085-845d-48ae33707b51'),
              {'nodes': {'semantic_id': 'amursky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Amursky District',
                 'country': 'Russia',
                 'region': 'Khabarovsk Krai'}}}),
             (UUID('f85fb9ae-7e0f-46b2-b039-63ee01e6ce5d'),
              {'nodes': {'semantic_id': 'khabarovsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Khabarovsky District',
                 'country': 'Russia',
                 'region': 'Khabarovsk Krai',
                 'area': None,
                 'area_unit': None,
                 'administrative_center': 'Khabarovsk'}}}),
             (UUID('21425234-233f-4f40-b6b3-98e818755151'),
              {'edges': {'from_node': UUID('f85fb9ae-7e0f-46b2-b039-63ee01e6ce5d'),
                'to_node': UUID('9a8a31e6-d311-4085-845d-48ae33707b51'),
                'category': 'separated_by'}}),
             (UUID('43464202-f216-469b-94d2-8ca7ad3d92f1'),
              {'nodes': {'semantic_id': 'silver_lake',
                'category': 'natural_feature',
                'attributes': {'name': 'Silver Lake',
                 'type': 'body of water',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States',
                  'towns': ['Harrisville', 'Nelson']},
                 'outflows': ['Minnewawa Brook', 'The Branch'],
                 'ultimate_recipient': 'Connecticut River'}}}),
             (UUID('f938374c-ec1e-49b0-b049-91257d6ae64d'),
              {'nodes': {'semantic_id': 'hyderabad_police_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad Police area',
                 'jurisdiction_size': 'smallest'}}}),
             (UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
              {'nodes': {'semantic_id': 'hyderabad_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad district',
                 'jurisdiction_size': 'second_smallest'}}}),
             (UUID('b3beb831-6954-4ca9-87f3-052767e60856'),
              {'edges': {'from_node': UUID('f938374c-ec1e-49b0-b049-91257d6ae64d'),
                'to_node': UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('252323ba-7590-4b55-ae43-e6b9da12ff9e'),
              {'edges': {'from_node': UUID('595a2f04-abae-4845-b45c-6df6a8ed9ab5'),
                'to_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('723c0ccc-8f09-43ad-bbcf-97b08d5c1bd8'),
              {'edges': {'from_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'to_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
              {'nodes': {'semantic_id': 'hmda_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area',
                 'jurisdiction_size': 'largest',
                 'type': 'urban_planning_agency',
                 'apolitical': True,
                 'covers': ['ghmc_area', 'suburbs_of_ghmc_area']}}}),
             (UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
              {'nodes': {'semantic_id': 'ghmc_area',
                'category': 'administrative_district',
                'attributes': {'name': 'GHMC area',
                 'jurisdiction_size': 'second_largest',
                 'alternate_name': 'Hyderabad city'}}}),
             (UUID('90c5ce53-79aa-4aaf-a27d-7400e6ac1c08'),
              {'nodes': {'semantic_id': 'suburbs_of_ghmc_area',
                'category': 'administrative_district',
                'attributes': {'name': 'Suburbs of GHMC area',
                 'jurisdiction_size': 'medium',
                 'type': 'residential'}}}),
             (UUID('9a4b69f8-749a-4b7c-a3e3-e2db4f3823d1'),
              {'nodes': {'semantic_id': 'hmwssb',
                'category': 'administrative_body',
                'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board',
                 'type': 'water_management'}}}),
             (UUID('c48817dd-b382-4db9-ad18-d3e2190cdcf5'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('631d3937-3f47-4598-8f45-bdb90d5eb91f'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('4b64fe19-941d-44ce-8cd0-8f94f503dea5'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('90c5ce53-79aa-4aaf-a27d-7400e6ac1c08'),
                'category': 'jurisdiction_size_hierarchy'}}),
             (UUID('268f7e8f-a2c7-4a83-94b9-24baeca1be73'),
              {'edges': {'from_node': UUID('4c681f75-6f72-4771-831a-4aa16149195a'),
                'to_node': UUID('9a4b69f8-749a-4b7c-a3e3-e2db4f3823d1'),
                'category': 'manages'}}),
             (UUID('7956f84b-20a8-4836-ae7a-c7311d716cd1'),
              {'nodes': {'semantic_id': 'san_juan',
                'category': 'city',
                'attributes': {'name': 'San Juan',
                 'location': {'country': 'Puerto Rico',
                  'region': 'north-eastern coast'},
                 'borders': {'north': 'Atlantic Ocean',
                  'south': ['Caguas', 'Trujillo Alto'],
                  'east': ['Carolina'],
                  'west': ['Guaynabo']},
                 'area': {'value': 76.93, 'unit': 'square miles'},
                 'water_bodies': ['San Juan Bay',
                  'Condado Lagoon',
                  'San José Lagoon'],
                 'water_area': {'value': 29.11,
                  'unit': 'square miles',
                  'percentage': 37.83}}}}),
             (UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
              {'nodes': {'semantic_id': 'urban_hinterland',
                'category': 'administrative_district',
                'attributes': {'name': 'Urban hinterland',
                 'type': 'urban_area'}}}),
             (UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
              {'nodes': {'semantic_id': 'kreisfreie_stadte',
                'category': 'administrative_district',
                'attributes': {'name': 'Kreisfreie Städte',
                 'type': 'district-free_city_or_town'}}}),
             (UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
              {'nodes': {'semantic_id': 'landkreise_amalgamation',
                'category': 'administrative_district',
                'attributes': {'name': 'Local associations of a special kind',
                 'type': 'amalgamation_of_districts',
                 'purpose': 'simplification_of_administration'}}}),
             (UUID('0114478c-292d-43e4-940c-349f0b8d8060'),
              {'edges': {'from_node': UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
                'to_node': UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
                'category': 'grouping'}}),
             (UUID('9c504b5a-98b9-4620-9d56-0c18fe35005f'),
              {'edges': {'from_node': UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
                'to_node': UUID('75abfc38-a7ea-4db7-9c2b-5dddaf51c493'),
                'category': 'comprises'}}),
             (UUID('6b27c2fc-9694-4f6e-b61c-425360f1c8f7'),
              {'edges': {'from_node': UUID('e7748608-55fe-4ad2-b17a-83af70f4fc73'),
                'to_node': UUID('6f12633f-2502-4467-a29c-ebe5b0699810'),
                'category': 'comprises'}}),
             (UUID('7715b916-5807-45f4-8408-2770897a7581'),
              {'nodes': {'semantic_id': 'norfolk_island',
                'category': 'island',
                'attributes': {'name': 'Norfolk Island',
                 'location': {'ocean': 'South Pacific Ocean',
                  'relative_location': 'east of Australian mainland'},
                 'coordinates': {'latitude': -29.033, 'longitude': 167.95},
                 'area': {'value': 34.6, 'unit': 'square kilometres'},
                 'coastline': {'length': 32, 'unit': 'km'},
                 'highest_point': 'Mount Bates'}}}),
             (UUID('0db9008a-ae7e-4e32-a7b3-ae5c7d8f93d2'),
              {'edges': {'from_node': UUID('7715b916-5807-45f4-8408-2770897a7581'),
                'to_node': UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
                'category': 'part_of'}}),
             (UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
              {'nodes': {'semantic_id': 'phillip_island',
                'category': 'island',
                'attributes': {'name': 'Phillip Island',
                 'location': {'relation': 'second largest island of the territory',
                  'coordinates': {'latitude': -29.117, 'longitude': 167.95},
                  'distance_from_main_island': {'value': 7,
                   'unit': 'kilometres'}}}}}),
             (UUID('52ec31ee-9fc6-42a1-9e6c-daf0ea0a9390'),
              {'edges': {'from_node': UUID('48a3d3e7-34c1-4a64-93ba-72a6108b3e57'),
                'to_node': UUID('7715b916-5807-45f4-8408-2770897a7581'),
                'category': 'part_of'}}),
             (UUID('08f207c1-6915-4237-ac4e-902815d9cfae'),
              {'nodes': {'semantic_id': 'star_stadium',
                'category': 'stadium',
                'attributes': {'name': 'Star (Zvezda) Stadium',
                 'former_name': 'Lenin Komsomol Stadium',
                 'location': {'city': 'Perm', 'country': 'Russia'},
                 'usage': 'football matches',
                 'home_team': 'FC Amkar Perm',
                 'capacity': 17000,
                 'opened': '1969-06-05'}}}),
             (UUID('5be79bf7-cd2a-487f-8833-36ae11257df8'),
              {'nodes': {'semantic_id': 'perm',
                'category': 'city',
                'attributes': {'name': 'Perm',
                 'location': {'river': 'Kama River',
                  'region': 'Perm Krai',
                  'country': 'Russia',
                  'geography': 'European part of Russia near the Ural Mountains'},
                 'administrative_status': 'administrative centre'}}}),
             (UUID('e9a848ba-35b3-42e4-b9e6-aa0ea8651d92'),
              {'edges': {'from_node': UUID('08f207c1-6915-4237-ac4e-902815d9cfae'),
                'to_node': UUID('5be79bf7-cd2a-487f-8833-36ae11257df8'),
                'category': 'located_in'}}),
             (UUID('57c8adca-9dcc-4257-be85-bfb48eacd310'),
              {'nodes': {'semantic_id': 'paea',
                'category': 'municipality',
                'attributes': {'name': 'Paea',
                 'location': {'island': 'Tahiti',
                  'subdivision': 'Windward Islands',
                  'region': 'Society Islands',
                  'country': 'French Polynesia',
                  'territory': 'France'},
                 'population': 13021}}}),
             (UUID('62866902-6285-4c38-98b0-7496dbe73fd3'),
              {'nodes': {'semantic_id': 'potamogeton_amplifolius',
                'category': 'plant',
                'attributes': {'common_names': ['largeleaf pondweed',
                  'broad-leaved pondweed'],
                 'habitat': ['lakes', 'ponds', 'rivers'],
                 'water_depth': 'often in deep water',
                 'distribution': 'North America'}}}),
             (UUID('0da6e66c-64c6-4155-bb6f-88e1b0c9a349'),
              {'nodes': {'semantic_id': 'soltonsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Soltonsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('2bdd9668-a653-4815-bcde-f43dcf5ff4a5'),
              {'nodes': {'semantic_id': 'krasnogorsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Krasnogorsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('e9620276-009f-4f5a-99b6-b41d93fbe791'),
              {'nodes': {'semantic_id': 'sovetsky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Sovetsky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('4bdbb329-0688-4621-9c67-e1af0e8d57fe'),
              {'nodes': {'semantic_id': 'smolensky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Smolensky District',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}),
             (UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
              {'nodes': {'semantic_id': 'biysky_district',
                'category': 'administrative_district',
                'attributes': {'name': 'Biysky District',
                 'location': {'region': 'Altai Krai',
                  'country': 'Russia',
                  'geography': 'east of the krai'},
                 'administrative_status': 'administrative and municipal district (raion)',
                 'bordering_districts': ['Soltonsky_district',
                  'Krasnogorsky_district',
                  'Sovetsky_district',
                  'Smolensky_district',
                  'City_of_Biysk']}}}),
             (UUID('a375ae9a-9282-4916-9e6b-02da8a824e3f'),
              {'nodes': {'semantic_id': 'city_of_biysk',
                'category': 'city',
                'attributes': {'name': 'Biysk',
                 'location': {'region': 'Altai Krai', 'country': 'Russia'},
                 'administrative_status': 'administrative center'}}}),
             (UUID('6674891e-b1e6-4c85-9821-54b4a7fd923a'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('0da6e66c-64c6-4155-bb6f-88e1b0c9a349'),
                'category': 'bordering'}}),
             (UUID('5f81b958-60c6-40a5-8bea-9fdacae9f671'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('2bdd9668-a653-4815-bcde-f43dcf5ff4a5'),
                'category': 'bordering'}}),
             (UUID('8077d42e-5e70-44dd-aade-c764087f139f'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('e9620276-009f-4f5a-99b6-b41d93fbe791'),
                'category': 'bordering'}}),
             (UUID('abe4eb3e-0a01-48f2-b97d-67a30519a4d3'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('4bdbb329-0688-4621-9c67-e1af0e8d57fe'),
                'category': 'bordering'}}),
             (UUID('a27a6ceb-536d-4dbe-9798-e5d86e9755c6'),
              {'edges': {'from_node': UUID('d3fca76e-6cb9-47b7-8fdf-282cd0de4bee'),
                'to_node': UUID('a375ae9a-9282-4916-9e6b-02da8a824e3f'),
                'category': 'bordering'}}),
             (UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
              {'nodes': {'semantic_id': 'contoocook_lake',
                'category': 'lake',
                'attributes': {'name': 'Contoocook Lake',
                 'location': {'county': 'Cheshire County',
                  'state': 'New Hampshire',
                  'country': 'United States',
                  'towns': ['Jaffrey', 'Rindge']},
                 'connection': {'to': 'pool_pond',
                  'type': 'forms_headwaters_of'},
                 'outflow': {'to': 'contoocook_river', 'direction': 'north'},
                 'outflow_destination': 'merrimack_river'}}}),
             (UUID('1eafa7a8-a830-4472-8b32-c071159c8140'),
              {'nodes': {'semantic_id': 'pool_pond',
                'category': 'lake',
                'attributes': {'name': 'Pool Pond',
                 'connection': {'to': 'contoocook_lake',
                  'type': 'forms_headwaters_of'}}}}),
             (UUID('f841df5f-a4ff-4a6b-8656-1458252aca37'),
              {'edges': {'from_node': UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
                'to_node': UUID('1eafa7a8-a830-4472-8b32-c071159c8140'),
                'category': 'forms_headwaters_of'}}),
             (UUID('d50d66d9-c89d-4c0a-9c61-fa4e856ab2c2'),
              {'edges': {'from_node': UUID('3d2af122-d4b9-47f1-a034-c9f23e262e14'),
                'to_node': UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
                'category': 'outflows_to'}}),
             (UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
              {'nodes': {'semantic_id': 'contoocook_river',
                'category': 'river',
                'attributes': {'name': 'Contoocook River',
                 'flow_direction': 'north',
                 'outflow_destination': 'merrimack_river'}}}),
             (UUID('0c92123d-fbc3-47e7-b752-65df1d6680c0'),
              {'nodes': {'semantic_id': 'merrimack_river',
                'category': 'river',
                'attributes': {'name': 'Merrimack River',
                 'location': {'city': 'Penacook',
                  'state': 'New Hampshire',
                  'country': 'United States'}}}}),
             (UUID('6e9b6a2d-926e-4b20-97ab-d8bb217a5029'),
              {'edges': {'from_node': UUID('56ae1a37-74f4-486b-b517-34b99027ba36'),
                'to_node': UUID('0c92123d-fbc3-47e7-b752-65df1d6680c0'),
                'category': 'flows_into'}}),
             (UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
              {'nodes': {'semantic_id': 'bogota',
                'category': 'city',
                'attributes': {'name': 'Bogotá',
                 'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/',
                   '/ˌboʊ-/',
                   '/ˈbɔɪ-/'],
                  'spanish': 'boˈɣota'},
                 'official_name': 'Bogotá',
                 'administration': 'Capital District'}}}),
             (UUID('adc293cf-401b-49b6-928d-ada04da0e4bf'),
              {'nodes': {'semantic_id': 'political_center',
                'category': 'function',
                'attributes': {'name': 'political center',
                 'location': 'Bogotá'}}}),
             (UUID('108added-3b0f-4b67-9e28-fce89a168e46'),
              {'nodes': {'semantic_id': 'economic_center',
                'category': 'function',
                'attributes': {'name': 'economic center',
                 'location': 'Bogotá'}}}),
             (UUID('7fad3f22-d955-4f54-a1e2-5683bf4639e8'),
              {'nodes': {'semantic_id': 'administrative_center',
                'category': 'function',
                'attributes': {'name': 'administrative center',
                 'location': 'Bogotá'}}}),
             (UUID('404e8a42-e9e9-4081-9890-669ba48d1b36'),
              {'nodes': {'semantic_id': 'industrial_center',
                'category': 'function',
                'attributes': {'name': 'industrial center',
                 'location': 'Bogotá'}}}),
             (UUID('8b80ba4f-77b2-4ee6-8548-a66108963fb7'),
              {'nodes': {'semantic_id': 'artistic_center',
                'category': 'function',
                'attributes': {'name': 'artistic center',
                 'location': 'Bogotá'}}}),
             (UUID('056f1544-f292-4506-ba8d-18d6e294d433'),
              {'nodes': {'semantic_id': 'cultural_center',
                'category': 'function',
                'attributes': {'name': 'cultural center',
                 'location': 'Bogotá'}}}),
             (UUID('d747fcf6-5b60-4595-a127-f3e247cbb8a3'),
              {'nodes': {'semantic_id': 'sports_center',
                'category': 'function',
                'attributes': {'name': 'sports center',
                 'location': 'Bogotá'}}}),
             (UUID('59719cce-5c68-47cf-8111-481c74e73c3b'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
                'category': 'capital_of'}}),
             (UUID('0bc7053b-2183-41df-995a-faecd919ad45'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('5576789f-9306-4a82-8736-882db81abdf2'),
                'category': 'part_of'}}),
             (UUID('73230839-050b-4ace-9dd1-7927b1bd1034'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('adc293cf-401b-49b6-928d-ada04da0e4bf'),
                'category': 'functions_as'}}),
             (UUID('04b8ded0-c2c1-441f-b7f7-069b05f80338'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('108added-3b0f-4b67-9e28-fce89a168e46'),
                'category': 'functions_as'}}),
             (UUID('0a86d51a-bd57-4a63-b494-08075a2bcb4a'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('7fad3f22-d955-4f54-a1e2-5683bf4639e8'),
                'category': 'functions_as'}}),
             (UUID('58c0a891-5c05-48e5-ba2a-1c230b588997'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('404e8a42-e9e9-4081-9890-669ba48d1b36'),
                'category': 'functions_as'}}),
             (UUID('5bad3267-dceb-4067-8d02-bc8c748d50d3'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('8b80ba4f-77b2-4ee6-8548-a66108963fb7'),
                'category': 'functions_as'}}),
             (UUID('d80bed21-cd68-454d-a142-223fb30d5db6'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('056f1544-f292-4506-ba8d-18d6e294d433'),
                'category': 'functions_as'}}),
             (UUID('6c12a6ad-244d-4d7e-8c25-f3a6288967fb'),
              {'edges': {'from_node': UUID('2de55d21-12b4-493e-954a-acf0b7bf4ac2'),
                'to_node': UUID('d747fcf6-5b60-4595-a127-f3e247cbb8a3'),
                'category': 'functions_as'}}),
             (UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
              {'nodes': {'semantic_id': 'bogota',
                'category': 'city',
                'attributes': {'name': 'Bogotá',
                 'functions': ['political center',
                  'economic center',
                  'administrative center',
                  'industrial center',
                  'artistic center',
                  'cultural center',
                  'sports center']}}}),
             (UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
              {'nodes': {'semantic_id': 'colombia',
                'category': 'country',
                'attributes': {'name': 'Colombia',
                 'capital': 'Bogotá',
                 'status': 'capital and largest city'}}}),
             (UUID('5576789f-9306-4a82-8736-882db81abdf2'),
              {'nodes': {'semantic_id': 'cundinamarca',
                'category': 'region',
                'attributes': {'name': 'Cundinamarca',
                 'relation_to_bogota': 'often thought of as part of'}}}),
             (UUID('af6b4ebf-7c7c-4dd0-a58e-ab8c292eaf7c'),
              {'edges': {'from_node': UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
                'to_node': UUID('8ad7ae8e-ed3a-415f-8d0e-a8984bd7717e'),
                'category': 'capital_of'}}),
             (UUID('3265632a-4065-46c4-82cf-527b3d4abc13'),
              {'edges': {'from_node': UUID('87517804-e5a2-44d9-82bd-23b4e33c2a40'),
                'to_node': UUID('5576789f-9306-4a82-8736-882db81abdf2'),
                'category': 'part_of'}}),
             (UUID('d97d057d-2564-427d-9703-e77a61ff58c7'),
              {'nodes': {'semantic_id': 'intracellular_fluid',
                'category': 'fluid',
                'attributes': {'name': 'intracellular fluid',
                 'volume': '2/3 of body water',
                 'amount_in_72_kg_body': '25 litres',
                 'percentage_of_total_body_fluid': 62.5}}}),
             (UUID('380f506f-c2cf-453e-879f-fb58b3f3d1db'),
              {'nodes': {'semantic_id': 'body_fluid',
                'category': 'fluid',
                'attributes': {'name': 'body fluid',
                 'total_volume_in_72_kg_body': '40 litres'}}}),
             (UUID('1b0bebc1-49a1-419f-bfb2-d50cffeed740'),
              {'edges': {'from_node': UUID('d97d057d-2564-427d-9703-e77a61ff58c7'),
                'to_node': UUID('380f506f-c2cf-453e-879f-fb58b3f3d1db'),
                'category': 'part_of'}}),
             (UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
              {'nodes': {'semantic_id': 'territorial_waters',
                'category': 'geographic_area',
                'attributes': {'name': 'territorial waters',
                 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
                 'source': '1982 United Nations Convention on the Law of the Sea'}}}),
             (UUID('443e77c0-cff1-43e4-89f2-ba748d4421a1'),
              {'edges': {'from_node': UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
                'to_node': UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
                'category': 'extends_from'}}),
             (UUID('58b64eae-e6c2-47f1-8916-eaf1dcc87e6b'),
              {'edges': {'from_node': UUID('6e5f08dc-fe95-4b74-884d-dcce8470290a'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
              {'nodes': {'semantic_id': 'territorial_sea',
                'category': 'geographic_area',
                'attributes': {'name': 'territorial sea',
                 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state',
                 'sovereign_territory': True,
                 'foreign_ship_passage': 'innocent passage through it or transit passage for straits',
                 'jurisdiction': 'extends to airspace over and seabed below'}}}),
             (UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
              {'nodes': {'semantic_id': 'baseline',
                'category': 'geographic_feature',
                'attributes': {'name': 'baseline',
                 'definition': 'usually the mean low-water mark of a coastal state'}}}),
             (UUID('11903999-15a7-4776-8bae-f1803429147f'),
              {'nodes': {'semantic_id': 'coastal_state',
                'category': 'legal_entity',
                'attributes': {'name': 'coastal state'}}}),
             (UUID('7a93cd6e-7f97-43fa-9054-22d3e4478ecf'),
              {'edges': {'from_node': UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('4dec6036-1299-4093-ae68-3b6cecc73053'),
              {'edges': {'from_node': UUID('7b534168-d2e7-498e-9115-5e21d6c638f3'),
                'to_node': UUID('d5019515-a9d9-4d23-89cf-dac81f7d96ea'),
                'category': 'extends_from'}}),
             (UUID('d86a7f75-df06-47f1-a30d-67a921d822bf'),
              {'nodes': {'semantic_id': 'strait',
                'category': 'geographic_feature',
                'attributes': {'name': 'strait',
                 'sovereign_territory': True,
                 'jurisdiction': {'airspace': True, 'seabed': True}}}}),
             (UUID('1baf2bf2-6083-481f-8980-d2f9793f58e6'),
              {'nodes': {'semantic_id': 'maritime_delimitation',
                'category': 'legal_concept',
                'attributes': {'name': 'maritime delimitation',
                 'definition': "Adjustment of the boundaries of a coastal state's territorial sea, exclusive economic zone, or continental shelf"}}}),
             (UUID('396cc35f-de5f-4717-9cb5-2cf511456fb2'),
              {'edges': {'from_node': UUID('d86a7f75-df06-47f1-a30d-67a921d822bf'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'belongs_to'}}),
             (UUID('88b88486-07be-4ae4-8d51-c2d88ca9f125'),
              {'edges': {'from_node': UUID('1baf2bf2-6083-481f-8980-d2f9793f58e6'),
                'to_node': UUID('11903999-15a7-4776-8bae-f1803429147f'),
                'category': 'involves'}}),
             (UUID('d8b37bae-dbdb-49c8-9e35-6c87c902f3f9'),
              {'nodes': {'semantic_id': 'uninsured_depositor',
                'category': 'stakeholder',
                'attributes': {'deposit_amount': '>100,000 Euro',
                 'treatment': 'subject to a bail-in',
                 'new_role': 'new shareholders of the legacy entity'}}}),
             (UUID('7862ab2f-0f92-48af-ba10-12cdac45a10f'),
              {'nodes': {'semantic_id': 'bank_of_cyprus',
                'category': 'organization',
                'attributes': {'name': 'Bank of Cyprus',
                 'size': 'largest banking group in Cyprus',
                 'relation_to_cyprus_popular_bank': "absorbed the 'good' Cypriot part of Cyprus Popular Bank after it was shuttered"}}}),
             (UUID('1c509f8b-300e-47ac-ad62-4dcf675ca11d'),
              {'nodes': {'semantic_id': 'cyprus_popular_bank',
                'category': 'organization',
                'attributes': {'name': 'Cyprus Popular Bank',
                 'previous_name': 'Marfin Popular Bank',
                 'status': 'shuttered in 2013',
                 'size': 'second largest banking group in Cyprus',
                 'parent': 'Bank of Cyprus'}}}),
             (UUID('82b3a659-7692-4909-a812-fc247f97ed6c'),
              {'edges': {'from_node': UUID('d8b37bae-dbdb-49c8-9e35-6c87c902f3f9'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'holds_deposits'}}),
             (UUID('a80831eb-a3c9-4ad6-a6ba-9db107876050'),
              {'edges': {'from_node': UUID('1c509f8b-300e-47ac-ad62-4dcf675ca11d'),
                'to_node': UUID('7862ab2f-0f92-48af-ba10-12cdac45a10f'),
                'category': 'merged_with'}}),
             (UUID('2d393fc3-fe9b-46dd-90f7-2fadb227fccd'),
              {'nodes': {'semantic_id': 'central_bank_of_cyprus',
                'category': 'organization',
                'attributes': {'name': 'Central Bank of Cyprus',
                 'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'}}}),
             (UUID('87a173a3-a32b-4a36-a1b2-6248a92eb14c'),
              {'nodes': {'semantic_id': 'veteran_banker',
                'category': 'stakeholder',
                'attributes': {'name': 'Chris Pavlou',
                 'expertise': 'Treasury'}}}),
             (UUID('7af74b0b-30ab-44c4-8adf-8e19ecf04a14'),
              {'nodes': {'semantic_id': 'special_administrator',
                'category': 'stakeholder',
                'attributes': {'name': 'Andri Antoniadou',
                 'role': 'ran the legacy entity for two years, from March 2013 until 3 March 2015'}}}),
             (UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
              {'nodes': {'semantic_id': 'legacy_entity',
                'category': 'organization',
                'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds",
                 'ownership_stake': '4.8% of Bank of Cyprus',
                 'board_representation': 'does not hold a board seat',
                 'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'}}}),
             (UUID('bfe012be-e584-401f-bd34-f6d147e7831c'),
              {'nodes': {'semantic_id': 'marfin_investment_group',
                'category': 'stakeholder',
                'attributes': {'name': 'Marfin Investment Group',
                 'role': 'former major shareholder of the legacy entity'}}}),
             (UUID('14585bad-087d-4ce7-bbc2-1d89e4cd7548'),
              {'edges': {'from_node': UUID('2d393fc3-fe9b-46dd-90f7-2fadb227fccd'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'amended_lawyers_without_consulting'}}),
             (UUID('14eb57de-1b12-42b5-8b91-945cdfd08442'),
              {'edges': {'from_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'to_node': UUID('7af74b0b-30ab-44c4-8adf-8e19ecf04a14'),
                'category': 'managed_by'}}),
             (UUID('e367aa2a-74bb-426e-b17c-f4ecf2032e6f'),
              {'edges': {'from_node': UUID('87a173a3-a32b-4a36-a1b2-6248a92eb14c'),
                'to_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'category': 'took_over_as_special_administrator'}}),
             (UUID('1c9504d1-c7e5-4b0b-ad7a-24a03cc9c498'),
              {'edges': {'from_node': UUID('4845f0f8-9a9e-4bf2-b9e6-49ba7ee13b44'),
                'to_node': UUID('bfe012be-e584-401f-bd34-f6d147e7831c'),
                'category': 'pursuing_legal_action_against'}})])
# adding paragraph idx to graph hist

for gh in graph_history.history.values():
    if 'nodes' in gh:
        for gc in graph_components0:
            if 'nodes' in gc:
                if (gh['nodes']['semantic_id'] == gc['nodes'][0]['semantic_id'] and
                    gh['nodes']['category'] == gc['nodes'][0]['category'] and
                    gh['nodes']['attributes'] == gc['nodes'][0]['attributes']):
                    print(gh)
                    gh['nodes']['paragraph_idx'] = gc['nodes'][0]['paragraph_idx']
                    
                                  
{'nodes': {'semantic_id': 'insular_government', 'category': 'political_entity', 'attributes': {'name': 'Insular Government', 'description': 'A United States territorial government that was replaced by the Commonwealth of the Philippines.'}}}
{'nodes': {'semantic_id': 'commonwealth_of_the_philippines', 'category': 'political_entity', 'attributes': {'name': 'Commonwealth of the Philippines', 'years_active': '1935 to 1946', 'description': 'The administrative body that governed the Philippines during this period, except for a period of exile from 1942 to 1945 when Japan occupied the country.'}}}
{'nodes': {'semantic_id': 'lake_oesa', 'category': 'natural_feature', 'attributes': {'name': 'Lake Oesa', 'elevation': 2267, 'elevation_unit': 'm', 'location': {'park': 'Yoho National Park', 'city': 'Field', 'province': 'British Columbia', 'country': 'Canada'}}}}
{'nodes': {'semantic_id': 'arafura_swamp', 'category': 'natural_feature', 'attributes': {'name': 'Arafura Swamp', 'type': 'inland freshwater wetland', 'location': {'region': 'Arnhem Land', 'territory': 'Northern Territory', 'country': 'Australia'}, 'size': {'area': {'value': None, 'unit': 'km2'}, 'expansion_during_wet_season': True}, 'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia', 'cultural_significance': 'of great cultural significance to the Yolngu people, in particular the Ramingining community', 'filming_location': 'Ten Canoes'}}}
{'nodes': {'semantic_id': 'wapizagonke_lake', 'category': 'natural_feature', 'attributes': {'name': 'Wapizagonke Lake', 'type': 'body of water', 'location': {'sector': 'Lac-Wapizagonke', 'city': 'Shawinigan', 'park': 'La Mauricie National Park', 'region': 'Mauricie', 'province': 'Quebec', 'country': 'Canada'}}}}
{'nodes': {'semantic_id': 'khabarovsky_district', 'category': 'administrative_district', 'attributes': {'name': 'Khabarovsky District', 'country': 'Russia', 'region': 'Khabarovsk Krai', 'area': None, 'area_unit': None, 'administrative_center': 'Khabarovsk'}}}
{'nodes': {'semantic_id': 'silver_lake', 'category': 'natural_feature', 'attributes': {'name': 'Silver Lake', 'type': 'body of water', 'location': {'county': 'Cheshire County', 'state': 'New Hampshire', 'country': 'United States', 'towns': ['Harrisville', 'Nelson']}, 'outflows': ['Minnewawa Brook', 'The Branch'], 'ultimate_recipient': 'Connecticut River'}}}
{'nodes': {'semantic_id': 'hyderabad_police_area', 'category': 'administrative_district', 'attributes': {'name': 'Hyderabad Police area', 'jurisdiction_size': 'smallest'}}}
{'nodes': {'semantic_id': 'hmda_area', 'category': 'administrative_district', 'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area', 'jurisdiction_size': 'largest', 'type': 'urban_planning_agency', 'apolitical': True, 'covers': ['ghmc_area', 'suburbs_of_ghmc_area']}}}
{'nodes': {'semantic_id': 'san_juan', 'category': 'city', 'attributes': {'name': 'San Juan', 'location': {'country': 'Puerto Rico', 'region': 'north-eastern coast'}, 'borders': {'north': 'Atlantic Ocean', 'south': ['Caguas', 'Trujillo Alto'], 'east': ['Carolina'], 'west': ['Guaynabo']}, 'area': {'value': 76.93, 'unit': 'square miles'}, 'water_bodies': ['San Juan Bay', 'Condado Lagoon', 'San José Lagoon'], 'water_area': {'value': 29.11, 'unit': 'square miles', 'percentage': 37.83}}}}
{'nodes': {'semantic_id': 'urban_hinterland', 'category': 'administrative_district', 'attributes': {'name': 'Urban hinterland', 'type': 'urban_area'}}}
{'nodes': {'semantic_id': 'landkreise_amalgamation', 'category': 'administrative_district', 'attributes': {'name': 'Local associations of a special kind', 'type': 'amalgamation_of_districts', 'purpose': 'simplification_of_administration'}}}
{'nodes': {'semantic_id': 'norfolk_island', 'category': 'island', 'attributes': {'name': 'Norfolk Island', 'location': {'ocean': 'South Pacific Ocean', 'relative_location': 'east of Australian mainland'}, 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'area': {'value': 34.6, 'unit': 'square kilometres'}, 'coastline': {'length': 32, 'unit': 'km'}, 'highest_point': 'Mount Bates'}}}
{'nodes': {'semantic_id': 'norfolk_island', 'category': 'island', 'attributes': {'name': 'Norfolk Island', 'location': {'ocean': 'South Pacific Ocean', 'relative_location': 'east of Australian mainland'}, 'coordinates': {'latitude': -29.033, 'longitude': 167.95}, 'area': {'value': 34.6, 'unit': 'square kilometres'}, 'coastline': {'length': 32, 'unit': 'km'}, 'highest_point': 'Mount Bates'}, 'paragraph_idx': 9}}
{'nodes': {'semantic_id': 'phillip_island', 'category': 'island', 'attributes': {'name': 'Phillip Island', 'location': {'relation': 'second largest island of the territory', 'coordinates': {'latitude': -29.117, 'longitude': 167.95}, 'distance_from_main_island': {'value': 7, 'unit': 'kilometres'}}}}}
{'nodes': {'semantic_id': 'phillip_island', 'category': 'island', 'attributes': {'name': 'Phillip Island', 'location': {'relation': 'second largest island of the territory', 'coordinates': {'latitude': -29.117, 'longitude': 167.95}, 'distance_from_main_island': {'value': 7, 'unit': 'kilometres'}}}, 'paragraph_idx': 9}}
{'nodes': {'semantic_id': 'star_stadium', 'category': 'stadium', 'attributes': {'name': 'Star (Zvezda) Stadium', 'former_name': 'Lenin Komsomol Stadium', 'location': {'city': 'Perm', 'country': 'Russia'}, 'usage': 'football matches', 'home_team': 'FC Amkar Perm', 'capacity': 17000, 'opened': '1969-06-05'}}}
{'nodes': {'semantic_id': 'perm', 'category': 'city', 'attributes': {'name': 'Perm', 'location': {'river': 'Kama River', 'region': 'Perm Krai', 'country': 'Russia', 'geography': 'European part of Russia near the Ural Mountains'}, 'administrative_status': 'administrative centre'}}}
{'nodes': {'semantic_id': 'paea', 'category': 'municipality', 'attributes': {'name': 'Paea', 'location': {'island': 'Tahiti', 'subdivision': 'Windward Islands', 'region': 'Society Islands', 'country': 'French Polynesia', 'territory': 'France'}, 'population': 13021}}}
{'nodes': {'semantic_id': 'potamogeton_amplifolius', 'category': 'plant', 'attributes': {'common_names': ['largeleaf pondweed', 'broad-leaved pondweed'], 'habitat': ['lakes', 'ponds', 'rivers'], 'water_depth': 'often in deep water', 'distribution': 'North America'}}}
{'nodes': {'semantic_id': 'soltonsky_district', 'category': 'administrative_district', 'attributes': {'name': 'Soltonsky District', 'location': {'region': 'Altai Krai', 'country': 'Russia'}}}}
{'nodes': {'semantic_id': 'contoocook_lake', 'category': 'lake', 'attributes': {'name': 'Contoocook Lake', 'location': {'county': 'Cheshire County', 'state': 'New Hampshire', 'country': 'United States', 'towns': ['Jaffrey', 'Rindge']}, 'connection': {'to': 'pool_pond', 'type': 'forms_headwaters_of'}, 'outflow': {'to': 'contoocook_river', 'direction': 'north'}, 'outflow_destination': 'merrimack_river'}}}
{'nodes': {'semantic_id': 'contoocook_river', 'category': 'river', 'attributes': {'name': 'Contoocook River', 'flow_direction': 'north', 'outflow_destination': 'merrimack_river'}}}
{'nodes': {'semantic_id': 'bogota', 'category': 'city', 'attributes': {'name': 'Bogotá', 'pronunciation': {'english': ['/ˈboʊɡəˌtɑː/', '/ˌboʊ-/', '/ˈbɔɪ-/'], 'spanish': 'boˈɣota'}, 'official_name': 'Bogotá', 'administration': 'Capital District'}}}
{'nodes': {'semantic_id': 'bogota', 'category': 'city', 'attributes': {'name': 'Bogotá', 'functions': ['political center', 'economic center', 'administrative center', 'industrial center', 'artistic center', 'cultural center', 'sports center']}}}
{'nodes': {'semantic_id': 'intracellular_fluid', 'category': 'fluid', 'attributes': {'name': 'intracellular fluid', 'volume': '2/3 of body water', 'amount_in_72_kg_body': '25 litres', 'percentage_of_total_body_fluid': 62.5}}}
{'nodes': {'semantic_id': 'territorial_waters', 'category': 'geographic_area', 'attributes': {'name': 'territorial waters', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state', 'source': '1982 United Nations Convention on the Law of the Sea'}}}
{'nodes': {'semantic_id': 'territorial_sea', 'category': 'geographic_area', 'attributes': {'name': 'territorial sea', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state', 'sovereign_territory': True, 'foreign_ship_passage': 'innocent passage through it or transit passage for straits', 'jurisdiction': 'extends to airspace over and seabed below'}}}
{'nodes': {'semantic_id': 'strait', 'category': 'geographic_feature', 'attributes': {'name': 'strait', 'sovereign_territory': True, 'jurisdiction': {'airspace': True, 'seabed': True}}}}
{'nodes': {'semantic_id': 'uninsured_depositor', 'category': 'stakeholder', 'attributes': {'deposit_amount': '>100,000 Euro', 'treatment': 'subject to a bail-in', 'new_role': 'new shareholders of the legacy entity'}}}
{'nodes': {'semantic_id': 'cyprus_popular_bank', 'category': 'organization', 'attributes': {'name': 'Cyprus Popular Bank', 'previous_name': 'Marfin Popular Bank', 'status': 'shuttered in 2013', 'size': 'second largest banking group in Cyprus', 'parent': 'Bank of Cyprus'}}}
{'nodes': {'semantic_id': 'cyprus_popular_bank', 'category': 'organization', 'attributes': {'name': 'Cyprus Popular Bank', 'previous_name': 'Marfin Popular Bank', 'status': 'shuttered in 2013', 'size': 'second largest banking group in Cyprus', 'parent': 'Bank of Cyprus'}, 'paragraph_idx': 19}}
{'nodes': {'semantic_id': 'central_bank_of_cyprus', 'category': 'organization', 'attributes': {'name': 'Central Bank of Cyprus', 'role': 'Governor and Board members amended the lawyers of the legacy entity without consulting the special administrator'}}}
{'nodes': {'semantic_id': 'legacy_entity', 'category': 'organization', 'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds", 'ownership_stake': '4.8% of Bank of Cyprus', 'board_representation': 'does not hold a board seat', 'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'}}}
{'nodes': {'semantic_id': 'legacy_entity', 'category': 'organization', 'attributes': {'description': "the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds", 'ownership_stake': '4.8% of Bank of Cyprus', 'board_representation': 'does not hold a board seat', 'previous_operations': 'overseas operations of the now defunct Cyprus Popular Bank'}, 'paragraph_idx': 19}}
## Adding edges(and their indices) to the graph and vector db
#| code-fold: false

import rustworkx as rx
from rustworkx.visualization import mpl_draw

digraph = rx.PyDiGraph()

node_indices = {}
edge_indices = {}
# Iterate through the history to add nodes and edges
for uuid, data in graph_history.history.items():
    if 'nodes' in data:
        # Add node to the graph and store the index with its UUID
        node_index = digraph.add_node(data['nodes'])
        node_indices[uuid] = node_index

for uuid, data in graph_history.history.items():
    if 'edges' in data:
        # Retrieve indices of the from and to nodes using their UUIDs
        from_index = node_indices.get(data['edges']['from_node'])
        to_index = node_indices.get(data['edges']['to_node'])
        if from_index is not None and to_index is not None:
            # Add edge to the graph
            edge_index = digraph.add_edge(from_index, to_index, data['edges'])
            edge_indices[uuid] = edge_index
graph_history = graph_history0
chroma_client.delete_collection('musique_benchmark')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[85], line 1
----> 1 chroma_client.delete_collection('musique_benchmark')

File ~/miniconda3/envs/nlp/lib/python3.12/site-packages/chromadb/api/client.py:264, in Client.delete_collection(self, name)
    259 @override
    260 def delete_collection(
    261     self,
    262     name: str,
    263 ) -> None:
--> 264     return self._server.delete_collection(
    265         name=name,
    266         tenant=self.tenant,
    267         database=self.database,
    268     )

File ~/miniconda3/envs/nlp/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/__init__.py:127, in trace_method.<locals>.decorator.<locals>.wrapper(*args, **kwargs)
    125 global tracer, granularity
    126 if trace_granularity < granularity:
--> 127     return f(*args, **kwargs)
    128 if not tracer:
    129     return f(*args, **kwargs)

File ~/miniconda3/envs/nlp/lib/python3.12/site-packages/chromadb/api/segment.py:347, in SegmentAPI.delete_collection(self, name, tenant, database)
    345         del self._collection_cache[existing[0]["id"]]
    346 else:
--> 347     raise ValueError(f"Collection {name} does not exist.")

ValueError: Collection musique_benchmark does not exist.
chroma_client = chromadb.Client()

collection = chroma_client.create_collection(
    name='musique_benchmark',
    embedding_function=ef,
    metadata={"hsnw:space": "cosine"}
    )

for k,v in graph_history.history.items():
    if 'nodes' in v:
        collection.add(documents=[str(v['nodes'])], ids=[str(k)])
    # Omitting the addition of edges to the vector db
    # elif 'edges' in v:
    #     collection.add(documents=[str(v['edges'])], ids=[str(k)])
2024-05-15 17:46:35,070 - DEBUG - chromadb.config - config - start - 297 - Starting component LocalHnswSegment
for k,v in graph_history.history.items():

    if 'edges' in v:
        print(node_dict[v['edges']['from_node']], node_dict[v['edges']['to_node']])
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[61], line 4
      1 for k,v in graph_history.history.items():
      3     if 'edges' in v:
----> 4         print(node_dict[v['edges']['from_node']], node_dict[v['edges']['to_node']])

NameError: name 'node_dict' is not defined
lines[-2]['question']
'What is the body of water by the city where Zvezda stadium is located?'
top_results = collection.query(
    query_texts=[lines[-2]['question']]
    )
top_results
{'ids': [['6e5f08dc-fe95-4b74-884d-dcce8470290a',
   '7b534168-d2e7-498e-9115-5e21d6c638f3',
   '9a4b69f8-749a-4b7c-a3e3-e2db4f3823d1',
   '7c83cf46-05fc-491d-9667-20acf68fe70f',
   '7956f84b-20a8-4836-ae7a-c7311d716cd1',
   '56ae1a37-74f4-486b-b517-34b99027ba36',
   '631d3937-3f47-4598-8f45-bdb90d5eb91f',
   'c7120f30-4152-4e88-bec1-698bfdd2d5e1',
   'd97d057d-2564-427d-9703-e77a61ff58c7',
   'd86a7f75-df06-47f1-a30d-67a921d822bf']],
 'distances': [[1.3786437511444092,
   1.4539598226547241,
   1.4855282306671143,
   1.501915693283081,
   1.5252399444580078,
   1.5319929122924805,
   1.552965760231018,
   1.5618354082107544,
   1.5635420083999634,
   1.5718779563903809]],
 'metadatas': [[None, None, None, None, None, None, None, None, None, None]],
 'embeddings': None,
 'documents': [["{'semantic_id': 'territorial_waters', 'category': 'geographic_area', 'attributes': {'name': 'territorial waters', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state', 'source': '1982 United Nations Convention on the Law of the Sea'}, 'paragraph_idx': 18}",
   "{'semantic_id': 'territorial_sea', 'category': 'geographic_area', 'attributes': {'name': 'territorial sea', 'definition': 'a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low-water mark) of a coastal state', 'sovereign_territory': True, 'foreign_ship_passage': 'innocent passage through it or transit passage for straits', 'jurisdiction': 'extends to airspace over and seabed below'}, 'paragraph_idx': 18}",
   "{'semantic_id': 'hmwssb', 'category': 'administrative_body', 'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage Board', 'type': 'water_management'}}",
   "{'semantic_id': 'arafura_swamp', 'category': 'natural_feature', 'attributes': {'name': 'Arafura Swamp', 'type': 'inland freshwater wetland', 'location': {'region': 'Arnhem Land', 'territory': 'Northern Territory', 'country': 'Australia'}, 'size': {'area': {'value': None, 'unit': 'km2'}, 'expansion_during_wet_season': True}, 'description': 'a near pristine floodplain, possibly the largest wooded swamp in the Northern Territory and Australia', 'cultural_significance': 'of great cultural significance to the Yolngu people, in particular the Ramingining community', 'filming_location': 'Ten Canoes'}, 'paragraph_idx': 2}",
   "{'semantic_id': 'san_juan', 'category': 'city', 'attributes': {'name': 'San Juan', 'location': {'country': 'Puerto Rico', 'region': 'north-eastern coast'}, 'borders': {'north': 'Atlantic Ocean', 'south': ['Caguas', 'Trujillo Alto'], 'east': ['Carolina'], 'west': ['Guaynabo']}, 'area': {'value': 76.93, 'unit': 'square miles'}, 'water_bodies': ['San Juan Bay', 'Condado Lagoon', 'San José Lagoon'], 'water_area': {'value': 29.11, 'unit': 'square miles', 'percentage': 37.83}}, 'paragraph_idx': 7}",
   "{'semantic_id': 'contoocook_river', 'category': 'river', 'attributes': {'name': 'Contoocook River', 'flow_direction': 'north', 'outflow_destination': 'merrimack_river'}, 'paragraph_idx': 15}",
   "{'semantic_id': 'ghmc_area', 'category': 'administrative_district', 'attributes': {'name': 'GHMC area', 'jurisdiction_size': 'second_largest', 'alternate_name': 'Hyderabad city'}}",
   "{'semantic_id': 'lake_oesa', 'category': 'natural_feature', 'attributes': {'name': 'Lake Oesa', 'elevation': 2267, 'elevation_unit': 'm', 'location': {'park': 'Yoho National Park', 'city': 'Field', 'province': 'British Columbia', 'country': 'Canada'}}, 'paragraph_idx': 1}",
   "{'semantic_id': 'intracellular_fluid', 'category': 'fluid', 'attributes': {'name': 'intracellular fluid', 'volume': '2/3 of body water', 'amount_in_72_kg_body': '25 litres', 'percentage_of_total_body_fluid': 62.5}, 'paragraph_idx': 17}",
   "{'semantic_id': 'strait', 'category': 'geographic_feature', 'attributes': {'name': 'strait', 'sovereign_territory': True, 'jurisdiction': {'airspace': True, 'seabed': True}}, 'paragraph_idx': 18}"]],
 'uris': None,
 'data': None}
# uuid_str = top_results['ids'][0][0]
# top_uuid = uuid.UUID(uuid_str, version=4)

# top_node = digraph[node_indices[top_uuid]]
uuid_strs[0]
'6e5f08dc-fe95-4b74-884d-dcce8470290a'
import uuid
uuid_strs = top_results['ids'][0][:3]
top_uuids = [uuid.UUID(uuid_str, version=4) for uuid_str in uuid_strs]
uuid_strs
['6e5f08dc-fe95-4b74-884d-dcce8470290a',
 '7b534168-d2e7-498e-9115-5e21d6c638f3',
 '7956f84b-20a8-4836-ae7a-c7311d716cd1']
for top_uuid in top_uuids:
    for idx in list(digraph.successor_indices(node_indices[top_uuid])) + list(digraph.predecessor_indices(node_indices[top_uuid])):
        print(digraph[idx])
{'semantic_id': 'coastal_state', 'category': 'legal_entity', 'attributes': {'name': 'coastal state'}}
{'semantic_id': 'baseline', 'category': 'geographic_feature', 'attributes': {'name': 'baseline', 'definition': 'usually the mean low-water mark of a coastal state'}}
{'semantic_id': 'baseline', 'category': 'geographic_feature', 'attributes': {'name': 'baseline', 'definition': 'usually the mean low-water mark of a coastal state'}}
{'semantic_id': 'coastal_state', 'category': 'legal_entity', 'attributes': {'name': 'coastal state'}}
{'semantic_id': 'hmda_area', 'category': 'administrative_district', 'attributes': {'name': 'Hyderabad Metropolitan Development Authority (HMDA) area', 'jurisdiction_size': 'largest', 'type': 'urban_planning_agency', 'apolitical': True, 'covers': ['ghmc_area', 'suburbs_of_ghmc_area']}, 'paragraph_idx': 6}
import copy

node_hist_dict = {} # idx: obj mapping
edge_hist_dict = {} # (from_idx, to_idx): obj mapping
uuid_list = [] # used for dup checking
id_counter = 0 # used for creating new easily-parseable ids
for top_uuid in top_uuids:
    top_idx = node_indices[top_uuid]
    uuid_list.append(top_uuid)
    successor_idxs = [('s', successor) for successor in digraph.successor_indices(top_idx)]
    predecessor_idxs = [('p', predecessor) for predecessor in digraph.predecessor_indices(top_idx)]
    neighbor_idxs = successor_idxs + predecessor_idxs
    if top_idx not in node_hist_dict: # Add the top node if it's not already in the node_hist_dict
        main_node = copy.deepcopy(digraph[top_idx])
        main_node['connecting_id'] = id_counter
        node_hist_dict[top_idx] = main_node
        id_counter += 1
    else:
        main_node = node_hist_dict[top_idx]
    if (len(neighbor_idxs) > 0):
        for connection_type, idx in neighbor_idxs: 
            if idx in node_hist_dict:
                secondary_connecting_id = node_hist_dict[idx]['connecting_id']
            else:
                secondary_connecting_id = id_counter
                node_hist_dict[idx] = copy.deepcopy(digraph[idx])
                node_hist_dict[idx]['connecting_id'] = secondary_connecting_id
                id_counter += 1
            # If the connections are already in the edge_hist_dict, skip
            if ((connection_type == 's' and (top_idx, idx) in edge_hist_dict) or 
                (connection_type == 'p' and (idx, top_idx) in edge_hist_dict)):
                continue
            elif connection_type == 's':
                edge_hist_dict[(top_idx, idx)] = copy.deepcopy(digraph.get_edge_data(top_idx, idx))
                edge_hist_dict[(top_idx, idx)]['from_node'] = main_node['connecting_id']
                edge_hist_dict[(top_idx, idx)]['to_node'] = secondary_connecting_id
            elif connection_type == 'p':
                edge_hist_dict[(idx, top_idx)] = copy.deepcopy(digraph.get_edge_data(idx, top_idx))
                edge_hist_dict[(idx, top_idx)]['from_node'] = secondary_connecting_id
                edge_hist_dict[(idx, top_idx)]['to_node'] = main_node['connecting_id']
{**node_hist_dict, **edge_hist_dict}.keys()
dict_keys([48, 51, 50, 49, 14, 11, (48, 51), (48, 50), (49, 50), (49, 51), (11, 14)])
pprint(list({**node_hist_dict, **edge_hist_dict}.values()))
[{'attributes': {'definition': 'a belt of coastal waters extending at most 12 '
                               'nautical miles (22.2 km; 13.8 mi) from the '
                               'baseline (usually the mean low-water mark) of '
                               'a coastal state',
                 'name': 'territorial waters',
                 'source': '1982 United Nations Convention on the Law of the '
                           'Sea'},
  'category': 'geographic_area',
  'connecting_id': 0,
  'paragraph_idx': 18,
  'semantic_id': 'territorial_waters'},
 {'attributes': {'name': 'coastal state'},
  'category': 'legal_entity',
  'connecting_id': 1,
  'semantic_id': 'coastal_state'},
 {'attributes': {'definition': 'usually the mean low-water mark of a coastal '
                               'state',
                 'name': 'baseline'},
  'category': 'geographic_feature',
  'connecting_id': 2,
  'semantic_id': 'baseline'},
 {'attributes': {'definition': 'a belt of coastal waters extending at most 12 '
                               'nautical miles (22.2 km; 13.8 mi) from the '
                               'baseline (usually the mean low-water mark) of '
                               'a coastal state',
                 'foreign_ship_passage': 'innocent passage through it or '
                                         'transit passage for straits',
                 'jurisdiction': 'extends to airspace over and seabed below',
                 'name': 'territorial sea',
                 'sovereign_territory': True},
  'category': 'geographic_area',
  'connecting_id': 3,
  'paragraph_idx': 18,
  'semantic_id': 'territorial_sea'},
 {'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage '
                         'Board',
                 'type': 'water_management'},
  'category': 'administrative_body',
  'connecting_id': 4,
  'semantic_id': 'hmwssb'},
 {'attributes': {'apolitical': True,
                 'covers': ['ghmc_area', 'suburbs_of_ghmc_area'],
                 'jurisdiction_size': 'largest',
                 'name': 'Hyderabad Metropolitan Development Authority (HMDA) '
                         'area',
                 'type': 'urban_planning_agency'},
  'category': 'administrative_district',
  'connecting_id': 5,
  'paragraph_idx': 6,
  'semantic_id': 'hmda_area'},
 {'category': 'belongs_to', 'from_node': 0, 'to_node': 1},
 {'category': 'extends_from', 'from_node': 0, 'to_node': 2},
 {'category': 'extends_from', 'from_node': 3, 'to_node': 2},
 {'category': 'belongs_to', 'from_node': 3, 'to_node': 1},
 {'category': 'manages', 'from_node': 5, 'to_node': 4}]

single answer

combined_template = system_message + human_template
combined_template
ChatPromptTemplate(input_variables=['evidence', 'question'], messages=[SystemMessage(content='You are the best taker of tests, particularly excelling at answering questions based on information provided to you. You will be given nodes and edges from a knowledge graph in a JSON format and you are expected to answer a question based on them. The \'from_node\' and \'to_node\' fields in the edges correspond to the \'connecting_id\' fields in the nodes. Your output will only be JSON, and nothing more. No yapping.\nThis JSON Schema is the format you will be using: {"properties": {"answerable": {"description": "true or false value. Whether or not the answer is answerable based on the provided nodes and edges", "title": "Answerable", "type": "boolean"}, "answer": {"description": "The answer to the question. Terse and concise.", "title": "Answer", "type": "string"}, "support_idxs": {"description": "The indices of the nodes that support the answer. From \'paragraph_idx\' field", "items": {"type": "integer"}, "title": "Support Idxs", "type": "array"}}, "required": ["answerable", "answer", "support_idxs"], "title": "Answer", "type": "object"}'), HumanMessagePromptTemplate(prompt=PromptTemplate(input_variables=['evidence', 'question'], template='Question: {question}\n\n Supporting Evidence:\n {evidence}'))])
answer_pipe = combined_template | chat_model | output_parser

evidence = str(list({**node_hist_dict, **edge_hist_dict}.values()))
question = lines[-2]['question']
ans = answer_pipe.invoke({'question': question, 'evidence': evidence})
question, ans, lines[-2]['answer']
('What is the body of water by the city where Zvezda stadium is located?',
 Answer(answerable=True, answer='The Hussain Sagar lake', support_idxs=[5, 6]),
 'Kama River')
pprint(list({**node_hist_dict, **edge_hist_dict}.values()))
[{'attributes': {'definition': 'a belt of coastal waters extending at most 12 '
                               'nautical miles (22.2 km; 13.8 mi) from the '
                               'baseline (usually the mean low-water mark) of '
                               'a coastal state',
                 'name': 'territorial waters',
                 'source': '1982 United Nations Convention on the Law of the '
                           'Sea'},
  'category': 'geographic_area',
  'connecting_id': 0,
  'paragraph_idx': 18,
  'semantic_id': 'territorial_waters'},
 {'attributes': {'name': 'coastal state'},
  'category': 'legal_entity',
  'connecting_id': 1,
  'semantic_id': 'coastal_state'},
 {'attributes': {'definition': 'usually the mean low-water mark of a coastal '
                               'state',
                 'name': 'baseline'},
  'category': 'geographic_feature',
  'connecting_id': 2,
  'semantic_id': 'baseline'},
 {'attributes': {'definition': 'a belt of coastal waters extending at most 12 '
                               'nautical miles (22.2 km; 13.8 mi) from the '
                               'baseline (usually the mean low-water mark) of '
                               'a coastal state',
                 'foreign_ship_passage': 'innocent passage through it or '
                                         'transit passage for straits',
                 'jurisdiction': 'extends to airspace over and seabed below',
                 'name': 'territorial sea',
                 'sovereign_territory': True},
  'category': 'geographic_area',
  'connecting_id': 3,
  'paragraph_idx': 18,
  'semantic_id': 'territorial_sea'},
 {'attributes': {'name': 'Hyderabad Metropolitan Water Supply and Sewerage '
                         'Board',
                 'type': 'water_management'},
  'category': 'administrative_body',
  'connecting_id': 4,
  'semantic_id': 'hmwssb'},
 {'attributes': {'apolitical': True,
                 'covers': ['ghmc_area', 'suburbs_of_ghmc_area'],
                 'jurisdiction_size': 'largest',
                 'name': 'Hyderabad Metropolitan Development Authority (HMDA) '
                         'area',
                 'type': 'urban_planning_agency'},
  'category': 'administrative_district',
  'connecting_id': 5,
  'paragraph_idx': 6,
  'semantic_id': 'hmda_area'},
 {'category': 'belongs_to', 'from_node': 0, 'to_node': 1},
 {'category': 'extends_from', 'from_node': 0, 'to_node': 2},
 {'category': 'extends_from', 'from_node': 3, 'to_node': 2},
 {'category': 'belongs_to', 'from_node': 3, 'to_node': 1},
 {'category': 'manages', 'from_node': 5, 'to_node': 4}]
lines[-2]
{'id': '2hop__604134_131944',
 'paragraphs': [{'idx': 0,
   'title': 'Commonwealth of the Philippines',
   'paragraph_text': "The Commonwealth of the Philippines (; ) was the administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country. It replaced the Insular Government, a United States territorial government, and was established by the Tydings–McDuffie Act. The Commonwealth was designed as a transitional administration in preparation for the country's full achievement of independence.",
   'is_supporting': False},
  {'idx': 1,
   'title': 'Lake Oesa',
   'paragraph_text': 'Lake Oesa is a body of water located at an elevation of 2,267m (7438 ft) in the mountains of Yoho National Park, near Field, British Columbia, Canada.',
   'is_supporting': False},
  {'idx': 2,
   'title': 'Arafura Swamp',
   'paragraph_text': 'The Arafura Swamp is a large inland freshwater wetland in Arnhem Land, in the Top End of the Northern Territory of Australia. It is a near pristine floodplain with an area of that may expand to by the end of the wet season, making it the largest wooded swamp in the Northern Territory and, possibly, in Australia. It has a strong seasonal variation in depth of water. The area is of great cultural significance to the Yolngu people, in particular the Ramingining community. It was the filming location for the film "Ten Canoes".',
   'is_supporting': False},
  {'idx': 3,
   'title': 'Wapizagonke Lake',
   'paragraph_text': 'The Wapizagonke Lake is one of the bodies of water located the sector "Lac-Wapizagonke", in the city of Shawinigan, in the La Mauricie National Park, in the region of Mauricie, in Quebec, in Canada.',
   'is_supporting': False},
  {'idx': 4,
   'title': 'Khabarovsky District',
   'paragraph_text': 'Khabarovsky District () is an administrative and municipal district (raion), one of the seventeen in Khabarovsk Krai, Russia. It consists of two unconnected segments separated by the territory of Amursky District, which are located in the southwest of the krai. The area of the district is . Its administrative center is the city of Khabarovsk (which is not administratively a part of the district). Population:',
   'is_supporting': False},
  {'idx': 5,
   'title': 'Silver Lake (Harrisville, New Hampshire)',
   'paragraph_text': 'Silver Lake is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Harrisville and Nelson. Water from Silver Lake flows via Minnewawa Brook and The Branch to the Ashuelot River, a tributary of the Connecticut River.',
   'is_supporting': False},
  {'idx': 6,
   'title': 'Hyderabad',
   'paragraph_text': 'The jurisdictions of the city\'s administrative agencies are, in ascending order of size: the Hyderabad Police area, Hyderabad district, the GHMC area ("Hyderabad city") and the area under the Hyderabad Metropolitan Development Authority (HMDA). The HMDA is an apolitical urban planning agency that covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city. It coordinates the development activities of GHMC and suburban municipalities and manages the administration of bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB).',
   'is_supporting': False},
  {'idx': 7,
   'title': 'San Juan, Puerto Rico',
   'paragraph_text': "San Juan is located along the north - eastern coast of Puerto Rico. It lies south of the Atlantic Ocean; north of Caguas and Trujillo Alto; east of and Guaynabo; and west of Carolina. The city occupies an area of 76.93 square miles (199.2 km), of which, 29.11 square miles (75.4 km) (37.83%) is water. San Juan's main water bodies are San Juan Bay and two natural lagoons, the Condado and San José.",
   'is_supporting': False},
  {'idx': 8,
   'title': 'States of Germany',
   'paragraph_text': 'Local associations of a special kind are an amalgamation of one or more Landkreise with one or more Kreisfreie Städte to form a replacement of the aforementioned administrative entities at the district level. They are intended to implement simplification of administration at that level. Typically, a district-free city or town and its urban hinterland are grouped into such an association, or Kommunalverband besonderer Art. Such an organization requires the issuing of special laws by the governing state, since they are not covered by the normal administrative structure of the respective states.',
   'is_supporting': False},
  {'idx': 9,
   'title': 'Norfolk Island',
   'paragraph_text': "Norfolk Island is located in the South Pacific Ocean, east of the Australian mainland. Norfolk Island is the main island of the island group the territory encompasses and is located at 29°02′S 167°57′E\ufeff / \ufeff29.033°S 167.950°E\ufeff / -29.033; 167.950. It has an area of 34.6 square kilometres (13.4 sq mi), with no large-scale internal bodies of water and 32 km (20 mi) of coastline. The island's highest point is Mount Bates (319 metres (1,047 feet) above sea level), located in the northwest quadrant of the island. The majority of the terrain is suitable for farming and other agricultural uses. Phillip Island, the second largest island of the territory, is located at 29°07′S 167°57′E\ufeff / \ufeff29.117°S 167.950°E\ufeff / -29.117; 167.950, seven kilometres (4.3 miles) south of the main island.",
   'is_supporting': False},
  {'idx': 10,
   'title': 'Perm',
   'paragraph_text': 'Perm (;) is a city and the administrative centre of Perm Krai, Russia, located on the banks of the Kama River in the European part of Russia near the Ural Mountains.',
   'is_supporting': True},
  {'idx': 11,
   'title': 'Zvezda Stadium',
   'paragraph_text': 'Star (Zvezda) Stadium (), until 1991 Lenin Komsomol Stadium (), is a multi-use stadium in Perm, Russia. It is currently used mostly for football matches and is the home ground of FC Amkar Perm. The stadium holds 17,000 people and was opened on June 5, 1969.',
   'is_supporting': True},
  {'idx': 12,
   'title': 'Paea',
   'paragraph_text': 'Paea is a commune in the suburbs of Papeete in French Polynesia, an overseas territory of France in the southern Pacific Ocean. Paea is located on the island of Tahiti, in the administrative subdivision of the Windward Islands, themselves part of the Society Islands. At the 2017 census it had a population of 13,021.',
   'is_supporting': False},
  {'idx': 13,
   'title': 'Potamogeton amplifolius',
   'paragraph_text': 'Potamogeton amplifolius, commonly known as largeleaf pondweed or broad-leaved pondweed, is an aquatic plant of North America. It grows in water bodies such as lakes, ponds, and rivers, often in deep water.',
   'is_supporting': False},
  {'idx': 14,
   'title': 'Biysky District',
   'paragraph_text': "Biysky District () is an administrative and municipal district (raion), one of the fifty-nine in Altai Krai, Russia. It is located in the east of the krai and borders with Zonalny, Tselinny, Soltonsky, Krasnogorsky, Sovetsky, and Smolensky Districts, as well as with the territory of the City of Biysk. The area of the district is . Its administrative center is the city of Biysk (which is not administratively a part of the district). District's population:",
   'is_supporting': False},
  {'idx': 15,
   'title': 'Contoocook Lake',
   'paragraph_text': 'Contoocook Lake () is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Jaffrey and Rindge. The lake, along with Pool Pond, forms the headwaters of the Contoocook River, which flows north to the Merrimack River in Penacook, New Hampshire.',
   'is_supporting': False},
  {'idx': 16,
   'title': 'Bogotá',
   'paragraph_text': 'Bogotá (/ ˈboʊɡətɑː /, / ˌbɒɡəˈtɑː /, / ˌboʊ - /; Spanish pronunciation: (boɣoˈta) (listen)), officially Bogotá, Distrito Capital, abbreviated Bogotá, D.C., and formerly known as Santafé de Bogotá between 1991 and 2000, is the capital and largest city of Colombia, administered as the Capital District, although often thought of as part of Cundinamarca. Bogotá is a territorial entity of the first order, with the same administrative status as the departments of Colombia. It is the political, economic, administrative, industrial, artistic, cultural, and sports center of the country.',
   'is_supporting': False},
  {'idx': 17,
   'title': 'Body water',
   'paragraph_text': "Intracellular fluid (2 / 3 of body water) is fluid contained within cells. In a 72 - kg body containing 40 litres of fluid, about 25 litres is intracellular, which amounts to 62.5%. Jackson's texts states 70% of body fluid is intracellular.",
   'is_supporting': False},
  {'idx': 18,
   'title': 'Territorial waters',
   'paragraph_text': 'Territorial waters or a territorial sea, as defined by the 1982 United Nations Convention on the Law of the Sea, is a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state. The territorial sea is regarded as the sovereign territory of the state, although foreign ships (civilian) are allowed innocent passage through it, or transit passage for straits; this sovereignty also extends to the airspace over and seabed below. Adjustment of these boundaries is called, in international law, maritime delimitation.',
   'is_supporting': False},
  {'idx': 19,
   'title': 'Cyprus Popular Bank',
   'paragraph_text': "Cyprus Popular Bank (from 2006 to 2011 known as Marfin Popular Bank) was the second largest banking group in Cyprus behind the Bank of Cyprus until it was 'shuttered' in March 2013 and split into two parts. The 'good' Cypriot part was merged into the Bank of Cyprus (including insured deposits under 100,000 Euro) and the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds. The uninsured depositors were subject to a bail-in and became the new shareholders of the legacy entity. As at May 2017, the legacy entity is one of the largest shareholders of Bank of Cyprus with 4.8% but does not hold a board seat. All the overseas operations, of the now defunct Cyprus Popular Bank, are also held by the legacy entity, until they are sold by the Special Administrator, at first Ms Andri Antoniadou, who ran the legacy entity for two years, from March 2013 until 3 March 2015. She tendered her resignation due to disagreements, with the Governor of the Central Bank of Cyprus and the Central Bank Board members, who amended the lawyers of the legacy entity, without consulting her. Veteran banker Chris Pavlou who is an expert in Treasury and risk management took over as Special Administrator of the legacy entity in April 2015 until December 2016. The legacy entity is pursuing legal action against former major shareholder Marfin Investment Group.",
   'is_supporting': False}],
 'question': 'What is the body of water by the city where Zvezda stadium is located?',
 'question_decomposition': [{'id': 604134,
   'question': 'Zvezda >> located in the administrative territorial entity',
   'answer': 'Perm',
   'paragraph_support_idx': 11},
  {'id': 131944,
   'question': 'Which is the body of water by #1 ?',
   'answer': 'Kama River',
   'paragraph_support_idx': 10}],
 'answer': 'Kama River',
 'answer_aliases': ['Kama'],
 'answerable': True}
for paragraph in paragraphs:
    splits = splitter.split_text(paragraph['paragraph_text'])
    for split in splits:
        print(split, '\n')
The Commonwealth of the Philippines (; ) was the administrative body that governed the Philippines from 1935 to 1946, aside from a period of exile in the Second World War from 1942 to 1945 when Japan occupied the country. It replaced the Insular Government, a United States territorial government, and was established by the 

country. It replaced the Insular Government, a United States territorial government, and was established by the Tydings–McDuffie Act. The Commonwealth was designed as a transitional administration in preparation for the country's full achievement of independence. 

Lake Oesa is a body of water located at an elevation of 2,267m (7438 ft) in the mountains of Yoho National Park, near Field, British Columbia, Canada. 

The Arafura Swamp is a large inland freshwater wetland in Arnhem Land, in the Top End of the Northern Territory of Australia. It is a near pristine floodplain with an area of that may expand to by the end of the wet season, making it the largest wooded swamp in the Northern Territory and, possibly, in Australia. It 

season, making it the largest wooded swamp in the Northern Territory and, possibly, in Australia. It has a strong seasonal variation in depth of water. The area is of great cultural significance to the Yolngu people, in particular the Ramingining community. It was the filming location for the film "Ten Canoes". 

The Wapizagonke Lake is one of the bodies of water located the sector "Lac-Wapizagonke", in the city of Shawinigan, in the La Mauricie National Park, in the region of Mauricie, in Quebec, in Canada. 

Khabarovsky District () is an administrative and municipal district (raion), one of the seventeen in Khabarovsk Krai, Russia. It consists of two unconnected segments separated by the territory of Amursky District, which are located in the southwest of the krai. The area of the district is . Its administrative center is the 

in the southwest of the krai. The area of the district is . Its administrative center is the city of Khabarovsk (which is not administratively a part of the district). Population: 

Silver Lake is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Harrisville and Nelson. Water from Silver Lake flows via Minnewawa Brook and The Branch to the Ashuelot River, a tributary of the Connecticut River. 

The jurisdictions of the city's administrative agencies are, in ascending order of size: the Hyderabad Police area, Hyderabad district, the GHMC area ("Hyderabad city") and the area under the Hyderabad Metropolitan Development Authority (HMDA). The HMDA is an apolitical urban planning agency that covers the GHMC and its suburbs, extending to 

is an apolitical urban planning agency that covers the GHMC and its suburbs, extending to 54 mandals in five districts encircling the city. It coordinates the development activities of GHMC and suburban municipalities and manages the administration of bodies such as the Hyderabad Metropolitan Water Supply and Sewerage Board (HMWSSB). 

San Juan is located along the north - eastern coast of Puerto Rico. It lies south of the Atlantic Ocean; north of Caguas and Trujillo Alto; east of and Guaynabo; and west of Carolina. The city occupies an area of 76.93 square miles (199.2 km), of which, 

city occupies an area of 76.93 square miles (199.2 km), of which, 29.11 square miles (75.4 km) (37.83%) is water. San Juan's main water bodies are San Juan Bay and two natural lagoons, the Condado and San José. 

Local associations of a special kind are an amalgamation of one or more Landkreise with one or more Kreisfreie Städte to form a replacement of the aforementioned administrative entities at the district level. They are intended to implement simplification of administration at that level. Typically, a district-free city or town and its urban hinterland are grouped 

administration at that level. Typically, a district-free city or town and its urban hinterland are grouped into such an association, or Kommunalverband besonderer Art. Such an organization requires the issuing of special laws by the governing state, since they are not covered by the normal administrative structure of the respective states. 

Norfolk Island is located in the South Pacific Ocean, east of the Australian mainland. Norfolk Island is the main island of the island group the territory encompasses and is located at 29°02′S 167°57′E / 29.033°S 167.950°E / -29.033; 

/ 29.033°S 167.950°E / -29.033; 167.950. It has an area of 34.6 square kilometres (13.4 sq mi), with no large-scale internal bodies of water and 32 km (20 mi) of coastline. The island's highest point is Mount Bates 

water and 32 km (20 mi) of coastline. The island's highest point is Mount Bates (319 metres (1,047 feet) above sea level), located in the northwest quadrant of the island. The majority of the terrain is suitable for farming and other agricultural uses. Phillip Island, the second largest island of the territory, is located at 

farming and other agricultural uses. Phillip Island, the second largest island of the territory, is located at 29°07′S 167°57′E / 29.117°S 167.950°E / -29.117; 167.950, seven kilometres (4.3 miles) south of the main 

167.950, seven kilometres (4.3 miles) south of the main island. 

Perm (;) is a city and the administrative centre of Perm Krai, Russia, located on the banks of the Kama River in the European part of Russia near the Ural Mountains. 

Star (Zvezda) Stadium (), until 1991 Lenin Komsomol Stadium (), is a multi-use stadium in Perm, Russia. It is currently used mostly for football matches and is the home ground of FC Amkar Perm. The stadium holds 17,000 people and was opened on June 5, 1969. 

Paea is a commune in the suburbs of Papeete in French Polynesia, an overseas territory of France in the southern Pacific Ocean. Paea is located on the island of Tahiti, in the administrative subdivision of the Windward Islands, themselves part of the Society Islands. At the 2017 census it had a population of 

Islands, themselves part of the Society Islands. At the 2017 census it had a population of 13,021. 

Potamogeton amplifolius, commonly known as largeleaf pondweed or broad-leaved pondweed, is an aquatic plant of North America. It grows in water bodies such as lakes, ponds, and rivers, often in deep water. 

Biysky District () is an administrative and municipal district (raion), one of the fifty-nine in Altai Krai, Russia. It is located in the east of the krai and borders with Zonalny, Tselinny, Soltonsky, Krasnogorsky, Sovetsky, and Smolensky 

Soltonsky, Krasnogorsky, Sovetsky, and Smolensky Districts, as well as with the territory of the City of Biysk. The area of the district is . Its administrative center is the city of Biysk (which is not administratively a part of the district). District's population: 

Contoocook Lake () is a water body located in Cheshire County in southwestern New Hampshire, United States, in the towns of Jaffrey and Rindge. The lake, along with Pool Pond, forms the headwaters of the Contoocook River, which flows north to the Merrimack River in Penacook, New 

River, which flows north to the Merrimack River in Penacook, New Hampshire. 

Bogotá (/ ˈboʊɡətɑː /, / ˌbɒɡəˈtɑː /, / ˌboʊ - /; Spanish pronunciation: (boɣoˈta) (listen)), officially Bogotá, 

Spanish pronunciation: (boɣoˈta) (listen)), officially Bogotá, Distrito Capital, abbreviated Bogotá, D.C., and formerly known as Santafé de Bogotá between 1991 and 2000, is the capital and largest city of Colombia, administered as the Capital District, although often thought 

is the capital and largest city of Colombia, administered as the Capital District, although often thought of as part of Cundinamarca. Bogotá is a territorial entity of the first order, with the same administrative status as the departments of Colombia. It is the political, economic, administrative, industrial, artistic, cultural, and sports center of 

It is the political, economic, administrative, industrial, artistic, cultural, and sports center of the country. 

Intracellular fluid (2 / 3 of body water) is fluid contained within cells. In a 72 - kg body containing 40 litres of fluid, about 25 litres is intracellular, which amounts to 62.5%. Jackson's texts states 70% of body fluid is intracellular. 

Territorial waters or a territorial sea, as defined by the 1982 United Nations Convention on the Law of the Sea, is a belt of coastal waters extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (usually the mean low - water mark) of a coastal state. The 

mi) from the baseline (usually the mean low - water mark) of a coastal state. The territorial sea is regarded as the sovereign territory of the state, although foreign ships (civilian) are allowed innocent passage through it, or transit passage for straits; this sovereignty also extends to the airspace over and seabed below. Adjustment of these boundaries 

straits; this sovereignty also extends to the airspace over and seabed below. Adjustment of these boundaries is called, in international law, maritime delimitation. 

Cyprus Popular Bank (from 2006 to 2011 known as Marfin Popular Bank) was the second largest banking group in Cyprus behind the Bank of Cyprus until it was 'shuttered' in March 2013 and split into two parts. The 'good' Cypriot part was merged into the Bank of Cyprus (including insured 

parts. The 'good' Cypriot part was merged into the Bank of Cyprus (including insured deposits under 100,000 Euro) and the 'bad' part or legacy entity holds all the overseas operations as well as uninsured deposits above 100,000 Euro, old shares and bonds. The uninsured depositors were subject to a bail-in and 

Euro, old shares and bonds. The uninsured depositors were subject to a bail-in and became the new shareholders of the legacy entity. As at May 2017, the legacy entity is one of the largest shareholders of Bank of Cyprus with 4.8% but does not hold a board seat. All the overseas operations, of the now 

but does not hold a board seat. All the overseas operations, of the now defunct Cyprus Popular Bank, are also held by the legacy entity, until they are sold by the Special Administrator, at first Ms Andri Antoniadou, who ran the legacy entity for two years, from March 2013 until 3 March 2015. 

the legacy entity for two years, from March 2013 until 3 March 2015. She tendered her resignation due to disagreements, with the Governor of the Central Bank of Cyprus and the Central Bank Board members, who amended the lawyers of the legacy entity, without consulting her. Veteran banker Chris Pavlou who is an expert in Treasury 

the legacy entity, without consulting her. Veteran banker Chris Pavlou who is an expert in Treasury and risk management took over as Special Administrator of the legacy entity in April 2015 until December 2016. The legacy entity is pursuing legal action against former major shareholder Marfin Investment Group. 
chat_model_adv = ChatAnthropic(model_name="claude-3-opus-20240229")
answer_pipe = combined_template | chat_model_adv | output_parser

evidence = str(list({**node_hist_dict, **edge_hist_dict}.values()))
question = lines[-2]['question']
ans_adv = answer_pipe.invoke({'question': question, 'evidence': evidence})
question, ans_adv, lines[-2]['answer']
('What is the body of water by the city where Zvezda stadium is located?',
 Answer(answerable=False, answer='The nodes and edges provided do not contain any relevant information to determine what body of water the city where Zvezda stadium is located is by.', support_idxs=[]),
 'Kama River')