dbpedia

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

Finding common categories or supercategories of resources

早过忘川 提交于 2019-12-11 12:57:30
问题 I'm wondering if we can know whether two resources have the same category or some subcategory (i.e., belong to categories of some common supercategory) in DBpedia? I tried this query in the DBpedia endpoint but it's wrong: select distinct ?s ?s2 where { ?s skos:subject <http :// dbpedia.org/resource/ Category ?c. ?s2 skos:subject <http :// dbpedia.org/resource/ Category ?c2. ?c=?c2. } 回答1: DBpedia doesn't use skos:subject for resources, but rather relates resources to their Wikipedia

What should I do to setup a new Gremlin version for Neo4j?

[亡魂溺海] 提交于 2019-12-11 11:54:34
问题 I am using Neo4j - Graph Database Kernel 1.8 It uses this gremlin version: gremlin> Gremlin.version() ==> 1.5 which is very old version. I want to upgrade to gremlin 2.0 or 2.1 from the github project, since I can't run this command on gremlin 1.5 : gremlin> g.v(1).outE.has("weight", T.gte, 0.5f).weight ==> No such property: T for class: groovysh_evaluate My question is what should I do, so I won't mess up all the entire environment of neo4j . 回答1: You can run: import com.tinkerpop.gremlin

How the pass the output of one sparql query as a input to another sparql query

混江龙づ霸主 提交于 2019-12-11 11:47:47
问题 I am trying get the dbpedia movie link using the movie name in the first query and pass that link in the second query to get the movies similar to this movie.For e.g Lagaan.Now instead of passing the link manually in the second query is there a way to combine the two queries and pass the output of first query as an input to the second query.i.e:the link of the movie lagaan.Also,if the first query gives multiple links eg:if i am searching for Harry potter it will return multiple harry potter

How to query DBPedia data for a given Wikipedia URL?

纵然是瞬间 提交于 2019-12-11 10:55:58
问题 If I want to query the RDF for Appomattox Court House National Historical Park in DBPedia, what's the query string if I search by wiki page URL? I tested the following string but get no result: select ?building where { ?building a dbo:Building . ?building foaf:primaryTopic <http://en.wikipedia.org/wiki/Appomattox_Court_House_National_Historical_Park> } LIMIT 100 回答1: As said in my comment as well: the problem is that you are using the foaf:primaryTopic relation the wrong way around. The wiki

SPARQL Federated Query Not Returning All Solutions

不打扰是莪最后的温柔 提交于 2019-12-11 10:30:31
问题 This is an evolution of this question. Basically I am having trouble getting all the solutions to a SPARQL query from a remote endpoint. I have read through section 2.4 here because it seems to describe a situation almost identical to mine. The idea is that I want to filter my results from DBPedia based on information in my local RDF graph. The query is here: PREFIX ns1: <http://www.semanticweb.org/caeleanb/ontologies/twittermap#> PREFIX dbo: <http://dbpedia.org/ontology/> SELECT * WHERE { ?p

Retrieving common Classes' attributes from DBPedia with SPARQL

橙三吉。 提交于 2019-12-11 09:58:12
问题 I'm trying to retrieve some properties for certain classes in dbpedia. Consider you have a country. It does exist in the ontology but I want to retrieve some related common properties, like name, currency, time zone, etc. But there is no such information in http://dbpedia.org/ontology/Country. SELECT * WHERE { <http://dbpedia.org/ontology/Country> ?predicate ?object. } And it is logic. The query just return 15 matchings, and even wikipedia does not have such information (see https://en

Extract Chemical Data from DBpedia via SPARQL

浪子不回头ぞ 提交于 2019-12-11 09:47:39
问题 I'd like to know how to submit a SPARQL query to DDBpedia and be given back a table that includes the information found in the Wikipedia "chembox" info box template, such as molecular weight or formula. So, the first step was just to make a query whose results should be a list of chemical substances that had the formula and molecularWeight properties included. But the following returns no results: SELECT * WHERE { ?y rdf:type dbpedia-owl:ChemicalSubstance. ?y rdfs:label ?Name . ?y dbpedia

SPARQL - learning by example

十年热恋 提交于 2019-12-11 09:42:45
问题 In short, if someone instructs me, "Get a list of databases which include Oracle, Mysql, DB2, MSSQL, etc.," how can I actually establish which fields and information I need to create the query? I downloaded DBpedia and grepped the triples, e.g., $ `grep 'Oracle' * | grep 'Database' article_categories_en.nt:<http://dbpedia.org/resource/Oracle_Database> <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Relational_database_management_systems> .` How do I create a SPARQL

Dbpedia resource parsing in JAVA

感情迁移 提交于 2019-12-11 08:14:38
问题 By using DBpedia Spotlight, I get DBpedia URIs. For example http://dbpedia.org/resource/Part-of-speech_tagging I need to request this URI in Java so that it can return me some json/xml and I can fetch the necessary information from the response. For example, in the above mentioned URI, I need the value of dct:subject Below is the screenshot of the response what I get in the browser. 回答1: There isn't enough info in your question about what you're trying to achieve to provide the best path by