Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 1.02 KB | None | 0 0
  1. Cuántos actores hay en dbpedia
  2. SELECT COUNT( ?person ) AS ?cantidad_actores
  3. WHERE { ?person  rdf:type dbo:Actor }
  4.  
  5. Todos los actores que hay en dbpedia
  6. SELECT ?actor
  7. WHERE { ?actor  rdf:type dbo:Actor }
  8.  
  9. Películas en las que haya actuado Bruce Lee
  10. SELECT ?films
  11. WHERE {?films dbo:starring <http://dbpedia.org/resource/Bruce_Lee>}
  12.  
  13. Películas en las que haya actuado y dirigido Bruce Lee
  14. SELECT * WHERE {
  15.     ?films dbo:starring <http://dbpedia.org/resource/Bruce_Lee> .
  16.     ?films dbo:director <http://dbpedia.org/resource/Bruce_Lee>
  17. }
  18.  
  19. Pelicula mas larga en la que haya participado Bruce Lee como actor
  20. SELECT ?films WHERE {
  21.     ?films dbo:starring <http://dbpedia.org/resource/Bruce_Lee> .
  22.     ?films dbo:runtime ?filmDuration
  23. } ORDER BY DESC(?filmDuration) LIMIT 1
  24.  
  25. Películas en la que haya participado Bruce Lee como actor que duren más de 7000 segundos
  26. SELECT ?films WHERE {
  27.     ?films dbo:starring <http://dbpedia.org/resource/Bruce_Lee> .
  28.     ?films dbo:runtime ?filmDuration .
  29.     FILTER(?filmDuration > 7000)
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement