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/8332827 to your computer and use it in GitHub Desktop.
Save Open-University-LOD/8332827 to your computer and use it in GitHub Desktop.
This query find any video podcast and OpenLearn units which descriptions contain the term “earthquake”.
PREFIX mlo: <http://purl.org/net/mlo/>
SELECT ?thing ?description
FROM <http://data.open.ac.uk/context/openlearn>
FROM <http://data.open.ac.uk/context/podcast>
where {
?thing <http://purl.org/dc/terms/description> ?description .
FILTER EXISTS {
{ ?thing a <http://data.open.ac.uk/openlearn/ontology/OpenLearnUnit> }
UNION
{ ?thing a <http://data.open.ac.uk/podcast/ontology/VideoPodcast> }
} .
FILTER regex(str(?description), "earthquake", "i" )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment