You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Reto Bachmann-Gmür <me...@farewellutopia.com> on 2011/09/23 10:22:49 UTC

ConceptProvider, any suceess accessing dbpedia?

Hello,

I was comparing the stanbol dbpedia integration with what we have in
Clerezza.

the default sparql-query in the form when adding a new concept-provider is
designed to work with DBpedia. However I had no success adding
http://dbpedia.org/sparql as sparql endpoint. I'm constantly getting
time-out errors as shown above.

Did anyone managed to get concept-provider working with DBpedia? Maybe the
query could be simplified to be more performant.

Cheers,
Reto

Transcript of interaction with dbpedia after accessing
http://localhost:8080/concepts/find?searchTerm=rdf&xPropObj=http://clerezza.org/2010/04/queryresult%23concept:

POST /sparql HTTP/1.1
Accept: application/rdf+xml
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_26
Host: dbpedia.org
Connection: keep-alive
Content-type: application/x-www-form-urlencoded
Content-Length: 721

query=PREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org
%2F2002%2F07%2Fowl%23%3E+%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org
%2F2000%2F01%2Frdf-schema%23%3E+%0APREFIX+skos08%3A+%3Chttp%3A%2F%
2Fwww.w3.org%2F2008%2F05%2Fskos%23%3E+%0APREFIX+skos04%3A+%3Chttp%3A%2F%
2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E+%0ACONSTRUCT+%7B+%3Fconcept+a+skos08%3AConcept%3B+skos08%3AprefLabel+%3FprefLabel%3B+rdfs%3Acomment+%3Fcomment%3B+owl%3AsameAs+%3FsameConcept+.+%7D+%0AWHERE+%7B+%3Fconcept+a+skos04%3AConcept%3B+skos04%3AprefLabel+%3FprefLabel+.+%0AOPTIONAL+%7B+%3Fconcept+rdfs%3Acomment+%3Fcomment+.+%7D+%0AOPTIONAL+%7B+%3Fconcept+owl%3AsameAs+%3FsameConcept+.+%7D+%0AFILTER+%28REGEX%28STR%28%3FprefLabel%29%2C+%27rdf%27%2C+%27i%27%29%29%7DHTTP/1.1
500 SPARQL Request Failed
Date: Fri, 23 Sep 2011 08:12:57 GMT
Content-Type: text/plain
Connection: keep-alive
Server: Virtuoso/06.02.3130 (Linux) x86_64-generic-linux-glibc25-64  VDB
Accept-Ranges: bytes
Content-Length: 596

Virtuoso S1T00 Error SR171: Transaction timed out

SPARQL query:
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos08: <http://www.w3.org/2008/05/skos#>
PREFIX skos04: <http://www.w3.org/2004/02/skos/core#>
CONSTRUCT { ?concept a skos08:Concept; skos08:prefLabel ?prefLabel;
rdfs:comment ?comment; owl:sameAs ?sameConcept . }
WHERE { ?concept a skos04:Concept; skos04:prefLabel ?prefLabel .
OPTIONAL { ?concept rdfs:comment ?comment . }
OPTIONAL { ?concept owl:sameAs ?sameConcept . }
FILTER (REGEX(STR(?prefLabel), 'rdf', 'i'))}