Created
January 9, 2014 11:39
-
-
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”.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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