+ All Categories
Home > Government & Nonprofit > Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Date post: 15-Apr-2017
Category:
Upload: department-for-communities-and-local-government-local-digital-campaign
View: 275 times
Download: 0 times
Share this document with a friend
21
Local Digital Programme Local Waste Service Standards Project Frontend Workshop #LocalDigital @LDgovUK
Transcript
Page 1: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Local Digital Programme

Local Waste Service Standards Project

Frontend Workshop#LocalDigital@LDgovUK

Page 2: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Data models Taxonomies

APIs Data formats

Page 3: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Existingsoftwaresystems

What others?

Smart CitiesConcept Model

Data models

APIs

Page 4: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Status update

• Added generic API elements:

• Feature and FeatureType

• Added Site derived from Place

• Re-implemented as simplest possible adaptation layer

• Left out some aspects related to materials, items,

contact info

Page 5: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Outstanding issues

• Capturing why collections have moved for

unusual reasons

• Handling sites that are not basic properties or

streets

Page 6: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

API design

• REST - Representational State Transfer

• architecture of the Web

Page 7: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

API design

Programmable Web

Page 8: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

API design: data

• JSON - JavaScript Object Notation

• JSON-LD - JSON for Linked Data

• Is XML required?

Page 9: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Linked Data

Page 10: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Definingservices

services: - id: 1 name: Refuse esd_url: http://id.esd.org.uk/service/524 feature_types: - name: Black 240L description: - id: 2 name: Recycling esd_url: http://id.esd.org.uk/service/1130 feature_types: - name: Green 240L description: - id: 3 name: Garden waste esd_url: http://id.esd.org.uk/service/530 feature_types: - name: Brown 240L description: - id: 4 name: Glass collection esd_url: http://id.esd.org.uk/service/1130 feature_types: - name: Black Box 55L description:

Page 11: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Demo API

• Subset of documented API

• Authorisation is disabled for now

• Connected to Bartec Collective test database

for Luton

http://waste-demo-api.herokuapp.com

Page 12: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Designing the front-end

Page 13: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Place

BS7666Address

Site

Page 14: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

WasteService

Page 15: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Missed collection events

Page 16: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

FeatureType Feature

WasteContainerType

WasteContainer

Page 17: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016
Page 18: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Different ways to describe services:

- Date first

- Materials first

Page 19: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

• Can front-end implementations be shared?

• What are the implications of different council

policies?

• How to manage content displayed to users?

• What technologies are used?

Issues

Page 20: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

Sorry we didn't empty your bins – they were contaminated with food waste, so could not be collected.

Contaminated: Food waste

CONTAMINATED: FOOD [BROWN]

Citizen

CSR

In-cab

Page 21: Data Modelling and APIs for the Waste Services Standards Project | Paul Mackay | January 2016

http://communitiesuk.github.io/waste-service-standards/

http://waste-demo-api.herokuapp.com

Questions?#LocalDigital@LDgovUK

@pmackay


Recommended