Skip to content

Service: Virtual Corpus Statistics with KoralQuery

Eliza Margaretha Illig edited this page Oct 24, 2024 · 3 revisions

** WARNING: This service is experimental and may change without any notice.

Returns statistics of a virtual corpus described in KoralQuery. If no KoralQuery is given, returns statistics of the whole corpus index.

Available in: lite and full version

Method: POST

Service URL: root/{version}/statistics

Parameters

Header Parameters

Name Required Description Value
Content-Type yes content type of the input data application/json

Request body

KoralQuery defining a virtual corpus.

Examples

Request

curl -H 'Content-Type: application/json'
     -d '{"collection": {"@type": "koral:doc","key": "availability",
        "match": "match:eq","type": "type:regex","value": "CC-BY.*"}}'
     http://localhost:8089/api/v1.0/statistics

Response

{
    "documents": 2,
    "tokens": 72770,
    "sentences": 2985,
    "paragraphs": 128
}

Advanced Setting

Developer Setting

Search services

Metadata services

Authentication and Authorization services

Client services

Super client services

Plugin services

User services

User group services

Virtual corpus (VC) services

VC sharing services

Administrative services

Description services

Clone this wiki locally