relpipe-data/examples/rdf-breakfast-club.sparql
branchv_0
changeset 310 aeda3cb4528d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/relpipe-data/examples/rdf-breakfast-club.sparql	Mon Jul 27 17:51:53 2020 +0200
@@ -0,0 +1,22 @@
+#!/usr/bin/env rdf-sparql-interpreter.sh
+# endpoint: https://dbpedia.org/sparql
+# relation: breakfast_club
+
+PREFIX foaf:  <http://xmlns.com/foaf/0.1/>
+PREFIX dbo:   <http://dbpedia.org/ontology/>
+PREFIX rdfs:  <http://www.w3.org/2000/01/rdf-schema#>
+
+SELECT
+	?firstname
+	?surname
+WHERE {
+	?film a dbo:Film .
+	?film rdfs:label "The Breakfast Club"@en .
+	?film dbo:starring ?actor .
+	?actor foaf:givenName ?firstname .
+	?actor foaf:surname ?surname .
+	FILTER (lang(?firstname) = "en" && lang(?surname) = "en")
+	?actor dbo:birthYear ?born .
+	FILTER(?born > "1950"^^xsd:gYear)
+}
+ORDER BY ?firstname ?surname