Hi, I've been using the EntityHub for my own projects for quite a while now and was looking to further refinements of my way to query it. So I wanted to refine my Similarity searches on a DBpedia referenced site so that they consider many fields, not just rdfs:label (but not all of them, like the fullText property would do).
Basically what I want is that a similarity search for "sumner" also returns dbpedia:Sting_(musician) because Sting's birth name and dbo:alias is "Gordon Matthew Sumner". Both the live documentation and the FieldQueryReader parser seem to support this "addFields" property to the constraint, however I am not sure I am using it properly since it seems to be ignored. (I'm on the HEAD of the release-012 branch) basically if I POST the following query: { "selected": [ "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label", "http:\/\/dbpedia.org\/ontology\/thumbnail"], "offset": "0", "limit": "10", "constraints": [{ "type": "similarity", "context": "sumner", "field" : "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label", "addFields": [ "http:\/\/dbpedia.org\/ontology\/alias" ] },{ "type": "reference", "field": "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type", "value": "http:\/\/dbpedia.org\/ontology\/Person" }] } the JSON returned by the service also includes the parsed query, which however doesn't seem to either include "addFields" nor to expand the "field" property. { "query": { "selected": [ "http:\/\/dbpedia.org\/ontology\/thumbnail", "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label", "http:\/\/stanbol.apache.org\/ontology\/entityhub\/query#score" ], "constraints": [ { "type": "similarity", "context": "sumner", "field": "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label", "boost": 1 }, { "type": "reference", "value": "http:\/\/dbpedia.org\/ontology\/Person", "mode": "any", "field": "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type", "boost": 1 } ], "limit": 10, "offset": 0 }, "results": [{ // ....................... }] } I know the referenced site does contain the expected data because if I replace rdfs:label with dbo:alias in "field", Sting is returned as the first result. Is there anything I must be doing wrong? Many Thanks Alessandro -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.