Hi all

Talked yesterday directly about that with Andrea. After some testing
it looked like that the Solr Index somehow had not contained the
expected data (provided by the defaultdata bundle).

In the following some general information about the question

On Fri, Jul 1, 2011 at 6:53 PM, Andrea_Giovanni Nuzzolese
<[email protected]> wrote:
> Hi Rupert, all,
>
> I'm trying to fetch the RDF graph of an entity with the EntityHub, but I
> have back a meta-descritpion about the entity as it is in the EntityHub.
> For exampe for the entity http://dbpedia.org/resource/Bob_Marley I have back
>
> {
>   "id": "http:\/\/dbpedia.org\/resource\/Bob_Marley",
>   "site": "dbpedia",
>   "representation": {"id": "http:\/\/dbpedia.org\/resource\/Bob_Marley"},

The "representation" are the data of the Entity. In this case only the
ID is store in the Entityhub. If the Entity would not be present, than
the server would return a 404 instead of this request.
Currently requests always return the Entity and the Metadata. In
future [1] it will be also possible to request only the data or the
metadata.

>   "metadata": {
>       "id": "http:\/\/dbpedia.org\/resource\/Bob_Marley.meta",
>       "http:\/\/www.iks-project.eu\/ontology\/rick\/model\/isChached": [{
>           "type": "value",
>           "value": "true"
>       }],
>       "http:\/\/www.iks-project.eu\/ontology\/rick\/model\/about": [{
>           "type": "reference",
>           "value": "http:\/\/dbpedia.org\/resource\/Bob_Marley"
>       }],
>       "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type": [{
>           "type": "reference",
>           "value": "http:\/\/xmlns.com\/foaf\/0.1\/Document"
>       }]
Metadata are created on the fly for Entities of referenced sites. They
allow e.g. to retrieve if the returned data are the locally cached
one. For Entities managed by the Entityhub this metadata will also
include the state, creation data and possible additional metadata
directly set via the RESTful interface.

>   }
>
> Is it still possible to fetch the graph as it is on the LOD dataset via
> REST service?
>
Yes. In this case by using the following CURL command (assuming the
Stanbol is running on localhost:8080

curl -H "Accept: application/rdf+xml"
http://localhost:8080/entityhub/site/dbpedia/entity?id=http://dbpedia.org/resource/Bob_Marley

The same result should also be return when requesting the entity via
the ReferencedSiteManager

curl -H "Accept: application/rdf+xml"
http://localhost:8080/entityhub/sites/entity?id=http://dbpedia.org/resource/Bob_Marley


best
Rupert Westenthaler



-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to