Skip to content

CQP: Incorrect span serialization in "within" #179

@margaretha

Description

@margaretha

Span segments in within queries are not serialized properly. Foundry and layer are not serialized.

Example query:

[tt/p="NN"] within <corenlp/c=NP>

Serialization:

{
    "query": {
        "operands": [
            {
                "@type": "koral:span",
                "wrap": {
                    "@type": "koral:term",
                    "key": "NP"
                }
            },
            {
                "@type": "koral:token",
                "wrap": {
                    "foundry": "tt",
                    "@type": "koral:term",
                    "match": "match:eq",
                    "type": "type:regex",
                    "key": "NN",
                    "layer": "p"
                }
            }
        ],
        "frames": ["frames:isAround"],
        "@type": "koral:group",
        "operation": "operation:position"
    },
    "@context": "http://korap.ids-mannheim.de/ns/koral/0.3/context.jsonld"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions