What is the shape of this
thing?
(Roughly speaking)
Which is all fine
In theory. Except the data platform is not a magic bucket…
Strings are not things
Strings are not things
Strings are not things
DDP RDF data
skos
LEGEND
parliamentsemantic desktopfoaf data-cuberdfs
dublincore
schema.org
Command paper
House of commons
paper
Lords library note
POST report
POST note
Research briefing
Research paper
Standard note
Unprinted command
paper
Unprinted paper
title
creator
human indexable
identifier
date
publisher
topic
Organisation
EDMs
seeAlso
Concepts
Person
Concept
data
propertyClass
object
property
internalLocation
Sessions
Election
Parliamentary paper
Early day motion
EDM amendment
Oral parliamentary
questions
Attachment
Written parliamentary
questions
dateTimeForAnswer
Commons Division
Division
Not Content Vote
Content Vote
Aye Vote
No Vote
Did Not Vote
Abstains
Suspended Or
Expelled Vote
Error Vote
Content Teller
Not Content Teller
Aye Teller
No Teller
vote
teller
defferedVote
margin
errorVoteCount
suspendedOr
ExpelledVoteCount
didNotVoteCount
nonEligableCount
abstainedCount ayesCount
noesCount divisionCount
divisionNumber
member
memberParty
memberPartyID
memberRank
memberTitle
memberFrom
memberGender
whippedVote
notContentsCount contentsCount
officialContentsCount
officialNotContentsCount
divisionResult
divisionNumber
Article
modified
department
legislature
published
department printed
approvalDays
session
comments
authoritychairmansReportDate
containsEM
containsIA
dateApproved
dateLaid
dateWithdrawn dateWithdrawn
draft
indexNumber
jointComitteeOn
StatutoryInstruments
jointComitteeOn
StatutoryInstruments
paperNumber paperType
parliamentNumber
prayerprocedure
referralsession
sessionNumber
slideTitle
withdrawn
attachment
category
categorySnapshot
containsAttachment
current Location
htmlSummary
section
status
subType
description
attachment
Written Parliamentary
Answer
answer
Person
Person
tablingMember
dateForAnswer questionText dateTabled dateTabled
registeredInterest answerDeptId wpqType pqStatus
houseID version tabling
constituency questionFirstAnswered
questionFirstCorrected questionFirstCorrected tablingMemberPrinted
Oral parliamentary
questionTime
place
ballotNumber
subject
failedOral
unStarred
question
questionTime
answerBody
QuestionTime
AnsweringBody
SnapShot
answeringDeptSnapshot
answeringDept
TargetSnapshot
answeringDept
ShortNameSnapshot
answeringDept
ShowInTitleSnapshot
QuestionTime
answerBody
questionTime
member
custodianBillAgent
written
ParliamentaryQuestion
order
familyName
telephone
givenName
email name
name
label
legalName
birthDate
additionalName
gender
address
hasCeasedTreading
deathDate
hasRegisteredInterest
Shared biblio
properties
constituency
OrdnanceSurvey
admingeo
Open-vocab
twitter-id homePage
owl
sameAs
order
isElectionCandidate
voteChangePercentage
numberOfVotes
party
Person and organisation properties
Person
BillStage
BillStageType
Session
SessionDay
parliament
Parliament
Session
Session
Bill
sponsor
Sponsor
billPublication
selectCommittee
orginatingLegislature
member
billStage
BillStageSitting billStageSitting
billStageType
Attendence
billAgent
Organisation
legislature
subject
Concept
Bills data properties
billTypeCode
billTypeDescription billType
isMoneyBill
isPrivateBill
isPublicBill
isPublicBill
canPublicGetInvolved ballotNumber
actName
billChapter
petitionInfo
wibPetitionInfo
petitionPeriod
isProvisional
isFormal
isPublicBillStage
isPrivateBillSatge
parliamentNumber
startDate
endDate
Election
ElectionResult
Person
Westminster
Constituency
hasCandidate
constituency
election
resultOfElection
electorate
turnout
majority
hasNationalResult
electionType
date
label
humanIndexable
published
legislature
sponsor
EDM signature
hasSignature
sessionNumber
dateTabled
edmStatus
numberOfSignatures
edmNumber
motionText
primarySponsorPrintedsponsorPrinted
date identifier title
session
edm
SIAnnulment
SIRevocation
primarySponsor
member
isPrimarySponsor
withdrawn
sigStatus
isSponsor
constituency
party
Constituencies
Westminster
Constituency
gssCode
prefLabel
label
osName
constituencyType
previousContituency
startDate
endDate
Registered
Interest
date
created
RegisteredInterest
registeredInterest
categoryName
registeredLate
categoryId
lastAmendment
amendmentDate
dayTypeCommons
dayTypeLordsDescription
date
dayTypeLords
dayTypeCommonsDescription
Group
Organisation
prefLabel
altLabel
dateReviewed
sesID
sesClass
isThesaurusTerm
isPreferred
minsID
minsDeptId
name
firstName
mbox
phone
surname
scopeNote
broader
subBridgeTerm bridgeTerm
narrower
related
exactMatchrelated
Divisions
Archipelagos
If the data doesn’t join, the
website won’t link
Missing links
Missing links
Missing links
Missing links
Domain Modelling
Domain Modelling
• Not yet a “computer thing”; more user research with a different
technique
• The domain modelling is more important than the domain model
• Don’t “start with user needs”. Start with user mental models
• Get people to sketch their view of their world. Sketch back at them
• Accept that some bits of Parliament are complicated. But some bits
are complex
• Model just enough to be useful but no more
SI
Motion
Committee
Gov
departments
Negative SIAffirmative SI
Posts
Roles
Members
Memberships
Delegated
legislation
committee
Scrutiny
committee
Documents
Explanatory
notes
Explanatory
memorandum
Impact
assessment
Layed
EU directive
Enabling
legislation
SI
Act
Legislation
Amends (crud)
legislation
Approval
motion
Annulment
motion
Consideration
motion
Tabled
Calendar
Business item
Approval debate
Annulment
debate
Rooms Decision Voiced
Division
Differed
Division
Praying period
Prayer
EDM
Take note
Regret
Consideration
debate
Scrutinises
Select
committee
Report
Note
Grand
committee
(lords)
Select
committeeGeneral
committee
(commons)
UK Parliament Domain Model
What
WhenWhere
Who
Holds seat
Constituencies
Rooms
Chambers
Buildings
Estates
Houses
House
Country
Extents
Wards
Parliamentary
constituencies
MEP
constituencies
Groups
Houses
Members
Commisions Committees
APPGs
Government
departments
Focus areas
Financial
Interests
Seats
Seat types
Roles
Membership
People
Parties
Whippings
Members officer
Lords
appointments
Organisations
Interest types
Public sector
organisations
Time
Time
Time
Posts
Scrutinises
Bills
Statutory instruments
Submitted
Initiated
Supported
Laid Depositied
Tablings
Askings
Signings
Sponserships
Ballot
Library deposits
Green papers
White papers
Calendar days
Day
Session
Parliament
Reign
House
Sitting Day
Non-Sitting Day
Recess days
State opening
Backbencher
days
Opposition days
Budget
Estimate days
Autumn budget
Praying period
Decision
Voiced
DivisionDiffered
Division
EDMs and petitions
Explanatory
notes
Explanatory
memorandum
Impact
assessment
Select
committee
Report
Note
Motion
Negative SIAffirmative SI
Approval
motion
Annulment
motion
Consideration
motion
Prayer
EDM
Take note
Regret
Paper Petition
Amendments
Bill stage
Bill stage: 1st
reading
Bill stage: 2nd
reading
Bill stage:
committee
stage
Bill stage:
report stage
Bill stage: 3rd
reading Bill
Bill version
Legislation EU directive
Enabling
legislation
Statutory
instruments
Act
Amends (crud)
legislation
Written questions
Written
statements
Corrections
Written answers
Written
questions
Business item
Statutory
instrument
Events
Topic
Contributed
Oral Written
Withdrawings Evidence
Motion
Calendar
Business item
Approval debate
Annulment
debate
Consideration
debate
Urgent
questions
Business
questions
Topic
Debates
Committee
Meeting
Evidence
sessions
Site visits
Oral statements
Corrections
Oral questions
Oral questions
Calendar business items
Oral answers
Royal assent
Monarch
Inquiry
Amendment
Report
Select committee
Bill related committee
Special committee
Public enquiry
Scrutiny
committee
General
committee
(commons)
Delegated
legislation
committee
https://github.com/ukpds/domain-models
Ubiquitous language
• Business application labels
• Data model / ontology
• Service layer API
• Models
• Controllers
• URLs
• Markup
• CSS etc
Next steps
• Sense check the details around passage of a bill
• Zoom in to specific areas as business applications and the new website
require
• More domain modelling with domain experts (internal and external)
• More domain modelling with end users
• Synthesise the models
• Derive data models (ontologies) from the domain model
• The domain model is not just a step to a data model
• It informs the information architecture of business applications, stapling
tools and the new website
• And how the website interoperates with the wider web
Demo of schema.org so far
Future collaboration
• With House of Representatives on data models and mappings to
schema.org
• With schema.org to map our internal model to search engine friendly
models
• With GDS / NAO on registers (reference data) for common interests
(eg Government departments)
• With other parliaments (via the IPU) to agree on common models
(and differences)
• With Wikidata to map our identifiers to theirs
Thanks to
• IDMS
• The Journal Office
• The Table Office
• The Public Bills Office
• Commons Library
• Lords Library
• The Archive
Always end on polemic
• Your parliament is not a snowflake

Toward a parliamentary domain model

  • 1.
    What is theshape of this thing? (Roughly speaking)
  • 3.
    Which is allfine In theory. Except the data platform is not a magic bucket…
  • 4.
  • 5.
  • 6.
  • 7.
    DDP RDF data skos LEGEND parliamentsemanticdesktopfoaf data-cuberdfs dublincore schema.org Command paper House of commons paper Lords library note POST report POST note Research briefing Research paper Standard note Unprinted command paper Unprinted paper title creator human indexable identifier date publisher topic Organisation EDMs seeAlso Concepts Person Concept data propertyClass object property internalLocation Sessions Election Parliamentary paper Early day motion EDM amendment Oral parliamentary questions Attachment Written parliamentary questions dateTimeForAnswer Commons Division Division Not Content Vote Content Vote Aye Vote No Vote Did Not Vote Abstains Suspended Or Expelled Vote Error Vote Content Teller Not Content Teller Aye Teller No Teller vote teller defferedVote margin errorVoteCount suspendedOr ExpelledVoteCount didNotVoteCount nonEligableCount abstainedCount ayesCount noesCount divisionCount divisionNumber member memberParty memberPartyID memberRank memberTitle memberFrom memberGender whippedVote notContentsCount contentsCount officialContentsCount officialNotContentsCount divisionResult divisionNumber Article modified department legislature published department printed approvalDays session comments authoritychairmansReportDate containsEM containsIA dateApproved dateLaid dateWithdrawn dateWithdrawn draft indexNumber jointComitteeOn StatutoryInstruments jointComitteeOn StatutoryInstruments paperNumber paperType parliamentNumber prayerprocedure referralsession sessionNumber slideTitle withdrawn attachment category categorySnapshot containsAttachment current Location htmlSummary section status subType description attachment Written Parliamentary Answer answer Person Person tablingMember dateForAnswer questionText dateTabled dateTabled registeredInterest answerDeptId wpqType pqStatus houseID version tabling constituency questionFirstAnswered questionFirstCorrected questionFirstCorrected tablingMemberPrinted Oral parliamentary questionTime place ballotNumber subject failedOral unStarred question questionTime answerBody QuestionTime AnsweringBody SnapShot answeringDeptSnapshot answeringDept TargetSnapshot answeringDept ShortNameSnapshot answeringDept ShowInTitleSnapshot QuestionTime answerBody questionTime member custodianBillAgent written ParliamentaryQuestion order familyName telephone givenName email name name label legalName birthDate additionalName gender address hasCeasedTreading deathDate hasRegisteredInterest Shared biblio properties constituency OrdnanceSurvey admingeo Open-vocab twitter-id homePage owl sameAs order isElectionCandidate voteChangePercentage numberOfVotes party Person and organisation properties Person BillStage BillStageType Session SessionDay parliament Parliament Session Session Bill sponsor Sponsor billPublication selectCommittee orginatingLegislature member billStage BillStageSitting billStageSitting billStageType Attendence billAgent Organisation legislature subject Concept Bills data properties billTypeCode billTypeDescription billType isMoneyBill isPrivateBill isPublicBill isPublicBill canPublicGetInvolved ballotNumber actName billChapter petitionInfo wibPetitionInfo petitionPeriod isProvisional isFormal isPublicBillStage isPrivateBillSatge parliamentNumber startDate endDate Election ElectionResult Person Westminster Constituency hasCandidate constituency election resultOfElection electorate turnout majority hasNationalResult electionType date label humanIndexable published legislature sponsor EDM signature hasSignature sessionNumber dateTabled edmStatus numberOfSignatures edmNumber motionText primarySponsorPrintedsponsorPrinted date identifier title session edm SIAnnulment SIRevocation primarySponsor member isPrimarySponsor withdrawn sigStatus isSponsor constituency party Constituencies Westminster Constituency gssCode prefLabel label osName constituencyType previousContituency startDate endDate Registered Interest date created RegisteredInterest registeredInterest categoryName registeredLate categoryId lastAmendment amendmentDate dayTypeCommons dayTypeLordsDescription date dayTypeLords dayTypeCommonsDescription Group Organisation prefLabel altLabel dateReviewed sesID sesClass isThesaurusTerm isPreferred minsID minsDeptId name firstName mbox phone surname scopeNote broader subBridgeTerm bridgeTerm narrower related exactMatchrelated Divisions Archipelagos
  • 8.
    If the datadoesn’t join, the website won’t link
  • 9.
  • 10.
  • 11.
  • 12.
  • 15.
  • 16.
    Domain Modelling • Notyet a “computer thing”; more user research with a different technique • The domain modelling is more important than the domain model • Don’t “start with user needs”. Start with user mental models • Get people to sketch their view of their world. Sketch back at them • Accept that some bits of Parliament are complicated. But some bits are complex • Model just enough to be useful but no more
  • 18.
    SI Motion Committee Gov departments Negative SIAffirmative SI Posts Roles Members Memberships Delegated legislation committee Scrutiny committee Documents Explanatory notes Explanatory memorandum Impact assessment Layed EUdirective Enabling legislation SI Act Legislation Amends (crud) legislation Approval motion Annulment motion Consideration motion Tabled Calendar Business item Approval debate Annulment debate Rooms Decision Voiced Division Differed Division Praying period Prayer EDM Take note Regret Consideration debate Scrutinises Select committee Report Note Grand committee (lords) Select committeeGeneral committee (commons)
  • 19.
    UK Parliament DomainModel What WhenWhere Who Holds seat Constituencies Rooms Chambers Buildings Estates Houses House Country Extents Wards Parliamentary constituencies MEP constituencies Groups Houses Members Commisions Committees APPGs Government departments Focus areas Financial Interests Seats Seat types Roles Membership People Parties Whippings Members officer Lords appointments Organisations Interest types Public sector organisations Time Time Time Posts Scrutinises Bills Statutory instruments Submitted Initiated Supported Laid Depositied Tablings Askings Signings Sponserships Ballot Library deposits Green papers White papers Calendar days Day Session Parliament Reign House Sitting Day Non-Sitting Day Recess days State opening Backbencher days Opposition days Budget Estimate days Autumn budget Praying period Decision Voiced DivisionDiffered Division EDMs and petitions Explanatory notes Explanatory memorandum Impact assessment Select committee Report Note Motion Negative SIAffirmative SI Approval motion Annulment motion Consideration motion Prayer EDM Take note Regret Paper Petition Amendments Bill stage Bill stage: 1st reading Bill stage: 2nd reading Bill stage: committee stage Bill stage: report stage Bill stage: 3rd reading Bill Bill version Legislation EU directive Enabling legislation Statutory instruments Act Amends (crud) legislation Written questions Written statements Corrections Written answers Written questions Business item Statutory instrument Events Topic Contributed Oral Written Withdrawings Evidence Motion Calendar Business item Approval debate Annulment debate Consideration debate Urgent questions Business questions Topic Debates Committee Meeting Evidence sessions Site visits Oral statements Corrections Oral questions Oral questions Calendar business items Oral answers Royal assent Monarch Inquiry Amendment Report Select committee Bill related committee Special committee Public enquiry Scrutiny committee General committee (commons) Delegated legislation committee
  • 20.
  • 21.
    Ubiquitous language • Businessapplication labels • Data model / ontology • Service layer API • Models • Controllers • URLs • Markup • CSS etc
  • 22.
    Next steps • Sensecheck the details around passage of a bill • Zoom in to specific areas as business applications and the new website require • More domain modelling with domain experts (internal and external) • More domain modelling with end users • Synthesise the models • Derive data models (ontologies) from the domain model • The domain model is not just a step to a data model • It informs the information architecture of business applications, stapling tools and the new website • And how the website interoperates with the wider web
  • 23.
  • 24.
    Future collaboration • WithHouse of Representatives on data models and mappings to schema.org • With schema.org to map our internal model to search engine friendly models • With GDS / NAO on registers (reference data) for common interests (eg Government departments) • With other parliaments (via the IPU) to agree on common models (and differences) • With Wikidata to map our identifiers to theirs
  • 25.
    Thanks to • IDMS •The Journal Office • The Table Office • The Public Bills Office • Commons Library • Lords Library • The Archive
  • 26.
    Always end onpolemic • Your parliament is not a snowflake