-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Krill currently returns fields both as flat mapped values and as a list of fields. For API v1.1, this should only return field objects.
{
"@context": "http://korap.ids-mannheim.de/ns/KoralQuery/v0.3/context.jsonld",
"meta": {},
"hasSnippet": true,
"hasTokens": false,
"matchID": "match-WUD17/D96/99578-p1829-1830",
"context": {
"left": [
"token",
6
],
"right": [
"token",
6
]
},
"snippet": "<span class=\"context-left\"><span class=\"more\"></span>Handelshafen bildet ein Kopfbau, der im </span><span class=\"match\"><mark>Wasser</mark></span><span class=\"context-right\"> steht. Er bildet einen markanten Abschluss<span class=\"more\"></span></span>",
"fields": [
{
"@type": "koral:field",
"key": "ID"
},
{
"@type": "koral:field",
"key": "textSigle",
"type": "type:string",
"value": "WUD17/D96/99578"
},
{
"@type": "koral:field",
"key": "corpusID"
},
{
"@type": "koral:field",
"key": "author",
"type": "type:text",
"value": "Dr. Karl-Heinz Hochhaus, u.a."
},
{
"@type": "koral:field",
"key": "title",
"type": "type:text",
"value": "Benutzer Diskussion:Dr. Karl-Heinz Hochhaus/Archiv"
},
{
"@type": "koral:field",
"key": "subTitle"
},
{
"@type": "koral:field",
"key": "textClass",
"type": "type:keywords",
"value": [
"staat-gesellschaft",
"biographien-interviews"
]
},
{
"@type": "koral:field",
"key": "pubPlace",
"type": "type:string",
"value": "URL:http://de.wikipedia.org"
},
{
"@type": "koral:field",
"key": "pubDate",
"type": "type:date",
"value": "2017-07-01"
},
{
"@type": "koral:field",
"key": "availability",
"type": "type:string",
"value": "CC-BY-SA"
},
{
"@type": "koral:field",
"key": "layerInfos",
"type": "type:store",
"value": "corenlp/c=spans corenlp/p=tokens corenlp/s=spans dereko/s=spans malt/d=rels marmot/m=tokens marmot/p=tokens opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens"
},
{
"@type": "koral:field",
"key": "docSigle",
"type": "type:string",
"value": "WUD17/D96"
},
{
"@type": "koral:field",
"key": "corpusSigle",
"type": "type:string",
"value": "WUD17"
}
],
"textSigle": "WUD17/D96/99578", // deprecated
"author": "Dr. Karl-Heinz Hochhaus, u.a.", // deprecated
"title": "Benutzer Diskussion:Dr. Karl-Heinz Hochhaus/Archiv", // deprecated
"textClass": "staat-gesellschaft biographien-interviews", // deprecated
"pubPlace": "URL:http://de.wikipedia.org", // deprecated
"pubDate": "2017-07-01", // deprecated
"availability": "CC-BY-SA", // deprecated
"layerInfos": "corenlp/c=spans corenlp/p=tokens corenlp/s=spans dereko/s=spans malt/d=rels marmot/m=tokens marmot/p=tokens opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens", // deprecated
"docSigle": "WUD17/D96", // deprecated
"corpusSigle": "WUD17" // deprecated
}
This probably needs to be implemented in Krill for performance.