Search code examples
semantic-websparqldbpedia

How to write SPARQL Query to retrieve data about Tourism from DBpedia?


How to write SPARQL Query to retrieve data about Tourism from DBpedia?? Can any one elaborate it( how to write SPARQL Query & what are the things i should already know to start with SPARQL), as i am completely new to this.


Solution

  • An example SPARQL query for a starter can be (if you are impatient, jump to the result set):

    SELECT ?uri ?txt WHERE {
                  ?uri rdfs:label ?txt .
                  ?txt bif:contains "Tourism" .
                 }
    

    For a very good and gentle introduction to Semantic Web (with lots of very nice SPARQL examples) please see

    And in order to learn how to integrate Semantic Web technologies into your custom software applications, this is a very good resource (with lots of example using Semantic Web APIs / toolkits such as Jena):