Consider the following RDF graph in Turtle format prefix rdf

Consider the following RDF graph in Turtle format: @prefix rdf: chttp://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs: . @prefix xsd: chttp://www.w3.org/2001/XMLSchema#>. @prefix schema: . @prefix dbr: chttp://dbpedia.org/resource/>. @prefix dbo: chttp://dbpedia. org/ontology/>. @prefix movie: Chttp://data. linkedmdb. org/resource/movie/>. @prefix dc: chttp://purl. org/dc/terms/>. dbr:Bill_Murray dbo:birthName \"William James Murray\"Sen; movie:star_of \"Ghostbusters\"@en, \"Scrooged\"@en; rdf:type schema:Person. dbr:Richard.Donner dbo:birthName \"Richard Donald Schwartzberg\"@en; rdf:type schema:Person. dbr:Ivan_Reitman dbo:birthName \"Ivan Reitman\"®en; rdf:type schema:Person. Write a SPARQL query without prefixes that returns birth names of all people who starred in a movie. To save time, you may refer to the URIs above as where X is the corresponding line number.

Solution

select ?birthname

where

{

?x dbo:birthname ?birthname

?x movie:star_of : Ghostbusters

}

 Consider the following RDF graph in Turtle format: @prefix rdf: chttp://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs: . @prefix xsd: chttp://www.w3.o

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site