Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Prices (ordered) with currency of OU level 1 courses in Arts and Humanities as available in France.
select ?course ?price ?cur
from <http://data.open.ac.uk/context/course>
where {
?course <http://data.open.ac.uk/saou/ontology#OUCourseLevel> "1"^^<http://www.w3.org/2001/XMLSchema#string>.
?course <http://purl.org/dc/terms/subject> <http://data.open.ac.uk/topic/arts_and_humanities>.
?off <http://purl.org/goodrelations/v1#includes> ?course.
?off <http://purl.org/goodrelations/v1#hasPriceSpecification> ?ps.
?course <http://purl.org/net/mlo/location> <http://sws.geonames.org/3017382/>.
?off <http://purl.org/goodrelations/v1#availableAtOrFrom> <http://sws.geonames.org/3017382/>.
?ps <http://purl.org/goodrelations/v1#hasCurrencyValue> ?price.
?ps <http://purl.org/goodrelations/v1#hasCurrency> ?cur
} order by ?price
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment