added some example queries + serializations
diff --git a/src/test/resources/queries/bsp1.json b/src/test/resources/queries/bsp1.json
index 168790c..3f775e4 100644
--- a/src/test/resources/queries/bsp1.json
+++ b/src/test/resources/queries/bsp1.json
@@ -1,75 +1,82 @@
{
- "@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"
- },
- "query":{
- "@type":"korap:group",
- "relation":"or",
- "operands":[
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"base:foo",
- "relation":"="
- }
- },
- {
- "@type":"korap:sequence",
- "operands":[
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"base:foo",
- "relation":"="
- }
- },
- {
- "@type":"korap:token",
- "@value":{
- "@type":"korap:term",
- "@value":"base:bar",
- "relation":"="
- }
- }
- ]
- }
- ]
- },
- "meta":{
- "@type":"korap:meta",
- "@value":{
- "@type":"korap:group",
- "operands":[
+ "@context": {
+ "@language": "de",
+ "class": {
+ "@id": "korap:class",
+ "@type": "xsd:integer"
+ },
+ "filter": "korap:filter",
+ "korap": "http://korap.ids-mannheim.de/ns/query",
+ "meta": "korap:meta",
+ "operands": {
+ "@container": "@list",
+ "@id": "korap:operands"
+ },
+ "query": "korap:query",
+ "relation": {
+ "@id": "korap:relation",
+ "@type": "korap:relation#types"
+ }
+ },
+ "meta": {
+ "@type": "korap:meta",
+ "@value": {
+ "@type": "korap:group",
+ "operands": [
+ {
+ "@type": "korap:term",
+ "@value": "author:Goethe",
+ "relation": "="
+ },
+ {
+ "@type": "korap:term",
+ "@value": "year:1815",
+ "relation": "="
+ }
+ ],
+ "relation": "and"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operands": [
{
- "@type":"korap:term",
- "@value":"author:Goethe",
- "relation":"="
- },
+ "@type": "korap:token",
+ "@value": {
+ "@type": "korap:term",
+ "@value": "base:foo",
+ "relation": "="
+ }
+ },
{
- "@type":"korap:term",
- "@value":"year:1815",
- "relation":"="
+ "@type": "korap:group",
+ "operands": [
+ {
+ "@type": "korap:sequence",
+ "operands": [
+ {
+ "@type": "korap:token",
+ "@value": {
+ "@type": "korap:term",
+ "@value": "base:foo",
+ "relation": "="
+ }
+ },
+ {
+ "@type": "korap:token",
+ "@value": {
+ "@type": "korap:term",
+ "@value": "base:bar",
+ "relation": "="
+ }
+ }
+ ]
+ }
+ ],
+ "quantifier": "*",
+ "relation": "repetition"
}
- ],
- "relation":"and"
- }
- }
-}
+ ],
+ "relation": "or"
+ }
+}
\ No newline at end of file