Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Open-University-LOD/8332847 to your computer and use it in GitHub Desktop.
Save Open-University-LOD/8332847 to your computer and use it in GitHub Desktop.
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