/* * (non-Javadoc) * @see org.zaizi.stanbol.client.StanbolClient#enhance(java.io.InputStream) */ @Override public List<Enhancement> enhance(InputStream is) throws StanbolClientException { try { return enhancer.enhance(is); } catch (StanbolServiceException e) { throw new StanbolClientException(e.getMessage(), e); } }
/* * (non-Javadoc) * @see org.zaizi.stanbol.client.StanbolClient#addContent(java.lang.String, java.io.InputStream) */ @Override public void addContent(String id, InputStream is) throws StanbolClientException { try { contenthub.add(id, is); } catch (StanbolServiceException e) { throw new StanbolClientException(e.getMessage(), e); } }
/* * (non-Javadoc) * @see org.zaizi.stanbol.client.StanbolClient#getMetadata(java.lang.String) */ @Override public ContentItem getMetadata(String id) throws StanbolClientException { try { return contenthub.get(id); } catch (StanbolServiceException e) { throw new StanbolClientException(e.getMessage(), e); } }