Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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