Advertisement
Guest User

Wordnet Planets SPARQL using SPARQL 1.1

a guest
Apr 12th, 2011
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  2. PREFIX wn: <http://www.w3.org/2006/03/wn/wn20/schema/>
  3.  
  4. SELECT DISTINCT ?label WHERE
  5. {
  6. SERVICE <http://wordnet.rkbexplorer.com/sparql/>
  7. {
  8. ?s1 wn:memberMeronymOf <http://wordnet.rkbexplorer.com/id/synset-solar_system-noun-1> .
  9. ?s1 rdfs:label ?label.
  10. }
  11. MINUS
  12. {
  13. SERVICE <http://wordnet.rkbexplorer.com/sparql/>
  14. {
  15. ?s2 wn:hyponymOf <http://wordnet.rkbexplorer.com/id/synset-Roman_deity-noun-1> .
  16. ?s2 rdfs:label ?label.
  17. }
  18. }
  19. BIND(URI(CONCAT("http://dbpedia.org/resource/", ?label)) AS ?dbpResource)
  20. FILTER(EXISTS
  21. {
  22. SERVICE <http://dbpedia.org/sparql>
  23. {
  24. ?dbpResource a <http://dbpedia.org/ontology/Planet> .
  25. }
  26. })
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement