Package uk.ac.ebi.ricordo.rdfstore.bean

Examples of uk.ac.ebi.ricordo.rdfstore.bean.ResourceList


    private static final String XML_VIEW_NAME = "resources";

    @RequestMapping(method=RequestMethod.GET, value="/search/{command}")
    public ModelAndView getResources(@PathVariable String command) {
        ResourceList resourceList = new ResourceList();
        rdfStoreService.search("",command,resourceList);
        return new ModelAndView(XML_VIEW_NAME, "resources", resourceList);
    }
View Full Code Here


        return new ModelAndView(XML_VIEW_NAME, "resources", resourceList);
    }

    @RequestMapping(method=RequestMethod.POST, value="/search/{command}")
    public ModelAndView getSearch(@RequestBody Query query, @PathVariable String command) {
        ResourceList resourceList = new ResourceList();
        rdfStoreService.search(query.getQuery(), command, resourceList);
        return new ModelAndView(XML_VIEW_NAME, "resources", resourceList);
    }
View Full Code Here

    @Test
    public void testGetTermsInAsTermObjects()throws Exception {
        ResponseEntity<ResourceList> response = restTemplate.exchange( URL_STRING+"search/getResources",
                HttpMethod.GET, new HttpEntity<String>(new HttpHeaders()), ResourceList.class);

        ResourceList resourceList = response.getBody();
        assertEquals(3, resourceList.getCount());
    }
View Full Code Here

TOP

Related Classes of uk.ac.ebi.ricordo.rdfstore.bean.ResourceList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.