Legislation.gov.uk
Upcoming SlideShare
Loading in...5
×
 

Legislation.gov.uk

on

  • 2,387 views

Background and overview of technical approach and architecture for legislation.gov.uk site.

Background and overview of technical approach and architecture for legislation.gov.uk site.

Statistics

Views

Total Views
2,387
Views on SlideShare
2,385
Embed Views
2

Actions

Likes
2
Downloads
18
Comments
0

1 Embed 2

http://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Each format has advantages, and so each looks at others advantages jealously:\nHTML's ubiquity\nXML's flexibility and ease of parsing\nRDF's reach to a real-world\nJSON's practicality\n\nOne result is ghettoisation: "you should not exist! you have no point! I am all that's needed!"\nAnother result is self-doubt: "what am I here for? what should I be?"\n
  • \n
  • \n
  • URLs that address structures within formats help those formats to be used together. They can be used for their strengths, without being compromised.\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Legislation.gov.uk Legislation.gov.uk Presentation Transcript

  • legislation.gov.ukJeni Tennisonhttp://www.jenitennison.com/blog/@JeniT
  • Work of many
  • Overview• UK Legislation• Goals• Architecture• Expert Participation• Lessons learned
  • UK Legislation
  • integration of two sites OPSI and SLD
  • many types of legislation from 1267 to modern day
  • Data sources• as-enacted legislation (OPSI) • PDFs • pre-1988 OCRd • post-1988 SGML/XML data sources• revised legislation (SLD) • February 1991 "base date" • different XML format
  • semi-structured documents headings, numbered provisions
  • new legislation published every working day
  • versioning amendments & extents
  • Goals
  • Usable• user experience • oriented around personas of real users • clear provisos so you know what youre looking at• reuser experience • variety of formats (HTML snippets, XML, RDF, PDF) • feeds for access• integration between the two
  • Open• open standards • non-proprietary formats• open source • use open source technologies where appropriate • open source our code - https://github.com/legislation/legislation• open licence • all available under Open Government Licence
  • RESTful• URIs for everything • every item of legislation • every level within it • every version of them • every view of them • every format of them• HTTP status codes / content negotiation• typed link for every transition
  • Architecture
  • work /id/ukpga/1985/67expression 303 See Other /ukpga/1985/67/scotland /ukpga/1985/67/2001-04-01 /ukpga/1985/67manifestation Content-Location /ukpga/1985/67/data.xml /ukpga/1985/67/data.pdf /ukpga/1985/67/data.htm information architecture FRBR model
  • work /id/ukpga/1985/67/section/6expression 303 See Other/ukpga/1985/67/section/6/scotland /ukpga/1985/67/section/6/2001-04-01 /ukpga/1985/67/section/6manifestation Content-Location/ukpga/1985/67/section/6/data.xml /ukpga/1985/67/section/6/data.pdf /ukpga/1985/67/section/6/data.htm same for every fragment parts / chapters / sections
  • tables of contents access at any level
  • timelines access any point in time
  • custom XML format crown legislation markup lang.
  • browsing and searching views from Atom feeds
  • single source multiple views
  • caching & delivery CDN caching cache static files web server transformation pipeline engine XSLT & XSL-FOstorage & queries XML database XML & XQuery system architecture native XML
  • caching & delivery Akamai caching Squid static files Apache transformation Orbeon XSLT & XSL-FOstorage & queries MarkLogic XML & XQuery system architecture native XML
  • Expert Participation
  • Data quality• data is out of date • 100,000 unapplied effects • can apply 10,000/year; parliament makes 15,000• help others help us (and themselves) • open source as a model • editorial team retains control & ensures quality • framing participant tasks • reviewing participant work
  • New requirements• new types of information • effects & research • tasks & workflows • participants & permissions & messages• new levels of interactivity • read/write platform • dynamic, native web interface
  • lingua franca application-native data HTML JSON concise hard to get wrongsingle source format web-native data XML RDF flexible graph model other formats are better for other things
  • caching & delivery CDN caching cache static files web server transformation pipeline enginedocuments XML database triplestore data new architecture XML and RDF data
  • displays driven by RDF transformed by XSLT
  • HTML JSON URIsXML RDF URIs are the keys weak, flexible links
  • Lessons learned
  • User and re-user focus• integrated API and UIs • guarantees relevance • help re-users understand information • help developers debug• URIs are key • addressability • sharability • understanding of underlying resource model
  • Agility• native XML eases development • provides flexible access into documents • avoids data model mismatches• native RDF eases development too! • ease of combining information from different sources • querying with SPARQL• schema-free & extensible aids agility
  • Pitfalls• performance • caching • batch processing• proprietary software • rely on non-standard functions & tools • partition code
  • Summary• complex documents • added value from having them on the web• layered architecture • make the most of single-source publishing• web standards • long-term flexibility• if we can do it with legislation ...
  • Questions?