DBPEDIA + SPARQL Selecting films in function of their genre -
is possible list of films in function of genre?
i tried this:
select distinct ?film_title ?film_abstract ?film_genre { ?film_title rdf:type <http://dbpedia.org/ontology/film> . ?film_title rdfs:comment ?film_abstract . ?film_genre <http://dbpedia.org/ontology/genre> ?film_genre . filter(lang(?film_abstract) = "en" ).  } limit 20    but i've doing wrong !
thanks,
 danilo 
looks simple typo on part. third triple pattern should following:
 ?film_title <http://dbpedia.org/ontology/genre> ?film_genre   also filter using may make query slow, try using following instead:
 filter(langmatches(lang(?film_abstract), "en"))   though having played query there doesn't appear data matches query in dbpedia. genre property using appears applied music , not films should remove third triple pattern entirely if want results
Comments
Post a Comment