Fixed pubDate bug
diff --git a/src/test/resources/queries/metaquery2.json b/src/test/resources/queries/metaquery2.json
index c80b044..c1a6eda 100644
--- a/src/test/resources/queries/metaquery2.json
+++ b/src/test/resources/queries/metaquery2.json
@@ -1,89 +1,89 @@
{
- "@context": {
- "korap": "http://korap.ids-mannheim.de/ns/query",
- "@language": "de",
- "operands": {
- "@id": "korap:operands",
- "@container": "@list"
- },
- "relation": {
- "@id": "korap:relation",
- "@type": "korap:relation#types"
- },
- "class": {
- "@id": "korap:class",
- "@type": "xsd:integer"
- },
- "query": "korap:query",
- "filter": "korap:filter",
- "meta": "korap:meta"
+ "@context": {
+ "korap": "http://korap.ids-mannheim.de/ns/query",
+ "@language": "de",
+ "operands": {
+ "@id": "korap:operands",
+ "@container": "@list"
},
- "startPage" : 2,
- "count" : 5,
- "context" : {
- "left" : [ "token", 6 ],
- "right" : [ "token", 6 ]
+ "relation": {
+ "@id": "korap:relation",
+ "@type": "korap:relation#types"
},
- "query":{
- "@type":"korap:group",
- "relation":"or",
- "operands":[
- {
+ "class": {
+ "@id": "korap:class",
+ "@type": "xsd:integer"
+ },
+ "query": "korap:query",
+ "filter": "korap:filter",
+ "meta": "korap:meta"
+ },
+ "startPage" : 2,
+ "count" : 5,
+ "context" : {
+ "left" : [ "token", 6 ],
+ "right" : [ "token", 6 ]
+ },
+ "query":{
+ "@type":"korap:group",
+ "relation":"or",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:Vokal",
+ "relation":"="
+ }
+ },
+ {
+ "@type":"korap:sequence",
+ "operands":[
+ {
"@type":"korap:token",
"@value":{
- "@type":"korap:term",
- "@value":"base:Vokal",
- "relation":"="
+ "@type":"korap:term",
+ "@value":"base:der",
+ "relation":"="
}
- },
- {
- "@type":"korap:sequence",
- "operands":[
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"base:der",
- "relation":"="
- }
- },
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"mate/p:ADJD",
- "relation":"="
- }
- }
- ]
- }
- ]
- },
- "meta": [
- {
- "@type": "korap:meta-filter",
- "@value": {
- "@type": "korap:group",
- "relation": "and",
- "operands": [
- {
- "@type": "korap:term",
- "@field": "korap:field#author",
- "@value": "Hesse"
- },
- {
- "@type": "korap:group",
- "@field": "korap:field#pubDate",
- "relation": "until",
- "operands": [
- {
- "@type": "korap:date",
- "@value": "2013-12-05"
- }
- ]
- }
- ]
- }
+ },
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"mate/p:ADJD",
+ "relation":"="
}
+ }
]
-}
\ No newline at end of file
+ }
+ ]
+ },
+ "meta": [
+ {
+ "@type": "korap:meta-filter",
+ "@value": {
+ "@type": "korap:group",
+ "relation": "and",
+ "operands": [
+ {
+ "@type": "korap:term",
+ "@field": "korap:field#author",
+ "@value": "Hesse"
+ },
+ {
+ "@type": "korap:group",
+ "@field": "korap:field#pubDate",
+ "relation": "until",
+ "operands": [
+ {
+ "@type": "korap:date",
+ "@value": "2013-12-05"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/test/resources/queries/metaquery4.json b/src/test/resources/queries/metaquery4.json
index 6b82550..33aea67 100644
--- a/src/test/resources/queries/metaquery4.json
+++ b/src/test/resources/queries/metaquery4.json
@@ -1,73 +1,56 @@
{
- "@context": {
- "korap": "http://korap.ids-mannheim.de/ns/query",
- "@language": "de",
- "operands": {
- "@id": "korap:operands",
- "@container": "@list"
- },
- "relation": {
- "@id": "korap:relation",
- "@type": "korap:relation#types"
- },
- "class": {
- "@id": "korap:class",
- "@type": "xsd:integer"
- },
- "query": "korap:query",
- "filter": "korap:filter",
- "meta": "korap:meta"
+ "@context": {
+ "korap": "http://korap.ids-mannheim.de/ns/query",
+ "@language": "de",
+ "operands": {
+ "@id": "korap:operands",
+ "@container": "@list"
},
- "startPage" : 2,
- "count" : 5,
- "context" : {
- "left" : [ "token", 3 ],
- "right" : [ "char", 6 ]
+ "relation": {
+ "@id": "korap:relation",
+ "@type": "korap:relation#types"
},
- "query":{
- "@type":"korap:group",
- "relation":"or",
- "operands":[
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"base:Vokal",
- "relation":"="
- }
- },
- {
- "@type":"korap:sequence",
- "operands":[
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"base:der",
- "relation":"="
- }
- },
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"mate/p:ADJA",
- "relation":"="
- }
- }
- ]
- }
- ]
- },
- "meta": [
- {
- "@type": "korap:meta-filter",
- "@id": "korap-filter#id-1223232",
- "@value": {
- "@type": "korap:term",
- "@field": "korap:field#textClass",
- "@value": "baum"
- }
- }
- ]
-}
\ No newline at end of file
+ "class": {
+ "@id": "korap:class",
+ "@type": "xsd:integer"
+ },
+ "query": "korap:query",
+ "filter": "korap:filter",
+ "meta": "korap:meta"
+ },
+ "startPage" : 1,
+ "count" : 5,
+ "context" : {
+ "left" : [ "token", 3 ],
+ "right" : [ "char", 6 ]
+ },
+ "query":{
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:lediglich",
+ "relation":"="
+ }
+ },
+ "meta": [
+ {
+ "@type": "korap:meta-filter",
+ "@id": "korap-filter#id-1223232",
+ "@value": {
+ "@type": "korap:group",
+ "relation": "between",
+ "@field": "korap:field#pubDate",
+ "operands": [
+ {
+ "@type": "korap:date",
+ "@value": "2000-01-01"
+ },
+ {
+ "@type": "korap:date",
+ "@value": "2013-12-31"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/test/resources/queries/metaquery5.json b/src/test/resources/queries/metaquery5.json
new file mode 100644
index 0000000..5a0cf20
--- /dev/null
+++ b/src/test/resources/queries/metaquery5.json
@@ -0,0 +1,62 @@
+{
+ "@context": {
+ "korap": "http://korap.ids-mannheim.de/ns/query",
+ "@language": "de",
+ "operands": {
+ "@id": "korap:operands",
+ "@container": "@list"
+ },
+ "relation": {
+ "@id": "korap:relation",
+ "@type": "korap:relation#types"
+ },
+ "class": {
+ "@id": "korap:class",
+ "@type": "xsd:integer"
+ },
+ "query": "korap:query",
+ "filter": "korap:filter",
+ "meta": "korap:meta"
+ },
+ "startPage" : 1,
+ "count" : 5,
+ "context" : {
+ "left" : [ "token", 3 ],
+ "right" : [ "char", 6 ]
+ },
+ "query":{
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:lediglich",
+ "relation":"="
+ }
+ },
+ "meta": [
+ {
+ "@type": "korap:meta-filter",
+ "@id": "korap-filter#id-1223232",
+ "@value": {
+ "@type": "korap:group",
+ "relation": "and",
+ "operands": [
+ {
+ "@type": "korap:group",
+ "relation": "between",
+ "@field": "korap:field#pubDate",
+ "operands": [
+ {
+ "@type": "korap:date",
+ "@value": "2000-01-01"
+ },
+ {
+ "@type": "korap:date",
+ "@value": "2013-12-31"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/test/resources/queries/metaquery6.json b/src/test/resources/queries/metaquery6.json
new file mode 100644
index 0000000..5b80cf6
--- /dev/null
+++ b/src/test/resources/queries/metaquery6.json
@@ -0,0 +1,62 @@
+{
+ "@context": {
+ "korap": "http://korap.ids-mannheim.de/ns/query",
+ "@language": "de",
+ "operands": {
+ "@id": "korap:operands",
+ "@container": "@list"
+ },
+ "relation": {
+ "@id": "korap:relation",
+ "@type": "korap:relation#types"
+ },
+ "class": {
+ "@id": "korap:class",
+ "@type": "xsd:integer"
+ },
+ "query": "korap:query",
+ "filter": "korap:filter",
+ "meta": "korap:meta"
+ },
+ "startPage" : 1,
+ "count" : 5,
+ "context" : {
+ "left" : [ "token", 3 ],
+ "right" : [ "char", 6 ]
+ },
+ "query":{
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:lediglich",
+ "relation":"="
+ }
+ },
+ "meta": [
+ {
+ "@type": "korap:meta-filter",
+ "@id": "korap-filter#id-1223232",
+ "@value": {
+ "@type": "korap:group",
+ "relation": "and",
+ "operands": [
+ {
+ "@type": "korap:group",
+ "relation": "between",
+ "@field": "korap:field#pubDate",
+ "operands": [
+ {
+ "@type": "korap:date",
+ "@value": "2005-01-01"
+ },
+ {
+ "@type": "korap:date",
+ "@value": "2013-12-31"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/test/resources/wiki/readme.txt b/src/test/resources/wiki/readme.txt
index 6f60d05..b0a98ed 100644
--- a/src/test/resources/wiki/readme.txt
+++ b/src/test/resources/wiki/readme.txt
@@ -1,7 +1,10 @@
-00001: freizeit-unterhaltung,reisen,wissenschaft,populaerwissenschaft
-00002: freizeit-unterhaltung,reisen
-00003: kultur,musik
-00004: wissenschaft,populaerwissenschaft
-00005: freizeit-unterhaltung,reisen
-00006: freizeit-unterhaltung,reisen (WPD)
-02439: kultur,musik,freizeit-unterhaltung,reisen (WPD)
+00001: 20050328 - freizeit-unterhaltung,reisen,wissenschaft,populaerwissenschaft
+00002: 20050328 - freizeit-unterhaltung,reisen
+00003: 20050328 - kultur,musik
+00004: 20050328 - wissenschaft,populaerwissenschaft
+00005: 20050328 - freizeit-unterhaltung,reisen
+00006: 20050328 - freizeit-unterhaltung,reisen (WPD)
+02035: 20000111 - sport ballsport
+02439: 20050328 - kultur,musik,freizeit-unterhaltung,reisen (WPD)
+05663: 20000124 - gesundheit-ernaehrung gesundheit
+07452: 20000129 - politik kommunalpolitik