Skip to content

Service: Query Serialization

Eliza Margaretha edited this page Jul 5, 2019 · 9 revisions

** WARNING: This service is disabled and not maintained anymore.

Returns a JSON-LD query serialization of the given search query. The JSON-LD serialization is a KoralQuery representation of the search query. This service neither run the search query nor return any query results.

Available in: lite and full version

Method: GET

Service URL: root/query

Parameters

Query Parameters

see query parameters of the search service with GET method

Examples

Request

http://localhost:8089/api/query?q=[orth=Wasser]&ql=poliqarp

Response

WARNING: Rewrites format is experimental and may change without any notice.

{
    "@context": "http://korap.ids-mannheim.de/ns/koral/0.3/context.jsonld",
    "query": {
        "wrap": {
            "@type": "koral:term",
            "layer": "orth",
            "match": "match:eq",
            "key": "Wasser",
            "foundry": "opennlp",
            "rewrites": [{
                "@type": "koral:rewrite",
                "src": "Kustvakt",
                "operation": "operation:injection",
                "scope": "foundry"
            }]
        },
        "@type": "koral:token"
    },
    "meta": {
        "count": 13,
        "context": "sentence"
    }
}

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