PartyGateRDF - PartyGate tools for linked-data scientists

PartyGateRDF - PartyGate tools for linked-data scientists

Introduction

This is a data set containing references to information published by the media regarding the Partygate parties held by the government of the UK.

The information has all been gleaned from published information from the media, and no claims are made about the accuracy of the information in this dataset. The dataset contains links to some published reports for sourcing.

Demo

There is a demo which allows easy navigation of the data at https://web-wrennwfy6q-ew.a.run.app. This is powered by the LodLive SPARQL navigator, and a SPARQL endpoint serving the data.

The front page doesn't make it easy to find data items, here are some interesting entry points:

SPARQL endpoint

There is a SPARQL endpoint at https://web-wrennwfy6q-ew.a.run.app/sparql, which accepts SPARQL 1.0 queries against the data. Think of this as way to run a query against the underlying data. There is no visualisation, the SPARQL endpoint is there to allow other applications to access the data. This endpoint can be queried from Python using sparqlwrapper, for instance.

Here are some example queries:

Information known about the Suitcase of Wine party

Query:

  SELECT DISTINCT * WHERE {<http://e623fd-partygate/suitcase-of-wine> ?b ?c . }

See results from the query

Parties which were known to be attended by Boris

Query:

  PREFIX pgp: <http://e623fd-partygate/p#>
  PREFIX pg: <http://e623fd-partygate/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  SELECT ?party
  WHERE {
    ?id rdfs:label ?party .
    ?id pgp:attended-by pg:boris-johnson .
  }

See results

Parties attended by Boris which were reported to have broken a rule

Query:

  PREFIX pgp: <http://e623fd-partygate/p#>
  PREFIX pg: <http://e623fd-partygate/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   SELECT DISTINCT ?party ?breaks
   WHERE {
    ?a rdfs:label ?party .
    ?a pgp:contravenes ?d .
    ?d rdfs:label ?breaks .
    ?a pgp:attended-by pg:boris .
  }

See results

Parties known to be held at Number 10

  PREFIX pgp: <http://e623fd-partygate/p#>
  PREFIX pg: <http://e623fd-partygate/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  SELECT ?party
  WHERE {
    ?id rdfs:label ?party .
    ?id pgp:location http://e623fd-partygate/no-10 .
  }

See results

Underlying data

The dataset is a RDF triples. Apart from the 'type' and 'label' properties the dataset uses an internal ontology. RDFS types are contained within the dataset.

Object properties

Property Description
http://e623fd-partygate/p#attended-by Links a party to an attending person
http://e623fd-partygate/p#consumed Links a party to consumables
http://e623fd-partygate/p#context Links a party to another (possibly unrelated) newsworthy context
http://e623fd-partygate/p#contravenes Links a party to a rule which is reported to have been contravened
http://e623fd-partygate/p#date Links a party to a date
http://e623fd-partygate/p#invitations-sent Links a party to the person who invited attendees
http://e623fd-partygate/p#justification Links a party to a reported justification for the party
http://e623fd-partygate/p#location Links a party to its location
http://e623fd-partygate/p#quote Links a party to a quote in the media
http://e623fd-partygate/p#report Links a party to a media report
http://e623fd-partygate/p#weather Links a party to reported wather
http://dbpedia.org/ontolog/thumbnail Links to a thumbnail imag URL
http://purl.org/dc/elements/1.1/relation Links a report to the media articleURL
http://www.w3.org/1999/02/22-rdf-syntax-ns#type Links an object to its tpe
http://www.w3.org/2000/01/rdf-schema#label Links an object to a human-readable label

Object types

Type Description
http://e623fd-partygate/consumable Something which can be consumed at a party
http://e623fd-partygate/context A reported newsworthy context
http://e623fd-partygate/justification A justification
http://e623fd-partygate/location A location
http://e623fd-partygate/party A party
http://e623fd-partygate/person A person
http://e623fd-partygate/report A media report
http://e623fd-partygate/rule A restrictive policy, guidance or law
http://e623fd-partygate/weather A weather condition

Implementation / self-hosting

If you're curious about the implementation, the included Makefile contains data conversion and builds the demo, including the SPARQL endpoint.

The SPARQL endpoint is my project which is just an HTTP wrapper around the Redland library, which does all the SPARQL execution and triple-store management.

The serve.go code in this repository provides the web service and proxies out to the SPARQL service.

The Makefile builds two containers which are hosted on Docker hub:

The Makefile run target runs the containers if you need a hint as to how to run the containers.

Why?

As curious, crazy and contentious as this topic is, I'm a linked data developer, and turning complex information into navigable knowledge is fun.

Licence

Creative Commons Zero v1.0 Universal. See LICENCE.

No claims are made as to the accuracy of this data. No warranties are provided.

Similar Resources

Gota: DataFrames and data wrangling in Go (Golang)

Gota: DataFrames, Series and Data Wrangling for Go This is an implementation of DataFrames, Series and data wrangling methods for the Go programming l

Jan 6, 2023

A simple Set data structure implementation in Go (Golang) using LinkedHashMap.

Set Set is a simple Set data structure implementation in Go (Golang) using LinkedHashMap. This library allow you to get a set of int64 or string witho

Sep 26, 2022

Data structure and relevant algorithms for extremely fast prefix/fuzzy string searching.

Trie Data structure and relevant algorithms for extremely fast prefix/fuzzy string searching. Usage Create a Trie with: t := trie.New() Add Keys with:

Dec 27, 2022

Graph algorithms and data structures

Graph algorithms and data structures

Your basic graph Golang library of basic graph algorithms Topological ordering, image by David Eppstein, CC0 1.0. This library offers efficient and we

Jan 2, 2023

BTree provides a simple, ordered, in-memory data structure for Go programs.

BTree implementation for Go This package provides an in-memory B-Tree implementation for Go, useful as an ordered, mutable data structure. The API is

Dec 30, 2022

Set data structure for Go

Archived project. No maintenance. This project is not maintained anymore and is archived.. Please create your own map[string]Type or use one of the ot

Nov 21, 2022

Set data structure for Go

Archived project. No maintenance. This project is not maintained anymore and is archived.. Please create your own map[string]Type or use one of the ot

Nov 21, 2022

Go framework to simplify CRUD of structured data using Graph operations

Go framework to simplify CRUD of structured data using Graph operations

gocrud Go framework to simplify creating, reading, updating, and deleting arbitrary depth structured data — to make building REST services fast and ea

Nov 28, 2022

Graph algorithms and data structures

Graph algorithms and data structures

Your basic graph Golang library of basic graph algorithms Topological ordering, image by David Eppstein, CC0 1.0. This library offers efficient and we

Jan 25, 2021
Advanced linked list package for go.

golib/list ライブラリ 可変長の連結リストを提供するライブラリーです。 状況によらず、メモリ開放処理を一貫性した書き方で実装できるので、メモリ解放をプログラマが管理しやすい作りになっています。 list.List 片方向連結リストを提供するモジュールです。 list.Nodeが使われていま

Jan 21, 2022
Graphoscope: a solution to access multiple independent data sources from a common UI and show data relations as a graph
Graphoscope: a solution to access multiple independent data sources from a common UI and show data relations as a graph

Graphoscope A solution to access multiple independent data sources from a common UI and show data relations as a graph: Contains a list of by default

May 26, 2022
Go iter tools (for iterating , mapping, filtering, reducing streams -represented as channels-)

Go iter tools (for iterating , mapping, filtering, reducing streams -represented as channels-)

Jan 1, 2023
Iter tools for Go(Golang)

Iter tools for Go(Golang) The stable version has been moved to : https://github.com/serge-hulne/go_iter Defines: Filter Map Reduce Range Take on colle

Sep 26, 2022
A tree like tool help you to explore data structures in your redis server
 A tree like tool help you to explore data structures in your redis server

Redis-view is a tree like tool help you explore data structures in your redis server

Mar 17, 2022
Bitset data structure

Your basic bit Set data structure for positive numbers A bit array, or bit set, is an efficient set data structure. It consists of an array that compa

Dec 29, 2022
Probabilistic set data structure
Probabilistic set data structure

Your basic Bloom filter Golang probabilistic set data structure A Bloom filter is a fast and space-efficient probabilistic data structure used to test

Dec 15, 2022
Probabilistic data structures for processing continuous, unbounded streams.

Boom Filters Boom Filters are probabilistic data structures for processing continuous, unbounded streams. This includes Stable Bloom Filters, Scalable

Dec 30, 2022
Data structure and algorithm library for go, designed to provide functions similar to C++ STL

GoSTL English | 简体中文 Introduction GoSTL is a data structure and algorithm library for go, designed to provide functions similar to C++ STL, but more p

Dec 26, 2022