SlideShare a Scribd company logo
1 of 36
Linked Environmental Data
  Alex Coley        @alexrcoley

  Stuart Williams   @skwlilac
rationale
Alex
our vision
                                                   a better
                                                   place for
                                                   people and
                                                     wildlife


                                  to achieve this we will
                  Act to reduce                                                     Work with
                                    Protect and          Work with people
                 climate change                                                businesses and other
                                  improve water,        and communities to
                     and its                                                   organisations to use
                                    land and air        create better places
                 consequences                                                    resources wisely




                                             Be the best we
                                                  can




We cannot do this alone. We work closely with a wide range of
partners including government, business, local authorities, other
agencies, civil society groups and the communities we serve.
how we used to supply data



         EA hosted web services
         (and very restricted access to the actual data)




                         data supplies &
                         information requests
INSPIRE
Infrastructure for Spatial Information in
        the European Community
bathing water quality

                               start of season
                                                                           Press interest
                                      15th May




                                                 bathing season
                                                                  20-22 samples
     what information                                               in 22weeks
 is relevant to the public
      about beaches                30th Sept
                                annual report
                                   November

                       what
                       we do      December
Proof of concept (one off)



Pilot




BAU and extend
defining things (and context)
why Linked data
Alex
Tenby
      Tourist Information Centre
    Unit 2 , The Gateway Complex
        Tenby. Wales , SA70 7LT
          Tel: 01834 842 402
          Fax: 01834 845 439
Email: tenby.tic@pembrokeshire.gov.uk




                                        Photo by Skellig2008 (flickr)
Day 1                Day 1-3                            Day 4

                                                              entered onto monitoring /
                                                              operational database



Sampling happens     Lab analysis happens

                                                                                          Tuesday (snapshot)


                              available via data.gov.uk
     Bathing Water
      Weekly/Daily
    assessment run
                                                                                               available on WIYBY




  Linked data
      “feeds”                                                                              available on EyeOnEarth

                                                 available on our own apps


                             available on other apps
more than ‘just’ linked data


                                       api configuration *
                                                             applications
                      update process
    data modelling




                                        additional data
                                                              mini apps




* api as organised URI space
  with consistent behaviours            documentation        others apps
practical issues
Stuart
URIs + Governance
       Stable points of reference

                                                            Applications




                                                          Operational Data



                                                                        Domain
                                                  Reference Data
                                                                      Vocabularies


                                                              Standard
                                                    Vocabularies (RDF, RDFS, OWL)



               Vocabularies and Reference Data form the foundations

Image from Wikimedia Commons CC-BY-2.5
"Cool URI's don't change" but...
 http://www.w3.org/Provider/Style/URI

                                                         Stakeholder              URI Sets
                                                      Sector Governance

                                                            education              school
                                                            transport              station
                                                            environment            bathing-water
                                                            ...                    ...


                                                    http://{sector}.data.gov.uk/id/{concept}/{reference}



                                                                           thematic                code-point

                                                                    id     things
                                                                    doc    documents about things <- reference data
                                                                    data   datasets and data items
              INSPIRE
                                                                    def    vocabularies and terms
                                                                    so     spatial object
        Infrastructure for Spatial Information in
               the European Community
URI Space Map
Modelling




• Access to Domain Expertise (not just data)
    • Linkage to Legislation (terms and definitions)
• Entities and Relationships
• Lifecycles
    • Mutable and Invariant Properties
    • Sameness and difference
• What do things mean?
    • eg. Assessment Criteria
    • Code lists (G,I,F,C,N what do these mean?)
Revising Sample Assessments
http://environment.data.gov.uk/data/bathing-water-quality/in-season/sample/point{bwspid}/date/{sampleDate}/time/{sampleTime}/recordDate/{recordDate}




                                                                                                                                          bwq:recordDate    bwq:recordStatus


                                                                                                                                             2011-08-01    bwq:new

                                                                                           dct:replaces                       dct:isReplacedBy

                                                                                                                                            2011-08-04     bwq:replacement

                                                                                          dct:replaces                        dct:isReplacedBy

                                                                                                                                            2011-08-08     bwq:replacement

                                                                                          dct:replaces                       dct:isReplacedBy

                                                                                                                                            2011-08-11     bwq:withdrawal




                                                                                    recordStatus                    new -> replacement -> withdrawn


                           replaces / isReplaced linkages maintained using SPARQL Update.
Scaling Up
                Update Server
                                                                       Load
                                                                     Balancers




                                      SPARQL Update
 Upload




              Preview /
    Convert
               Review




                          Publish /
                          Remove

                                                      (Disposable)
                                                       Publishing
              Backup / Restore                         Server x N
Encouraging Use and Reuse
   RESTful API
http://environment.data.gov.uk/id/bathing-water/ukc2102-03600
http://environment.data.gov.uk/id/bathing-water
                                                                             SELECT ?item
View Control                                                                 WHERE { ... }
&view=                                                     selector                               Data
&_property={properties}          GET /doc/bathing-water                                           Store
&_metadata=                                                                                         +
                                                            viewer
                                                                             DESCRIBE            SPARQL
Page Control                                                                  <x> <y> ... <z>   Endpoint
&page=                                                     formatter
                                     Formatted Response
&pageSize=
                              'native' linked data  RDF           Endpoint

                                   semantic web      TTL
Filtering
                                                    CSV
&{property}={value}                                                              Publication Server
                            'Developer friendly'    XML    config
&min-{property}={value}                                                          (elda+fuseki+jena)
                                                   JSON
&max-{property}={value}
                          Styled data for people HTML
Misc.
&_sort=
&_lang={langTags}
&callback= (for JSONP)                                                                          Apache Jena
Encouraging Use & Reuse
Developer Friendly Formats
Encouraging Use & Reuse
 Documentation




                                                Data Model and
                                      API URI pattern Reference
http://environment.data.gov.uk/lab/
Rich Web Applications...




     English               Welsh
Embeddable Widgets and Mobile Apps
where next
Alex
Our data and information
will be usable and useful to
 whoever needs to use it
BW
                                          Rivers
                     Profile
           Bathing
            Water                   WFD

                                                   public
                                                   record
                        Reference

                                          Flood

               Linked Data

              Linked Services
Internal
Questions…
Alex and Stuart
Alex Coley
@alexrcoley
alex.coley@environment-agency.gov.uk
www.environment-agency.gov.uk
environment.data.gov.uk




Stuart Williams
@skwlilac
skw@epimorphics.com                    data.gov.uk/linked-data
www. epimorphics.com
SPARQL Update Query (part 1 of 3)
preamble and delete




  # SPARQL update query to patch up store after a publish or remove
  PREFIX qb: <http://purl.org/linked-data/cube#>
  PREFIX bwq: <http://environment.data.gov.uk/def/bathing-water-quality/>
  PREFIX dct: <http://purl.org/dc/terms/>
  PREFIX interval: <http://reference.data.gov.uk/def/intervals/>

  # Remove previous   replaces/replacedBy links for records
  DELETE {
       ?update        dct:replaces     ?predecessor .
       ?predecessor   dct:isReplacedBy ?update . }
  WHERE {
       ?update        dct:replaces     ?predecessor .
       ?predecessor   dct:isReplacedBy ?update . } ;
SPARQL Update Query (part 2 of 3)
insert: find an update record and its predecessors

# Reconstruct links based on current replacements/withdrawals
INSERT {
    ?update      dct:replaces     ?predecessor .
    ?predecessor dct:isReplacedBy ?update . }
WHERE {
   ?update a                   bwq:SampleAssessment;
           bwq:bathingWater    ?bw;
           bwq:samplingPoint   ?sp;
           bwq:sampleDateTime ?u_stime ;
           bwq:recordDate      ?u_recordDate;
   { ?update bwq:recordStatus     ?bwq:withdrawal }
   UNION
   { ?update bwq:recordStatus     ?bwq:replacement }

     # Find a ?prececessor
     ?predecessor a              bwq:SampleAssessment;
            bwq:bathingWater     ?bw;
            bwq:samplingPoint    ?sp;
            bwq:sampleDateTime   ?u_stime;
            bwq:recordDate       ?pred_recordDate;
            .
      FILTER (?pred_recordDate<?u_recordDate)
SPARQL Update Query (part 3 of 3)
insert: ensure there is no matching ?probe between ?update and ?predecessor




      # Make sure that the is no ?probe between ?update and its immediate
      # predecessor.
      OPTIONAL {
        ?probe a                  bwq:SampleAssessment;
              bwq:bathingWater    ?bw;
              bwq:samplingPoint   ?sp;
              bwq:sampleDateTime ?u_stime;
              bwq:recordDate      ?probe_recordDate;
         FILTER ( ?probe_recordDate > ?pred_recordDate &&
                  ?u_recordDate > ?probe_recordDate)
      } FILTER (!bound(?probe))
} ;
Environmental Linked Data - Semtech Biz London

More Related Content

Similar to Environmental Linked Data - Semtech Biz London

Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...
Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...
Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...
TERN Australia
 
How Linked Data is transforming eGovernment
How Linked Data is transforming eGovernmentHow Linked Data is transforming eGovernment
How Linked Data is transforming eGovernment
Nikos Loutas
 

Similar to Environmental Linked Data - Semtech Biz London (20)

Using linked data and the semantic web - "powered by INSPIRE" conference pres...
Using linked data and the semantic web - "powered by INSPIRE" conference pres...Using linked data and the semantic web - "powered by INSPIRE" conference pres...
Using linked data and the semantic web - "powered by INSPIRE" conference pres...
 
Industrialized Linked Data
Industrialized Linked DataIndustrialized Linked Data
Industrialized Linked Data
 
Linked Data at the Open University: From Technical Challenges to Organization...
Linked Data at the Open University: From Technical Challenges to Organization...Linked Data at the Open University: From Technical Challenges to Organization...
Linked Data at the Open University: From Technical Challenges to Organization...
 
Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...
Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...
Craig Walker_TERN Eco-informatics: Managing and delivering ecological researc...
 
Water and Environmental Hub - MP Michell Rempel at University of Lethbridge -...
Water and Environmental Hub - MP Michell Rempel at University of Lethbridge -...Water and Environmental Hub - MP Michell Rempel at University of Lethbridge -...
Water and Environmental Hub - MP Michell Rempel at University of Lethbridge -...
 
Linked Data for Federation of OER Data &amp; Repositories
Linked Data for Federation of OER Data &amp; RepositoriesLinked Data for Federation of OER Data &amp; Repositories
Linked Data for Federation of OER Data &amp; Repositories
 
Soeren okfn greece meetup
Soeren okfn greece meetupSoeren okfn greece meetup
Soeren okfn greece meetup
 
Knowledge Base+: a Cloud-Based Community Knowledge Base
Knowledge Base+: a Cloud-Based Community Knowledge BaseKnowledge Base+: a Cloud-Based Community Knowledge Base
Knowledge Base+: a Cloud-Based Community Knowledge Base
 
Repository Federation: Towards Data Interoperability
Repository Federation: Towards Data InteroperabilityRepository Federation: Towards Data Interoperability
Repository Federation: Towards Data Interoperability
 
Using linked data for dataset publication
Using linked data for dataset publicationUsing linked data for dataset publication
Using linked data for dataset publication
 
CNI Fall 2011 Meeting Presentation Margaret Hedstrom & Robert McDonald (Dec. ...
CNI Fall 2011 Meeting Presentation Margaret Hedstrom & Robert McDonald (Dec. ...CNI Fall 2011 Meeting Presentation Margaret Hedstrom & Robert McDonald (Dec. ...
CNI Fall 2011 Meeting Presentation Margaret Hedstrom & Robert McDonald (Dec. ...
 
Digital Library Federation - DataNets Panel presentation (Nov. 1st, 2011)
Digital Library Federation - DataNets Panel presentation (Nov. 1st, 2011)Digital Library Federation - DataNets Panel presentation (Nov. 1st, 2011)
Digital Library Federation - DataNets Panel presentation (Nov. 1st, 2011)
 
dsnotify presentation at www2010
dsnotify presentation at www2010 dsnotify presentation at www2010
dsnotify presentation at www2010
 
Water and Environmental Hub - U of L
Water and Environmental Hub - U of LWater and Environmental Hub - U of L
Water and Environmental Hub - U of L
 
Saadallah vtls
Saadallah vtlsSaadallah vtls
Saadallah vtls
 
Open Data Open Innovation and The Cloud gayler berlin nov12
Open Data Open Innovation and The Cloud   gayler berlin nov12Open Data Open Innovation and The Cloud   gayler berlin nov12
Open Data Open Innovation and The Cloud gayler berlin nov12
 
Icm sem tech_master
Icm sem tech_masterIcm sem tech_master
Icm sem tech_master
 
Supporting the Research Data Life Cycle
Supporting the Research Data Life CycleSupporting the Research Data Life Cycle
Supporting the Research Data Life Cycle
 
Towards Lightweight Cyber-Physical Energy Systems using Linked Data, the Web ...
Towards Lightweight Cyber-Physical Energy Systems using Linked Data, the Web ...Towards Lightweight Cyber-Physical Energy Systems using Linked Data, the Web ...
Towards Lightweight Cyber-Physical Energy Systems using Linked Data, the Web ...
 
How Linked Data is transforming eGovernment
How Linked Data is transforming eGovernmentHow Linked Data is transforming eGovernment
How Linked Data is transforming eGovernment
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Environmental Linked Data - Semtech Biz London

  • 1. Linked Environmental Data Alex Coley @alexrcoley Stuart Williams @skwlilac
  • 3. our vision a better place for people and wildlife to achieve this we will Act to reduce Work with Protect and Work with people climate change businesses and other improve water, and communities to and its organisations to use land and air create better places consequences resources wisely Be the best we can We cannot do this alone. We work closely with a wide range of partners including government, business, local authorities, other agencies, civil society groups and the communities we serve.
  • 4. how we used to supply data EA hosted web services (and very restricted access to the actual data) data supplies & information requests
  • 5. INSPIRE Infrastructure for Spatial Information in the European Community
  • 6. bathing water quality start of season Press interest 15th May bathing season 20-22 samples what information in 22weeks is relevant to the public about beaches 30th Sept annual report November what we do December
  • 7. Proof of concept (one off) Pilot BAU and extend
  • 10.
  • 11. Tenby Tourist Information Centre Unit 2 , The Gateway Complex Tenby. Wales , SA70 7LT Tel: 01834 842 402 Fax: 01834 845 439 Email: tenby.tic@pembrokeshire.gov.uk Photo by Skellig2008 (flickr)
  • 12. Day 1 Day 1-3 Day 4 entered onto monitoring / operational database Sampling happens Lab analysis happens Tuesday (snapshot) available via data.gov.uk Bathing Water Weekly/Daily assessment run available on WIYBY Linked data “feeds” available on EyeOnEarth available on our own apps available on other apps
  • 13. more than ‘just’ linked data api configuration * applications update process data modelling additional data mini apps * api as organised URI space with consistent behaviours documentation others apps
  • 14.
  • 16. URIs + Governance Stable points of reference Applications Operational Data Domain Reference Data Vocabularies Standard Vocabularies (RDF, RDFS, OWL) Vocabularies and Reference Data form the foundations Image from Wikimedia Commons CC-BY-2.5
  • 17. "Cool URI's don't change" but... http://www.w3.org/Provider/Style/URI Stakeholder URI Sets Sector Governance education school transport station environment bathing-water ... ... http://{sector}.data.gov.uk/id/{concept}/{reference} thematic code-point id things doc documents about things <- reference data data datasets and data items INSPIRE def vocabularies and terms so spatial object Infrastructure for Spatial Information in the European Community
  • 19. Modelling • Access to Domain Expertise (not just data) • Linkage to Legislation (terms and definitions) • Entities and Relationships • Lifecycles • Mutable and Invariant Properties • Sameness and difference • What do things mean? • eg. Assessment Criteria • Code lists (G,I,F,C,N what do these mean?)
  • 20. Revising Sample Assessments http://environment.data.gov.uk/data/bathing-water-quality/in-season/sample/point{bwspid}/date/{sampleDate}/time/{sampleTime}/recordDate/{recordDate} bwq:recordDate bwq:recordStatus 2011-08-01 bwq:new dct:replaces dct:isReplacedBy 2011-08-04 bwq:replacement dct:replaces dct:isReplacedBy 2011-08-08 bwq:replacement dct:replaces dct:isReplacedBy 2011-08-11 bwq:withdrawal recordStatus new -> replacement -> withdrawn replaces / isReplaced linkages maintained using SPARQL Update.
  • 21. Scaling Up Update Server Load Balancers SPARQL Update Upload Preview / Convert Review Publish / Remove (Disposable) Publishing Backup / Restore Server x N
  • 22. Encouraging Use and Reuse RESTful API http://environment.data.gov.uk/id/bathing-water/ukc2102-03600 http://environment.data.gov.uk/id/bathing-water SELECT ?item View Control WHERE { ... } &view= selector Data &_property={properties} GET /doc/bathing-water Store &_metadata= + viewer DESCRIBE SPARQL Page Control <x> <y> ... <z> Endpoint &page= formatter Formatted Response &pageSize= 'native' linked data RDF Endpoint semantic web TTL Filtering CSV &{property}={value} Publication Server 'Developer friendly' XML config &min-{property}={value} (elda+fuseki+jena) JSON &max-{property}={value} Styled data for people HTML Misc. &_sort= &_lang={langTags} &callback= (for JSONP) Apache Jena
  • 23. Encouraging Use & Reuse Developer Friendly Formats
  • 24. Encouraging Use & Reuse Documentation Data Model and API URI pattern Reference http://environment.data.gov.uk/lab/
  • 25. Rich Web Applications... English Welsh
  • 26. Embeddable Widgets and Mobile Apps
  • 28. Our data and information will be usable and useful to whoever needs to use it
  • 29. BW Rivers Profile Bathing Water WFD public record Reference Flood Linked Data Linked Services Internal
  • 32.
  • 33. SPARQL Update Query (part 1 of 3) preamble and delete # SPARQL update query to patch up store after a publish or remove PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX bwq: <http://environment.data.gov.uk/def/bathing-water-quality/> PREFIX dct: <http://purl.org/dc/terms/> PREFIX interval: <http://reference.data.gov.uk/def/intervals/> # Remove previous replaces/replacedBy links for records DELETE { ?update dct:replaces ?predecessor . ?predecessor dct:isReplacedBy ?update . } WHERE { ?update dct:replaces ?predecessor . ?predecessor dct:isReplacedBy ?update . } ;
  • 34. SPARQL Update Query (part 2 of 3) insert: find an update record and its predecessors # Reconstruct links based on current replacements/withdrawals INSERT { ?update dct:replaces ?predecessor . ?predecessor dct:isReplacedBy ?update . } WHERE { ?update a bwq:SampleAssessment; bwq:bathingWater ?bw; bwq:samplingPoint ?sp; bwq:sampleDateTime ?u_stime ; bwq:recordDate ?u_recordDate; { ?update bwq:recordStatus ?bwq:withdrawal } UNION { ?update bwq:recordStatus ?bwq:replacement } # Find a ?prececessor ?predecessor a bwq:SampleAssessment; bwq:bathingWater ?bw; bwq:samplingPoint ?sp; bwq:sampleDateTime ?u_stime; bwq:recordDate ?pred_recordDate; . FILTER (?pred_recordDate<?u_recordDate)
  • 35. SPARQL Update Query (part 3 of 3) insert: ensure there is no matching ?probe between ?update and ?predecessor # Make sure that the is no ?probe between ?update and its immediate # predecessor. OPTIONAL { ?probe a bwq:SampleAssessment; bwq:bathingWater ?bw; bwq:samplingPoint ?sp; bwq:sampleDateTime ?u_stime; bwq:recordDate ?probe_recordDate; FILTER ( ?probe_recordDate > ?pred_recordDate && ?u_recordDate > ?probe_recordDate) } FILTER (!bound(?probe)) } ;

Editor's Notes

  1. Our reason for being here is to help create a better place for people and wildlife.Increasingly we seek to achieve this by working closely with and/or influencing a wide range of others including businesses, government, local authorities, other agencies, civil society groups, communities and individuals getting them to use our information is critical in this.To help them to use our information when we share it requires us to provide it in ways that allow it to be useful, usable and to be built upon. This in turn will further it’s reach and influence in achieving our environmental outcomes.Critically our remit rightly puts those environmental outcomes first and everything else fits around that core aim
  2. Context about bathing water qualityWe get a lot of interest about bathing water quality, every year there are press articles and lots of information requests. We make our information available through are websiteThe public are interested in lots of things about beachesButOur remit is limited So we need to make our information available in ways that it can be combined with others
  3. Demo visualisation – to show Incremental publication (able to do updates ourselves) Extend and adding scalability plus api documentation to support developers and enhanced application
  4. ContextWe have information about where we sample, the defined beach, the water quality results, other influencing things such as outflow pointsBut also of interest would be access, car parking, toilets, can you walk your dog, fishing rights, photos, history and so on
  5. Repurpose information that was previously locked up