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/8332895 to your computer and use it in GitHub Desktop.
Save Open-University-LOD/8332895 to your computer and use it in GitHub Desktop.
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