Example #1
0
 /** Test get graphs related scores. */
 @Test
 public void testGetGraphsRelatedScores() {
   List<String> concepts = new ArrayList<String>();
   concepts.add(EXAMPLE_CONCEPT.getId());
   Scores scores = service.getGraphRelationScores(EXAMPLE_CONCEPT, concepts);
   Assert.assertNotNull(scores);
 }
Example #2
0
 /** Test conceptual search. */
 @Test
 public void testConceptualSearch() {
   Map<String, Object> params = new HashMap<String, Object>();
   List<String> ids = new ArrayList<String>();
   ids.add(EXAMPLE_CONCEPT.getId());
   params.put(ConceptInsights.IDS, ids);
   params.put(ConceptInsights.LIMIT, 10);
   params.put(ConceptInsights.CURSOR, 0);
   QueryConcepts cp = service.conceptualSearch(Corpus.TED_TALKS, params);
   Assert.assertNotNull(cp);
 }