Advertisement
Guest User

query

a guest
Jun 29th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. PREFIX dbpedia2: <http://dbpedia.org/property/>
  2. SELECT (replace(?name, "(.*),(.*)", "$2 $1") as ?realName) ?name ?born ?died ?birthPlace ?occupation WHERE {
  3. ?person dbpedia2:birthPlace <http://dbpedia.org/resource/Copenhagen> .
  4. OPTIONAL {
  5. ?person dbpedia2:name ?name .
  6. }
  7. OPTIONAL {
  8. ?person dbpedia2:birthDate ?born .
  9. }
  10. OPTIONAL {
  11. ?person dbpedia2:deathDate ?died .
  12. }
  13. OPTIONAL {
  14. ?person dbpedia2:birthPlace ?birthPlace .
  15. }
  16. OPTIONAL {
  17. ?person dbpedia2:occupation ?occupation .
  18. }
  19. }
  20. LIMIT 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement