58
John Sheridan 25 January 2012 Legislation as data

20130125odifridays legislation

  • Upload
    theodi

  • View
    109

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: 20130125odifridays legislation

John Sheridan

25 January 2012

Legislation as data

Page 2: 20130125odifridays legislation

• “The acceptance of the rule of law as a constitutional principle requires that a citizen, before committing himself to any course of action, should be able to know in advance what are the legal principles which flow from it”

– Lord Diplock, House of Lords, 1975

• “The law must be adequately accessible”

– European Court of Human Rights

2

Page 3: 20130125odifridays legislation

3

The web has changed who is accessing legislation and why, just as much as it has changed access to healthcare information

Page 4: 20130125odifridays legislation

4

Page 5: 20130125odifridays legislation

An old slide (from 2005)

5

Page 6: 20130125odifridays legislation

6

Page 7: 20130125odifridays legislation

Legislation as data

• Three considerations for legislation as datao Typographic layouto Versioning / changes over timeo Semantics

• Semantic representation using RDF and Linked Datao URIs for thingso RDF data modelo subject - property - object

• Requires granular URIs to name thingso Identifiero Documento Representation

7

Page 8: 20130125odifridays legislation

Foundations - naming things

• If you visit legislation.gov.uk you will see we have taken great care with naming things

8

Returns an html document for United Kingdom Public General Act (ukpga), 2005, Chapter 14, Section 1

Returns an html document with a list from all legislation types where the title contains “wildlife”

Page 9: 20130125odifridays legislation

Some of the names are quite sophisticated…

• UK Public General Act (ukpga)• 1981• Chapter 69• Section 5• As it extends to England• As it stood on 30th January 2001• Displayed as an HTML document with the timeline on

• Although URIs are opaque having this type of design changes how people use the service

9

Page 10: 20130125odifridays legislation

10

Page 11: 20130125odifridays legislation

European Legislation Identifier

11

Page 12: 20130125odifridays legislation

New Statutory Instruments 2000-2012 (by size of the legislation)

Domestic

European

Regulations

Regulations

Orders

Rules

Temporary

Amending

Amending

New

New

Page 13: 20130125odifridays legislation

13

New Regulations 2000-2012 (by size of the legislation)

Domestic

European

Amending

New

Amending

New

Page 14: 20130125odifridays legislation

Legislation as data, legislation as code

• Legislation as data – the information contained in legislation can be accessed and used by computer programs

• Legislation as code – legislation is (or becomes) a set of processing instructions for a computer to follow

14

Page 15: 20130125odifridays legislation

15

Page 16: 20130125odifridays legislation

Data

• All the information on legislation.gov.uk is available as open data under the terms of the Open Government Licence

• To access the data, visit any page and add:o /data.xmlo /data.rdfo /data.xht

• For listso /data.feed

16

Page 17: 20130125odifridays legislation

17

Page 18: 20130125odifridays legislation

Linked Data

18

Page 19: 20130125odifridays legislation

Henry Maudslay (1771–1831)

He also developed the first industrially practical screw-cutting lathe in 1800, allowing standardisation of screw thread sizes for the first time. This allowed the concept of interchangeability (a idea that was already taking hold) to be practically applied to nuts and bolts. Before this, all nuts and bolts had to be made as matching pairs only. This meant that when machines were disassembled, careful account had to be kept of the matching nuts and bolts ready for when reassembly took place.

http://en.wikipedia.org/wiki/Henry_Maudslay

Page 20: 20130125odifridays legislation

Unstructured text

HTML web pages, PDF documents

Structured data

CSV files, RDF Linked Data

20

Ever since the start of the Semantic Web developments, one of the issues was how to make various types of data available on the Semantic Web for, eg, further integration. Technically, this means making the data available in RDF. One approach is to encode the RDF data in one of its serialization formats, ie, RDF/XML or Turtle, but that approach does not really scale. Interfaces to databases are being developed that can, for example, provide on-the-fly conversion of data into RDF, often via SPARQL endpoints. Automatic or semi-automatic conversions exist for a number of other formats. In general it has been recognized that one should not look for one specific approach; rather, different types of data on the Web require their own, data-specific way of expressing

Documents Data

Page 21: 20130125odifridays legislation

Unstructured text

HTML web pages, PDF documents

Structured data

CSV files, RDF Linked Data

21

Ever since the start of the Semantic Web developments, one of the issues was how to make various types of data available on the Semantic Web for, eg, further integration. Technically, this means making the data available in RDF. One approach is to encode the RDF data in one of its serialization formats, ie, RDF/XML or Turtle, but that approach does not really scale. Interfaces to databases are being developed that can, for example, provide on-the-fly conversion of data into RDF, often via SPARQL endpoints. Automatic or semi-automatic conversions exist for a number of other formats. In general it has been recognized that one should not look for one specific approach; rather, different types of data on the Web require their own, data-specific way of expressing

Documents DataFacts in legislation as structured data

Page 22: 20130125odifridays legislation

Linked Data

• URIs to name things• Graph based data model

22

Page 23: 20130125odifridays legislation

So how does Linked Data help?

23

Page 24: 20130125odifridays legislation

Amending legislation

24

Section 12 (4) amends the Charities Act 1993, inserting some words into this Act.

Page 25: 20130125odifridays legislation

Bringing into force the Act

25

But what about Section 12???

Sections 15 to 20 come into force immediately when the Act is passed

Page 26: 20130125odifridays legislation

So, “A” changes “B” when “C” says so

26

So the timing for the rest of the Act coming into force is left open for the Secretary of State to decide…

Page 27: 20130125odifridays legislation

Section 12 (4) came into force 1/1/2011

27

Coming into force on 1st January 2011

Section 12 (4)

Page 28: 20130125odifridays legislation

“A” changes “B” when “C” says so

28

Academies Act 2010

Section 19 (2)

Academies Act 2010

Section 12 (4)

SI 2010/1937 Schedule 3

Charities Act 1993 Schedule

2 (ca)

Secretary of State

Confers power

Makes

Commences

Inserts text into

Page 29: 20130125odifridays legislation

29

Page 30: 20130125odifridays legislation

30

Page 31: 20130125odifridays legislation

31

Page 32: 20130125odifridays legislation

32

Location

Time

Page 33: 20130125odifridays legislation

33

Location

Time

Concepts

Page 34: 20130125odifridays legislation

34

Location

Time

Concepts

Many of these aredefined in legislation

Page 35: 20130125odifridays legislation

Data, data, everywhere

• Data in legislationo Definitionso Changeso Dutieso Powerso Offenceso Transpositionso Designations

• Data about legislationo Economic - Impact Assessmentso Social – opinions on twitter

35

Page 36: 20130125odifridays legislation

Concepts are defined in legislation

• What does it mean to be a company• What does it mean to be a school• and so on…

36

Page 37: 20130125odifridays legislation

37

Page 38: 20130125odifridays legislation

Designation

38

Page 39: 20130125odifridays legislation

Economic data

39

Page 40: 20130125odifridays legislation

40

Page 41: 20130125odifridays legislation

Transposition

41

Page 42: 20130125odifridays legislation

42

What changes to the law improve the conviction rates?

Page 43: 20130125odifridays legislation

43

What changes to the law improve the conviction rates?

Changes to

legislation

Page 44: 20130125odifridays legislation

44

What changes to the law improve the conviction rates?

Changes to

legislation

Conviction rates

statistics

Page 45: 20130125odifridays legislation

45

What changes to the law improve the conviction rates?

Changes to

legislation

Conviction rates

statistics

Linked Data Standards

Page 46: 20130125odifridays legislation

Legislation URIs link everything together

• Identifiero http://www.legislation.gov.uk/id/{type}/{year}/{number}/section/{number}o eg http://www.legislation.gov.uk/id/ukpga/2010/32/section/12/4

• Documento http://www.legislation.gov.uk/{type}/{year}/{number}/section/{number}o eg http://www.legislation.gov.uk/ukpga/2010/32/section/12#section-12-4

• Representationso /data.xmlo /data.xhto /data.pdfo /data.rdfo and for any list, /data.feed

46

Page 47: 20130125odifridays legislation

Not all information is equal

• Publishing digital information changes the form of the content

• The facts on which £ billions turn or that impact on people’s lives require different treatment from the ephemeral – not least to ensure the integrity of the public record

• Who is making information available, by what right, what processes has it been subject to, become key questions

• Increasingly important to express provenance for high-end sources of information, such as legislation.gov.uk

47

Page 48: 20130125odifridays legislation

48

Page 49: 20130125odifridays legislation

Open Data as Operating Model

49

Page 50: 20130125odifridays legislation

Inspirations: Open Source Software

50

Page 51: 20130125odifridays legislation

Why does Open Source Software work?

51

Page 52: 20130125odifridays legislation

“The impossible public good”?

• Large and complex systems• Enabled by the internet• Two elements,

o a system of sustainable value creationo a system of governance

holds together a community of producers• Distributed property rights, eg the GNU Public

Licence (GPL)

52

Page 53: 20130125odifridays legislation

Can we apply the same logic to data?

53

Page 54: 20130125odifridays legislation

Open Government Data: a new impossible public good?

• Large and complex data• Enabled by the internet• Two elements,

o a system of sustainable value creationo a system of governance

holds together a community of producers• Distributed property rights enabled by the Open

Government Licence

54

Page 55: 20130125odifridays legislation

Expert Participation

• Make the data available maximise, encourage and support re-use

• Inside-out, transform internal processes, systems and tools to external ones

• Retain what adds value – practice, process and control• Invite expert participation from other parts of government,

businesses, academics and individuals• Open data enables investment

Page 56: 20130125odifridays legislation

Challenges

• Governance• Process• Quality• Technology• Culture• Guarantees

Page 57: 20130125odifridays legislation

Legislation data as a public good

• Old world: commercially licence the data to bring in the resources needed to create and maintain high quality information that is easy to re-use

• New world: open the data and enable participation, to bring in the resources needed to create and maintain high quality information that is easy to re-use

Page 58: 20130125odifridays legislation

Final thoughts

“We shape our tools and they in turn shape us”

– Marshall McLuhan

58