DBPEDIA: CASE STUDY


       3.   Mr steve would like to teach her pupil about cookies; He decided to present the names of the cookies, description and the picture of each so that his pupil can see it while he teaches; in other to improve interactivity in the class.

      
     

 
Your task is to help Mr. steve:
Note: retrieve the name of the cookies, their description and picture URL (so he clicks on any as he teaches)

      SOLUTION
     PREFIX o:<http://dbpedia.org/ontology/>
     PREFIX :<http://dbpedia.org/resource/>
     PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
     PREFIX foaf:<http://xmlns.com/foaf/0.1/>

     SELECT ?cookie_type ?description ?picture_url where {
     ?cookie o:type :Cookie;
     rdfs:label ?cookie_type;
     rdfs:comment ?description .
     ?cookie foaf:depiction ?picture_url .
     }
see live query here : livequery

    



          

    

    
      








Comments

Popular posts from this blog

Working with GraphQl API for Mobile App Development using Flutter Part 1