linkedmdb

Filtering based on a URI in SParQL [duplicate]

放肆的年华 提交于 2019-12-23 16:07:10
问题 This question already has an answer here : Exclude results from DBpedia SPARQL query based on URI prefix (1 answer) Closed 3 years ago . You can run the query below at the Linked MDB SPARQL Explorer. The values of ?imdbID (the last variable) contains IRIs from one of three possible domains (freebase.com, rottentomatoes.com or imdb.com). I would like to know how to apply a filter such that only the rows from the imdb.com domain are retained. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

How to use Jena TDB to store local version of Linked Movie Database

懵懂的女人 提交于 2019-12-23 02:19:59
问题 I have a local version of LinkedMDB that is in N-Triples format and want to query it. Now, I want to use Jena TDB, which can store the data that can be used for querying later. I checked the documentation for TDB Java API, but was unable to load the N-Triples file and then query with SPARQL. I've used the following code: String directory = "E:\\Applications\\tdb-0.8.9\\TDB-0.8.9\\bin\\tdb"; Dataset dataset = TDBFactory.createDataset(directory); // assume we want the default model, or we could

Can't retrieve movies with high IDs from LinkedMDB with SPARQL

折月煮酒 提交于 2019-12-19 08:52:24
问题 I'm running the following query at the LinkedMDB SPARQL endpoint and it works. With it, I get all the information that I need about the director of the movie with id 72, which is Titanic , so I get information about James Cameron. PREFIX mdb: <http://data.linkedmdb.org/resource/movie/> SELECT ?director?nombre_director?id_director WHERE { ?pelicula mdb:filmid ?id . ?pelicula <http://data.linkedmdb.org/resource/movie/director> ?director . ?director <http://data.linkedmdb.org/resource/movie

How to resolve the execution limits in Linkedmdb

痴心易碎 提交于 2019-12-18 09:04:59
问题 I was trying to extract all movies from Linkedmdb. I used OFFSET to make sure I wont hit the maximum number of results per query. I used the following scrip in python """ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX movie: <http://data.linkedmdb.org/resource/movie/> SELECT distinct ?film WHERE { ?film a movie:film . } LIMIT 1000 OFFSET %s """ %i I looped 5 times, with offsets being 0,1000,2000,3000,4000 and recorded the number of results. It was (1000,1000,500,0,0). I already

How to find similar content using SPARQL

喜你入骨 提交于 2019-12-17 16:38:00
问题 I'm playing with the idea of using SPARQL to identify conceptual overlap between things. Take movies for example (LinkedMDB data), if I have a movie, "The Matrix" and my goal is to list movies that are similar to that movie, I would probably start by doing the following: The Matrix get genre get actors get director get location etc And then using the things I identified in the matrix, I would query for things with those properties (pseudo-query) SELECT movie, genre, director, location, actors

LinkedMDB SPARQL results with fewer results than expected?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 05:47:46
问题 Slide 14 of Ontology Alignment Discovery using Linked Open Data says that there are 50,603 actors in the LinkedMDB dataset. Using the following query, I get 2500. Who is wrong here?, Is there something missing in the query? Why do the slides count such a high number? This is the SPARQL query: select(count(distinct ?actors) as ?nActors) where { ?actors a <http://data.linkedmdb.org/resource/movie/actor> . } Results 回答1: Many public endpoints impose limits on queries in order to ensure that one

Counting number of individuals in SPARQL

我是研究僧i 提交于 2019-12-12 18:01:59
问题 I am totally new to SPARQL. I would like to count the number of actors in this ontology : http://data.linkedmdb.org/directory/actor I tried the following: SELECT ?s (COUNT(*) AS ?count) WHERE { ?a <http://data.linkedmdb.org/directory/actor> ?s} GROUP BY ?s But i believe that's not the right syntax for it because it gives me 0 results.. Where I know there are several results in that data source! Could it be that the link is not the correct one? 回答1: Counting actors per film In the original

Connecting Linkedmdb and DBpedia via federated SPARQL queries

眉间皱痕 提交于 2019-12-11 13:49:39
问题 I ran the following query and got the data for movies and their corresponding DBpedia URI from linkedmdb. SELECT ?film ?label ?dbpediaLink WHERE { ?film rdf:type movie:film . ?film rdfs:label ?label . ?film owl:sameAs ?dbpediaLink FILTER(regex(str(?dbpediaLink), "dbpedia", "i")) } LIMIT 100 I want to get the category for these movies from DBpedia using the ?dbpediaLink URI. Also, I need to get the value of the dcterms:subject property for the movie from DBpedia. I am not able to understand

SPARQL Query to get Movie detail

荒凉一梦 提交于 2019-12-11 11:45:37
问题 To get movie detail from linkedmdb, I used sparql query : PREFIX mdb: <http://data.linkedmdb.org/resource/movie/film> SELECT DISTINCT ?Title ?Genre ?Actor ?Country ?Director ?Year WHERE { ?film mdb:id ?uri . ?film dc:title ?Title . ?film movie:genre ?filmgenre. ?filmgenre movie:film_genre_name ?Genre . ?film movie:actor ?cast . ?cast movie:actor_name ?Actor . ?film movie:country ?Ctr . ?Ctr movie:country_name ?Country . ?film dc:date ?Year . ?film movie:director ?Drc . ?Drc movie:director

local version of Linked Movie Database at linkedmdb.org

耗尽温柔 提交于 2019-12-01 13:28:44
i want to query from Linked Movie Database at linkedmdb.org locally. is there some rdf or owl version of it that can i download query locally instead of remotely I tried to query it and got the following error: org.openjena.riot.RiotException: <E:\Applications\linkedmdb-latest-dump\linkedmdb-latest-dump.nt> Code: 11/LOWERCASE_PREFERRED in SCHEME: lowercase is preferred in this component org.openjena.riot.system.IRIResolver.exceptions(IRIResolver.java:256) org.openjena.riot.system.IRIResolver.access$100(IRIResolver.java:24) org.openjena.riot.system.IRIResolver$IRIResolverNormal.resolveToString