Update: I just found FieldQueryImpl so I don't need to create a new class or to use a Factory.
However the following returns no results even though entities are available: final FieldQuery query = new FieldQueryImpl(); final QueryResultList<Representation> result = siteManager.find(query); return "executing query result: "+result.results(); Is it more complicated to make a query without any restriction? Cheers, Reto On Tue, Feb 12, 2013 at 2:05 PM, Reto Bachmann-Gmür <[email protected]> wrote: > Thanks Rupert, > > Indeed the SiteManager is what I was looking for. > > Now i?m trying to find out how to query against the SiteManager. The > SiteManager has method that take a FieldQuery but it has no method > providing a QueryFactory. Can I just pass it an anonymous instance of > Query? What are the set- and remove methods for, is it safe not to > implement them? > > Will a query with an empty constraint set result in all entities being > returned? > > Cheers, > Reto > > On Sun, Feb 10, 2013 at 7:23 PM, Rupert Westenthaler > <[email protected]> wrote: >> Hi >> >> Are you talking about the entityhub and not about the dbpedia >> referenced site? The Entityhub is empty by default. >> >> best >> Rupert >> >> On Sun, Feb 10, 2013 at 1:36 PM, Reto Bachmann-Gmür <[email protected]> wrote: >>> Hi Rupert >>> >>> I'm using the full launcher. On >>> http://dev.iks-project.eu:8081/entityhub I don't see more data either. >>> It doesn't find dbpedia:Paris and the following query yields to no >>> result: >>> >>> { >>> "query": { >>> "selected": [], >>> "constraints": [{ >>> "type": "text", >>> "patternType": "wildcard", >>> "text": "*", >>> "field": >>> "http:\/\/stanbol.apache.org\/ontology\/entityhub\/entityhub#label" >>> }], >>> "limit": 10, >>> "offset": 0, >>> "ldpath": "name = rdfs:label[@en] :: xsd:string;" >>> }, >>> "results": [] >>> } >>> >>> Cheers, >>> Reto >>> >>> On Sat, Feb 9, 2013 at 10:30 PM, Rupert Westenthaler >>> <[email protected]> wrote: >>>> Hi Reto >>>> >>>> AFAIK the stable, full and full-war launcher should still have the >>>> dbpedia defaultdata index included. If this would not be the case for >>>> the full launcher, than the integration-test would fail. What launcher >>>> are you referring to? >>>> >>>> best >>>> Rupert >>>> >>>> On Sat, Feb 9, 2013 at 8:51 PM, Reto Bachmann-Gmür <[email protected]> wrote: >>>>> Hello >>>>> >>>>> The released version of Stanbol had this 43k default index for the >>>>> Entityhub. The current snapshot version seems not to have any entity. >>>>> Because of this the examples on the example page return no results (e.g. >>>>> the query for http://dbpedia.org/resource/Paris). I like having some data >>>>> in Entityhub by default. If the data is removed then I think the example >>>>> should be changed as to include some example creating an entity so that >>>>> the >>>>> user can click through it and have some actual results. >>>>> >>>>> Cheers, >>>>> Reto >>>> >>>> >>>> >>>> -- >>>> | Rupert Westenthaler [email protected] >>>> | Bodenlehenstraße 11 ++43-699-11108907 >>>> | A-5500 Bischofshofen >> >> >> >> -- >> | Rupert Westenthaler [email protected] >> | Bodenlehenstraße 11 ++43-699-11108907 >> | A-5500 Bischofshofen
