Example #1
0
  public Document HTMLGetRankedConcepts(String html, String url, AlchemyAPI_ConceptParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckHTML(html, url);

    params.setUrl(url);
    params.setHtml(html);

    return POST("HTMLGetRankedConcepts", "html", params);
  }
Example #2
0
  public Document TextGetRankedConcepts(String text, AlchemyAPI_ConceptParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckText(text);

    params.setText(text);

    return POST("TextGetRankedConcepts", "text", params);
  }
Example #3
0
  public Document URLGetRankedConcepts(String url, AlchemyAPI_ConceptParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckURL(url);

    params.setUrl(url);

    return GET("URLGetRankedConcepts", "url", params);
  }