dbpedia

Syntax for Sparql query for pages with specific infobox

一笑奈何 提交于 2019-12-13 04:39:28
问题 I'm trying Sparql for the first time (on dbpedia) and can't get any queries to work. Everything I try returns a syntax error or an empty dataset. For example, I tried the queries on this page. They didn't work, so I made the following changes: - I read that wikiPageUsesTemplate has changed to http://dbpedia.org/ontology/wikiPageUsesTemplate, - I add 'WHERE' to select statement, though I guess that must be optional, - I reduced the whole thing to a minimum: just the infobox clause. But it

Is it possible to return relationships between two objects in SPARQL?

北城余情 提交于 2019-12-13 04:39:06
问题 I am a beginner in SPARQL and I would like to know if it is possible to return relationships between two objects. For example I would like to write a SPARQL query which returns the relationship between Thierry Henry and Arsenal in dbpedia. 回答1: SELECT ?relationship WHERE { <http://dbpedia.org/resource/Thierry_Henry> ?relationship <http://dbpedia.org/resource/Arsenal_F.C.> } i.e.: show me the predicates ( ?relationship ) where the subject is the DBPedia resource Thierry_Henry and the object is

Sparql about dbpedia:World_Wide_Web

[亡魂溺海] 提交于 2019-12-13 04:36:17
问题 I'm new to the semantic web and I'm trying to figure out how to write a SPARQL query to extract from dbpedia everything about a particular subject. Not just it's proprieties, but also everything related to it. I'm not even sure how to start such a query. I would like to get all triples about the World Wide Web. PREFIX dbpedia: <http://dbpedia.org/resource/> SELECT DISTINCT ?s ?p ?o WHERE { ?s ?p ?o . ?s ?p dbpedia:World_Wide_Web # FILTER( lang(?s) = "en" ) -- doesn't work with filter }Limit

dbpedia sparql query returns 0 result

爱⌒轻易说出口 提交于 2019-12-13 03:45:52
问题 I’m new to query languages and linked data so thanks a lot for the help. I also have a similar question about sparql on wikidata Wikidata sparql query returns 0 result I would like to look up all the art movements in dbpedia with the associated artists (associated with the movement -peopleNam, famous for the movement-famousName, influence the movement-influenceName) here is my query with lots of redundant prefix (that I could not enter because of the amount of links) SELECT ?movementName

RdfParseException: Unexpected Character (Code 114) r was encountered

ぃ、小莉子 提交于 2019-12-13 02:23:56
问题 I am trying to send the following query to DBpedia using dotNetRDF: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX temp: <http://www.example.com/temp/> CONSTRUCT { ?v1 a temp:r. ?v1 temp:p0 ?v2. } WHERE { OPTIONAL { { { SELECT ?v1 WHERE { ?v1 rdfs:comment ?v2. } LIMIT 10 }. ?v1 rdfs:comment ?v2. }. }. } However, I am getting an RdfParseException saying that an unexpected r

Installing the DBPedia Extraction framework

泪湿孤枕 提交于 2019-12-13 01:29:53
问题 I am trying to install the DBPedia extraction framework following the http://wiki.dbpedia.org/Documentation I have downloaded the Maven binary version. $ mvn --version Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800) Maven home: /home/william/universe/Downloads/apache-maven-3.0.4 Java version: 1.5.0, vendor: Free Software Foundation, Inc. Java home: /usr/lib64/jvm/java-1.5.0-gcj-4.6-1.5.0.0/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.1.0-1.2

How to get the relationship between United Kingdom and England from DBpedia?

我是研究僧i 提交于 2019-12-12 20:23:32
问题 I'm trying to write a SPARQL query to obtain the relationship between the United Kingdom and England with no success: no result is returned, as you can see here: SELECT ?property WHERE { <http://dbpedia.org/resource/England> ?property <http://dbpedia.org/resource/United_Kingdom> } Any suggestion? Is there any mistake between in the SPARQL query? How can I find through DBpedia that England is in the UK? 回答1: Your query is correct. If you get no results, there is no such relationship. DBpedia

Repeating 503's messages when querying DBpedia

為{幸葍}努か 提交于 2019-12-12 18:41:20
问题 I'm conducting a series of queries to DBpedia SPARQL endpoint (from inside a loop). The code looks more or less like this: for (String citySplit : citiesSplit) { RepositoryConnection conn = dbpediaEndpoint.getConnection(); String sparqlQueryLat = " SELECT ?lat ?lon WHERE { " + "<http://dbpedia.org/resource/" + citySplit.trim().replaceAll(" ", "_") + "> <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat . " + "<http://dbpedia.org/resource/" + citySplit.trim().replaceAll(" ", "_") + "> <http:/

Using SPARQL to query DBPedia Company Information

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 10:06:25
问题 I'm trying to query DBPedia using SPARQL only to find company information such as a description, and a logo. I'm rather lost with devising the SPARQL Query to do this. SELECT DISTINCT ?subject ?employees ?homepage WHERE { ?subject rdf:type <http://dbpedia.org/class/yago/Company108058098> . ?subject dbpedia2:numEmployees ?employees FILTER ( xsd:integer(?employees) >= 50000 ) . ?subject foaf:homepage ?homepage . } ORDER BY DESC(xsd:integer(?employees)) LIMIT 20 I have come across the above