SearchController.java 文件源码

java
阅读 43 收藏 0 点赞 0 评论 0

项目:catalog-search-service 作者:
/**
 * Returns from a given concept the data properties and obejctproperties and
 * to each objecproperty a concept in the case the step range is greater 1
 * 
 * @param concept
 * @param step
 *            range
 * @param
 * @return
 */
@CrossOrigin
@RequestMapping(value = "/getPropertyValuesDiscretised", method = RequestMethod.GET)
HttpEntity<Object> getPropertyValuesDiscretised(@RequestParam("inputAsJson") String inputAsJson) {
    try {
        Logger.getAnonymousLogger().log(Level.INFO, "Invoke: getPropertyValuesDiscretised: " + inputAsJson);
        Gson gson = new Gson();
        InputParameterForgetPropertyValuesDiscretised paramterForGetLogicalView = gson.fromJson(inputAsJson,
                InputParameterForgetPropertyValuesDiscretised.class);
        Map<String, List<Group>> mapOfPropertyGroups = sparqlDerivation.generateGroup(
                paramterForGetLogicalView.getAmountOfGroups(), paramterForGetLogicalView.getConcept(),
                paramterForGetLogicalView.getProperty());
        String result = "";
        result = gson.toJson(mapOfPropertyGroups);
        return new ResponseEntity<Object>(result, HttpStatus.OK);
    } catch (Exception e) {
        return new ResponseEntity<Object>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号