equal
deleted
inserted
replaced
|
1 #!/usr/bin/env rdf-sparql-interpreter.sh |
|
2 # endpoint: https://dbpedia.org/sparql |
|
3 # relation: blonde_and_brunette |
|
4 |
|
5 PREFIX foaf: <http://xmlns.com/foaf/0.1/> |
|
6 PREFIX dbo: <http://dbpedia.org/ontology/> |
|
7 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
|
8 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> |
|
9 PREFIX schema: <http://schema.org/> |
|
10 |
|
11 SELECT DISTINCT |
|
12 ?star_name |
|
13 WHERE { |
|
14 { |
|
15 ?film rdfs:label "Ирония судьбы, или С лёгким паром!"@ru . |
|
16 ?film dbo:starring ?blonde . |
|
17 ?blonde dbo:birthYear "1941"^^xsd:gYear . |
|
18 ?blonde rdfs:label ?star_name . |
|
19 FILTER (lang(?star_name) = "pl") . |
|
20 } |
|
21 UNION |
|
22 { |
|
23 ?brunette ?born "1956-04-27"^^xsd:date . |
|
24 ?brunette schema:description "czech actress, presenter and singer"@en . |
|
25 ?brunette rdfs:label ?star_name . |
|
26 FILTER (lang(?star_name) = "cs") . |
|
27 } |
|
28 } |
|
29 ORDER BY ?star_name |