In data.parliament data is contained in resources and a resource can belong in one or more datasets. An example of this would be that a briefing paper is a resource, and it belongs to the briefing papers dataset. Each resource that is produced by the UK Parliament is given a unique public URI and this sticks with the data as long as its published.
Atom feeds are available to publicise resources and the URLs for these feeds can be found in our data catalogue .
A full list of datasets available can be accessed though the API here http://api.data.parliament.uk/datasets/feed?take=all
An example of an atom feed for Briefing Papers is http://api.data.parliament.uk/resources/feed?dataset=4
This will bring back a list of resources ordered by the latest published first within that dataset. Resource information is then accessed individually. http://api.data.parliament.uk/resources/50736 will bring back a JSON representation of the resource, what it is and the files associated with it.
For Briefing Papers each resource has an xml and rdf file representation containing the meta data for the briefing paper in addition to the actual paper which is a PDF. All of this information can be retrieved from the resource information. Each individual resource file can also be accessed. So for example, resource 50736 which is a briefing paper, its meta data (authors, summary etc) can be accessed by adding the suffix “.xml” http://api.data.parliament.uk/resources/files/50736.xml and the PDF of the briefing paper can be accessed with the suffix “.pdf”. http://api.data.parliament.uk/resources/files/50736.pdf