equal
deleted
inserted
replaced
|
1 #!/usr/bin/env rdf-sparql-interpreter.sh |
|
2 # endpoint: https://dbpedia.org/sparql |
|
3 # relation: return |
|
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 ?actor_name |
|
13 ?film_name |
|
14 ?lang |
|
15 WHERE { |
|
16 ?actor foaf:name "Konstantin Lavronenko"@en . |
|
17 ?film dbo:starring ?actor . |
|
18 ?film dbo:abstract ?film_abstract . |
|
19 FILTER (regex(?film_abstract, "mythic")) |
|
20 ?actor rdfs:label ?actor_name . |
|
21 ?film rdfs:label ?film_name . |
|
22 FILTER (lang(?actor_name) = "en" && lang(?film_name) IN ("ru", "en", "nl")) |
|
23 BIND (lang(?film_name) AS ?lang) |
|
24 } |