Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
PREFIX yt: <http://data.open.ac.uk/youtube/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX schema: <http://schema.org/>
SELECT
?code ?label (max(?published) as ?date)
FROM <http://data.open.ac.uk/context/youtube>
WHERE
{
?x
schema:productID ?code ;
rdfs:label ?label ;
dct:published ?published ;
yt:relatesToCourse ?cs
} group by ?code ?label order by desc (?date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment