Hi Sonia
Assuming this is not a Bug in the FieldQuery implementation - that is
not discovered by any of the integration tests - the most likely
explanation is that the "http://movie.com/schema#" is not included
within the mappings.txt file used for indexing. If this is the case
the "missing" information would not be stored within queried
referenced site.
To validate this please check that the file
{indexing-dir}/indexing/config/mappings.txt
includes the line
http://movie.com/schema#*
if this is not the case than most likely the according data are not
included within the index.
If you run a Stanbol version later than revision #1195450 the Solr
RESTful API should be also available under "/solr/default/". So you
should be able to access the stored data for the entity in question
with the query
http://localhost:8080/solr/default/{coreName}/select?q=uri:http*/actors/5708
{coreName} ... the name of the core is typically the same as of the
referenced site and the value of the "name" property within the
"{indexing-dir}/indexing/config/indexing.properties" file. You can
also look for sub-directories of
"{stanbol}/sling/entityhub/solrYard/indexes" to look for the names.
best
Rupert
On Mon, Nov 7, 2011 at 10:39 AM, Sonia Gomez <[email protected]> wrote:
>
> Hi
> I builded and index my own ontology, with the recommandation wich is on
> "http://incubator.apache.org/stanbol/docs/trunk/customvocabulary.html" ,
> after adding the new engine in stanbol , the engine can extract and match
> with my new data described in my ontology, So the question is how can i make
> Spaql query with rest API (if it's possible !!), because when i use Json ,
> query not return all selected data.
>
> ========================================================================
> That is my ontology (n3):
>
> <http://movie.com/actors/5708> <http://movie.com/schema#In>
> <http://movie.com/countries/BG> .
> <http://movie.com/actors/5708> <http://movie.com/schema#In>
> <http://movie.com/countries/BG> .
> <http://movie.com/actors/5708> <http://movie.com/schema#In>
> <http://movie.com/countries/LV> .
> <http://movie.com/actors/5708> <http://movie.com/schema#Abstract> " abstract
> of actor.........."
> .......
> <http://movie.com/actors/5708> <http://xmlns.com/foaf/0.1/name> "Jonny Deep"
> <http://movie.com/actors/5708>
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://xmlns.com/foaf/0.1/Person>
> .......
> ========================================================================
>
> My Json Query is :
>
> { "selected": [ "http://movie.com/schema#In" ],
> "offset": "0" ,
> "limit": "1" ,
> "constraints": [{
> "type": "reference",
> "field": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" ,
> "value": "http://xmlns.com/foaf/0.1/Person" ,
> }]
> }
>
> =======================================================================
>
> The Result is :
>
> "results": [{
> "id": "http:\/\/movie.com\/actors\/5708",
> "http:\/\/www.iks-project.eu\/ontology\/rick\/query\/score": [{
> "type": "value",
> "xsd:datatype": "xsd:float",
> "value": 1.9409286
> }]
> }]
>
> =======================================================================
>
> I havn't http://movie.com/countries/BG...etc
>
> But whene I select http://xmlns.com/foaf/0.1/name I have the name "Jonny
> Deep", is it related with index !!?
>
> Thanks for your help
>
>
--
| Rupert Westenthaler [email protected]
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen