Concept Extraction From a Zip Container
Concept Extraction From a Zip Container
These services can be used to extract concepts and terms from content that is delivered in a zip container. This service is an extension to the main Concept Extraction Service, using a file.
Basically there are two ways of processing content in zip containers available:
Retrieve extraction results per document within the given zip container individually.
Retrieve extraction results aggregated for the whole zip container.
URL:
/extractor/api/extract/zip
URL:
/extractor/api/extract/zip/aggregated
Supported Methods  | 
|---|
POST  | 
 multipart/form-data 
Parameter  | Type  | Required  | Comment  | 
|---|---|---|---|
file  | MultipartFile  | true  | File to be extracted. Has to be a zip file.  | 
Other parameters can be used like in the main Concept Extraction Service for files.
You can use this file: cocktails.zip (containing three cocktails recipes in pdf format) together with a PoolParty project like e.g. 'All about Cocktails' (http://vocabulary.semantic-web.at/cocktails.html)
POST http://vocabulary.semantic-web.at/extractor/api/extract/zip?language=en&numberOfConcepts=3&numberOfTerms=0&projectId=1DCE0ED2-D7E8-0001-86A1-18652DF0D7A0 Content-Type: multipart/form-data file: cocktails.zip
Sample request, done with Postman:
![]()  | 
Postman sample requests: Postman-zip_extraction.json
You can import the json file into e.g. Postman REST Client.
Sample request, done with curl:
curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@cocktails.zip" http://USERNAME:PASSWORD@vocabulary.semantic-web.at/extractor/api/extract/zip?language=en&numberOfConcepts=3&numberOfTerms=0&projectId=1DCE0ED2-D7E8-0001-86A1-18652DF0D7A0&displayText=true
