--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/relpipe-data/examples/rdf-blonde-and-brunette.sparql Mon Jul 27 17:51:53 2020 +0200
@@ -0,0 +1,29 @@
+#!/usr/bin/env rdf-sparql-interpreter.sh
+# endpoint: https://dbpedia.org/sparql
+# relation: blonde_and_brunette
+
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dbo: <http://dbpedia.org/ontology/>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+PREFIX schema: <http://schema.org/>
+
+SELECT DISTINCT
+ ?star_name
+WHERE {
+ {
+ ?film rdfs:label "Ирония судьбы, или С лёгким паром!"@ru .
+ ?film dbo:starring ?blonde .
+ ?blonde dbo:birthYear "1941"^^xsd:gYear .
+ ?blonde rdfs:label ?star_name .
+ FILTER (lang(?star_name) = "pl") .
+ }
+ UNION
+ {
+ ?brunette ?born "1956-04-27"^^xsd:date .
+ ?brunette schema:description "czech actress, presenter and singer"@en .
+ ?brunette rdfs:label ?star_name .
+ FILTER (lang(?star_name) = "cs") .
+ }
+}
+ORDER BY ?star_name