Skip to main content

Concept Extraction From a Zip Container

Abstract

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:

  1. Retrieve extraction results per document within the given zip container individually.

  2. Retrieve extraction results aggregated for the whole zip container.

1. Extraction Results Per Document Individually
  • URL: /extractor/api/extract/zip

2. Extraction Results Aggregated for the Whole Zip Container
  • URL: /extractor/api/extract/zip/aggregated

Request

Supported Methods

POST

Content-Type

multipart/form-data

Specific HTTP Parameters

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.

Example

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:

24577126.png

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