Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Subject headings used to describe all podcasts. Created by @ppetej
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT DISTINCT ?tlabel
FROM <http://data.open.ac.uk/context/podcast>
FROM <http://data.open.ac.uk/context/topic>
WHERE {
{?x a <http://data.open.ac.uk/podcast/ontology/VideoPodcast> ;
dcterms:isPartOf ?c . ?c dcterms:subject ?t .
?t rdfs:label ?tlabel }
UNION
{?x a <http://data.open.ac.uk/podcast/ontology/AudioPodcast> ;
dcterms:isPartOf/dcterms:subject ?t .
?t rdfs:label ?tlabel }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment