Published 15th September 2011
Updated 2nd March 2012
Resources 37325

This dataset is a re-publication of the metadata contained in the Government Art Collection website. The data was obtained by crawling the website to collection information about all of the works, artists and subjects.

The dataset contains over 10,000 art works from more than 3,000 artists. The art works depict nearly 2,000 places and over a 1,000 different people. The majority of the people mentioned in the paintings (over 700) have been linked to their description in Dbpedia. Over time the dataset will be updated to include links to other datasets.

While this dataset and the original website are available for re-use under the Open Government License, the images on the site have their own copyright terms. Refer to the GAC website for guidance on licensing of images. The images themselves are not copied into this dataset, but links have been made to the source images to facilitate legal re-use. Copyright statements have been preserved where available, so these can be queried from the dataset.

Explore the dataset
Default APIs

SPARQL Endpoint

Use the SPARQL 1.1 query language to perform structured queries against a dataset. Useful for performing precise queries against a dataset whose structure you understand.

Sample queries

Produce a list of the top-level subject categories used to catalogue the art works. Each of these categories is made up of several sub-categories

Query: 
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> SELECT ?uri ?label WHERE { <http://data.kasabi.com/dataset/government-art-collection/subjects> skos:hasTopConcept ?x. ?x a skos:Concept; skos:prefLabel ?label. } ORDER BY ?label
Login to test this query using our experimental API explorer Permalink to this sample query

Produces a list of all art works by Tracey Emin. The query returns the URI of the work, its title, as well as links to an image and its homepage on the GAC website. Alter the artist name to select works by a different artist.

Note: for fuzzy name matching, its better to use the Search API as this query requires an exact match on name.

Query: 
PREFIX dct: <http://purl.org/dc/terms/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX gac: <http://data.kasabi.com/dataset/government-art-collection/schema/> SELECT ?uri ?name ?image ?page WHERE { ?uri a gac:ArtWork; foaf:maker ?artist; dct:title ?title; foaf:depiction ?image; foaf:page ?page. ?artist foaf:name "Tracey Emin". }
Login to test this query using our experimental API explorer Permalink to this sample query

Produces a list of art works in the "Pop Art" movement. The results includes the URI and title for each art work, as well as links to an image and the GAC homepage.

Query: 
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX gac: <http://data.kasabi.com/dataset/government-art-collection/schema/> SELECT ?work ?name ?image ?page WHERE { ?subject skos:prefLabel "Pop Art". ?work dct:subject ?subject; dct:title ?name; foaf:depiction ?image; foaf:page ?page. }
Login to test this query using our experimental API explorer Permalink to this sample query

Produces a list of the ten people most depicted in an artwork in the GAC collection. The query returns the URI and name of the person along with a count of the number of artworks in which they are portrayed.

Query: 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX gac: <http://data.kasabi.com/dataset/government-art-collection/schema/> SELECT ?sitter ?name (count(?work) as ?count) WHERE { ?work gac:depicts ?sitter. ?sitter rdfs:label ?name. } GROUP BY ?sitter ?name ORDER BY DESC(?count) LIMIT 10
Login to test this query using our experimental API explorer Permalink to this sample query

This query looks at the Government Art Collection for works which:

 

1. Have an image

2. Whose title contains the keyword added to the query.

In the stored text, the keyword is: "hat"

Query: 
PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX gac: <http://data.kasabi.com/dataset/government-art-collection/schema/> SELECT distinct ?subject ?image ?title WHERE { ?subject dcterms:title ?title ; foaf:depiction ?image . filter (regex(?title ,"hat", "i")) } limit 10
Login to test this query using our experimental API explorer Permalink to this sample query

Produces a list of subject categories with the number of works in that subject category.

Query: 
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX gac: <http://data.kasabi.com/dataset/government-art-collection/schema/> SELECT ?label (count(*) as ?count) WHERE { ?work dct:subject ?subject . ?subject skos:prefLabel ?label . } GROUP BY ?label
Login to test this query using our experimental API explorer Permalink to this sample query
Create a sample query

Search API

Perform a free-text search against the text fields indexed in a dataset. Useful when you want to quickly query a dataset but don't know, or need to know its structure. There is also a solr search endpoint allowing more complex queries.

Lookup API

Retrieve a description of a single resource. Useful for fetching the key properties and relationships of a single entity.

Reconciliation API

Useful for resolving names, labels or codes against a dataset in Kasabi to find links to more data. This API is compatible with the Google Refine tool.

How to Attribute This Dataset

Kasabi provides a quick and easy way to attribute a dataset from any webpage. We think attribution is an important community norm.

To directly embed an attribution message in a webpage, add a script tag that invokes our Attribution API as follows

<script
     type="text/javascript"
     src="http://api.kasabi.com/dataset/government-art-collection/attribution">
</script>

If you need more flexible options, then read the Attribution API documentation

External Sources

The following external sources were used in creating or compiling this dataset
  • http://www.gac.culture.gov.uk/
Contributed APIs

No Contributed APIs available