Datasets:

License:
Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 7 new columns ({'label', 'number', 'extent', 'id', 'text', 'number_of_provisions', 'legislation_title'}) and 3 missing columns ({'target_id', 'context', 'source_id'}).

This happened while the csv dataset builder was generating data using

zip://core/nodes.tsv::/tmp/hf-datasets-cache/medium/datasets/28487155202409-config-parquet-and-info-i-dot-ai-lex-graph-a0854b67/hub/datasets--i-dot-ai--lex-graph/snapshots/372015a264b92052b9af1e39cf82018e34e5a458/core.zip

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 623, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              Unnamed: 0: int64
              id: string
              label: string
              type: string
              text: string
              extent: string
              number_of_provisions: double
              legislation_title: string
              number: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1309
              to
              {'Unnamed: 0': Value(dtype='int64', id=None), 'source_id': Value(dtype='string', id=None), 'target_id': Value(dtype='string', id=None), 'type': Value(dtype='string', id=None), 'context': Value(dtype='string', id=None)}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1438, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1050, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 7 new columns ({'label', 'number', 'extent', 'id', 'text', 'number_of_provisions', 'legislation_title'}) and 3 missing columns ({'target_id', 'context', 'source_id'}).
              
              This happened while the csv dataset builder was generating data using
              
              zip://core/nodes.tsv::/tmp/hf-datasets-cache/medium/datasets/28487155202409-config-parquet-and-info-i-dot-ai-lex-graph-a0854b67/hub/datasets--i-dot-ai--lex-graph/snapshots/372015a264b92052b9af1e39cf82018e34e5a458/core.zip
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Unnamed: 0
int64
source_id
string
target_id
string
type
string
context
string
0
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/117/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/117
part_of
null
1
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/117/section
http://www.legislation.gov.uk/id/ukpga/1842/94
commentary_M
1842 c. 94
6
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/117/section
http://www.legislation.gov.uk/id/uksi/1964/488
commentary_F
S.I. 1964/488
7
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/117/section
http://www.legislation.gov.uk/id/uksi/1964/488/schedule/1
commentary_F
Sch. 1 Pt. II
9
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/58/section
http://www.legislation.gov.uk/id/aep/1702/1
commentary_M
1702 c. 1
10
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/58/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/58
part_of
null
11
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/58/section
http://www.legislation.gov.uk/id/ukpga/1808/73
commentary_M
1808 c. 73
12
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/58/section
http://www.legislation.gov.uk/id/ukpga/1817/97
commentary_M
1817 c. 97
18
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/58/schedule
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/58
part_of
null
19
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/90/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/90
part_of
null
22
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/111/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/111
part_of
null
25
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/asp/2016/20
commentary_F
Burial and Cremation (Scotland) Act 2016 (asp 20)
26
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/ssi/2016/417
commentary_F
S.S.I. 2016/417
27
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/asp/2016/20/section/112
commentary_F
s. 112(2)
28
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/asp/2016/20/schedule/2
commentary_F
sch. 2
29
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/asp/2016/20/section/111
commentary_F
s. 111
30
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/ssi/2016/417/regulation/2
commentary_F
reg. 2
31
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/ssi/2016/417/schedule
commentary_F
sch.
32
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/ssi/2016/417/regulation/3
commentary_F
reg. 3
33
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/68
part_of
null
313
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120
part_of
null
315
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/section
http://www.legislation.gov.uk/id/ukpga/1851/95
commentary_M
1851 c. 95
316
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/section
http://www.legislation.gov.uk/id/ukpga/1936/50
commentary_F
Public Health (London) Act 1936 (c. 50)
317
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/section
http://www.legislation.gov.uk/id/ukpga/1936/50/schedule/7
commentary_F
Sch. 7
320
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/schedule
http://www.legislation.gov.uk/id/uksi/1965/540
commentary_F
S.I. 1965/540
321
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/schedule
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/section
commentary_F
Ss. 1–238
323
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/schedule
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/schedule
commentary_F
Schs.
324
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/schedule
http://www.legislation.gov.uk/id/uksi/1965/540/schedule/3
commentary_F
Sch. 3
335
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120/schedule
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/120
part_of
null
336
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1852/36
commentary_M
1852 c. 36
337
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81
part_of
null
338
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1977/18
commentary_F
Statute Law (Repeals) Act 1977 (c. 18)
339
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1977/18/schedule/1
commentary_F
Sch. 1 Pt. V
348
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/1996/273
commentary_C
S.I. 1996/273
349
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
commentary_C
S. 7
350
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/1996/273/article/3
commentary_C
art. 3(1)
351
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/1996/273/schedule/1
commentary_C
Sch. 1 para. 2
352
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/2008/678
commentary_C
The Transfer of Functions (Registration) Order 2008 (S.I. 2008/678)
353
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/1968/1242
commentary_F
S.I. 1968/1242
354
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/1968/1242/schedule/2
commentary_F
Sch. 2
357
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/section/337
freetext_reference
Section 337 of the 2011 Act (provisions as to orders under that Act) applies to any order under subsection (1)(b) as it applies to orders under that Act.
358
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1993/10
commentary_F
1993 c. 10
359
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1993/10/section/98
commentary_F
ss. 98(1)
360
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1993/10/section/99
commentary_F
99(1)
361
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1993/10/schedule/6
commentary_F
Sch. 6 para. 1(3)
368
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/1977/1861
commentary_F
S.I. 1977/1861
369
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/uksi/1977/1861/article/4
commentary_F
art. 4
371
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1953/37
commentary_M
1953 c. 37
372
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/section
http://www.legislation.gov.uk/id/ukpga/1953/20
commentary_M
1953 c. 20
376
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81/schedule
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/81
part_of
null
378
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukpga/1892/19
commentary_F
Statute Law Revision Act 1892 (c. 19)
379
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128
part_of
null
386
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukcm/1956/3
commentary_C
Parochial Church Councils (Powers) Measure 1956 (No. 3)
387
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukcm/1956/3/section/4
commentary_C
s. 4(1)(ii)(c)
388
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukpga/1972/70
commentary_X
Local Government Act 1972 (c. 70)
389
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
commentary_X
S. 18
390
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukpga/1972/70/schedule/30
commentary_X
Sch. 30
391
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukpga/1963/33
commentary_F
London Government Act 1963 (c. 33)
392
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/128/section
http://www.legislation.gov.uk/id/ukpga/1963/33/schedule/18
commentary_F
Sch. 18 Pt. II
399
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/131/section
http://www.legislation.gov.uk/id/ukpga/1981/19
commentary_F
Statute Law (Repeals) Act 1981 (c. 19)
400
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/131/section
http://www.legislation.gov.uk/id/ukpga/1981/19/schedule/1
commentary_F
Sch. 1 Pt. XII
401
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/131/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/131
part_of
null
403
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/48/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/48
part_of
null
408
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/84/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/84
part_of
null
411
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/32/section
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/32
part_of
null
413
http://www.legislation.gov.uk/id/ukpga/Vict/18-19/32/section
http://www.legislation.gov.uk/id/ukpga/1892/19
commentary_F
Statute Law Revision Act 1892 (c. 19)
416
http://www.legislation.gov.uk/id/aep/Edw1/18/1/section
http://www.legislation.gov.uk/id/aep/Edw1/18/1
part_of
null
418
http://www.legislation.gov.uk/id/aep/Edw1/18/1/section
http://www.legislation.gov.uk/id/ukpga/1960/58
commentary_F
Charities Act 1960 (c. 58)
419
http://www.legislation.gov.uk/id/aep/Edw1/18/1/section
http://www.legislation.gov.uk/id/ukpga/1960/58/schedule/7
commentary_F
Sch. 7 Pt. II
421
http://www.legislation.gov.uk/id/ukpga/Vict/16-17/2/section
http://www.legislation.gov.uk/id/ukpga/1973/39
commentary_F
Statute Law (Repeals) Act 1973 (c. 39)
422
http://www.legislation.gov.uk/id/ukpga/Vict/16-17/2/section
http://www.legislation.gov.uk/id/ukpga/1973/39/schedule/1
commentary_F
Sch. 1 Pt. IV
429
http://www.legislation.gov.uk/id/ukpga/Vict/16-17/2/section
http://www.legislation.gov.uk/id/ukpga/Vict/16-17/2
part_of
null
430
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1851/42
commentary_M
1851 c. 42
431
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28
part_of
null
432
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1971/23
commentary_C
Courts Act 1971 (c. 23)
433
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1971/58
commentary_C
Sheriff Courts (Scotland) Act 1971 (c. 58)
434
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
commentary_C
S. 2
435
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1971/23/section/28
commentary_C
s. 28(2)
436
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1971/58/section/24
commentary_C
s. 24(3)
437
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1877/57
commentary_C
Supreme Court of Judicature Act (Ireland) 1877 (c. 57)
438
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1897/66
commentary_C
Supreme Court of Judicature (Ireland) (No. 2) Act 1897 (c. 66)
439
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1920/67
commentary_C
Government of Ireland Act 1920 (c. 67)
440
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1877/57/section/4
commentary_C
ss. 4
441
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1877/57/section/21
commentary_C
21(4)
442
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1877/57/section/36
commentary_C
36
443
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1897/66/section/1
commentary_C
s. 1
444
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1920/67/section/38
commentary_C
ss. 38
445
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1920/67/section/40
commentary_C
40
446
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1920/67/section/41
commentary_C
41
447
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/uksi/1970/1681
commentary_C
S.I. 1970/1681
448
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/uksi/1970/1681/article/3
commentary_C
art. 3(1)
449
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1980/65
commentary_C
Local Government, Planning and Land Act 1980 (c. 65, SIF 123:1, 2)
451
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1980/65/section/122
commentary_C
s. 122(1)
452
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/uksi/2009/1604
commentary_C
S.I. 2009/1604
454
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/uksi/2009/1604/article/2
commentary_C
art. 2(b)
455
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/2007/15
commentary_C
Tribunals, Courts and Enforcement Act 2007 (c. 15)
457
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/2007/15/section/41
commentary_C
ss. 41(3)(a)
458
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/2007/15/section/148
commentary_C
148
462
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1806/154
commentary_M
1806 c. 154
463
http://www.legislation.gov.uk/id/ukpga/Vict/15-16/28/section
http://www.legislation.gov.uk/id/ukpga/1808/146
commentary_M
1808 c. 146
End of preview.

Lex Graph 🕸️

A knowledge graph of UK legislation, combining structural and free text information. Lex Graph contains public-sector information licensed under the Open Government Licence v3.0

The source code for building Lex Graph and a demo application can be found on our GitHub repo. To learn more about the project, read the blog post.

Data

The core data (edges and nodes) can be found in the zipped core file. This contains the graph structure and legislations text content as node features.

Simplified edgelists in both csv and tsv format can be found in the edgelists file. This contains just the graph structure.

Tiny samples of the edgelist and nodelist can be found in the samples folder.

Limitations

This is a prototype and does not guarantee accurate data. The codebase and features are subject to change. Some functionality may be experimental and require further testing and validation.

  • Data Coverage: This prototype currently processes UK legislation data from the National Archives, but may not capture all legislative documents or their complete revision history. Some older or specialised documents might be missing or incompletely processed.

  • Graph Completeness: The relationships between legislative documents are primarily based on explicit references found in the XML files. Implicit connections, contextual relationships, or references using non-standard formats may be missed.

  • Data Accuracy: While we strive for accuracy, the automated parsing and graph construction process may contain errors, particularly when handling:

    • Complex nested legislative structures
    • Unusual formatting or non-standard XML structures
    • Cross-references using ambiguous or incomplete citations
    • Amendments and repeals that are conditionally applied
  • Legal Disclaimer: This tool is intended for research and analysis purposes only. It should not be relied upon for legal advice or as an authoritative source of legislation. Users should always refer to official sources for current and accurate legislative information.

Credits

This project builds upon and was inspired by the work of the Graphie team at King’s Quantitative and Digital Law Lab (QuantLaw), King's College London. Their original project Graphie demonstrated innovative approaches to legal knowledge graph construction and analysis of UK legislation, based on the Housing Act 2004. We encourage those interested in legal knowledge graphs to explore the original Graphie project available at: https://github.com/kclquantlaw/graphie.

All data is sourced from The National Archives legislation wesbite. Crown © and database right material reused under the Open Government Licence v3.0. Material derived from the European Institutions © European Union, 1998-2019, reused under the terms of Commission Decision 2011/833/EU.

Downloads last month
29