The following SPARQL query retrieves only 2500 records with actors and films, which I don’t know why its limited to 2500:
PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX movie: <http://data.linkedmdb.org/resource/movie/> SELECT ?id ?filmTitle ?actorName WHERE { SERVICE <http:
Query from the answer to the question: Query the associated movie database (LMDB) using SPARQL
What does the keyword a mean? What do the square brackets [] mean?
I realized that the keyword a replaces rdf:type , and I rewrote the part of the SPARQL query without actors. But I still can not understand the meaning of the square brackets [].
PREFIX movie: <http://data.linkedmdb.org/resource/movie/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?film ?id ?filmTitle WHERE {
Thanks for your answers, but the code skips some actors for films. For example, in the movie "A Bridge Too Far" there are 18 participants, but the result of this query has only 2
PREFIX dcterms: <purl.org/dc/terms/>; PREFIX movie: <data.linkedmdb.org/resource/movie/>; SELECT ?id ?filmTitle ?actorName WHERE { SERVICE <data.linkedmdb.org/sparql>; { ?film a movie:film ; movie:filmid ?id ; dcterms:title ?filmTitle ; movie:actor [ a movie:actor ; movie:actor_name ?actorName ]. } } ORDER BY ASC(?filmTitle)
My edited code still giving the same result to 2 actors instead of 18
filmlist.rq
PREFIX movie: <http://data.linkedmdb.org/resource/movie/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?film ?id ?filmTitle ?actorName WHERE {
source share