Michael Hanl | 1687ad9 | 2013-12-05 04:32:39 +0000 | [diff] [blame] | 1 | { |
| 2 | "@context": { |
| 3 | "korap": "http://korap.ids-mannheim.de/ns/query", |
| 4 | "@language": "de", |
| 5 | "operands": { |
| 6 | "@id": "korap:operands", |
| 7 | "@container": "@list" |
| 8 | }, |
| 9 | "relation": { |
| 10 | "@id": "korap:relation", |
| 11 | "@type": "korap:relation#types" |
| 12 | }, |
| 13 | "class": { |
| 14 | "@id": "korap:class", |
| 15 | "@type": "xsd:integer" |
| 16 | }, |
| 17 | "query": "korap:query", |
| 18 | "filter": "korap:filter", |
| 19 | "meta": "korap:meta" |
| 20 | }, |
| 21 | "query": { |
| 22 | "@type": "korap:group", |
| 23 | "relation": "or", |
| 24 | "operands": [ |
| 25 | { |
| 26 | "@type": "korap:token", |
| 27 | "@value": { |
| 28 | "@type": "korap:term", |
| 29 | "@value": "base:foo", |
| 30 | "relation": "=" |
| 31 | } |
| 32 | }, |
| 33 | { |
| 34 | "@type": "korap:sequence", |
| 35 | "operands": [ |
| 36 | { |
| 37 | "@type": "korap:token", |
| 38 | "@value": { |
| 39 | "@type": "korap:term", |
| 40 | "@value": "base:foo", |
| 41 | "relation": "=" |
| 42 | } |
| 43 | }, |
| 44 | { |
| 45 | "@type": "korap:token", |
| 46 | "@value": { |
| 47 | "@type": "korap:term", |
| 48 | "@value": "base:bar", |
| 49 | "relation": "=" |
| 50 | }, |
| 51 | "repetition": "*" |
| 52 | } |
| 53 | ] |
| 54 | } |
| 55 | ] |
| 56 | }, |
| 57 | "meta": [ |
| 58 | { |
| 59 | "@type": "korap:meta-filter", |
| 60 | "@id": "korap-filter#id-1223232", |
| 61 | "@value": { |
| 62 | "@type": "korap:term", |
| 63 | "@value": "wissenschaft" |
| 64 | } |
| 65 | }, |
| 66 | { |
| 67 | "@type": "korap:meta-filter", |
| 68 | "@id": "korap-filter#id-34345454", |
| 69 | "@value": { |
| 70 | "@type": "korap:group", |
| 71 | "relation": "and", |
| 72 | "operands": [ |
| 73 | { |
| 74 | "@type": "korap:term", |
| 75 | "@field": "korap:field#pubPlace", |
| 76 | "@value": "Erfurt" |
| 77 | }, |
| 78 | { |
| 79 | "@type": "korap:term", |
| 80 | "@field": "korap:field#author", |
| 81 | "@value": "Hesse" |
| 82 | } |
| 83 | ] |
| 84 | } |
| 85 | }, |
| 86 | { |
| 87 | "@type": "korap:meta-extend", |
| 88 | "@value": { |
| 89 | "@type": "korap:group", |
| 90 | "relation": "and", |
| 91 | "operands": [ |
| 92 | { |
| 93 | "@type": "korap:group", |
Michael Hanl | 738e2ac | 2013-12-05 15:05:23 +0000 | [diff] [blame] | 94 | "comment": "other values can be 'since','until' in combination with a simple korap:term", |
Michael Hanl | 1687ad9 | 2013-12-05 04:32:39 +0000 | [diff] [blame] | 95 | "relation": "between", |
Michael Hanl | 1b37be8 | 2013-12-05 10:48:30 +0000 | [diff] [blame] | 96 | "field: "korap:field#pubDate", |
Michael Hanl | 1687ad9 | 2013-12-05 04:32:39 +0000 | [diff] [blame] | 97 | "operands": [ |
| 98 | { |
Michael Hanl | 1b37be8 | 2013-12-05 10:48:30 +0000 | [diff] [blame] | 99 | "@type": "korap:date", |
Michael Hanl | 738e2ac | 2013-12-05 15:05:23 +0000 | [diff] [blame] | 100 | "comment": "either long value or String representation '2013-04-29'", |
Michael Hanl | 1687ad9 | 2013-12-05 04:32:39 +0000 | [diff] [blame] | 101 | "@value": "2011" |
| 102 | }, |
| 103 | { |
Michael Hanl | 1b37be8 | 2013-12-05 10:48:30 +0000 | [diff] [blame] | 104 | "@type": "korap:date", |
Michael Hanl | 1687ad9 | 2013-12-05 04:32:39 +0000 | [diff] [blame] | 105 | "@value": "2013" |
| 106 | } |
| 107 | ] |
| 108 | }, |
| 109 | { |
| 110 | "@type": "korap:term", |
| 111 | "@field": "korap:field#textClass", |
| 112 | "@value": "freizeit" |
| 113 | } |
| 114 | ] |
| 115 | } |
| 116 | } |
| 117 | ] |
| 118 | } |