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

                                          

Reply via email to