Hi Sebastian
I tries the query with
curl -X POST -H "Content-Type:application/json" --data
"@query.txt" http://dev.iks-project.eu:8080/entityhub/site/dbpedia/query
on
* dev.iks-project.eu:8080 (about 3 month old 0.9.0-incubating-SNAPSHOT)
* /dev.iks-project.eu:8081 (0.9.0-incubationg RC4)
* default config of the 0.10.0-incubating-SNAPSHOT
and it worked on all instances as expected. However this is not a big
surprise as exactly this query is also used within the
integration-tests to validate the ranged query implementation.
Because of that I guess that the problem is related to the data sent
in the request.
best
Rupert
---------- Forwarded message ----------
From: Sebastian Germesin <[email protected]>
Date: Fri, May 18, 2012 at 3:45 PM
Subject: Entityhub - Query
To: [email protected]
Dear all,
I am currently implementing the query endpoint of the entityhub
(addresses VIE issue #64 (https://github.com/bergie/VIE/issues/64))
http://dev.iks-project.eu:8080/entityhub/query
Using the folling query from the documentation:
{
"selected": [
"http://www.w3.org/2000/01/rdf-schema#label",
"http://dbpedia.org/ontology/birthDate",
"http://dbpedia.org/ontology/deathDate"],
"offset": "0",
"limit": "3",
"constraints": [{
"type": "range",
"field": "http://dbpedia.org/ontology/birthDate",
"lowerBound": "1946-01-01T00:00:00.000Z",
"upperBound": "1946-12-31T23:59:59.999Z",
"inclusive": true,
"datatype": "xsd:dateTime"
},{
"type": "reference",
"field":
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
"value": "http://dbpedia.org/ontology/Person",
}]
}
The expected results should include entities: Bill Clinton, George W.
Bush and Donald Trump. However, no results are returned. Is something
wrong with the query?
Thanks a lot in advance,
Sebastian
--
| Rupert Westenthaler [email protected]
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen