Advertisement
asanchez75

sparql/examples

Aug 17th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. SELECT ?s {GRAPH <http://dbpedia.org> {
  2. ?s foaf:isPrimaryTopicOf ?link.
  3. {
  4. SELECT IRI(str(?link)) as ?link {GRAPH <http://xlore.org> {
  5. ?instance <http://xlore.org/property#hasURL> ?link.
  6. }}
  7. LIMIT 10
  8. }
  9. }}
  10.  
  11. ==================
  12.  
  13. CONSTRUCT {
  14. ?dbpedia_instance owl:sameAs ?xlore_instance.
  15. }
  16. WHERE {
  17. SELECT ?dbpedia_instance ?xlore_instance {GRAPH <http://dbpedia.org> {
  18. ?dbpedia_instance foaf:isPrimaryTopicOf ?link.
  19. {
  20. SELECT ?xlore_instance IRI(str(?link)) as ?link {GRAPH <http://xlore.org> {
  21. ?xlore_instance <http://xlore.org/property#hasURL> ?link.
  22. }}
  23. LIMIT 1
  24. }
  25. }}
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement