Hi Rupert,

I recently updated the Stanbol install, and I found that the RDF returned by
the EntityHub is missing some props (specifically the dbprop as far as I can
see).

This is the command that I use for testing:
 curl -H "accept: application/rdf+xml" "
http://localhost:8080/entityhub/site/dbpedia/entity?id=http://dbpedia.org/resource/Valentino_Rossi
"

which outputs the attached RDF file.

I cleared all of the sling folder (rm -fr sling) and checked the with the
SPAQL end-point at DBpedia, but I wasn't able to fix it.

Does this depend on the mapping.txt file?

Thanks for your help.

BR
David

On Mon, Jun 6, 2011 at 3:22 PM, David Riccitelli <
[email protected]> wrote:

> Hi Rupert,
>
> Clearing the cache solved the issue. Thanks for you help.
>
> BR,
> David
>
>
> On Mon, Jun 6, 2011 at 3:15 PM, Rupert Westenthaler <
> [email protected]> wrote:
>
>> Hi David
>>
>> Assuming that you are using the default distribution of Apache Stanbol.
>>
>> Requests for  http://dbpedia.org/resource/Valentino_Rossi will be
>>  - only the first time answered by retrieving the Entity form DBpedia.org
>>  - the Information are cached in a local cache. By that values of the
>> documents are filtered (see (a) for details)
>>  - the cached version is returned
>>
>> (a) The default configuration for dbpedia stores all fields however
>> filters values for literals so that only values with the language "en,
>> de, fr, it, es" or no language are stored.
>>
>>
>> Assuming that you have started for zero when updating to a new version
>> this also means that you have downloaded a new version of this Entity
>> from dbPedia.
>>
>> I made several tests and I was not able to reproduce the described case.
>>
>> I tried the following:
>>
>> curl -H "Accept: application/rdf+xml"
>>
>> http://localhost:8080/entityhub/site/dbpedia/entity?id=http://dbpedia.org/resource/Valentino_Rossi
>>
>> The response contained both the expected thumbnail and the depiction
>> value. (see the attached file).
>>
>> Also comparing the results with the one directly provided by DBpedia
>> indicated no problems. Try to post
>>
>> CONSTRUCT { <http://dbpedia.org/resource/Valentino_Rossi> ?p ?o }
>> WHERE { <http://dbpedia.org/resource/Valentino_Rossi> ?p ?o }
>>
>> onto  http//dbpedia.org/sparql.
>>
>> Therefore I would suggest you to try:
>>  - to copy the launcher jar to an other directory and init an other
>> Stanbol installation (use -p {port} to change the port)
>>  - if you do not care about loosing the local cache you can also just
>> delete the "{stanbol_root_folder}/sling/entityhub/solrYard/indexes/cache"
>> folder and restart Stanbol.
>>
>> It this solves the problem, that the Error will be most likely be
>> cause by DBpedoa.org not returning all data. It the properties are
>> still missing, than it has to be something todo with the configuration
>> provided within the launcher jar.
>> In that case I would need more information about the launcher you use
>> and possible changes to your configuration.
>>
>> best
>> Rupert Westenthaler
>>
>>
>> On Mon, Jun 6, 2011 at 10:29 AM, David Riccitelli
>> <[email protected]> wrote:
>> > Dears,
>> > Before r1131053, when querying for
>> > resource http://dbpedia.org/resource/Valentino_Rossi, I was able to
>> get:
>> >
>> >     <j.8:thumbnail
>> > rdf:resource="
>> http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/Valentino_Rossi_2010_Qatar.jpg/200px-Valentino_Rossi_2010_Qatar.jpg
>> "/>
>> >     <j.3:depiction
>> > rdf:resource="
>> http://upload.wikimedia.org/wikipedia/commons/8/81/Valentino_Rossi_2010_Qatar.jpg
>> "/>
>> >
>> > being:
>> >
>> >     xmlns:j.3="http://xmlns.com/foaf/0.1/";
>> >     xmlns:j.8="http://dbpedia.org/ontology/";
>> >
>> > With r1131053 however these information are not provided anymore: see
>> the
>> > attached file for a comparison.
>> > I understand the configuration of EntityHub changed, how do I get those
>> > information back from EntityHub?
>> > BR,
>> > David
>> >
>> > --
>> > David Riccitelli
>> >
>> > Interact SpA
>> > Via A. Bargoni 78 (scala F)
>> > 00153 Roma
>> >
>> > T +39 06 58318 301
>> > F +39 06 58318 303
>> >
>>
>>
>>
>> --
>> | Rupert Westenthaler             [email protected]
>> | Bodenlehenstraße 11                             ++43-699-11108907
>> | A-5500 Bischofshofen
>>
>
>
>
> --
> David Riccitelli
>
> Interact SpA
> Via A. Bargoni 78 (scala F)
> 00153 Roma
>
> T +39 06 58318 301
> F +39 06 58318 303
>
>


-- 
David Riccitelli

Interact SpA
Via A. Bargoni 78 (scala F)
00153 Roma

T +39 06 58318 301
F +39 06 58318 303
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
    xmlns:j.0="http://xmlns.com/foaf/0.1/";
    xmlns:j.1="http://purl.org/dc/terms/";
    xmlns:j.2="http://www.iks-project.eu/ontology/rick/model/";
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"; > 
  <rdf:Description rdf:about="http://dbpedia.org/resource/Valentino_Rossi.meta";>
    <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Document"/>
    <j.2:about rdf:resource="http://dbpedia.org/resource/Valentino_Rossi"/>
    <j.2:isChached rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean";>true</j.2:isChached>
    <j.0:primaryTopic rdf:resource="http://dbpedia.org/resource/Valentino_Rossi.meta"/>
    <j.2:site rdf:datatype="http://www.w3.org/2001/XMLSchema#string";>dbpedia</j.2:site>
  </rdf:Description>
  <rdf:Description rdf:about="http://dbpedia.org/resource/Valentino_Rossi";>
    <rdfs:label xml:lang="it">Valentino Rossi</rdfs:label>
    <rdfs:label xml:lang="fr">Valentino Rossi</rdfs:label>
    <rdfs:label xml:lang="en">Valentino Rossi</rdfs:label>
    <j.2:entityRank>0.530347</j.2:entityRank>
    <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
    <j.0:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/8/81/Valentino_Rossi_2010_Qatar.jpg"/>
    <j.0:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/Valentino_Rossi_2010_Qatar.jpg/200px-Valentino_Rossi_2010_Qatar.jpg"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:People_from_Urbino"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:MotoGP_riders"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:Italian_motorcycle_racers"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:1979_births"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:250cc_World_Championship_riders"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:Laureus_World_Sports_Awards_winners"/>
    <rdfs:label xml:lang="de">Valentino Rossi</rdfs:label>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:Italian_rally_drivers"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:World_Rally_Championship_drivers"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:125cc_World_Championship_riders"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:500cc_World_Championship_riders"/>
    <j.1:subject rdf:resource="http://dbpedia.org/resource/Category:Living_people"/>
    <j.0:isPrimaryTopicOf rdf:resource="http://dbpedia.org/resource/Valentino_Rossi.meta"/>
  </rdf:Description>
</rdf:RDF>

Reply via email to