Merged executables
Change-Id: I429bbf0edac82d26899e86d6912b405810819e88
diff --git a/t/index/koralquery.t b/t/index/koralquery.t
index 2d38da1..e20c559 100644
--- a/t/index/koralquery.t
+++ b/t/index/koralquery.t
@@ -15,8 +15,9 @@
ok($doc->parse
->tokenize
- ->annotate('Base', 'Paragraphs')
- ->annotate('DeReKo', 'Struct');
+ ->annotate('Base', 'Sentences')
+ ->annotate('Base', 'Paragraphs')
+ ->annotate('DeReKo', 'Struct'), 'Annotate');
# Metdata
is($doc->text_sigle, 'Corpus_Doc.0001', 'ID-text');
@@ -25,5 +26,52 @@
is($doc->title, 'Beispiel Text', 'title');
is($doc->sub_title, 'Beispiel Text Untertitel', 'title');
+# diag $doc->to_json;
+
done_testing;
__END__
+
+{
+ "@context" : "http://korap.ids-mannheim.de/ns/koral/0.4/context.jsonld",
+# Add krill context!
+ "text" : {
+ "@type" : "koral:corpus",
+ "meta" : {
+ "@type" : "koral:meta",
+ "s_sigle" : "BSP",
+ "s_id" : "BSP",
+ "t_title" : "Der Name als Text",
+ "k_keywords" : ["Some", "Keywords"],
+ "d_date" : "2015-12-03"
+ },
+ "@value" : {
+ "@type" : "koral:doc",
+ "meta" : {
+ "@type" : "koral:meta",
+ "s_sigle" : "BSP/AAA",
+ "s_id" : "AAA"
+ },
+ "@value" : {
+ "@type" : "koral:text",
+ "meta" : {
+ "@type" : "koral:meta",
+ "s_sigle" : "BSP/AAA/0001",
+ "s_id" : "0001",
+ "s_language" : "de"
+ },
+ "store" : {
+ ...
+ },
+ "@value" : {
+ "@type" : "krill:stream",
+ "source" : "opennlp#tokens",
+ "layer" : ["base/s=spans"],
+ "primary" : "...",
+ "name" : "tokens",
+ "foundries": ["base","base/paragraphs","base/sentences"],
+ "stream" : [[ ... ], [ ... ]]
+ }
+ }
+ }
+ }
+}