diff --git a/inception/inception-assistant-ui/NOTICE.txt b/inception/inception-assistant-ui/NOTICE.txt index 78682eb5967..82ed6f21e83 100644 --- a/inception/inception-assistant-ui/NOTICE.txt +++ b/inception/inception-assistant-ui/NOTICE.txt @@ -1,9 +1,12 @@ +NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json + == Font Awesome File: src/main/java/de/tudarmstadt/ukp/inception/assistant/sidebar/AssistantSidebarIcon.svg This icon is derived from Font Awesome Free (classic solid). The icons are licensed under -CC BY 4.0. +CC BY 4.0. The modifications made for INCEpTION are copyright Technische Universität +Darmstadt and are also licensed under CC BY 4.0. Font Awesome Free 6.7.2 by @fontawesome Copyright 2024 Fonticons, Inc. diff --git a/inception/inception-assistant-ui/pom.xml b/inception/inception-assistant-ui/pom.xml index d68b7ac2ce9..ce4dcb0b9cf 100644 --- a/inception/inception-assistant-ui/pom.xml +++ b/inception/inception-assistant-ui/pom.xml @@ -359,6 +359,21 @@ + + org.apache.rat + apache-rat-plugin + + + default + + + + **/assistant/sidebar/AssistantSidebarIcon.svg + + + + + org.apache.maven.plugins maven-dependency-plugin diff --git a/inception/inception-assistant-ui/src/main/java/de/tudarmstadt/ukp/inception/assistant/sidebar/AssistantSidebarIcon.svg b/inception/inception-assistant-ui/src/main/java/de/tudarmstadt/ukp/inception/assistant/sidebar/AssistantSidebarIcon.svg index 28b8def9466..d99980c50a8 100644 --- a/inception/inception-assistant-ui/src/main/java/de/tudarmstadt/ukp/inception/assistant/sidebar/AssistantSidebarIcon.svg +++ b/inception/inception-assistant-ui/src/main/java/de/tudarmstadt/ukp/inception/assistant/sidebar/AssistantSidebarIcon.svg @@ -1,29 +1,17 @@ diff --git a/inception/inception-assistant-ui/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-assistant-ui/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json new file mode 100644 index 00000000000..e64334c9b63 --- /dev/null +++ b/inception/inception-assistant-ui/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", + "packages": [ + { + "name": "Font Awesome Free icons", + "versionInfo": "6.7.2", + "originator": "Fonticons, Inc.", + "homepage": "https://fontawesome.com", + "downloadLocation": "https://github.com/FortAwesome/Font-Awesome/tree/6.7.2", + "licenseDeclared": "CC-BY-4.0", + "licenseComments": "Font Awesome Free: icons under CC BY 4.0, fonts under SIL OFL 1.1, code under MIT. Only icons are used here. The modifications made for INCEpTION (Technische Universität Darmstadt) are also licensed under CC BY 4.0.", + "description": "Icon derived from the Font Awesome Free robot icon (classic solid).", + "hasFiles": [ + "de/tudarmstadt/ukp/inception/assistant/sidebar/AssistantSidebarIcon.svg" + ] + } + ] +} diff --git a/inception/inception-brat-editor/NOTICE.txt b/inception/inception-brat-editor/NOTICE.txt index a6db79ee353..c12d1fcdd03 100644 --- a/inception/inception-brat-editor/NOTICE.txt +++ b/inception/inception-brat-editor/NOTICE.txt @@ -1,14 +1,19 @@ -== src/main/ts/brat +NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json + +== brat + +Folder: src/main/ts/src This folder includes a modified version of the brat (http://brat.nlplab.org) JavaScript client -and rendering engine. Additional CSS files are located in -src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/resource +and rendering engine. The files derived from brat carry the brat copyright notice in their header. * Copyright (C) 2010-2012 The brat contributors, all rights reserved. -== jquery.ba-scrollbarwidth.js +== jQuery scrollbarWidth + +File: src/main/ts/src/util/ScrollbarWidth.ts -Dual-licensed under MIT and GPL: +Dual-licensed under MIT and GPL, used under MIT: * Copyright (c) 2010 "Cowboy" Ben Alman diff --git a/inception/inception-brat-editor/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-brat-editor/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json index 4954f001aad..74957b0da35 100644 --- a/inception/inception-brat-editor/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json +++ b/inception/inception-brat-editor/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -7,10 +7,47 @@ "originator": "brat project", "homepage": "https://github.com/nlplab/brat", "licenseDeclared": "(MIT AND Apache-2.0)", - "description": "Heavily modified version of brat.", + "description": "Heavily modified version of brat. The files are source files that are bundled into the editor JavaScript at build time.", "hasFiles": [ - "src/main/ts/brat/**" + "src/main/ts/src/ajax/Ajax.ts", + "src/main/ts/src/annotator_ui/AnnotatorUI.ts", + "src/main/ts/src/configuration/Configuration.ts", + "src/main/ts/src/dispatcher/Dispatcher.ts", + "src/main/ts/src/style-ui.scss", + "src/main/ts/src/style-vis.scss", + "src/main/ts/src/util/Util.ts", + "src/main/ts/src/visualizer_ui/VisualizerUI.ts", + "src/main/ts/src/visualizer/Arc.ts", + "src/main/ts/src/visualizer/AttributeType.ts", + "src/main/ts/src/visualizer/Chunk.ts", + "src/main/ts/src/visualizer/CollectionLoadedResponse.ts", + "src/main/ts/src/visualizer/Comment.ts", + "src/main/ts/src/visualizer/DocumentData.ts", + "src/main/ts/src/visualizer/Entity.ts", + "src/main/ts/src/visualizer/EventDesc.ts", + "src/main/ts/src/visualizer/Fragment.ts", + "src/main/ts/src/visualizer/Measurements.ts", + "src/main/ts/src/visualizer/RectBox.ts", + "src/main/ts/src/visualizer/Role.ts", + "src/main/ts/src/visualizer/Row.ts", + "src/main/ts/src/visualizer/Segmentation.ts", + "src/main/ts/src/visualizer/Sizes.ts", + "src/main/ts/src/visualizer/Visualizer.ts", + "src/main/ts/src/visualizer/VisualOptions.ts" + ] + }, + { + "name": "jQuery scrollbarWidth", + "versionInfo": "0.2", + "originator": "Ben Alman", + "homepage": "http://benalman.com/projects/jquery-misc-plugins/", + "licenseDeclared": "(MIT OR GPL-2.0-only)", + "licenseConcluded": "MIT", + "licenseComments": "Dual licensed under the MIT and GPL licenses; used under the MIT license.", + "description": "Ported to TypeScript. The file is a source file that is bundled into the editor JavaScript at build time.", + "hasFiles": [ + "src/main/ts/src/util/ScrollbarWidth.ts" ] } - ] -} \ No newline at end of file + ] +} diff --git a/inception/inception-concept-linking/src/test/resources/data/pets.ttl b/inception/inception-concept-linking/src/test/resources/data/pets.ttl index 4361de17bda..aec8d11b2d9 100644 --- a/inception/inception-concept-linking/src/test/resources/data/pets.ttl +++ b/inception/inception-concept-linking/src/test/resources/data/pets.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + @base . @prefix rdf: . @prefix rdfs: . diff --git a/inception/inception-documents/NOTICE.txt b/inception/inception-documents/NOTICE.txt new file mode 100644 index 00000000000..4c47524c082 --- /dev/null +++ b/inception/inception-documents/NOTICE.txt @@ -0,0 +1,14 @@ +NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json + +== Universal Dependencies documentation + +Files: src/main/resources/tagsets/mul-pos-ud2.json + src/main/resources/tagsets/mul-dep-ud2.json + +The tag names, short tag descriptions and introductory texts of these tagsets are taken from the +Universal Dependencies documentation, which is licensed under the Apache License 2.0. + + Copyright 2014-2017 Universal Dependencies contributors + +Original source: https://universaldependencies.org + https://github.com/UniversalDependencies/docs diff --git a/inception/inception-documents/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-documents/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json new file mode 100644 index 00000000000..604b4a306cd --- /dev/null +++ b/inception/inception-documents/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", + "packages": [ + { + "name": "Universal Dependencies documentation", + "versionInfo": "2", + "originator": "Universal Dependencies contributors", + "homepage": "https://universaldependencies.org", + "downloadLocation": "https://github.com/UniversalDependencies/docs", + "licenseDeclared": "Apache-2.0", + "description": "Tag names, short tag descriptions and the introductory text of the UD v2 part-of-speech and dependency relation tagsets.", + "hasFiles": [ + "tagsets/mul-pos-ud2.json", + "tagsets/mul-dep-ud2.json" + ] + } + ] +} diff --git a/inception/inception-documents/src/main/resources/tagsets/de-dep-tiger.json b/inception/inception-documents/src/main/resources/tagsets/de-dep-tiger.json deleted file mode 100644 index 089ca5f86db..00000000000 --- a/inception/inception-documents/src/main/resources/tagsets/de-dep-tiger.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "name" : "TIGER Dependencies", - "typeUiName" : null, - "description" : "Dependency annotation", - "language" : "de", - "type" : null, - "type_name" : null, - "type_description" : null, - "tags" : [ { - "tag_name" : "$", - "tag_description" : "$" - }, { - "tag_name" : "--", - "tag_description" : "--" - }, { - "tag_name" : "-PUNCT-", - "tag_description" : "-PUNCT-" - }, { - "tag_name" : "AC", - "tag_description" : "AC" - }, { - "tag_name" : "ADV", - "tag_description" : "ADV" - }, { - "tag_name" : "AG", - "tag_description" : "AG" - }, { - "tag_name" : "APP", - "tag_description" : "APP" - }, { - "tag_name" : "ATTR", - "tag_description" : "ATTR" - }, { - "tag_name" : "AUX", - "tag_description" : "AUX" - }, { - "tag_name" : "AVZ", - "tag_description" : "AVZ" - }, { - "tag_name" : "CC", - "tag_description" : "CC" - }, { - "tag_name" : "CD", - "tag_description" : "CD" - }, { - "tag_name" : "CJ", - "tag_description" : "CJ" - }, { - "tag_name" : "CM", - "tag_description" : "CM" - }, { - "tag_name" : "CP", - "tag_description" : "CP" - }, { - "tag_name" : "CVC", - "tag_description" : "CVC" - }, { - "tag_name" : "DA", - "tag_description" : "DA" - }, { - "tag_name" : "DET", - "tag_description" : "DET" - }, { - "tag_name" : "EP", - "tag_description" : "EP" - }, { - "tag_name" : "ETH", - "tag_description" : "ETH" - }, { - "tag_name" : "EXPL", - "tag_description" : "EXPL" - }, { - "tag_name" : "GMOD", - "tag_description" : "GMOD" - }, { - "tag_name" : "GRAD", - "tag_description" : "GRAD" - }, { - "tag_name" : "JU", - "tag_description" : "JU" - }, { - "tag_name" : "KOM", - "tag_description" : "KOM" - }, { - "tag_name" : "KON", - "tag_description" : "KON" - }, { - "tag_name" : "KONJ", - "tag_description" : "KONJ" - }, { - "tag_name" : "MNR", - "tag_description" : "MNR" - }, { - "tag_name" : "MO", - "tag_description" : "MO" - }, { - "tag_name" : "NEB", - "tag_description" : "NEB" - }, { - "tag_name" : "NG", - "tag_description" : "NG" - }, { - "tag_name" : "NK", - "tag_description" : "NK" - }, { - "tag_name" : "OA", - "tag_description" : "OA" - }, { - "tag_name" : "OBJA", - "tag_description" : "OBJA" - }, { - "tag_name" : "OBJA2", - "tag_description" : "OBJA2" - }, { - "tag_name" : "OBJA3", - "tag_description" : "OBJA3" - }, { - "tag_name" : "OBJC", - "tag_description" : "OBJC" - }, { - "tag_name" : "OBJC2", - "tag_description" : "OBJC2" - }, { - "tag_name" : "OBJC3", - "tag_description" : "OBJC3" - }, { - "tag_name" : "OBJD", - "tag_description" : "OBJD" - }, { - "tag_name" : "OBJD2", - "tag_description" : "OBJD2" - }, { - "tag_name" : "OBJD3", - "tag_description" : "OBJD3" - }, { - "tag_name" : "OBJG", - "tag_description" : "OBJG" - }, { - "tag_name" : "OBJG2", - "tag_description" : "OBJG2" - }, { - "tag_name" : "OBJG3", - "tag_description" : "OBJG3" - }, { - "tag_name" : "OBJI", - "tag_description" : "OBJI" - }, { - "tag_name" : "OBJI2", - "tag_description" : "OBJI2" - }, { - "tag_name" : "OBJI3", - "tag_description" : "OBJI3" - }, { - "tag_name" : "OBJP", - "tag_description" : "OBJP" - }, { - "tag_name" : "OBJP2", - "tag_description" : "OBJP2" - }, { - "tag_name" : "OBJP3", - "tag_description" : "OBJP3" - }, { - "tag_name" : "OC", - "tag_description" : "OC" - }, { - "tag_name" : "OCRC", - "tag_description" : "OCRC" - }, { - "tag_name" : "OG", - "tag_description" : "OG" - }, { - "tag_name" : "OP", - "tag_description" : "OP" - }, { - "tag_name" : "PAR", - "tag_description" : "PAR" - }, { - "tag_name" : "PART", - "tag_description" : "PART" - }, { - "tag_name" : "PD", - "tag_description" : "PD" - }, { - "tag_name" : "PM", - "tag_description" : "PM" - }, { - "tag_name" : "PN", - "tag_description" : "PN" - }, { - "tag_name" : "PNC", - "tag_description" : "PNC" - }, { - "tag_name" : "PP", - "tag_description" : "PP" - }, { - "tag_name" : "PRED", - "tag_description" : "PRED" - }, { - "tag_name" : "RC", - "tag_description" : "RC" - }, { - "tag_name" : "RE", - "tag_description" : "RE" - }, { - "tag_name" : "REL", - "tag_description" : "REL" - }, { - "tag_name" : "ROOT", - "tag_description" : "ROOT" - }, { - "tag_name" : "S", - "tag_description" : "S" - }, { - "tag_name" : "SB", - "tag_description" : "SB" - }, { - "tag_name" : "SBP", - "tag_description" : "SBP" - }, { - "tag_name" : "SUBJ", - "tag_description" : "SUBJ" - }, { - "tag_name" : "SUBJ2", - "tag_description" : "SUBJ2" - }, { - "tag_name" : "SUBJ3", - "tag_description" : "SUBJ3" - }, { - "tag_name" : "SUBJC", - "tag_description" : "SUBJC" - }, { - "tag_name" : "SUBJC2", - "tag_description" : "SUBJC2" - }, { - "tag_name" : "SUBJC3", - "tag_description" : "SUBJC3" - }, { - "tag_name" : "SUBJI", - "tag_description" : "SUBJI" - }, { - "tag_name" : "SUBJI2", - "tag_description" : "SUBJI2" - }, { - "tag_name" : "SUBJI3", - "tag_description" : "SUBJI3" - }, { - "tag_name" : "SVP", - "tag_description" : "SVP" - }, { - "tag_name" : "UC", - "tag_description" : "UC" - }, { - "tag_name" : "VOK", - "tag_description" : "VOK" - }, { - "tag_name" : "ZEIT", - "tag_description" : "ZEIT" - } ], - "create_tag" : false -} \ No newline at end of file diff --git a/inception/inception-documents/src/main/resources/tagsets/de-pos-stts.json b/inception/inception-documents/src/main/resources/tagsets/de-pos-stts.json deleted file mode 100644 index 420219c9cec..00000000000 --- a/inception/inception-documents/src/main/resources/tagsets/de-pos-stts.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "name" : "STTS POS tags", - "typeUiName" : null, - "description" : "Stuttgart-Tübingen-Tag-Set \nGerman Part of Speech tagset STTS Tag Table (1995/1999): http://www.ims.uni-stuttgart.de/projekte/corplex/TagSets/stts-table.html", - "language" : "de", - "type" : null, - "type_name" : null, - "type_description" : null, - "tags" : [ { - "tag_name" : "$(", - "tag_description" : "sonstige Satzzeichen; satzintern \nBsp: - [,]()" - }, { - "tag_name" : "$,", - "tag_description" : "Komma \nBsp: ," - }, { - "tag_name" : "$.", - "tag_description" : "Satzbeendende Interpunktion \nBsp: . ? ! ; : " - }, { - "tag_name" : "--", - "tag_description" : "--" - }, { - "tag_name" : "ADJA", - "tag_description" : "attributives Adjektiv \nBsp: [das] große [Haus]" - }, { - "tag_name" : "ADJD", - "tag_description" : "adverbiales oder prädikatives Adjektiv \nBsp: [er fährt] schnell, [er ist] schnell" - }, { - "tag_name" : "ADV", - "tag_description" : "Adverb \nBsp: schon, bald, doch " - }, { - "tag_name" : "APPO", - "tag_description" : "Postposition \nBsp: [ihm] zufolge, [der Sache] wegen" - }, { - "tag_name" : "APPR", - "tag_description" : "Präposition; Zirkumposition links \nBsp: in [der Stadt], ohne [mich]" - }, { - "tag_name" : "APPRART", - "tag_description" : "Präposition mit Artikel \nBsp: im [Haus], zur [Sache]" - }, { - "tag_name" : "APZR", - "tag_description" : "Zirkumposition rechts \nBsp: [von jetzt] an" - }, { - "tag_name" : "ART", - "tag_description" : "bestimmter oder unbestimmter Artikel \nBsp: der, die, das, ein, eine" - }, { - "tag_name" : "CARD", - "tag_description" : "Kardinalzahl \nBsp: zwei [Männer], [im Jahre] 1994" - }, { - "tag_name" : "FM", - "tag_description" : "Fremdsprachliches Material \nBsp: [Er hat das mit ``] A big fish ['' übersetzt]" - }, { - "tag_name" : "ITJ", - "tag_description" : "Interjektion \nBsp: mhm, ach, tja" - }, { - "tag_name" : "KOKOM", - "tag_description" : "Vergleichskonjunktion \nBsp: als, wie" - }, { - "tag_name" : "KON", - "tag_description" : "nebenordnende Konjunktion \nBsp: und, oder, aber" - }, { - "tag_name" : "KOUI", - "tag_description" : "unterordnende Konjunktion mit ``zu'' und Infinitiv \nBsp: um [zu leben], anstatt [zu fragen]" - }, { - "tag_name" : "KOUS", - "tag_description" : "unterordnende Konjunktion mit Satz \nBsp: weil, daß, damit, wenn, ob " - }, { - "tag_name" : "NE", - "tag_description" : "Eigennamen \nBsp: Hans, Hamburg, HSV " - }, { - "tag_name" : "NN", - "tag_description" : "normales Nomen \nBsp: Tisch, Herr, [das] Reisen" - }, { - "tag_name" : "PAV", - "tag_description" : "Pronominaladverb \nBsp: dafür, dabei, deswegen, trotzdem " - }, { - "tag_name" : "PDAT", - "tag_description" : "attribuierendes Demonstrativpronomen \nBsp: jener [Mensch]" - }, { - "tag_name" : "PDS", - "tag_description" : "substituierendes Demonstrativpronomen \nBsp: dieser, jener" - }, { - "tag_name" : "PIAT", - "tag_description" : "attribuierendes Indefinitpronomen ohne Determiner \nBsp: kein [Mensch], irgendein [Glas] " - }, { - "tag_name" : "PIDAT", - "tag_description" : "attribuierendes Indefinitpronomen mit Determiner \nBsp: [ein] wenig [Wasser], [die] beiden [Brüder] " - }, { - "tag_name" : "PIS", - "tag_description" : "substituierendes Indefinitpronomen \nBsp: keiner, viele, man, niemand " - }, { - "tag_name" : "PPER", - "tag_description" : "irreflexives Personalpronomen \nBsp: ich, er, ihm, mich, dir" - }, { - "tag_name" : "PPOSAT", - "tag_description" : "attribuierendes Possessivpronomen \nBsp: mein [Buch], deine [Mutter] " - }, { - "tag_name" : "PPOSS", - "tag_description" : "substituierendes Possessivpronomen \nBsp: meins, deiner" - }, { - "tag_name" : "PRELAT", - "tag_description" : "attribuierendes Relativpronomen \nBsp: [der Mann ,] dessen [Hund] " - }, { - "tag_name" : "PRELS", - "tag_description" : "substituierendes Relativpronomen \nBsp: [der Hund ,] der " - }, { - "tag_name" : "PRF", - "tag_description" : "reflexives Personalpronomen \nBsp: sich, einander, dich, mir" - }, { - "tag_name" : "PROAV", - "tag_description" : "PROAV" - }, { - "tag_name" : "PTKA", - "tag_description" : "Partikel bei Adjektiv oder Adverb \nBsp: am [schönsten], zu [schnell]" - }, { - "tag_name" : "PTKANT", - "tag_description" : "Antwortpartikel \nBsp: ja, nein, danke, bitte " - }, { - "tag_name" : "PTKNEG", - "tag_description" : "Negationspartikel \nBsp: nicht" - }, { - "tag_name" : "PTKVZ", - "tag_description" : "abgetrennter Verbzusatz \nBsp: [er kommt] an, [er fährt] rad " - }, { - "tag_name" : "PTKZU", - "tag_description" : "``zu'' vor Infinitiv \nBsp: zu [gehen]" - }, { - "tag_name" : "PWAT", - "tag_description" : "attribuierendes Interrogativpronomen \nBsp: welche [Farbe], wessen [Hut] " - }, { - "tag_name" : "PWAV", - "tag_description" : "adverbiales Interrogativ- oder Relativpronomen \nBsp: warum, wo, wann, worüber, wobei" - }, { - "tag_name" : "PWS", - "tag_description" : "substituierendes Interrogativpronomen \nBsp: wer, was" - }, { - "tag_name" : "TRUNC", - "tag_description" : "Kompositions-Erstglied \nBsp: An- [und Abreise]" - }, { - "tag_name" : "VAFIN", - "tag_description" : "finites Verb, aux \nBsp: [du] bist, [wir] werden " - }, { - "tag_name" : "VAIMP", - "tag_description" : "Imperativ, aux \nBsp: sei [ruhig !] " - }, { - "tag_name" : "VAINF", - "tag_description" : "Infinitiv, aux \nBsp:werden, sein " - }, { - "tag_name" : "VAPP", - "tag_description" : "Partizip Perfekt, aux \nBsp: gewesen " - }, { - "tag_name" : "VMFIN", - "tag_description" : "finites Verb, modal \nBsp: dürfen " - }, { - "tag_name" : "VMINF", - "tag_description" : "Infinitiv, modal \nBsp: wollen " - }, { - "tag_name" : "VMPP", - "tag_description" : "Partizip Perfekt, modal \nBsp: gekonnt, [er hat gehen] können " - }, { - "tag_name" : "VVFIN", - "tag_description" : "finites Verb, voll \nBsp: [du] gehst, [wir] kommen [an] " - }, { - "tag_name" : "VVIMP", - "tag_description" : "Imperativ, voll \nBsp: komm [!] " - }, { - "tag_name" : "VVINF", - "tag_description" : "Infinitiv, voll \nBsp: gehen, ankommen" - }, { - "tag_name" : "VVIZU", - "tag_description" : "Infinitiv mit ``zu'', voll \nBsp: anzukommen, loszulassen " - }, { - "tag_name" : "VVPP", - "tag_description" : "Partizip Perfekt, voll \nBsp:gegangen, angekommen " - }, { - "tag_name" : "XY", - "tag_description" : "Nichtwort, Sonderzeichen enthaltend \nBsp:3:7, H2O, D2XW3" - } ], - "create_tag" : false -} \ No newline at end of file diff --git a/inception/inception-documents/src/main/resources/tagsets/en-dep-sd.json b/inception/inception-documents/src/main/resources/tagsets/en-dep-sd.json deleted file mode 100644 index c6f7f1ef79a..00000000000 --- a/inception/inception-documents/src/main/resources/tagsets/en-dep-sd.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "name" : "Stanford Dependencies", - "typeUiName" : null, - "description" : "Stanford Dependencies for English\r\n\r\nThe English version of the Stanford dependencies has been developed by Marie-Catherine de Marneffe, Bill MacCartney, and Christopher Manning. All details about the English dependencies can be found in the manual:\r\n\r\n Marie-Catherine de Marneffe and Christopher D. Manning. 2008. Stanford Dependencies manual.\r\n\r\nSee also: \r\n* http://nlp.stanford.edu/software/stanford-dependencies.shtml\r\n* http://nlp.stanford.edu/software/dependencies_manual.pdf", - "language" : "en", - "type" : null, - "type_name" : null, - "type_description" : null, - "tags" : [ { - "tag_name" : "acomp", - "tag_description" : "adjectival complement\r\nAn adjectival complement of a verb is an adjectival phrase which functions as the complement (like an object of the verb).\r\n“She looks very beautiful” acomp(looks, beautiful)" - }, { - "tag_name" : "advcl", - "tag_description" : "adverbial clause modifier\r\nAn adverbial clause modifier of a VP or S is a clause modifying the verb (temporal clause, consequence, conditional clause, purpose clause, etc.).\r\n“The accident happened as the night was falling” advcl(happened, falling)\r\n“If you know who did it, you should tell the teacher” advcl(tell, know)\r\n“He talked to him in order to secure the account” advcl(talked, secure)" - }, { - "tag_name" : "advmod", - "tag_description" : "adverbial modifier\r\nAn adverbial modifier of a word is a (non-clausal) adverb or adverbial phrase (ADVP) that serves to modify the meaning of the word.\r\n“Genetically modified food” advmod(modified, genetically)\r\n“less often” advmod(often, less)" - }, { - "tag_name" : "agent", - "tag_description" : "agent\r\nAn agent is the complement of a passive verb which is introduced by the preposition “by” and does the action. This relation only appears in the collapsed dependencies, where it can replace prep by, where appropriate. It does not appear in basic dependencies output.\r\n“The man has been killed by the police” agent(killed, police)\r\n“Effects caused by the protein are important” agent(caused, protein)" - }, { - "tag_name" : "amod", - "tag_description" : "adjectival modifier\r\nAn adjectival modifier of an NP is any adjectival phrase that serves to modify the meaning of the NP.\r\n“Sam eats red meat” amod(meat, red)\r\n“Sam took out a 3 million dollar loan” amod(loan, dollar)\r\n“Sam took out a $ 3 million loan”amod(loan, $)" - }, { - "tag_name" : "appos", - "tag_description" : "appositional modifier\r\nAn appositional modifier of an NP is an NP immediately to the right of the first NP that serves to define or modify that NP. It includes parenthesized examples, as well as defining abbreviations in one of these structures.\r\nSam , my brother , arrived\r\nBill ( John ’s cousin )\r\nThe Australian Broadcasting Corporation ( ABC )" - }, { - "tag_name" : "aux", - "tag_description" : "auxiliary\r\nAn auxiliary of a clause is a non-main verb of the clause, e.g., a modal auxiliary, or a form of\r\n“be”, “do” or “have” in a periphrastic tense.\r\nReagan has died\r\nHe should leave" - }, { - "tag_name" : "auxpass", - "tag_description" : "passive auxiliary\r\nA passive auxiliary of a clause is a non-main verb of the clause which contains the passive information.\r\n“Kennedy has been killed” auxpass(killed, been)\r\n“Kennedy was/got killed” auxpass(killed, was/got)" - }, { - "tag_name" : "cc", - "tag_description" : "coordination\r\nA coordination is the relation between an element of a conjunct and the coordinating conjunction word of the conjunct. (Note: different dependency grammars have different treatments of coordination. We take one conjunct of a conjunction (normally the first) as the head of the conjunction.) A conjunction may also appear at the beginning of a sentence. This is also called\r\na cc, and dependent on the root predicate of the sentence.\r\n“Bill is big and honest” cc(big, and)\r\n“They either ski or snowboard” cc(ski, or)\r\n“And then we left.” cc(left, And)" - }, { - "tag_name" : "ccomp", - "tag_description" : "clausal complement\r\nA clausal complement of a verb or adjective is a dependent clause with an internal subject which functions like an object of the verb, or adjective. Clausal complements for nouns are limited to complement clauses with a subset of nouns like “fact” or “report”. We analyze them the same (parallel to the analysis of this class as “content clauses” in Huddleston and Pullum\r\n2002). Such clausal complements are usually finite (though there are occasional remnant English subjunctives).\r\n“He says that you like to swim” ccomp(says, like)\r\n“I am certain that he did it” ccomp(certain, did)\r\n“I admire the fact that you are honest” ccomp(fact, honest)" - }, { - "tag_name" : "conj", - "tag_description" : "conjunct\r\nA conjunct is the relation between two elements connected by a coordinating conjunction, such as “and”, “or”, etc. We treat conjunctions asymmetrically: The head of the relation is the first conjunct and other conjunctions depend on it via the conj relation.\r\n“Bill is big and honest” conj(big, honest)\r\n“They either ski or snowboard” conj(ski, snowboard)" - }, { - "tag_name" : "cop", - "tag_description" : "copula\r\nA copula is the relation between the complement of a copular verb and the copular verb. (We normally take a copula as a dependent of its complement; see the discussion in section 4.)\r\n“Bill is big” cop(big, is)\r\n“Bill is an honest man” cop(man, is)" - }, { - "tag_name" : "csubj", - "tag_description" : "clausal subject\r\nA clausal subject is a clausal syntactic subject of a clause, i.e., the subject is itself a clause. The governor of this relation might not always be a verb: when the verb is a copular verb, the root of the clause is the complement of the copular verb. In the two following examples, “what she said” is the subject.\r\n“What she said makes sense” csubj(makes, said)\r\n“What she said is not true” csubj(true, said)" - }, { - "tag_name" : "csubjpass", - "tag_description" : "clausal passive subject\r\nA clausal passive subject is a clausal syntactic subject of a passive clause. In the example below, “that she lied” is the subject.\r\n“That she lied was suspected by everyone” csubjpass(suspected, lied)" - }, { - "tag_name" : "dep", - "tag_description" : "dependent\r\nA dependency is labeled as dep when the system is unable to determine a more precise dependency relation between two words. This may be because of a weird grammatical construction, a limitation in the Stanford Dependency conversion software, a parser error, or because of an unresolved long distance dependency.\r\n“Then, as if to show that he could, . . . ” dep(show, if)" - }, { - "tag_name" : "det", - "tag_description" : "determiner\r\nA determiner is the relation between the head of an NP and its determiner.\r\n“The man is here” det(man, the)\r\n“Which book do you prefer?” det(book, which)" - }, { - "tag_name" : "discourse", - "tag_description" : "discourse element\r\nThis is used for interjections and other discourse particles and elements (which are not clearly linked to the structure of the sentence, except in an expressive way). We generally follow the guidelines of what the Penn Treebanks count as an INTJ. They define this to include:\r\ninterjections (oh, uh-huh, Welcome), fillers (um, ah), and discourse markers (well, like, actually, but not you know).\r\nIguazu is in Argentina :)" - }, { - "tag_name" : "dobj", - "tag_description" : "expletive\r\nThis relation captures an existential “there”. The main verb of the clause is the governor.\r\n“There is a ghost in the room” expl(is, There)" - }, { - "tag_name" : "expl", - "tag_description" : "expletive\r\nThis relation captures an existential “there”. The main verb of the clause is the governor.\r\n“There is a ghost in the room” expl(is, There)" - }, { - "tag_name" : "goeswith", - "tag_description" : "goes with\r\nThis relation links two parts of a word that are separated in text that is not well edited. We follow the treebank: The GW part is the dependent and the head is in some sense the “main” part, often the second part.\r\nThey come here [with out] legal permission" - }, { - "tag_name" : "iobj", - "tag_description" : "indirect object\r\nThe indirect object of a VP is the noun phrase which is the (dative) object of the verb.\r\n“She gave me a raise” iobj(gave, me)" - }, { - "tag_name" : "mark", - "tag_description" : "marker\r\nA marker is the word introducing a finite clause subordinate to another clause. For a complement\r\nclause, this will typically be “that” or “whether”. For an adverbial clause, the marker is typically\r\na preposition like “while” or “although”. The mark is a dependent of the subordinate clause\r\nhead." - }, { - "tag_name" : "mwe", - "tag_description" : "multi-word expression\r\nThe multi-word expression (modifier) relation is used for certain multi-word idioms that behave like a single function word. It is used for a closed set of dependencies between words in common multi-word expressions for which it seems difficult or unclear to assign any other relationships. At present, this relation is used inside the following expressions: rather than, as well as, instead of, such as, because of, instead of, in addition to, all but, such as, because of, instead of, due to. The boundaries of this class are unclear; it could grow or shrink a little over time.\r\n“I like dogs as well as cats” mwe(well, as)\r\n“He cried because of you” mwe(of, because)" - }, { - "tag_name" : "neg", - "tag_description" : "negation modifier\r\nThe negation modifier is the relation between a negation word and the word it modifies.\r\n“Bill is not a scientist” neg(scientist, not)\r\n“Bill doesn’t drive” neg(drive, n’t)" - }, { - "tag_name" : "nn", - "tag_description" : "noun compound modifier\r\nA noun compound modifier of an NP is any noun that serves to modify the head noun. (Note that in the current system for dependency extraction, all nouns modify the rightmost noun of the NP – there is no intelligent noun compound analysis. This is likely to be fixed once the Penn Treebank represents the branching structure of NPs.)\r\n“Oil price futures” nn(futures, oil) nn(futures, price)" - }, { - "tag_name" : "npadvmod", - "tag_description" : "noun phrase as adverbial modifier\r\nThis relation captures various places where something syntactically a noun phrase (NP) is used as an adverbial modifier in a sentence. These usages include: (i) a measure phrase, which is the relation between the head of an ADJP/ADVP/PP and the head of a measure phrase modifying the ADJP/ADVP; (ii) noun phrases giving an extent inside a VP which are not objects; (iii) financial constructions involving an adverbial or PP-like NP, notably the following construction $5 a share, where the second NP means “per share”; (iv) floating reflexives; and (v) certain other absolutive NP constructions. A temporal modifier (tmod) is a subclass of\r\nnpadvmod which is distinguished as a separate relation.\r\n“The director is 65 years old” npadvmod(old, years)\r\n“6 feet long” npadvmod(long, feet)\r\n“Shares eased a fraction” npadvmod(eased, fraction)\r\n“IBM earned $ 5 a share” npadvmod($, share)\r\n“The silence is itself significant” npadvmod(significant, itself)\r\n“90% of Australians like him, the most of any country” npadvmod(like, most)" - }, { - "tag_name" : "nsubj", - "tag_description" : "nominal subject\r\nA nominal subject is a noun phrase which is the syntactic subject of a clause. The governor of this relation might not always be a verb: when the verb is a copular verb, the root of the clause is the complement of the copular verb, which can be an adjective or noun.\r\n“Clinton defeated Dole” nsubj(defeated, Clinton)\r\n“The baby is cute” nsubj(cute, baby)" - }, { - "tag_name" : "nsubjpass", - "tag_description" : "passive nominal subject\r\nA passive nominal subject is a noun phrase which is the syntactic subject of a passive clause.\r\n“Dole was defeated by Clinton” nsubjpass(defeated, Dole)" - }, { - "tag_name" : "num", - "tag_description" : "numeric modifier\r\nA numeric modifier of a noun is any number phrase that serves to modify the meaning of the noun with a quantity.\r\n“Sam ate 3 sheep” num(sheep, 3)\r\n“Sam spent forty dollars” num(dollars, 40)\r\n“Sam spent $ 40” num($, 40)" - }, { - "tag_name" : "number", - "tag_description" : "element of compound number\r\nAn element of compound number is a part of a number phrase or currency amount. We regard a number as a specialized kind of multi-word expression.\r\n“I have four thousand sheep” number (thousand, four)\r\n“I lost $ 3.2 billion” number (billion, 3.2)" - }, { - "tag_name" : "parataxis", - "tag_description" : "parataxis\r\nThe parataxis relation (from Greek for “place side by side”) is a relation between the main verb of a clause and other sentential elements, such as a sentential parenthetical, a clause after a “:” or a “;”, or two sentences placed side by side without any explicit coordination or subordination.\r\n“The guy, John said, left early in the morning” parataxis(left, said)\r\n“Let’s face it we’re annoyed” parataxis(Let, annoyed)" - }, { - "tag_name" : "pcomp", - "tag_description" : "prepositional complement\r\nThis is used when the complement of a preposition is a clause or prepositional phrase (or occasionally, an adverbial phrase). The prepositional complement of a preposition is the head of a clause following the preposition, or the preposition head of the following PP.\r\n“We have no information on whether users are at risk” pcomp(on, are)\r\n“They heard about you missing classes” pcomp(about, missing)" - }, { - "tag_name" : "pobj", - "tag_description" : "object of a preposition\r\nThe object of a preposition is the head of a noun phrase following the preposition, or the adverbs “here” and “there”. (The preposition in turn may be modifying a noun, verb, etc.) Unlike the Penn Treebank, we here define cases of VBG quasi-prepositions like “including”, “concerning”, etc. as instances of pobj. (The preposition can be tagged a FW for “pace”, “versus”, etc. It can also be called a CC – but we don’t currently handle that and would need to distinguish from conjoined prepositions.) In the case of preposition stranding, the object can precede the preposition (e.g., “What does CPR stand for?”).\r\n“I sat on the chair” pobj(on, chair)" - }, { - "tag_name" : "poss", - "tag_description" : "possession modifier\r\nThe possession modifier relation holds between the head of an NP and its possessive determiner, or a genitive ’s complement.\r\n“their offices” poss(offices, their)\r\n“Bill’s clothes” poss(clothes, Bill)" - }, { - "tag_name" : "possessive", - "tag_description" : "possessive modifier\r\nThe possessive modifier relation appears between the head of an NP and the genitive ’s.\r\n8“Bill’s clothes” possessive(John, ’s)" - }, { - "tag_name" : "preconjunct", - "tag_description" : "preconjunct\r\nA preconjunct is the relation between the head of an NP and a word that appears at the beginning bracketing a conjunction (and puts emphasis on it), such as “either”, “both”, “neither”).\r\n“Both the boys and the girls are here” preconj(boys, both)" - }, { - "tag_name" : "predet", - "tag_description" : "predeterminer\r\nA predeterminer is the relation between the head of an NP and a word that precedes and modifies the meaning of the NP determiner.\r\n“All the boys are here” predet(boys, all)" - }, { - "tag_name" : "prep", - "tag_description" : "prepositional modifier\r\nA prepositional modifier of a verb, adjective, or noun is any prepositional phrase that serves to modify the meaning of the verb, adjective, noun, or even another prepositon. In the collapsed representation, this is used only for prepositions with NP complements.\r\n“I saw a cat in a hat” prep(cat, in)\r\n“I saw a cat with a telescope” prep(saw, with)\r\n“He is responsible for meals” prep(responsible, for)" - }, { - "tag_name" : "prepc", - "tag_description" : "prepositional clausal modifier\r\nIn the collapsed representation (see section 4), a prepositional clausal modifier of a verb, adjective, or noun is a clause introduced by a preposition which serves to modify the meaning of the verb, adjective, or noun.\r\n“He purchased it without paying a premium” prepc without(purchased, paying)" - }, { - "tag_name" : "prt", - "tag_description" : "phrasal verb particle\r\nThe phrasal verb particle relation identifies a phrasal verb, and holds between the verb and its particle.\r\n“They shut down the station” prt(shut, down)" - }, { - "tag_name" : "punct", - "tag_description" : "punctuation\r\nThis is used for any piece of punctuation in a clause, if punctuation is being retained in the typed dependencies. By default, punctuation is not retained in the output.\r\n“Go home!” punct(Go, !)" - }, { - "tag_name" : "quantmod", - "tag_description" : "quantifier phrase modifier\r\nA quantifier modifier is an element modifying the head of a QP constituent. (These are modifiers in complex numeric quantifiers, not other types of “quantification”. Quantifiers like “all” become det.)\r\n“About 200 people came to the party” quantmod(200, About)" - }, { - "tag_name" : "ref", - "tag_description" : "referent\r\nA referent of the head of an NP is the relative word introducing the relative clause modifying the NP.\r\n“I saw the book which you bought” ref (book, which)" - }, { - "tag_name" : "ROOT", - "tag_description" : "root\r\nThe root grammatical relation points to the root of the sentence. A fake node “ROOT” is used as the governor. The ROOT node is indexed with “0”, since the indexation of real words in the sentence starts at 1.\r\n“I love French fries.” root(ROOT, love)\r\n“Bill is an honest man” root(ROOT, man)" - }, { - "tag_name" : "tmod", - "tag_description" : "temporal modifier\r\nA temporal modifier (of a VP, NP, or an ADJP is a bare noun phrase constituent that serves to modify the meaning of the constituent by specifying a time. (Other temporal modifiers are prepositional phrases and are introduced as prep.)\r\n“Last night, I swam in the pool” tmod(swam, night)" - }, { - "tag_name" : "vmod", - "tag_description" : "reduced non-finite verbal modifier\r\nA reduced non-finite verbal modifier is a participial or infinitive form of a verb heading a phrase (which may have some arguments, roughly like a VP). These are used to modify the meaning of an NP or another verb. They are not core arguments of a verb or full finite relative clauses.\r\n“Points to establish are . . . ” vmod(points, establish)\r\n“I don’t have anything to say to you” vmod(anything, say)\r\n“Truffles picked during the spring are tasty” vmod(truffles, picked)\r\n“Bill tried to shoot, demonstrating his incompetence” vmod(shoot, demonstrating)" - }, { - "tag_name" : "xcomp", - "tag_description" : "open clausal complement\r\nAn open clausal complement (xcomp) of a VP or an ADJP is a clausal complement without its own subject, whose reference is determined by an external subject. These complements are always non-finite. The name xcomp is borrowed from Lexical-Functional Grammar.\r\n“He says that you like to swim” xcomp(like, swim)\r\n“I am ready to leave” xcomp(ready, leave)" - }, { - "tag_name" : "xsubj", - "tag_description" : "controlling subject\r\nA controlling subject is the relation between the head of a open clausal complement (xcomp) and the external subject of that clause. This is an additional dependency, not a basic dependency.\r\n“Tom likes to eat fish” xsubj(eat, Tom)" - } ], - "create_tag" : false -} \ No newline at end of file diff --git a/inception/inception-documents/src/main/resources/tagsets/en-pos-ptb-tt.json b/inception/inception-documents/src/main/resources/tagsets/en-pos-ptb-tt.json deleted file mode 100644 index a9586c2728d..00000000000 --- a/inception/inception-documents/src/main/resources/tagsets/en-pos-ptb-tt.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "name" : "TreeTagger English POS tags", - "typeUiName" : null, - "description" : "An extended version of the part-of-speech tagset used in the Penn Treebank. This version is used by the English model for TreeTagger.\r\n\r\nSee also:\r\n* https://catalog.ldc.upenn.edu/docs/LDC99T42/tagguid1.pdf\r\n* http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/Penn-Treebank-Tagset.pdf", - "language" : "en", - "type" : null, - "type_name" : null, - "type_description" : null, - "tags" : [ { - "tag_name" : "\"", - "tag_description" : "quotation marks\n' \" “ ’ „" - }, { - "tag_name" : "(", - "tag_description" : "contextual separator, left paren\nExamples: (" - }, { - "tag_name" : ")", - "tag_description" : "contextual separator, right paren\nExamples: )" - }, { - "tag_name" : ",", - "tag_description" : "punctuation mark, comma\nExamples: ," - }, { - "tag_name" : ".", - "tag_description" : "punctuation mark, sentence closer\nExamples: .;?*" - }, { - "tag_name" : ":", - "tag_description" : "punctuation mark, colon\nExamples: :" - }, { - "tag_name" : "CC", - "tag_description" : "conjunction, coordinating\nExamples: and, or, but" - }, { - "tag_name" : "CD", - "tag_description" : "cardinal number\nExamples: five, three, 13%" - }, { - "tag_name" : "DT", - "tag_description" : "determiner\nExamples: the, a, these" - }, { - "tag_name" : "EX", - "tag_description" : "existential there\nExamples: there were six boys" - }, { - "tag_name" : "FW", - "tag_description" : "foreign word\nExamples: mais" - }, { - "tag_name" : "IN", - "tag_description" : "conjunction, subordinating or preposition\nExamples: of, on, before, unless" - }, { - "tag_name" : "IN/that", - "tag_description" : "that\nExamples: that" - }, { - "tag_name" : "JJ", - "tag_description" : "adjective\nExamples: nice, easy" - }, { - "tag_name" : "JJR", - "tag_description" : "adjective, comparative\nExamples: nicer, easier" - }, { - "tag_name" : "JJS", - "tag_description" : "adjective, superlative\nExamples: nicest, easiest" - }, { - "tag_name" : "LS", - "tag_description" : "list item marker\nExamples: " - }, { - "tag_name" : "MD", - "tag_description" : "verb, modal auxiliary\nExamples: may, should" - }, { - "tag_name" : "NN", - "tag_description" : "noun, singular or mass\nExamples: tiger, chair, laughter" - }, { - "tag_name" : "NNS", - "tag_description" : "noun, plural\nExamples: tigers, chairs, insects" - }, { - "tag_name" : "NP", - "tag_description" : "noun, proper singular\nExamples: Germany, God, Alice" - }, { - "tag_name" : "NPS", - "tag_description" : "noun, proper plural\nExamples: we met two Christmases ago" - }, { - "tag_name" : "PDT", - "tag_description" : "predeterminer\nExamples: both his children" - }, { - "tag_name" : "POS", - "tag_description" : "possessive ending\nExamples: 's" - }, { - "tag_name" : "PP", - "tag_description" : "pronoun, personal\nExamples: me, you, it" - }, { - "tag_name" : "PP$", - "tag_description" : "pronoun, possessive\nExamples: my, your, our" - }, { - "tag_name" : "RB", - "tag_description" : "adverb\nExamples: extremely, loudly, hard " - }, { - "tag_name" : "RBR", - "tag_description" : "adverb, comparative\nExamples: better" - }, { - "tag_name" : "RBS", - "tag_description" : "adverb, superlative\nExamples: best" - }, { - "tag_name" : "RP", - "tag_description" : "adverb, particle\nExamples: about, off, up" - }, { - "tag_name" : "SENT", - "tag_description" : "sentence, punctuation end of sentence\nExamples: ." - }, { - "tag_name" : "SYM", - "tag_description" : "symbol\nExamples: %" - }, { - "tag_name" : "TO", - "tag_description" : "infinitival to\nExamples: what to do?" - }, { - "tag_name" : "UH", - "tag_description" : "interjection\nExamples: oh, oops, gosh" - }, { - "tag_name" : "VB", - "tag_description" : "verb to be, base form\nExamples: be" - }, { - "tag_name" : "VBD", - "tag_description" : "verb to be, past tense\nExamples: they were" - }, { - "tag_name" : "VBG", - "tag_description" : "verb to be, gerund or present participle\nExamples: being is fun" - }, { - "tag_name" : "VBN", - "tag_description" : "verb to be, past participle\nExamples: been" - }, { - "tag_name" : "VBP", - "tag_description" : "verb to be, non-3rd person singular present\nExamples: I am" - }, { - "tag_name" : "VBZ", - "tag_description" : "verb to be, 3rd person singular present\nExamples: she is" - }, { - "tag_name" : "VH", - "tag_description" : "verb to have, base form\nExamples: think" - }, { - "tag_name" : "VHD", - "tag_description" : "verb to have, past tense\nExamples: they thought" - }, { - "tag_name" : "VHG", - "tag_description" : "verb to have, gerund or present participle\nExamples: thinking is fun" - }, { - "tag_name" : "VHN", - "tag_description" : "verb to have, past participle\nExamples: a sunken ship" - }, { - "tag_name" : "VHP", - "tag_description" : "verb to have, non-3rd person singular present\nExamples: I think" - }, { - "tag_name" : "VHZ", - "tag_description" : "verb to have, 3rd person singular present\nExamples: she thinks" - }, { - "tag_name" : "VV", - "tag_description" : "verb, base form\nExamples: think" - }, { - "tag_name" : "VVD", - "tag_description" : "verb, past tense\nExamples: they thought" - }, { - "tag_name" : "VVG", - "tag_description" : "verb, gerund or present participle\nExamples: thinking is fun" - }, { - "tag_name" : "VVN", - "tag_description" : "verb, past participle\nExamples: a sunken ship" - }, { - "tag_name" : "VVP", - "tag_description" : "verb, non-3rd person singular present\nExamples: I think" - }, { - "tag_name" : "VVZ", - "tag_description" : "verb, 3rd person singular present\nExamples: she thinks" - }, { - "tag_name" : "WDT", - "tag_description" : "wh-determiner\nExamples: which, whatever, whichever" - }, { - "tag_name" : "WP", - "tag_description" : "wh-pronoun, personal\nExamples: what, who, whom" - }, { - "tag_name" : "WP$", - "tag_description" : "wh-pronoun, possessive\nExamples: whose, whosever" - }, { - "tag_name" : "WRB", - "tag_description" : "wh-adverb\nExamples: where, when" - } ], - "create_tag" : false -} \ No newline at end of file diff --git a/inception/inception-documents/src/main/resources/tagsets/mul-pos-upos.json b/inception/inception-documents/src/main/resources/tagsets/mul-pos-upos.json deleted file mode 100644 index de943b5588c..00000000000 --- a/inception/inception-documents/src/main/resources/tagsets/mul-pos-upos.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name" : "Universal POS tags", - "typeUiName" : null, - "description" : "\"A Universal Part-of-Speech Tagset\" by Slav Petrov, Dipanjan Das and Ryan McDonald\r\nFor more details: http://arxiv.org/abs/1104.2086", - "language" : "mul", - "type" : null, - "type_name" : null, - "type_description" : null, - "tags" : [ { - "tag_name" : ".", - "tag_description" : "punctuation" - }, { - "tag_name" : "ADJ", - "tag_description" : "adjectives" - }, { - "tag_name" : "ADP", - "tag_description" : "adpositions (prepositions and postpositions)" - }, { - "tag_name" : "ADV", - "tag_description" : "adverbs" - }, { - "tag_name" : "CONJ", - "tag_description" : "conjunctions" - }, { - "tag_name" : "DET", - "tag_description" : "determiners" - }, { - "tag_name" : "NOUN", - "tag_description" : "nouns (common and proper)" - }, { - "tag_name" : "NUM", - "tag_description" : "cardinal numbers" - }, { - "tag_name" : "PRON", - "tag_description" : "pronouns " - }, { - "tag_name" : "PRT", - "tag_description" : "particles or other function words" - }, { - "tag_name" : "VERB", - "tag_description" : "verbs (all tenses and modes)" - }, { - "tag_name" : "X", - "tag_description" : "other: foreign words, typos, abbreviations" - } ], - "create_tag" : false -} \ No newline at end of file diff --git a/inception/inception-imls-stringmatch/NOTICE.txt b/inception/inception-imls-stringmatch/NOTICE.txt deleted file mode 100644 index 2c781ce7771..00000000000 --- a/inception/inception-imls-stringmatch/NOTICE.txt +++ /dev/null @@ -1,5 +0,0 @@ -= Trie.java - -Copyright 2009 Richard Eckart de Castilho -Apache License 2.0 -Source: AnnoLab diff --git a/inception/inception-imls-stringmatch/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-imls-stringmatch/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json deleted file mode 100644 index 5a75e1565f5..00000000000 --- a/inception/inception-imls-stringmatch/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", - "packages": [ - { - "name": "AnnoLab Trie", - "originator": "Richard Eckart de Castilho", - "licenseDeclared": "Apache-2.0", - "description": "Modified version of the Trie that was part of AnnoLab. AnnoLab is no longer available online.", - "hasFiles": [ - "de/tudarmstadt/ukp/inception/recommendation/imls/stringmatch/span/trie/Trie.java" - ] - } - ] -} \ No newline at end of file diff --git a/inception/inception-io-html/NOTICE.txt b/inception/inception-io-html/NOTICE.txt index b04acb73d8e..7b48cfe4960 100644 --- a/inception/inception-io-html/NOTICE.txt +++ b/inception/inception-io-html/NOTICE.txt @@ -1,3 +1,5 @@ +NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json + == jsoup File: src/main/java/de/tudarmstadt/ukp/inception/io/html/dkprocore/internal/JSoupUtil.java diff --git a/inception/inception-io-html/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-io-html/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json new file mode 100644 index 00000000000..dd2eb51ea6b --- /dev/null +++ b/inception/inception-io-html/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", + "packages": [ + { + "name": "jsoup", + "versionInfo": "1.23.2", + "originator": "Jonathan Hedley", + "homepage": "https://jsoup.org", + "downloadLocation": "https://github.com/jhy/jsoup/tree/jsoup-1.23.2", + "licenseDeclared": "MIT", + "description": "Methods copied from jsoup because they are private there. The exact origin of each method is documented by a permalink in the source file.", + "hasFiles": [ + "de/tudarmstadt/ukp/inception/io/html/dkprocore/internal/JSoupUtil.java" + ] + } + ] +} diff --git a/inception/inception-io-pdf/NOTICE.txt b/inception/inception-io-pdf/NOTICE.txt new file mode 100644 index 00000000000..d1a49432026 --- /dev/null +++ b/inception/inception-io-pdf/NOTICE.txt @@ -0,0 +1,16 @@ +NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json + +== Apache PDFBox + +File: src/main/java/de/tudarmstadt/ukp/inception/io/pdf/pdfbox/GlyphPositionUtils.java + +Parts of this class are adapted from the DrawPrintTextLocations example of Apache PDFBox, which +is licensed under the Apache License 2.0. + + Apache PDFBox + Copyright 2002-2026 The Apache Software Foundation + +Original source: https://github.com/apache/pdfbox +Version: 3.0.7 + +The exact origin of each method is documented by a permalink in the source file itself. diff --git a/inception/inception-io-pdf/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-io-pdf/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json new file mode 100644 index 00000000000..80b70633eed --- /dev/null +++ b/inception/inception-io-pdf/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", + "packages": [ + { + "name": "Apache PDFBox DrawPrintTextLocations example", + "versionInfo": "3.0.7", + "originator": "Apache Software Foundation", + "homepage": "https://pdfbox.apache.org", + "downloadLocation": "https://github.com/apache/pdfbox/blob/3.0.7/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java", + "licenseDeclared": "Apache-2.0", + "description": "Code for calculating glyph positions, adapted from the PDFBox examples. The exact origin of each method is documented by a permalink in the source file.", + "hasFiles": [ + "de/tudarmstadt/ukp/inception/io/pdf/pdfbox/GlyphPositionUtils.java" + ] + } + ] +} diff --git a/inception/inception-io-rdf/src/main/resources/META-INF/asciidoc/user-guide/formats-rdfcas.adoc b/inception/inception-io-rdf/src/main/resources/META-INF/asciidoc/user-guide/formats-rdfcas.adoc index 9873bb4d76c..105e7d38f8b 100644 --- a/inception/inception-io-rdf/src/main/resources/META-INF/asciidoc/user-guide/formats-rdfcas.adoc +++ b/inception/inception-io-rdf/src/main/resources/META-INF/asciidoc/user-guide/formats-rdfcas.adoc @@ -36,35 +36,38 @@ This format provides a representation of the annotated document in RDF using the .Example [source,turtle] ---- - - a cas:Sofa , rdfcas:View ; - cas:Sofa-mimeType "text" ; - cas:Sofa-sofaID "_InitialView" ; + + a rdfcas:View , cas:Sofa ; cas:Sofa-sofaNum "1"^^xsd:int ; - cas:Sofa-sofaString "... here be document text ..." . + cas:Sofa-sofaID "_InitialView" ; + cas:Sofa-mimeType "text" ; + cas:Sofa-sofaString """Die Gärtnerin pflanzt im Frühling drei Bäume , die schnell wachsen . +Der Obstgarten liegt am Fluss . +""" . - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . + + a segmentation:Token , rdfcas:FeatureStructure ; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^xsd:int ; + tcas:Annotation-end "44"^^xsd:int ; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^xsd:int . - + a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^xsd:int ; + tcas:Annotation-end "44"^^xsd:int ; syntax-dependency:Dependency-Governor - ; + ; + syntax-dependency:Dependency-Dependent + ; + syntax-dependency:Dependency-DependencyType + "OA" ; syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . + "basic" . ---- diff --git a/inception/inception-io-rdf/src/test/java/de/tudarmstadt/ukp/inception/io/rdf/RdfWriterTest.java b/inception/inception-io-rdf/src/test/java/de/tudarmstadt/ukp/inception/io/rdf/RdfWriterTest.java index de1939fd61f..7420e146f38 100644 --- a/inception/inception-io-rdf/src/test/java/de/tudarmstadt/ukp/inception/io/rdf/RdfWriterTest.java +++ b/inception/inception-io-rdf/src/test/java/de/tudarmstadt/ukp/inception/io/rdf/RdfWriterTest.java @@ -38,7 +38,6 @@ import org.dkpro.core.testing.TestOptions; import org.eclipse.rdf4j.rio.RDFFormat; import org.eclipse.rdf4j.rio.Rio; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; @@ -52,8 +51,8 @@ void oneWay() throws Exception { testOneWay(Conll2006Reader.class, // the reader RdfWriter.class, // the writer - "conll/2006/fi-ref.ttl", // the reference file for the output - "conll/2006/fi-orig.conll", // the input file for the test + "conll/2006/de-ref.ttl", // the reference file for the output + "conll/2006/de-orig.conll", // the input file for the test new TestOptions().resultAssertor(this::assertModelEquals)); } @@ -62,8 +61,8 @@ void otherWay() throws Exception { testOneWay(RdfReader.class, // the reader Conll2006Writer.class, // the writer - "ttl/fi-ref.conll", // the reference file for the output - "ttl/fi-orig.ttl"); // the input file for the test + "ttl/de-ref.conll", // the reference file for the output + "ttl/de-orig.ttl"); // the input file for the test } @Test @@ -105,14 +104,15 @@ void readWriteWithIriFeatures(@TempDir File aTemp) throws Exception .containsExactly(tuple("iri:somewhere", "PER")); } - @Disabled("Currently does not work because IDs are not stable on round-trips") @Test void roundTrip() throws Exception { + // Uses the output of the current writer, so the ids are stable on the round trip. The + // file name must match the document ID in the data, because the writer names its output + // after it. testRoundTrip(RdfReader.class, // the reader RdfWriter.class, // the writer - "ttl/fi-orig.ttl", - // "conll/2006/fi-ref.ttl", + "roundtrip/de-orig.ttl", // new TestOptions().resultAssertor(this::assertModelEquals)); } diff --git a/inception/inception-io-rdf/src/test/resources/conll/2006/README.txt b/inception/inception-io-rdf/src/test/resources/conll/2006/README.txt deleted file mode 100644 index 930aa8f08ab..00000000000 --- a/inception/inception-io-rdf/src/test/resources/conll/2006/README.txt +++ /dev/null @@ -1,7 +0,0 @@ -fi-orig.conll - - First two sentences from FinnTreeBank 3.1 - http://www.ling.helsinki.fi/kieliteknologia/tutkimus/treebank/sources/ftb3.1.conllx.gz - Creative Commons Attribution 3.0 License - - \ No newline at end of file diff --git a/inception/inception-io-rdf/src/test/resources/conll/2006/de-orig.conll b/inception/inception-io-rdf/src/test/resources/conll/2006/de-orig.conll new file mode 100644 index 00000000000..776c05993df --- /dev/null +++ b/inception/inception-io-rdf/src/test/resources/conll/2006/de-orig.conll @@ -0,0 +1,20 @@ +1 Die der ART ART Nom Sg Fem 2 NK _ _ +2 Gärtnerin Gärtnerin N NN Nom Sg Fem 3 SB _ _ +3 pflanzt pflanzen V VVFIN Prs Act Sg3 0 ROOT _ _ +4 im in APPRART APPRART Dat Sg Masc 3 MO _ _ +5 Frühling Frühling N NN Dat Sg Masc 4 NK _ _ +6 drei drei Num CARD Card 7 NK _ _ +7 Bäume Baum N NN Acc Pl Masc 3 OA _ _ +8 , , Punct $, Punct _ _ _ _ +9 die der Pron PRELS Nom Pl Masc 11 SB _ _ +10 schnell schnell Adj ADJD Pos 11 MO _ _ +11 wachsen wachsen V VVFIN Prs Act Pl3 7 RC _ _ +12 . . Punct $. Punct _ _ _ _ + +1 Der der ART ART Nom Sg Masc 2 NK _ _ +2 Obstgarten Obst#garten N NN Nom Sg Masc 3 SB _ _ +3 liegt liegen V VVFIN Prs Act Sg3 0 ROOT _ _ +4 am an APPRART APPRART Dat Sg Masc 3 MO _ _ +5 Fluss Fluss N NN Dat Sg Masc 4 NK _ _ +6 . . Punct $. Punct _ _ _ _ + diff --git a/inception/inception-io-rdf/src/test/resources/conll/2006/de-ref.ttl b/inception/inception-io-rdf/src/test/resources/conll/2006/de-ref.ttl new file mode 100644 index 00000000000..cfb949242e5 --- /dev/null +++ b/inception/inception-io-rdf/src/test/resources/conll/2006/de-ref.ttl @@ -0,0 +1,790 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +@prefix syntax-dependency: . +@prefix cas: . +@prefix ns1: . +@prefix lexmorph-pos: . +@prefix segmentation: . +@prefix semantics: . +@prefix syntax-constituent: . +@prefix syntax: . +@prefix coref: . +@prefix tcas: . +@prefix metadata: . +@prefix rdfcas: . +@prefix transform: . +@prefix lexmorph-morph: . +@prefix structure: . +@prefix syntax-chunk: . +@prefix anomaly: . +@prefix ner: . + + a rdfcas:View, cas:Sofa; + cas:Sofa-sofaNum "1"^^; + cas:Sofa-sofaID "_InitialView"; + cas:Sofa-mimeType "text"; + cas:Sofa-sofaString """Die Gärtnerin pflanzt im Frühling drei Bäume , die schnell wachsen . +Der Obstgarten liegt am Fluss . +""" . + + a metadata:DocumentMetaData, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "101"^^; + tcas:DocumentAnnotation-language "x-unspecified"; + metadata:DocumentMetaData-documentTitle "de-orig.conll"; + metadata:DocumentMetaData-documentId "de-orig.conll"; + metadata:DocumentMetaData-isLastSegment false . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + lexmorph-pos:POS-PosValue "ART"; + lexmorph-pos:POS-coarseValue "ART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Fem" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + segmentation:Lemma-value "Gärtnerin" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Fem" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + segmentation:Lemma-value "pflanzen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Sg3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + segmentation:Lemma-value "in" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + lexmorph-pos:POS-PosValue "APPRART"; + lexmorph-pos:POS-coarseValue "APPRART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + segmentation:Lemma-value "Frühling" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + segmentation:Lemma-value "drei" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + lexmorph-pos:POS-PosValue "CARD"; + lexmorph-pos:POS-coarseValue "Num" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + lexmorph-morph:MorphologicalFeatures-value "Card" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + segmentation:Lemma-value "Baum" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + lexmorph-morph:MorphologicalFeatures-value "Acc Pl Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + segmentation:Lemma-value "," . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + lexmorph-pos:POS-PosValue "$,"; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + lexmorph-pos:POS-PosValue "PRELS"; + lexmorph-pos:POS-coarseValue "Pron" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Pl Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + segmentation:Lemma-value "schnell" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + lexmorph-pos:POS-PosValue "ADJD"; + lexmorph-pos:POS-coarseValue "Adj" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + lexmorph-morph:MorphologicalFeatures-value "Pos" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + segmentation:Lemma-value "wachsen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Pl3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + segmentation:Lemma-value "." . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + lexmorph-pos:POS-PosValue "$."; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:ROOT, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "ROOT"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "OA"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "RC"; + syntax-dependency:Dependency-flavor "basic" . + + a segmentation:Sentence, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "68"^^ . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + lexmorph-pos:POS-PosValue "ART"; + lexmorph-pos:POS-coarseValue "ART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + segmentation:Lemma-value "Obst#garten" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + segmentation:Lemma-value "liegen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Sg3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + segmentation:Lemma-value "an" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + lexmorph-pos:POS-PosValue "APPRART"; + lexmorph-pos:POS-coarseValue "APPRART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + segmentation:Lemma-value "Fluss" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + segmentation:Lemma-value "." . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + lexmorph-pos:POS-PosValue "$."; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:ROOT, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "ROOT"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a segmentation:Sentence, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "100"^^ . diff --git a/inception/inception-io-rdf/src/test/resources/conll/2006/fi-orig.conll b/inception/inception-io-rdf/src/test/resources/conll/2006/fi-orig.conll deleted file mode 100644 index 3f324700758..00000000000 --- a/inception/inception-io-rdf/src/test/resources/conll/2006/fi-orig.conll +++ /dev/null @@ -1,38 +0,0 @@ - -1 NEUVOSTO neuvosto N N N Nom Sg 2 attr _ _ -2 EURATOMIN Euratom N N N Prop Gen Sg 3 attr _ _ -3 HANKINTAKESKUKSEN hankinta#keskus N N N Gen Sg 4 attr _ _ -4 PERUSSÄÄNTÖ perus#sääntö N N N Nom Sg 7 attr _ _ -5 EUROOPAN Eurooppa N N N Prop Gen Sg 6 attr _ _ -6 ATOMIENERGIAYHTEISÖN atomi#energia#yhteisö N N N Gen Sg 7 attr _ _ -7 NEUVOSTO neuvosto N N N Nom Sg 0 main _ _ -8 , , Punct Punct Punct _ _ _ _ -9 joka joka Pron Pron Pron Rel Nom Sg 10 subj _ _ -10 ottaa ottaa V V V Prs Act Sg3 7 mod _ _ -11 huomioon huomio N N N Ill Sg 10 phrv _ _ -12 perustamissopimuksen perustamis#sopimus N N N Gen Sg 14 attr _ _ -13 54 54 Num Num Num Digit Nom Sg 14 attr _ _ -14 artiklan artikla N N N Gen Sg 10 obj _ _ -15 , , Punct Punct Punct 17 phrm _ _ -16 ja ja CC CC CC 17 phrm _ _ -17 ottaa ottaa V V V Prs Act Sg3 10 conjunct _ _ -18 huomioon huomio N N N Ill Sg 17 phrv _ _ -19 komission komissio N N N Gen Sg 20 subj _ _ -20 ehdotuksen ehdotus N N N Gen Sg 17 obj _ _ -21 , , Punct Punct Punct 23 phrm _ _ -22 ON olla V V V Prs Act Sg3 23 aux _ _ -23 PÄÄTTÄNYT päättää PrfPrc PrfPrc PrfPrc Act Pos Nom Sg 17 conjunct _ _ -24 antaa antaa V V V Inf1 Lat 23 obj _ _ -25 Euratomin Euratom N N N Prop Gen Sg 26 attr _ _ -26 hankintakeskuksen hankinta#keskus N N N Gen Sg 27 attr _ _ -27 perussäännön perus#sääntö N N N Gen Sg 24 obj _ _ -28 seuraavasti seuraava Adv Adv Adv Pos Man 24 advl _ _ -29 : : Punct Punct Punct _ _ _ _ - - -1 1 1 Num Num Num Digit Nom Sg 2 attr _ _ -2 artikla artikla N N N Nom Sg 3 attr _ _ -3 Nimi nimi N N N Nom Sg 0 main _ _ -4 ja ja CC CC CC 5 phrm _ _ -5 tarkoitus tarkoitus N N N Nom Sg 3 conjunct _ _ - diff --git a/inception/inception-io-rdf/src/test/resources/conll/2006/fi-ref.ttl b/inception/inception-io-rdf/src/test/resources/conll/2006/fi-ref.ttl deleted file mode 100644 index 3903d343e41..00000000000 --- a/inception/inception-io-rdf/src/test/resources/conll/2006/fi-ref.ttl +++ /dev/null @@ -1,1796 +0,0 @@ -@prefix anomaly: . -@prefix cas: . -@prefix coref: . -@prefix lexmorph-morph: . -@prefix lexmorph-pos: . -@prefix lexmorph-pos.tweet: . -@prefix metadata: . -@prefix ner: . -@prefix owl: . -@prefix rdf: . -@prefix rdfcas: . -@prefix rdfs: . -@prefix segmentation: . -@prefix semantics: . -@prefix structure: . -@prefix syntax: . -@prefix syntax-chunk: . -@prefix syntax-constituent: . -@prefix syntax-dependency: . -@prefix tcas: . -@prefix transform: . -@prefix xsd: . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "Eurooppa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - rdf:type cas:Sofa , rdfcas:View ; - cas:Sofa-mimeType "text" ; - cas:Sofa-sofaID "_InitialView" ; - cas:Sofa-sofaNum "1"^^xsd:int ; - cas:Sofa-sofaString "NEUVOSTO EURATOMIN HANKINTAKESKUKSEN PERUSSÄÄNTÖ EUROOPAN ATOMIENERGIAYHTEISÖN NEUVOSTO , joka ottaa huomioon perustamissopimuksen 54 artiklan , ja ottaa huomioon komission ehdotuksen , ON PÄÄTTÄNYT antaa Euratomin hankintakeskuksen perussäännön seuraavasti :\n1 artikla Nimi ja tarkoitus\n" . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "subj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Prs Act Sg3" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "neuvosto" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Prop Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "joka" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "artikla" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "CC" ; - lexmorph-pos:POS-coarseValue "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "huomio" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ja" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "PrfPrc Act Pos Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "aux" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "54" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Prop Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "subj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "," ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "conjunct" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ottaa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Adv" ; - lexmorph-pos:POS-coarseValue "Adv" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "Euratom" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "komissio" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "Euratom" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "conjunct" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Num Digit Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "," ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "perus#sääntö" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Prs Act Sg3" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "päättää" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value ":" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "advl" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Pron" ; - lexmorph-pos:POS-coarseValue "Pron" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "perus#sääntö" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "atomi#energia#yhteisö" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "CC" ; - lexmorph-pos:POS-coarseValue "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "conjunct" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Ill Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Num" ; - lexmorph-pos:POS-coarseValue "Num" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "," ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - rdf:type syntax-dependency:ROOT , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "main" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "1" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "mod" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ottaa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , metadata:DocumentMetaData ; - rdfcas:indexedIn ; - metadata:DocumentMetaData-documentId - "fi-orig.conll" ; - metadata:DocumentMetaData-documentTitle - "fi-orig.conll" ; - metadata:DocumentMetaData-isLastSegment - false ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "288"^^xsd:int ; - tcas:DocumentAnnotation-language - "x-unspecified" . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "nimi" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Prs Act Sg3" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrv" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Adv Pos Man" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "perustamis#sopimus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "tarkoitus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Inf1 Lat" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "artikla" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Sentence ; - rdfcas:indexedIn ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ja" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Prop Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "neuvosto" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "PrfPrc" ; - lexmorph-pos:POS-coarseValue "PrfPrc" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "huomio" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Sentence ; - rdfcas:indexedIn ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ehdotus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - rdf:type syntax-dependency:ROOT , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "main" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "hankinta#keskus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Pron Rel Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "olla" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "seuraava" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Ill Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "antaa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Num Digit Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "hankinta#keskus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - rdf:type rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Num" ; - lexmorph-pos:POS-coarseValue "Num" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - rdf:type segmentation:Token , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-order "0"^^xsd:int ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - rdf:type syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrv" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . diff --git a/inception/inception-io-rdf/src/test/resources/roundtrip/de-orig.ttl b/inception/inception-io-rdf/src/test/resources/roundtrip/de-orig.ttl new file mode 100644 index 00000000000..cfb949242e5 --- /dev/null +++ b/inception/inception-io-rdf/src/test/resources/roundtrip/de-orig.ttl @@ -0,0 +1,790 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +@prefix syntax-dependency: . +@prefix cas: . +@prefix ns1: . +@prefix lexmorph-pos: . +@prefix segmentation: . +@prefix semantics: . +@prefix syntax-constituent: . +@prefix syntax: . +@prefix coref: . +@prefix tcas: . +@prefix metadata: . +@prefix rdfcas: . +@prefix transform: . +@prefix lexmorph-morph: . +@prefix structure: . +@prefix syntax-chunk: . +@prefix anomaly: . +@prefix ner: . + + a rdfcas:View, cas:Sofa; + cas:Sofa-sofaNum "1"^^; + cas:Sofa-sofaID "_InitialView"; + cas:Sofa-mimeType "text"; + cas:Sofa-sofaString """Die Gärtnerin pflanzt im Frühling drei Bäume , die schnell wachsen . +Der Obstgarten liegt am Fluss . +""" . + + a metadata:DocumentMetaData, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "101"^^; + tcas:DocumentAnnotation-language "x-unspecified"; + metadata:DocumentMetaData-documentTitle "de-orig.conll"; + metadata:DocumentMetaData-documentId "de-orig.conll"; + metadata:DocumentMetaData-isLastSegment false . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + lexmorph-pos:POS-PosValue "ART"; + lexmorph-pos:POS-coarseValue "ART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Fem" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + segmentation:Lemma-value "Gärtnerin" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Fem" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + segmentation:Lemma-value "pflanzen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Sg3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + segmentation:Lemma-value "in" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + lexmorph-pos:POS-PosValue "APPRART"; + lexmorph-pos:POS-coarseValue "APPRART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + segmentation:Lemma-value "Frühling" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + segmentation:Lemma-value "drei" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + lexmorph-pos:POS-PosValue "CARD"; + lexmorph-pos:POS-coarseValue "Num" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + lexmorph-morph:MorphologicalFeatures-value "Card" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + segmentation:Lemma-value "Baum" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + lexmorph-morph:MorphologicalFeatures-value "Acc Pl Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + segmentation:Lemma-value "," . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + lexmorph-pos:POS-PosValue "$,"; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^; + tcas:Annotation-end "46"^^; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + lexmorph-pos:POS-PosValue "PRELS"; + lexmorph-pos:POS-coarseValue "Pron" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Pl Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + segmentation:Lemma-value "schnell" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + lexmorph-pos:POS-PosValue "ADJD"; + lexmorph-pos:POS-coarseValue "Adj" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + lexmorph-morph:MorphologicalFeatures-value "Pos" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + segmentation:Lemma-value "wachsen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Pl3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + segmentation:Lemma-value "." . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + lexmorph-pos:POS-PosValue "$."; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^; + tcas:Annotation-end "68"^^; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "3"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^; + tcas:Annotation-end "13"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:ROOT, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^; + tcas:Annotation-end "21"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "ROOT"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^; + tcas:Annotation-end "24"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^; + tcas:Annotation-end "33"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^; + tcas:Annotation-end "38"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^; + tcas:Annotation-end "44"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "OA"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^; + tcas:Annotation-end "50"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^; + tcas:Annotation-end "58"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^; + tcas:Annotation-end "66"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "RC"; + syntax-dependency:Dependency-flavor "basic" . + + a segmentation:Sentence, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^; + tcas:Annotation-end "68"^^ . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + lexmorph-pos:POS-PosValue "ART"; + lexmorph-pos:POS-coarseValue "ART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + segmentation:Lemma-value "Obst#garten" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + segmentation:Lemma-value "liegen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Sg3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + segmentation:Lemma-value "an" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + lexmorph-pos:POS-PosValue "APPRART"; + lexmorph-pos:POS-coarseValue "APPRART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + segmentation:Lemma-value "Fluss" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph ; + segmentation:Token-order "0"^^ . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + segmentation:Lemma-value "." . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + lexmorph-pos:POS-PosValue "$."; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^; + tcas:Annotation-end "100"^^; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "72"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^; + tcas:Annotation-end "83"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:ROOT, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^; + tcas:Annotation-end "89"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "ROOT"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^; + tcas:Annotation-end "92"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^; + tcas:Annotation-end "98"^^; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a segmentation:Sentence, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^; + tcas:Annotation-end "100"^^ . diff --git a/inception/inception-io-rdf/src/test/resources/ttl/de-orig.ttl b/inception/inception-io-rdf/src/test/resources/ttl/de-orig.ttl new file mode 100644 index 00000000000..f6e21f4af17 --- /dev/null +++ b/inception/inception-io-rdf/src/test/resources/ttl/de-orig.ttl @@ -0,0 +1,777 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Input for reading RDF that was not written by the current RdfWriter. Compared to the current +# output, it has no Token-order statements, feature structure ids that are not consecutive, and +# prefixed datatypes, like files written by earlier versions. + +@prefix xsd: . +@prefix syntax-dependency: . +@prefix cas: . +@prefix ns1: . +@prefix lexmorph-pos: . +@prefix segmentation: . +@prefix semantics: . +@prefix syntax-constituent: . +@prefix syntax: . +@prefix coref: . +@prefix tcas: . +@prefix metadata: . +@prefix rdfcas: . +@prefix transform: . +@prefix lexmorph-morph: . +@prefix structure: . +@prefix syntax-chunk: . +@prefix anomaly: . +@prefix ner: . + + a rdfcas:View, cas:Sofa; + cas:Sofa-sofaNum "1"^^xsd:int; + cas:Sofa-sofaID "_InitialView"; + cas:Sofa-mimeType "text"; + cas:Sofa-sofaString """Die Gärtnerin pflanzt im Frühling drei Bäume , die schnell wachsen . +Der Obstgarten liegt am Fluss . +""" . + + a metadata:DocumentMetaData, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^xsd:int; + tcas:Annotation-end "101"^^xsd:int; + tcas:DocumentAnnotation-language "x-unspecified"; + metadata:DocumentMetaData-documentTitle "de-orig.conll"; + metadata:DocumentMetaData-documentId "de-orig.conll"; + metadata:DocumentMetaData-isLastSegment false . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^xsd:int; + tcas:Annotation-end "3"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^xsd:int; + tcas:Annotation-end "3"^^xsd:int; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^xsd:int; + tcas:Annotation-end "3"^^xsd:int; + lexmorph-pos:POS-PosValue "ART"; + lexmorph-pos:POS-coarseValue "ART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^xsd:int; + tcas:Annotation-end "3"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Fem" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^xsd:int; + tcas:Annotation-end "13"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^xsd:int; + tcas:Annotation-end "13"^^xsd:int; + segmentation:Lemma-value "Gärtnerin" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^xsd:int; + tcas:Annotation-end "13"^^xsd:int; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^xsd:int; + tcas:Annotation-end "13"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Fem" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^xsd:int; + tcas:Annotation-end "21"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^xsd:int; + tcas:Annotation-end "21"^^xsd:int; + segmentation:Lemma-value "pflanzen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^xsd:int; + tcas:Annotation-end "21"^^xsd:int; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^xsd:int; + tcas:Annotation-end "21"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Sg3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^xsd:int; + tcas:Annotation-end "24"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^xsd:int; + tcas:Annotation-end "24"^^xsd:int; + segmentation:Lemma-value "in" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^xsd:int; + tcas:Annotation-end "24"^^xsd:int; + lexmorph-pos:POS-PosValue "APPRART"; + lexmorph-pos:POS-coarseValue "APPRART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^xsd:int; + tcas:Annotation-end "24"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^xsd:int; + tcas:Annotation-end "33"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^xsd:int; + tcas:Annotation-end "33"^^xsd:int; + segmentation:Lemma-value "Frühling" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^xsd:int; + tcas:Annotation-end "33"^^xsd:int; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^xsd:int; + tcas:Annotation-end "33"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^xsd:int; + tcas:Annotation-end "38"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^xsd:int; + tcas:Annotation-end "38"^^xsd:int; + segmentation:Lemma-value "drei" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^xsd:int; + tcas:Annotation-end "38"^^xsd:int; + lexmorph-pos:POS-PosValue "CARD"; + lexmorph-pos:POS-coarseValue "Num" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^xsd:int; + tcas:Annotation-end "38"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Card" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^xsd:int; + tcas:Annotation-end "44"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^xsd:int; + tcas:Annotation-end "44"^^xsd:int; + segmentation:Lemma-value "Baum" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^xsd:int; + tcas:Annotation-end "44"^^xsd:int; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^xsd:int; + tcas:Annotation-end "44"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Acc Pl Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^xsd:int; + tcas:Annotation-end "46"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^xsd:int; + tcas:Annotation-end "46"^^xsd:int; + segmentation:Lemma-value "," . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^xsd:int; + tcas:Annotation-end "46"^^xsd:int; + lexmorph-pos:POS-PosValue "$,"; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "45"^^xsd:int; + tcas:Annotation-end "46"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^xsd:int; + tcas:Annotation-end "50"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^xsd:int; + tcas:Annotation-end "50"^^xsd:int; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^xsd:int; + tcas:Annotation-end "50"^^xsd:int; + lexmorph-pos:POS-PosValue "PRELS"; + lexmorph-pos:POS-coarseValue "Pron" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^xsd:int; + tcas:Annotation-end "50"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Nom Pl Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^xsd:int; + tcas:Annotation-end "58"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^xsd:int; + tcas:Annotation-end "58"^^xsd:int; + segmentation:Lemma-value "schnell" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^xsd:int; + tcas:Annotation-end "58"^^xsd:int; + lexmorph-pos:POS-PosValue "ADJD"; + lexmorph-pos:POS-coarseValue "Adj" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^xsd:int; + tcas:Annotation-end "58"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Pos" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^xsd:int; + tcas:Annotation-end "66"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^xsd:int; + tcas:Annotation-end "66"^^xsd:int; + segmentation:Lemma-value "wachsen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^xsd:int; + tcas:Annotation-end "66"^^xsd:int; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^xsd:int; + tcas:Annotation-end "66"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Pl3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^xsd:int; + tcas:Annotation-end "68"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^xsd:int; + tcas:Annotation-end "68"^^xsd:int; + segmentation:Lemma-value "." . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^xsd:int; + tcas:Annotation-end "68"^^xsd:int; + lexmorph-pos:POS-PosValue "$."; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "67"^^xsd:int; + tcas:Annotation-end "68"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^xsd:int; + tcas:Annotation-end "3"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "4"^^xsd:int; + tcas:Annotation-end "13"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:ROOT, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "14"^^xsd:int; + tcas:Annotation-end "21"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "ROOT"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "22"^^xsd:int; + tcas:Annotation-end "24"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "25"^^xsd:int; + tcas:Annotation-end "33"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "34"^^xsd:int; + tcas:Annotation-end "38"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "39"^^xsd:int; + tcas:Annotation-end "44"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "OA"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "47"^^xsd:int; + tcas:Annotation-end "50"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "51"^^xsd:int; + tcas:Annotation-end "58"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "59"^^xsd:int; + tcas:Annotation-end "66"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "RC"; + syntax-dependency:Dependency-flavor "basic" . + + a segmentation:Sentence, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "0"^^xsd:int; + tcas:Annotation-end "68"^^xsd:int . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^xsd:int; + tcas:Annotation-end "72"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^xsd:int; + tcas:Annotation-end "72"^^xsd:int; + segmentation:Lemma-value "der" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^xsd:int; + tcas:Annotation-end "72"^^xsd:int; + lexmorph-pos:POS-PosValue "ART"; + lexmorph-pos:POS-coarseValue "ART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^xsd:int; + tcas:Annotation-end "72"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^xsd:int; + tcas:Annotation-end "83"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^xsd:int; + tcas:Annotation-end "83"^^xsd:int; + segmentation:Lemma-value "Obst#garten" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^xsd:int; + tcas:Annotation-end "83"^^xsd:int; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^xsd:int; + tcas:Annotation-end "83"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Nom Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^xsd:int; + tcas:Annotation-end "89"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^xsd:int; + tcas:Annotation-end "89"^^xsd:int; + segmentation:Lemma-value "liegen" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^xsd:int; + tcas:Annotation-end "89"^^xsd:int; + lexmorph-pos:POS-PosValue "VVFIN"; + lexmorph-pos:POS-coarseValue "V" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^xsd:int; + tcas:Annotation-end "89"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Prs Act Sg3" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^xsd:int; + tcas:Annotation-end "92"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^xsd:int; + tcas:Annotation-end "92"^^xsd:int; + segmentation:Lemma-value "an" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^xsd:int; + tcas:Annotation-end "92"^^xsd:int; + lexmorph-pos:POS-PosValue "APPRART"; + lexmorph-pos:POS-coarseValue "APPRART" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^xsd:int; + tcas:Annotation-end "92"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^xsd:int; + tcas:Annotation-end "98"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^xsd:int; + tcas:Annotation-end "98"^^xsd:int; + segmentation:Lemma-value "Fluss" . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^xsd:int; + tcas:Annotation-end "98"^^xsd:int; + lexmorph-pos:POS-PosValue "NN"; + lexmorph-pos:POS-coarseValue "N" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^xsd:int; + tcas:Annotation-end "98"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Dat Sg Masc" . + + a segmentation:Token, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^xsd:int; + tcas:Annotation-end "100"^^xsd:int; + segmentation:Token-lemma ; + segmentation:Token-pos ; + segmentation:Token-morph . + + a segmentation:Lemma, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^xsd:int; + tcas:Annotation-end "100"^^xsd:int; + segmentation:Lemma-value "." . + + a lexmorph-pos:POS, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^xsd:int; + tcas:Annotation-end "100"^^xsd:int; + lexmorph-pos:POS-PosValue "$."; + lexmorph-pos:POS-coarseValue "Punct" . + + a lexmorph-morph:MorphologicalFeatures, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "99"^^xsd:int; + tcas:Annotation-end "100"^^xsd:int; + lexmorph-morph:MorphologicalFeatures-value "Punct" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^xsd:int; + tcas:Annotation-end "72"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "73"^^xsd:int; + tcas:Annotation-end "83"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "SB"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:ROOT, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "84"^^xsd:int; + tcas:Annotation-end "89"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "ROOT"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "90"^^xsd:int; + tcas:Annotation-end "92"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "MO"; + syntax-dependency:Dependency-flavor "basic" . + + a syntax-dependency:Dependency, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "93"^^xsd:int; + tcas:Annotation-end "98"^^xsd:int; + syntax-dependency:Dependency-Governor ; + syntax-dependency:Dependency-Dependent ; + syntax-dependency:Dependency-DependencyType "NK"; + syntax-dependency:Dependency-flavor "basic" . + + a segmentation:Sentence, rdfcas:FeatureStructure; + rdfcas:indexedIn ; + cas:AnnotationBase-sofa ; + tcas:Annotation-begin "69"^^xsd:int; + tcas:Annotation-end "100"^^xsd:int . diff --git a/inception/inception-io-rdf/src/test/resources/ttl/de-ref.conll b/inception/inception-io-rdf/src/test/resources/ttl/de-ref.conll new file mode 100644 index 00000000000..776c05993df --- /dev/null +++ b/inception/inception-io-rdf/src/test/resources/ttl/de-ref.conll @@ -0,0 +1,20 @@ +1 Die der ART ART Nom Sg Fem 2 NK _ _ +2 Gärtnerin Gärtnerin N NN Nom Sg Fem 3 SB _ _ +3 pflanzt pflanzen V VVFIN Prs Act Sg3 0 ROOT _ _ +4 im in APPRART APPRART Dat Sg Masc 3 MO _ _ +5 Frühling Frühling N NN Dat Sg Masc 4 NK _ _ +6 drei drei Num CARD Card 7 NK _ _ +7 Bäume Baum N NN Acc Pl Masc 3 OA _ _ +8 , , Punct $, Punct _ _ _ _ +9 die der Pron PRELS Nom Pl Masc 11 SB _ _ +10 schnell schnell Adj ADJD Pos 11 MO _ _ +11 wachsen wachsen V VVFIN Prs Act Pl3 7 RC _ _ +12 . . Punct $. Punct _ _ _ _ + +1 Der der ART ART Nom Sg Masc 2 NK _ _ +2 Obstgarten Obst#garten N NN Nom Sg Masc 3 SB _ _ +3 liegt liegen V VVFIN Prs Act Sg3 0 ROOT _ _ +4 am an APPRART APPRART Dat Sg Masc 3 MO _ _ +5 Fluss Fluss N NN Dat Sg Masc 4 NK _ _ +6 . . Punct $. Punct _ _ _ _ + diff --git a/inception/inception-io-rdf/src/test/resources/ttl/fi-orig.ttl b/inception/inception-io-rdf/src/test/resources/ttl/fi-orig.ttl deleted file mode 100644 index 29faad42e48..00000000000 --- a/inception/inception-io-rdf/src/test/resources/ttl/fi-orig.ttl +++ /dev/null @@ -1,1760 +0,0 @@ -@prefix coref: . -@prefix syntax-dependency: . -@prefix syntax-chunk: . -@prefix metadata: . -@prefix lexmorph-pos: . -@prefix anomaly: . -@prefix owl: . -@prefix lexmorph-morph: . -@prefix xsd: . -@prefix rdfs: . -@prefix semantics: . -@prefix lexmorph-pos.tweet: . -@prefix syntax-constituent: . -@prefix cas: . -@prefix rdf: . -@prefix tcas: . -@prefix rdfcas: . -@prefix syntax: . -@prefix segmentation: . -@prefix ner: . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrv" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ja" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "huomio" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "Euratom" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "neuvosto" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value ":" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "päättää" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Prop Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Pron" ; - lexmorph-pos:POS-coarseValue "Pron" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "olla" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "1" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "PrfPrc" ; - lexmorph-pos:POS-coarseValue "PrfPrc" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "," ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Adv" ; - lexmorph-pos:POS-coarseValue "Adv" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "aux" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "antaa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "Eurooppa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ehdotus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "49"^^xsd:int ; - tcas:Annotation-end "57"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ja" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "," ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Sentence ; - rdfcas:indexedIn ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "komissio" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Prop Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "hankinta#keskus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Inf1 Lat" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Num" ; - lexmorph-pos:POS-coarseValue "Num" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "subj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "conjunct" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - a metadata:DocumentMetaData , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - metadata:DocumentMetaData-documentId - "fi-orig.conll" ; - metadata:DocumentMetaData-documentTitle - "fi-orig.conll" ; - metadata:DocumentMetaData-isLastSegment - false ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "288"^^xsd:int ; - tcas:DocumentAnnotation-language - "x-unspecified" . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Prs Act Sg3" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Ill Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "huomio" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "joka" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "hankinta#keskus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "0"^^xsd:int ; - tcas:Annotation-end "8"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "88"^^xsd:int ; - tcas:Annotation-end "89"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "nimi" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Ill Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ottaa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "perus#sääntö" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "54" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "seuraava" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "ottaa" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - a cas:Sofa , rdfcas:View ; - cas:Sofa-mimeType "text" ; - cas:Sofa-sofaID "_InitialView" ; - cas:Sofa-sofaNum "1"^^xsd:int ; - cas:Sofa-sofaString "NEUVOSTO EURATOMIN HANKINTAKESKUKSEN PERUSSÄÄNTÖ EUROOPAN ATOMIENERGIAYHTEISÖN NEUVOSTO , joka ottaa huomioon perustamissopimuksen 54 artiklan , ja ottaa huomioon komission ehdotuksen , ON PÄÄTTÄNYT antaa Euratomin hankintakeskuksen perussäännön seuraavasti :\n1 artikla Nimi ja tarkoitus\n" . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "perustamis#sopimus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Adv Pos Man" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "101"^^xsd:int ; - tcas:Annotation-end "109"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "258"^^xsd:int ; - tcas:Annotation-end "259"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Sentence ; - rdfcas:indexedIn ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Num Digit Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "PrfPrc Act Pos Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "163"^^xsd:int ; - tcas:Annotation-end "172"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "199"^^xsd:int ; - tcas:Annotation-end "204"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "artikla" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "," ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "184"^^xsd:int ; - tcas:Annotation-end "185"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "advl" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Num" ; - lexmorph-pos:POS-coarseValue "Num" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "tarkoitus" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "CC" ; - lexmorph-pos:POS-coarseValue "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "275"^^xsd:int ; - tcas:Annotation-end "277"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "233"^^xsd:int ; - tcas:Annotation-end "245"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Pron Rel Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "215"^^xsd:int ; - tcas:Annotation-end "232"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrm" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "19"^^xsd:int ; - tcas:Annotation-end "36"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "obj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "conjunct" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "189"^^xsd:int ; - tcas:Annotation-end "198"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "173"^^xsd:int ; - tcas:Annotation-end "183"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "CC" ; - lexmorph-pos:POS-coarseValue "CC" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "145"^^xsd:int ; - tcas:Annotation-end "147"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "246"^^xsd:int ; - tcas:Annotation-end "257"^^xsd:int . - - - a syntax-dependency:ROOT , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "main" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "Num Digit Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "atomi#energia#yhteisö" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "58"^^xsd:int ; - tcas:Annotation-end "78"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "270"^^xsd:int ; - tcas:Annotation-end "274"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "neuvosto" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Prs Act Sg3" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "186"^^xsd:int ; - tcas:Annotation-end "188"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "conjunct" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "278"^^xsd:int ; - tcas:Annotation-end "287"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "134"^^xsd:int ; - tcas:Annotation-end "142"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "260"^^xsd:int ; - tcas:Annotation-end "261"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Prop Gen Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Token ; - rdfcas:indexedIn ; - segmentation:Token-lemma ; - segmentation:Token-morph ; - segmentation:Token-pos ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "131"^^xsd:int ; - tcas:Annotation-end "133"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "subj" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "90"^^xsd:int ; - tcas:Annotation-end "94"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "V" ; - lexmorph-pos:POS-coarseValue "V" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - a syntax-dependency:Dependency , rdfcas:FeatureStructure ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "mod" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "95"^^xsd:int ; - tcas:Annotation-end "100"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "attr" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "9"^^xsd:int ; - tcas:Annotation-end "18"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "perus#sääntö" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "artikla" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "262"^^xsd:int ; - tcas:Annotation-end "269"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "N Nom Sg" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "37"^^xsd:int ; - tcas:Annotation-end "48"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:ROOT ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "main" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "79"^^xsd:int ; - tcas:Annotation-end "87"^^xsd:int . - - - a rdfcas:FeatureStructure , segmentation:Lemma ; - rdfcas:indexedIn ; - segmentation:Lemma-value "Euratom" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "205"^^xsd:int ; - tcas:Annotation-end "214"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-morph:MorphologicalFeatures ; - rdfcas:indexedIn ; - lexmorph-morph:MorphologicalFeatures-value - "V Prs Act Sg3" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "148"^^xsd:int ; - tcas:Annotation-end "153"^^xsd:int . - - - a rdfcas:FeatureStructure , syntax-dependency:Dependency ; - rdfcas:indexedIn ; - syntax-dependency:Dependency-DependencyType - "phrv" ; - syntax-dependency:Dependency-Dependent - ; - syntax-dependency:Dependency-Governor - ; - syntax-dependency:Dependency-flavor - "basic" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "154"^^xsd:int ; - tcas:Annotation-end "162"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "N" ; - lexmorph-pos:POS-coarseValue "N" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "110"^^xsd:int ; - tcas:Annotation-end "130"^^xsd:int . - - - a rdfcas:FeatureStructure , lexmorph-pos:POS ; - rdfcas:indexedIn ; - lexmorph-pos:POS-PosValue "Punct" ; - lexmorph-pos:POS-coarseValue "Punct" ; - cas:AnnotationBase-sofa ; - tcas:Annotation-begin "143"^^xsd:int ; - tcas:Annotation-end "144"^^xsd:int . diff --git a/inception/inception-io-rdf/src/test/resources/ttl/fi-ref.conll b/inception/inception-io-rdf/src/test/resources/ttl/fi-ref.conll deleted file mode 100644 index 813c864e3c7..00000000000 --- a/inception/inception-io-rdf/src/test/resources/ttl/fi-ref.conll +++ /dev/null @@ -1,36 +0,0 @@ -1 NEUVOSTO neuvosto N N N Nom Sg 2 attr _ _ -2 EURATOMIN Euratom N N N Prop Gen Sg 3 attr _ _ -3 HANKINTAKESKUKSEN hankinta#keskus N N N Gen Sg 4 attr _ _ -4 PERUSSÄÄNTÖ perus#sääntö N N N Nom Sg 7 attr _ _ -5 EUROOPAN Eurooppa N N N Prop Gen Sg 6 attr _ _ -6 ATOMIENERGIAYHTEISÖN atomi#energia#yhteisö N N N Gen Sg 7 attr _ _ -7 NEUVOSTO neuvosto N N N Nom Sg 0 main _ _ -8 , , Punct Punct Punct _ _ _ _ -9 joka joka Pron Pron Pron Rel Nom Sg 10 subj _ _ -10 ottaa ottaa V V V Prs Act Sg3 7 mod _ _ -11 huomioon huomio N N N Ill Sg 10 phrv _ _ -12 perustamissopimuksen perustamis#sopimus N N N Gen Sg 14 attr _ _ -13 54 54 Num Num Num Digit Nom Sg 14 attr _ _ -14 artiklan artikla N N N Gen Sg 10 obj _ _ -15 , , Punct Punct Punct 17 phrm _ _ -16 ja ja CC CC CC 17 phrm _ _ -17 ottaa ottaa V V V Prs Act Sg3 10 conjunct _ _ -18 huomioon huomio N N N Ill Sg 17 phrv _ _ -19 komission komissio N N N Gen Sg 20 subj _ _ -20 ehdotuksen ehdotus N N N Gen Sg 17 obj _ _ -21 , , Punct Punct Punct 23 phrm _ _ -22 ON olla V V V Prs Act Sg3 23 aux _ _ -23 PÄÄTTÄNYT päättää PrfPrc PrfPrc PrfPrc Act Pos Nom Sg 17 conjunct _ _ -24 antaa antaa V V V Inf1 Lat 23 obj _ _ -25 Euratomin Euratom N N N Prop Gen Sg 26 attr _ _ -26 hankintakeskuksen hankinta#keskus N N N Gen Sg 27 attr _ _ -27 perussäännön perus#sääntö N N N Gen Sg 24 obj _ _ -28 seuraavasti seuraava Adv Adv Adv Pos Man 24 advl _ _ -29 : : Punct Punct Punct _ _ _ _ - -1 1 1 Num Num Num Digit Nom Sg 2 attr _ _ -2 artikla artikla N N N Nom Sg 3 attr _ _ -3 Nimi nimi N N N Nom Sg 0 main _ _ -4 ja ja CC CC CC 5 phrm _ _ -5 tarkoitus tarkoitus N N N Nom Sg 3 conjunct _ _ - diff --git a/inception/inception-kb-lucene-sail/NOTICE.txt b/inception/inception-kb-lucene-sail/NOTICE.txt index 62be8bd0315..4358ff77d97 100644 --- a/inception/inception-kb-lucene-sail/NOTICE.txt +++ b/inception/inception-kb-lucene-sail/NOTICE.txt @@ -1,3 +1,5 @@ +NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json + = RDF4J Lucene SAIL Source: https://github.com/eclipse-rdf4j/rdf4j/tree/4.3.13 diff --git a/inception/inception-kb-lucene-sail/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-kb-lucene-sail/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json new file mode 100644 index 00000000000..6666dc3384b --- /dev/null +++ b/inception/inception-kb-lucene-sail/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", + "packages": [ + { + "name": "RDF4J Lucene SAIL", + "versionInfo": "4.3.13", + "originator": "Eclipse RDF4J contributors, Aduna, and others", + "homepage": "https://rdf4j.org", + "downloadLocation": "https://github.com/eclipse-rdf4j/rdf4j/tree/4.3.13", + "licenseDeclared": "BSD-3-Clause", + "licenseComments": "Eclipse Distribution License 1.0, which SPDX treats as BSD-3-Clause: https://lists.spdx.org/g/Spdx-legal/topic/request_for_adding_eclipse/67981884", + "description": "Adapted version that builds against Lucene 9.", + "hasFiles": [ + "org/eclipse/rdf4j/sail/lucene/impl/config/LuceneSailConfig.java", + "org/eclipse/rdf4j/sail/lucene/impl/config/LuceneSailFactory.java", + "org/eclipse/rdf4j/sail/lucene/impl/LuceneDocument.java", + "org/eclipse/rdf4j/sail/lucene/impl/LuceneDocumentDistance.java", + "org/eclipse/rdf4j/sail/lucene/impl/LuceneDocumentResult.java", + "org/eclipse/rdf4j/sail/lucene/impl/LuceneDocumentScore.java", + "org/eclipse/rdf4j/sail/lucene/impl/LuceneIndex.java", + "org/eclipse/rdf4j/sail/lucene/impl/LuceneIndexNIOFS.java", + "org/eclipse/rdf4j/sail/lucene/impl/LuceneQuery.java", + "org/eclipse/rdf4j/sail/lucene/impl/ReaderMonitor.java" + ] + } + ] +} diff --git a/inception/inception-kb/README.md b/inception/inception-kb/README.md index abfd0a0d854..46433822662 100644 --- a/inception/inception-kb/README.md +++ b/inception/inception-kb/README.md @@ -39,8 +39,8 @@ would be meaningless. Each iteration therefore reflects the true cost of query construction plus execution. The knowledge bases come straight from the bundled -`knowledgebase-profiles.yaml`: the LOCAL `wine_ontology` (an offline data point) -plus the REMOTE `wikidata`, `db_pedia`, `zbw-stw-economics`, `mesh` and +`knowledgebase-profiles.yaml`: the LOCAL `hpo` (downloaded and imported, so +free of network noise during the measurement) plus the REMOTE `wikidata`, `db_pedia`, `zbw-stw-economics`, `mesh` and `agrovoc`. Remote endpoints that are unreachable are skipped automatically. ### Running it @@ -133,8 +133,7 @@ the hash to the file name. - For the REMOTE knowledge bases the timings are dominated by network and server load, so trust the **median over many iterations** rather than a single number, and run the baseline and the after-run back-to-back under the same network - conditions. The LOCAL `wine_ontology` gives a small, network-noise-free signal - but its data set is tiny. + conditions. The LOCAL `hpo` gives a network-noise-free signal. - The test logs at `INFO`; the benchmark logger is enabled in `src/test/resources/log4j2-test.xml` so the report is visible (the module's default log level is `WARN`). diff --git a/inception/inception-kb/pom.xml b/inception/inception-kb/pom.xml index 9a9f678f472..4c9ecb90766 100644 --- a/inception/inception-kb/pom.xml +++ b/inception/inception-kb/pom.xml @@ -402,29 +402,4 @@ - - - rat-check - - - src/main/java - - - - - - - org.apache.rat - apache-rat-plugin - - - **/de/tudarmstadt/ukp/inception/kb/querybuilder/backport/Bind.java - - - - - - - - diff --git a/inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/RdfImportParserConfigs.java b/inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/RdfImportParserConfigs.java index 5edec796abb..bf2a7727046 100644 --- a/inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/RdfImportParserConfigs.java +++ b/inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/RdfImportParserConfigs.java @@ -32,9 +32,10 @@ private RdfImportParserConfigs() *

* RDF4J 5.3.2 hardened its XML parsers against XXE (follow-up to CVE-2018-1000644) and as part * of that started rejecting {@code DOCTYPE} declarations outright. That is too strict for us: - * many OWL vocabularies - OLIA being the one our own tests trip over - declare internal - * entities in a {@code DOCTYPE} purely to abbreviate namespace IRIs, and those files must - * remain importable. + * many OWL vocabularies - e.g. OLiA, which the slow profile tests import - declare + * internal entities in a {@code DOCTYPE} purely to abbreviate namespace IRIs, and those + * files must remain importable. The test fixture {@code tagset_custom_label.rdf} covers this in + * the default build. *

* So we accept the {@code DOCTYPE} declaration again, but only that. Every setting that would * make the parser reach outside the document stays off, and it is the outside reach - not the diff --git a/inception/inception-kb/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-kb/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json deleted file mode 100644 index 807050fb780..00000000000 --- a/inception/inception-kb/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", - "packages": [ - { - "name": "Backports from Eclipse RDF4J", - "versionInfo": "4.0.0", - "supplier": "Eclipse Foundation", - "homepage": "https://github.com/eclipse/rdf4j", - "downloadLocation": "https://github.com/eclipse/rdf4j/tree/4.0.0", - "packageFileName": "de/tudarmstadt/ukp/inception/kb/querybuilder/backport", - "licenseDeclared": "Eclipse Distribution License 1.0", - "licenseConcluded": "BSD-3-Clause", - "licenseComments": "https://lists.spdx.org/g/Spdx-legal/topic/request_for_adding_eclipse/67981884", - "hasFiles": [ - "Bind.java" - ] - } - ] -} \ No newline at end of file diff --git a/inception/inception-kb/src/main/resources/de/tudarmstadt/ukp/inception/kb/pre-defined-knowledge-bases/wine.rdf b/inception/inception-kb/src/main/resources/de/tudarmstadt/ukp/inception/kb/pre-defined-knowledge-bases/wine.rdf deleted file mode 100644 index e7493e0f85e..00000000000 --- a/inception/inception-kb/src/main/resources/de/tudarmstadt/ukp/inception/kb/pre-defined-knowledge-bases/wine.rdf +++ /dev/null @@ -1,4263 +0,0 @@ - - - - - - subClassOf - subClassOf - - - - - type - type - - - - - label - label - http://www.w3.org/2001/XMLSchema#string - - - - - comment - comment - http://www.w3.org/2001/XMLSchema#string - - - - - subPropertyOf - subPropertyOf - - - - - - - - - - - Medium - - - - - - - - - - - Wine Body - - - - - - - Full - - - - - - - - - - - - OffDry - - - - - - - - has sugar - - - - - - - - Wine Sugar - - - - - - - Dry - - - - - - Sweet - - - - - - has wine descriptor - - - - - - - - - - - - - CabernetFrancGrape - - - - - - - - - - - Wine Grape - - - - - - MalbecGrape - - - - - - - - - - - - - - - SaucelitoCanyon - - - - - - - - - - Winery - - - - - SchlossRothermel - - - - - - - - - - - - - - - - - - - - - - - - - Bancroft - - - - - - - - - - - - - - - - - White - - - - - - has color - - - - - - - - - WineColor - - - - - - - - - - - - - - - wine - vin - - - - - - - - - - - 1 - - - - - made from grape - - - - - - - - - - - - - - - - - - - Moderate - - - - - - - - - - - - - - - - PauillacRegion - - - - - - - - - - - - - Region - - - - - MedocRegion - - - - - - - - - - - - - - - - - Wine Flavor - - - - - - - Strong - - - - - - - - - - - - - - - - - - - - - - - - - - - - has flavor - - - - - - - - - - - - - - - - - - PetiteVerdotGrape - - - - - - - - - - - MerlotGrape - - - - - - - - - - - - - Late Harvest - - - - - - - - - - - - - - - - - - - - - - - - - Early Harvest - - - - - - - Dessert Wine - - - - - - - - - - - - - - - - BordeauxRegion - - - - - - FrenchRegion - - - - - - - - - - - - - - - - - - - - Forman - - - - - - - - - - GaryFarrell - - - - - - - - - - SchlossVolrad - - - - - - - - - - - - - - - - - - - - - - Red - - - - - - - - - - Dry Wine - - - - - - - - - - - - - - - - White Wine - - - - - made from fruid - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Light - - - - - - - - - - - - - - - - - - - - - - has body - - - - - - - - - - - - - - CheninBlancGrape - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - 1 - - - - - - 1 - - - - - - 1 - - - - - - - - - - - - 1 - - - - - - - - - - - - 1 - - - - Potable Liquid - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Medoc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SemillonGrape - - - - - - - - - - - SauvignonBlancGrape - - - - - - - - - - - - - - - - - - - - - Elyse - - - - - - - - - - Forman - - - - - - - - - - - - - - - - StGenevieve - - - - - - - - - - Stonleigh - - - - - - - - - - - - - - - - - - - - Wine Descriptor - Made WineDescriptor unionType of tastes and color - - - - - - - - - - - Taylor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DAnjou - - - - - - - - - - - - - - - - Table Wine - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - PinotNoirGrape - - - - - - - - - - Bordeaux - Bordeaux - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GamayGrape - - - - - - - - - - - SangioveseGrape - - - - - - - - - - - - - - - - - - - - - - - - - - PinotBlancGrape - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Burgundy - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ItalianRegion - - - - - Ventana - - - - - - - - - - WhitehallLane - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - Wine Taste - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Riesling - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - McGuinnesso - - - - - - - - - - MountEdenVineyard - - - - - - - - - - - - - - - - PortugalRegion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Delicate - - - - - - - - - - PetiteSyrahGrape - - - - - - 1 - - - - - - - - - - - - CabernetSauvignonGrape - - - - - - - - - - Loire - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RedWine - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - BeaujolaisRegion - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - ToursRegion - - - - - - LoireRegion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MargauxRegion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - Semillon Or Sauvignon Blanc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PeterMccoy - - - - - - - - - - PulignyMontrachet - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - ZinfandelGrape - - - - - - - - - - - AlsaceRegion - - - - - - - - - - - - - - - - - - - - - - MeursaultRegion - - - - - - - - - - - - - - - - - - - - - - BourgogneRegion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - Mountadam - - - - - - - - - - - - - - - - - - - - - ChateauDeMeursault - - - - - - - - - - ChateauLafiteRothschild - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - LaneTanner - - - - - - - - - - Longridge - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - KalinCellars - - - - - - - - - - KathrynKennedy - - - - - - - - - - - CotesDOrRegion - - - - - - ChateauMargauxWinery - - - - - - - - - - - 1 - - - - - - - - - - - - Vintage Year - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SantaCruzMountainVineyard - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - TexasRegion - - - - - - USRegion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GermanyRegion - - - - - - - - - - - StEmilionRegion - - - - - - - - - - - - - - - - - - Rose - - - - - - - - - - - SeanThackrey - - - - - - - - - - Selaks - - - - - - - - - - - - - - - - AnjouRegion - - - - - - - - - - - - - - - - - - - - - - - ChiantiRegion - - - - - - - - - - - - - - - - - - - - - - - SancerreRegion - - - - - - - - - - - - - - - - - PageMillWinery - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - CaliforniaRegion - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - Red Burgundy - - - - - - - - - - - - - - - - SevreEtMaine - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SauternesRegion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ClosDeVougeot - - - - - - - - - - CongressSprings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - ChateauChevalBlanc - - - - - - - - - - ChateauDYchem - - - - - RieslingGrape - - - - - - - - - - - - - - - - - - - - ChateauMorgon - - - - - - - - - - ClosDeLaPoussie - - - - - - 1 - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MuscadetRegion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ChardonnayGrape - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Marietta - - - - - - - - - - - - - - - - - - - - - - - - - - CortonMontrachet - - - - - - - - - - Cotturi - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Corbans - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - White Burgundy - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Grape - - - - - Wine Ontology - An example OWL ontology - Derived from the DAML Wine ontology at - http://ontolingua.stanford.edu/doc/chimaera/ontologies/wines.daml - Substantially changed, in particular the Region based relations. - - - - - - - - Alsatian Wine - - - - - - American Wine - - - - - - - - - - Anjou - - - - - - ArroyoGrandeRegion - - - - - - AustralianRegion - - - - - BancroftChardonnay - - - - - - - - - - - - - Chardonnay - Chardonnay - - - - - - NapaRegion - - - - - - - - - - - - Beaujolais - Beaujolais - - - - - - Beringer - - - - - - - - - Cabernet Franc - - - - - - - - - - Cabernet Sauvignon - Cabernet Sauvignon - - - - - - California Wine - - - - - - CentralCoastRegion - - - - - - CentralTexasRegion - - - - - - ChateauChevalBlancStEmilion - - - - - - - - - - St. Emilion - - - - - - ChateauDYchemSauterne - - - - - - - - - - - - - - Sauternes - - - - - ChateauDeMeursaultMeursault - - - - - - - - Meursalt - - - - - - ChateauLafiteRothschildPauillac - - - - - - - - - - Pauillac - - - - - - ChateauMargaux - - - - - - - - - Margaux - - - - - - ChateauMorgonBeaujolais - - - - - - - - - - Chenin Blanc - - - - - - - - - - - - - Chianti - - - - - Italian Wine - - - - - - ChiantiClassico - - - - - - - ClosDeLaPoussieSancerre - - - - - - - - - - - Sancerre - - - - - - ClosDeVougeotCotesDOr - - - - - - - Cotes-d'Or - - - - - - CongressSpringsSemillon - - - - - - - - - Semillon - - - - - - CorbansDryWhiteRiesling - - - - - - - - - - NewZealandRegion - - - - - CorbansPrivateBinSauvignonBlanc - - - - - - - - - - Sauvignon Blanc - - - - - - CorbansSauvignonBlanc - - - - - - - - - - CortonMontrachetWhiteBurgundy - - - - - - - - - CotturiZinfandel - - - - - - - - - - - - - - Zinfandel - - - - - - SonomaRegion - - - - - - Dry Red Wine - - - - - - - - - Dry Riesling - - - - - - Dry White Wine - - - - - - EdnaValleyRegion - - - - - - ElyseZinfandel - - - - - - - - - - FormanCabernetSauvignon - - - - - - - - - - FormanChardonnay - - - - - - - - - - FoxenCheninBlanc - - - - - - - - - - SantaBarbaraRegion - - - - - - French Wine - - - - - - Full Bodied Wine - - - - - - Gamay - - - - - - GaryFarrellMerlot - - - - - - - - - - - - - - Merlot - - - - - - German Wine - - - - - - Handley - - - - - - - Ice Wine - - - - - - KalinCellarsSemillon - - - - - - - - - KathrynKennedyLateral - - - - - - - - - - Meritage - - - - - - LaneTannerPinotNoir - - - - - - - - - - - PinotNoir - - - - - - LongridgeMerlot - - - - - - - - - - MariettaCabernetSauvignon - - - - - - - - - - MariettaOldVinesRed - - - - - - - - - - Red Table Wine - - - - - - MariettaPetiteSyrah - - - - - - - - - - - - - - Petite Syrah - - - - - - MariettaZinfandel - - - - - - - - - - MendocinoRegion - - - - - - - - - - - - - - MountEdenVineyardEdnaValleyChardonnay - - - - - - - - - - MountEdenVineyardEstatePinotNoir - - - - - - - - - - MountadamChardonnay - - - - - - - - - - SouthAustraliaRegion - - - - - - MountadamPinotNoir - - - - - - - - - - MountadamRiesling - - - - - - - - - - - - - - - Muscadet - - - - - - PageMillWineryCabernetSauvignon - - - - - - - - - - PeterMccoyChardonnay - - - - - - - - - - - PinotBlanc - - - - - - - - - - - Port - - - - - PulignyMontrachetWhiteBurgundy - - - - - - - - - - Red Bordeaux - - - - - - RoseDAnjou - - - - - - Rose Wine - - - - - - SantaCruzMountainVineyardCabernetSauvignon - - - - - - - - - - SantaCruzMountainsRegion - - - - - - SaucelitoCanyonZinfandel - - - - - - - - - - SaucelitoCanyonZinfandel1998 - - - - - - - - - - - Year1998 - 1998 - - - - - - - - - - - SchlossRothermelTrochenbierenausleseRiesling - - - - - - - - - - - - - Sweet Riesling - - - - - - SchlossVolradTrochenbierenausleseRiesling - - - - - - - - - - SeanThackreySiriusPetiteSyrah - - - - - - - - - - SelaksIceWine - - - - - - - - - - SelaksSauvignonBlanc - - - - - - - - - - SevreEtMaineMuscadet - - - - - - StGenevieveTexasWhite - - - - - - - - - StonleighSauvignonBlanc - - - - - - - - - - Sweet Wine - - - - - - TaylorPort - - - - - - Texas Wine - - - - - - - - Tours - - - - - - VentanaCheninBlanc - - - - - - - - - - - White Bordeaux - - - - - - - White Loire - - - - - - White Non-Sweet Wine - - - - - - White Table Wine - - - - - - WhitehallLaneCabernetFranc - - - - - - - - - - WhitehallLanePrimavera - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/inception/inception-kb/src/main/resources/de/tudarmstadt/ukp/inception/kb/yaml/knowledgebase-profiles.yaml b/inception/inception-kb/src/main/resources/de/tudarmstadt/ukp/inception/kb/yaml/knowledgebase-profiles.yaml index e5eacc25ec4..3d0d0dcaee4 100644 --- a/inception/inception-kb/src/main/resources/de/tudarmstadt/ukp/inception/kb/yaml/knowledgebase-profiles.yaml +++ b/inception/inception-kb/src/main/resources/de/tudarmstadt/ukp/inception/kb/yaml/knowledgebase-profiles.yaml @@ -389,32 +389,6 @@ zbw-gnd: # # ################################################################################################## -wine_ontology: - name: Wine Ontology - type: LOCAL - default-language: en - access: - access-url: classpath:de/tudarmstadt/ukp/inception/kb/pre-defined-knowledge-bases/wine.rdf - full-text-search: http://www.openrdf.org/contrib/lucenesail#matches - mapping: - class: http://www.w3.org/2002/07/owl#Class - subclass-of: http://www.w3.org/2000/01/rdf-schema#subClassOf - instance-of: http://www.w3.org/1999/02/22-rdf-syntax-ns#type - label: http://www.w3.org/2000/01/rdf-schema#label - property-type: http://www.w3.org/1999/02/22-rdf-syntax-ns#Property - description: http://www.w3.org/2000/01/rdf-schema#comment - property-label: http://www.w3.org/2000/01/rdf-schema#label - property-description: http://www.w3.org/2000/01/rdf-schema#comment - subproperty-of: http://www.w3.org/2000/01/rdf-schema#subPropertyOf - deprecation-property: http://www.w3.org/2002/07/owl#deprecated - info: - description: | - An example OWL ontology. Derived from the DAML Wine ontology at - http://ontolingua.stanford.edu/doc/chimaera/ontologies/wines.daml - host-institution-name: "-" - author-name: "-" - website-url: https://www.w3.org/TR/owl-guide/wine.rdf - olia_penn.owl: name: OLiA - Penn Treebank tagset (morphosyntax) type: LOCAL diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplIntegrationTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplIntegrationTest.java index 9e8c28e37c3..48433c0cdba 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplIntegrationTest.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplIntegrationTest.java @@ -21,12 +21,17 @@ import static java.util.Arrays.asList; import static java.util.stream.Collectors.toList; import static org.assertj.core.api.Assertions.assertThat; +import static java.nio.charset.StandardCharsets.UTF_8; +import static org.assertj.core.api.Assertions.catchThrowable; +import static org.assertj.core.api.Assertions.tuple; import static org.assertj.core.api.Assertions.assertThatCode; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; import static org.junit.jupiter.api.Assumptions.assumeFalse; import java.io.File; +import java.nio.file.Files; +import java.io.ByteArrayInputStream; import java.io.InputStream; import java.net.URI; import java.util.ArrayList; @@ -38,6 +43,7 @@ import java.util.function.Predicate; import java.util.stream.Stream; +import org.apache.commons.lang3.exception.ExceptionUtils; import org.eclipse.rdf4j.model.IRI; import org.eclipse.rdf4j.model.Statement; import org.eclipse.rdf4j.model.vocabulary.OWL; @@ -65,6 +71,7 @@ import de.tudarmstadt.ukp.inception.kb.graph.KBProperty; import de.tudarmstadt.ukp.inception.kb.graph.KBStatement; import de.tudarmstadt.ukp.inception.kb.model.KnowledgeBase; +import de.tudarmstadt.ukp.inception.kb.querybuilder.SPARQLQueryBuilder; import de.tudarmstadt.ukp.inception.kb.reification.Reification; import de.tudarmstadt.ukp.inception.kb.util.TestFixtures; import de.tudarmstadt.ukp.inception.kb.yaml.KnowledgeBaseProfile; @@ -79,6 +86,10 @@ "de.tudarmstadt.ukp.clarin.webanno.model" }) public class KnowledgeBaseServiceImplIntegrationTest { + private static final String STREAMS_NS = "http://mrklie.com/schemas/streams#"; + private static final String TAGSET_NS = "http://example.org/test/tagset#"; + private static final String OBO_NS = "http://purl.obolibrary.org/obo/"; + private static final String PROJECT_NAME = "Test project"; private static final String KB_NAME = "Test knowledge base"; @@ -1574,126 +1585,146 @@ public void listStatements_WithNonexistentStatementAndAll_ShouldRetuenAllStateme @ParameterizedTest(name = "Reification = {0}") @MethodSource("data") - public void getConceptRoots_WithWildlifeOntology_ShouldReturnRootConcepts( + public void getConceptRoots_WithLibraryOntology_ShouldReturnRootConcepts( Reification reification) throws Exception { setUp(reification); - sut.registerKnowledgeBase(kb, sut.getNativeConfig()); - importKnowledgeBase("data/wildlife_ontology.ttl"); + importKnowledgeBase("data/library_ontology.ttl"); setSchema(kb, OWL.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, RDF.PROPERTY); var rootConcepts = sut.listRootConcepts(kb, false); + // The external Collection class is only used as a superclass and has no label assertThat(rootConcepts) // .as("Check that all root concepts have been found") .usingRecursiveFieldByFieldElementComparatorOnFields("identifier", "name") .containsExactlyInAnyOrder( - new KBHandle("http://purl.org/ontology/wo/Adaptation", "Adaptation"), - new KBHandle("http://purl.org/ontology/wo/AnimalIntelligence", - "Animal Intelligence"), - new KBHandle("http://purl.org/dc/dcmitype/Collection", null), - new KBHandle("http://purl.org/ontology/wo/ConservationStatus", - "Conservation Status"), - new KBHandle("http://purl.org/ontology/wo/Ecozone", "Ecozone"), - new KBHandle("http://purl.org/ontology/wo/Habitat", "Habitat"), - new KBHandle("http://purl.org/ontology/wo/RedListStatus", - "Red List Status"), - new KBHandle("http://purl.org/ontology/wo/TaxonName", "Taxon Name"), - new KBHandle("http://purl.org/ontology/wo/TaxonRank", "Taxonomic Rank")); + new KBHandle("http://example.org/test/library#Agent", "Agent"), + new KBHandle("http://example.org/test/library#Work", "Work"), + new KBHandle("http://example.org/test/library#Place", "Place"), + new KBHandle("http://example.org/test/library#Subject", "Subject"), + new KBHandle("http://example.org/test/external#Collection", null)); } @ParameterizedTest(name = "Reification = {0}") @MethodSource("data") - public void getConceptRoots_WithWildlifeOntologyAndExplicityDefinedConcepts_ShouldReturnRootConcepts( + public void getConceptRoots_WithLibraryOntologyAndExplicitlyDefinedConcepts_ShouldReturnRootConcepts( Reification reification) throws Exception { setUp(reification); - sut.registerKnowledgeBase(kb, sut.getNativeConfig()); kb.setDefaultLanguage("en"); - kb.setRootConcepts(asList("http://purl.org/ontology/wo/AnimalIntelligence", - "http://purl.org/ontology/wo/Ecozone")); + kb.setRootConcepts(asList("http://example.org/test/library#Agent", + "http://example.org/test/library#Place")); sut.updateKnowledgeBase(kb); - - importKnowledgeBase("data/wildlife_ontology.ttl"); + importKnowledgeBase("data/library_ontology.ttl"); setSchema(kb, OWL.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, RDF.PROPERTY); var rootConcepts = sut.listRootConcepts(kb, false).stream().map(KBHandle::getName); - String[] expectedLabels = { "Animal Intelligence", "Ecozone" }; - assertThat(rootConcepts).as("Check that all root concepts have been found") - .containsExactlyInAnyOrder(expectedLabels); + assertThat(rootConcepts).as("Check that only the explicitly defined roots have been found") + .containsExactlyInAnyOrder("Agent", "Place"); } @ParameterizedTest(name = "Reification = {0}") @MethodSource("data") - public void getConceptRoots_WithSparqlPlayground_ReturnsOnlyRootConcepts( - Reification reification) + public void getConceptRoots_WithStreams_ReturnsOnlyRootConcepts(Reification reification) throws Exception { setUp(reification); sut.registerKnowledgeBase(kb, sut.getNativeConfig()); - importKnowledgeBase("data/sparql_playground.ttl"); + importKnowledgeBase("data/streams.ttl"); setSchema(kb, RDFS.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, RDF.PROPERTY); - Stream childConcepts = sut.listRootConcepts(kb, false).stream() - .map(KBHandle::getName); - - String[] expectedLabels = { "creature" }; - assertThat(childConcepts).as("Check that only root concepts") - .containsExactlyInAnyOrder(expectedLabels); + // The data also contains instances and an implicitly declared subclass, neither of + // which may show up as a root + var rootConcepts = sut.listRootConcepts(kb, false).stream().map(KBHandle::getName); + assertThat(rootConcepts).as("Check that only root concepts have been found") + .containsExactlyInAnyOrder("InputStream", "OutputStream"); } @ParameterizedTest(name = "Reification = {0}") @MethodSource("data") - public void getChildConcepts_WithSparqlPlayground_ReturnsAnimals(Reification reification) + public void getChildConcepts_WithStreams_ReturnsOnlyImmediateChildren(Reification reification) throws Exception { setUp(reification); sut.registerKnowledgeBase(kb, sut.getNativeConfig()); - importKnowledgeBase("data/sparql_playground.ttl"); + importKnowledgeBase("data/streams.ttl"); + KBConcept concept = sut.readConcept(kb, "http://mrklie.com/schemas/streams#input", true) + .get(); setSchema(kb, RDFS.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, RDF.PROPERTY); - KBConcept concept = sut.readConcept(kb, "http://example.org/tuto/ontology#Animal", true) - .get(); Stream childConcepts = sut.listChildConcepts(kb, concept.getIdentifier(), false) .stream().map(KBHandle::getName); - String[] expectedLabels = { "cat", "dog", "monkey" }; - assertThat(childConcepts).as("Check that all child concepts have been found") + String[] expectedLabels = { "ByteArrayInputStream", "FileInputStream", "FilterInputStream", + "ObjectInputStream", "PipedInputStream", "SequenceInputStream", + "StringBufferInputStream" }; + assertThat(childConcepts).as("Check that all immediate child concepts have been found") .containsExactlyInAnyOrder(expectedLabels); } @ParameterizedTest(name = "Reification = {0}") @MethodSource("data") - public void getChildConcepts_WithStreams_ReturnsOnlyImmediateChildren(Reification reification) + public void getChildConcepts_WithStreams_IncludesImplicitClassesButNoInstances( + Reification reification) throws Exception { setUp(reification); sut.registerKnowledgeBase(kb, sut.getNativeConfig()); importKnowledgeBase("data/streams.ttl"); - KBConcept concept = sut.readConcept(kb, "http://mrklie.com/schemas/streams#input", true) - .get(); setSchema(kb, RDFS.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, RDF.PROPERTY); - Stream childConcepts = sut.listChildConcepts(kb, concept.getIdentifier(), false) + assertThat(sut.listChildConcepts(kb, STREAMS_NS + "filteroutput", false)) // + .as("Check that a class declared only implicitly is a child") // + .extracting(KBHandle::getName) // + .containsExactly("CheckedOutputStream"); + assertThat(sut.listChildConcepts(kb, STREAMS_NS + "checkedoutput", false)) // + .extracting(KBHandle::getName) // + .containsExactly("VerifiedOutputStream"); + assertThat(sut.listChildConcepts(kb, STREAMS_NS + "bufferedinput", false)) // + .as("Check that an instance is not a child concept") // + .isEmpty(); + } + + @ParameterizedTest(name = "Reification = {0}") + @MethodSource("data") + public void getParentConceptList_WithStreams_ReturnsAllAncestors(Reification reification) + throws Exception + { + setUp(reification); + + sut.registerKnowledgeBase(kb, sut.getNativeConfig()); + importKnowledgeBase("data/streams.ttl"); + setSchema(kb, RDFS.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, + RDF.PROPERTY); + + var parents = sut + .getParentConceptList(kb, "http://mrklie.com/schemas/streams#bufferedinput", false) .stream().map(KBHandle::getName); + assertThat(parents).as("Check that the direct and the indirect parent have been found") + .containsExactlyInAnyOrder("FilterInputStream", "InputStream"); - String[] expectedLabels = { "ByteArrayInputStream", "FileInputStream", "FilterInputStream", - "ObjectInputStream", "PipedInputStream", "SequenceInputStream", - "StringBufferInputStream" }; - assertThat(childConcepts).as("Check that all immediate child concepts have been found") - .containsExactlyInAnyOrder(expectedLabels); + var rootParents = sut.getParentConceptList(kb, "http://mrklie.com/schemas/streams#input", + false); + assertThat(rootParents).as("Check that a root concept has no parents").isEmpty(); + + var instanceParents = sut.getParentConceptList(kb, STREAMS_NS + "systemin", false).stream() + .map(KBHandle::getName); + assertThat(instanceParents).as("Check that the classes of an instance are its parents") + .containsExactlyInAnyOrder("BufferedInputStream", "FilterInputStream", + "InputStream"); } @ParameterizedTest(name = "Reification = {0}") @@ -1983,13 +2014,79 @@ public void checkIfKBIsEnabledById_WithDisabledKBAndNonExistingId_ShouldReturnFa .isFalse(); } + @Test + public void importKnowledgeBase_RdfXmlWithInternalDoctypeEntities() throws Exception + { + setUp(Reification.NONE); + sut.registerKnowledgeBase(kb, sut.getNativeConfig()); + importKnowledgeBase("data/tagset_custom_label.rdf"); + setSchema(kb, OWL.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, RDF.PROPERTY); + + // The IRIs are written using the entities, so they must have been expanded + assertThat(sut.listInstances(kb, TAGSET_NS + "CommonNoun", false)) // + .extracting(KBHandle::getIdentifier, KBHandle::getName) // + .containsExactlyInAnyOrder( // + tuple(TAGSET_NS + "NN", "Singular common noun"), // + tuple(TAGSET_NS + "NNS", "Plural common noun")); + } + + @Test + public void importKnowledgeBase_RdfXmlWithExternalEntity_DoesNotExpandIt() throws Exception + { + setUp(Reification.NONE); + sut.registerKnowledgeBase(kb, sut.getNativeConfig()); + + var canary = "TOP-SECRET-XXE-CANARY"; + var secretFile = new File(temporaryFolder, "secret.txt"); + Files.writeString(secretFile.toPath(), canary, UTF_8); + + var rdf = """ + + ]> + + + &xxe; + + + """.formatted(secretFile.toURI()); + + // Rejecting the document is fine. What must never happen is that the file contents + // make it into the knowledge base or into an error message. + var thrown = catchThrowable(() -> { + try (var is = new ByteArrayInputStream(rdf.getBytes(UTF_8))) { + sut.importData(kb, "xxe.rdf", is); + } + }); + + var statements = sut.read(kb, conn -> { + try (var stmts = conn.getStatements(null, null, null)) { + return stmts.stream().toList(); + } + }); + assertThat(statements) // + .extracting(stmt -> stmt.getObject().stringValue()) // + .noneMatch(value -> value.contains(canary)); + + if (thrown != null) { + assertThat(ExceptionUtils.getStackTrace(thrown)).doesNotContain(canary); + } + else { + assertThat(statements) // + .as("Check that the rest of the document has been imported") // + .extracting(stmt -> stmt.getSubject().stringValue()) // + .contains("http://example.org/test/xxe#thing"); + } + } + @Test public void importKnowledgeBase_OBO() throws Exception { setUp(Reification.NONE); sut.registerKnowledgeBase(kb, sut.getNativeConfig()); - importKnowledgeBase("data/example1.obo"); - assertThat(sut.getIndexSize(kb)).isGreaterThan(30000); + importKnowledgeBase("data/example.obo"); + + assertThatOboExampleHasBeenImported(); } @Test @@ -1997,8 +2094,9 @@ public void importKnowledgeBase_OBO_gzip() throws Exception { setUp(Reification.NONE); sut.registerKnowledgeBase(kb, sut.getNativeConfig()); - importKnowledgeBase("data/example1.obo.gz"); - assertThat(sut.getIndexSize(kb)).isGreaterThan(30000); + importKnowledgeBase("data/example.obo.gz"); + + assertThatOboExampleHasBeenImported(); } @ParameterizedTest(name = "Reification = {0}") @@ -2240,6 +2338,55 @@ private boolean hasImplicitNamespace(KBObject handle) .anyMatch(ns -> handle.getIdentifier().startsWith(ns)); } + private void assertThatOboExampleHasBeenImported() + { + setSchema(kb, OWL.CLASS, RDFS.SUBCLASSOF, RDF.TYPE, RDFS.COMMENT, RDFS.LABEL, RDF.PROPERTY); + + var concepts = sut.listAllConcepts(kb, false); + assertThat(concepts) // + .as("Check that all terms have been imported, obsolete ones as deprecated") + .extracting(KBHandle::getIdentifier, KBHandle::getName, KBHandle::isDeprecated) // + .containsExactlyInAnyOrder( // + tuple(OBO_NS + "INCTEST_0000001", "plant part", false), // + tuple(OBO_NS + "INCTEST_0000002", "root", false), // + tuple(OBO_NS + "INCTEST_0000003", "leaf", false), // + tuple(OBO_NS + "INCTEST_0000004", "shoot system", false), // + tuple(OBO_NS + "INCTEST_0000006", "stem", false), // + tuple(OBO_NS + "INCTEST_0000005", "obsolete plant organ", true), + // The alt_id of "root" becomes a deprecated class without a label + tuple(OBO_NS + "INCTEST_0000020", null, true)); + + assertThat(sut.listRootConcepts(kb, false)) // + .as("Check that the is_a hierarchy has been imported") // + .extracting(KBHandle::getIdentifier) // + .containsExactlyInAnyOrder(OBO_NS + "INCTEST_0000001", OBO_NS + "INCTEST_0000005", + OBO_NS + "INCTEST_0000020"); + assertThat(sut.listChildConcepts(kb, OBO_NS + "INCTEST_0000001", false)) // + .extracting(KBHandle::getName) // + .containsExactlyInAnyOrder("root", "leaf", "shoot system", "stem"); + + var root = concepts.stream().filter(c -> "root".equals(c.getName())).findFirst().get(); + assertThat(sut.listStatements(kb, root, true)) // + .as("Check that synonyms, including non-ASCII ones, have been imported") // + .extracting(stmt -> String.valueOf(stmt.getValue())) // + .contains("Wurzel", "根", "taproot"); + + var shootSystem = concepts.stream().filter(c -> "shoot system".equals(c.getName())) + .findFirst().get(); + assertThat(sut.listStatements(kb, shootSystem, true)) // + .extracting(stmt -> String.valueOf(stmt.getValue())) // + .contains("Sprossachse (grün)"); + + // The label search uses the full text index, so this checks that it has been built + var hits = sut.read(kb, conn -> SPARQLQueryBuilder.forItems(kb) // + .withPrefLabelProperties(SPARQLQueryBuilder.forItems(kb) // + .resolvePrefLabelProperties(conn)) // + .withLabelStartingWith("shoot") // + .retrieveLabel() // + .asHandles(conn, true)); + assertThat(hits).extracting(KBHandle::getName).containsExactly("shoot system"); + } + private void importKnowledgeBase(String resourceName) throws Exception { ClassLoader classLoader = getClass().getClassLoader(); diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplWikiDataIntegrationTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplWikiDataIntegrationTest.java index 4bd42eb67c8..52b3dd73449 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplWikiDataIntegrationTest.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceImplWikiDataIntegrationTest.java @@ -145,10 +145,12 @@ public void readConcept_WithExistentConcept_ShouldReturnResult(Reification reifi { setUp(reification); - Optional concept = sut.readConcept(kb, "http://www.wikidata.org/entity/Q171644", + // Q11344 is "chemical element", a long-established class with stable subclasses + Optional concept = sut.readConcept(kb, "http://www.wikidata.org/entity/Q11344", true); + assertThat(concept).as("Check that the concept exists").isPresent(); assertThat(concept.get().getName()).as("Check that concept has the same UI label") - .isIn("12 Hours of Reims"); + .isEqualTo("chemical element"); } @ParameterizedTest(name = "Reification = {0}") @@ -158,12 +160,14 @@ public void listChildConcept_WithExistentConcept_ShouldReturnResult(Reification { setUp(reification); - List concept = sut.listChildConcepts(kb, "http://www.wikidata.org/entity/Q171644", + List children = sut.listChildConcepts(kb, "http://www.wikidata.org/entity/Q11344", true); - assertThat(concept.iterator().next().getUiLabel()) - .as("Check that concept has the same UI label") - .isIn("12-Stunden-Rennen von Reims 1965", "1965 12 Hours of Reims"); + assertThat(children).as("Check that well-established subclasses are found") + .extracting(KBHandle::getIdentifier) // + .contains("http://www.wikidata.org/entity/Q19609", // noble gases + "http://www.wikidata.org/entity/Q19605", // halogens + "http://www.wikidata.org/entity/Q19577"); // actinide } @ParameterizedTest(name = "Reification = {0}") diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceRemoteTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceRemoteTest.java index d1ca22ec9ce..413b9711fdb 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceRemoteTest.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseServiceRemoteTest.java @@ -63,6 +63,8 @@ import de.tudarmstadt.ukp.inception.kb.graph.KBProperty; import de.tudarmstadt.ukp.inception.kb.model.KnowledgeBase; import de.tudarmstadt.ukp.inception.kb.util.TestFixtures; +import de.tudarmstadt.ukp.inception.kb.reification.Reification; +import de.tudarmstadt.ukp.inception.kb.yaml.KnowledgeBaseMapping; import de.tudarmstadt.ukp.inception.kb.yaml.KnowledgeBaseProfile; @Tag("slow") @@ -217,12 +219,9 @@ public static List data() throws Exception var kbList = new ArrayList(); - // Wine ontology: LOCAL KB - fromProfile strips the classpath: prefix from the access URL - // and uses it as a classpath resource path for import. Root concepts must be specified - // explicitly since the profile does not define any. - kbList.add(TestConfiguration.fromProfile(PROFILES.get("wine_ontology"), - "http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#ChateauMargaux", maxResults, - Set.of("http://www.w3.org/TR/2003/PR-owl-guide-20031209/food#Grape"))); + // A local knowledge base, so that the local code path is covered and that at least one + // configuration runs without network access + kbList.add(localLibraryOntology(maxResults)); kbList.add(TestConfiguration.fromProfile(PROFILES.get("wikidata"), "http://www.wikidata.org/entity/Q5", maxResults)); @@ -257,6 +256,27 @@ public static List data() throws Exception // Helper + private static TestConfiguration localLibraryOntology(int aMaxResults) + { + var kb = new KnowledgeBase(); + kb.setName("Library ontology (local)"); + kb.setType(LOCAL); + kb.setReification(Reification.NONE); + kb.setFullTextSearchIri(IriConstants.FTS_RDF4J_LUCENE.stringValue()); + kb.applyMapping(new KnowledgeBaseMapping(OWL.CLASS.stringValue(), + RDFS.SUBCLASSOF.stringValue(), RDF.TYPE.stringValue(), + RDFS.SUBPROPERTYOF.stringValue(), RDFS.COMMENT.stringValue(), + RDFS.LABEL.stringValue(), RDF.PROPERTY.stringValue(), RDFS.LABEL.stringValue(), + RDFS.COMMENT.stringValue(), OWL.DEPRECATED.stringValue())); + kb.setMaxResults(aMaxResults); + + return new TestConfiguration("data/library_ontology.ttl", kb, + "http://example.org/test/library#Book", + Set.of("http://example.org/test/library#Agent", + "http://example.org/test/library#Work"), + Map.of()); + } + private void importKnowledgeBase(KnowledgeBase aKnowledgeBase, String resourceName) throws Exception { diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseSubPropertyLabelTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseSubPropertyLabelTest.java index 228344ad15c..2f32181c861 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseSubPropertyLabelTest.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/KnowledgeBaseSubPropertyLabelTest.java @@ -30,6 +30,9 @@ import java.util.stream.Collectors; import org.eclipse.rdf4j.model.impl.SimpleValueFactory; +import org.eclipse.rdf4j.model.vocabulary.OWL; +import org.eclipse.rdf4j.model.vocabulary.RDF; +import org.eclipse.rdf4j.model.vocabulary.RDFS; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; @@ -58,6 +61,7 @@ import de.tudarmstadt.ukp.inception.kb.model.KnowledgeBase; import de.tudarmstadt.ukp.inception.kb.reification.Reification; import de.tudarmstadt.ukp.inception.kb.util.TestFixtures; +import de.tudarmstadt.ukp.inception.kb.yaml.KnowledgeBaseMapping; import de.tudarmstadt.ukp.inception.kb.yaml.KnowledgeBaseProfile; import jakarta.persistence.EntityManager; @@ -164,7 +168,7 @@ public void readInstance_ShouldReturnInstanceWithSubPropertyLabel(Reification re public void readProperty_ShouldReturnPropertyWithSubPropertyLabel(Reification reification) throws IOException { - kb = buildLocalKnowledgeBase(project, "Wine", reification); + kb = buildLocalKnowledgeBase(project, "Local", reification); sut.registerKnowledgeBase(kb, sut.getNativeConfig()); KBProperty subpropertylabel = createSubPropertyLabel(kb); @@ -210,20 +214,21 @@ private KnowledgeBase buildRemoteKnowledgeBase(Project aProject, String aName, private KnowledgeBase buildLocalKnowledgeBase(Project aProject, String aName, Reification aReification) - throws IOException { - PROFILES = readKnowledgeBaseProfiles(); - KnowledgeBase wine = new KnowledgeBase(); - wine.setProject(aProject); - wine.setName(aName); - wine.setType(RepositoryType.LOCAL); - wine.applyMapping(PROFILES.get("wine_ontology").getMapping()); - wine.applyRootConcepts(PROFILES.get("wine_ontology")); - wine.setReification(aReification); - wine.setDefaultLanguage("en"); - wine.setMaxResults(1000); - - return wine; + var local = new KnowledgeBase(); + local.setProject(aProject); + local.setName(aName); + local.setType(RepositoryType.LOCAL); + local.applyMapping(new KnowledgeBaseMapping(OWL.CLASS.stringValue(), + RDFS.SUBCLASSOF.stringValue(), RDF.TYPE.stringValue(), + RDFS.SUBPROPERTYOF.stringValue(), RDFS.COMMENT.stringValue(), + RDFS.LABEL.stringValue(), RDF.PROPERTY.stringValue(), RDFS.LABEL.stringValue(), + RDFS.COMMENT.stringValue(), OWL.DEPRECATED.stringValue())); + local.setReification(aReification); + local.setDefaultLanguage("en"); + local.setMaxResults(1000); + + return local; } private KBProperty createSubPropertyLabel(KnowledgeBase aKB) diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/SPARQLQueryBuilderBenchmarkTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/SPARQLQueryBuilderBenchmarkTest.java index a5e77eb10d9..cc4f7520a4a 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/SPARQLQueryBuilderBenchmarkTest.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/SPARQLQueryBuilderBenchmarkTest.java @@ -529,7 +529,7 @@ private static String key(String aKbName, String aOperation) private void importKnowledgeBase(KnowledgeBase aKnowledgeBase, String aResource) throws Exception { - // LOCAL profiles either point at a bundled classpath resource (e.g. wine) or at a remote + // LOCAL profiles either point at a bundled classpath resource or at a remote // file to download once and import into the local repository (e.g. the OBO ontologies). if (aResource.startsWith("http://") || aResource.startsWith("https://") || aResource.startsWith("file:")) { @@ -554,14 +554,6 @@ public static List data() throws Exception var configs = new ArrayList(); - // LOCAL - Wine ontology (bundled as a classpath resource). Small, but included so the - // benchmark always produces at least one offline data point. - configs.add(BenchmarkConfiguration.fromProfile("wine_ontology", profiles) // - .parentForChildren("http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine") // - .leafForAncestors( - "http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#ChateauMargaux") // - .labelPrefix("Chateau")); - // LOCAL - Human Phenotype Ontology (downloaded as OWL and imported into a local repo). // A non-trivial, network-noise-free data set. configs.add(BenchmarkConfiguration.fromProfile("hpo", profiles) // @@ -570,8 +562,8 @@ public static List data() throws Exception .leafForAncestors("http://purl.obolibrary.org/obo/HP_0001250") // Seizure .labelPrefix("Abnormal")); - // LOCAL - Gene Ontology (GO-basic, downloaded as OWL and imported into a local repo). Much - // larger than the wine ontology, so a good large-but-local data point. + // LOCAL - Gene Ontology (GO-basic, downloaded as OWL and imported into a local repo). A + // good large-but-local data point. configs.add(BenchmarkConfiguration.fromProfile("go", profiles) // .parentForChildren("http://purl.obolibrary.org/obo/GO_0008150") // biological_process .leafForAncestors("http://purl.obolibrary.org/obo/GO_0006915") // apoptotic process diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/FusekiRepositoryTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/FusekiRepositoryTest.java index 5cef7568896..9edc18953dc 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/FusekiRepositoryTest.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/FusekiRepositoryTest.java @@ -107,7 +107,8 @@ private static List tests() throws Exception // These require additional configuration in Fuseki FTS "thatMatchingAgainstAdditionalSearchPropertiesWorks", // "testWithLabelMatchingExactlyAnyOf_subproperty", // - "testWithLabelStartingWith_OLIA", + "testWithLabelStartingWith_customLabelProperty", + "testWithLabelStartingWith_customLabelProperty_rdfXml", // Not sure why this one does not work "testWithLabelStartingWith_withLanguage_FTS_5", // This test returns one match term less than in the RDF4J case - not clear why diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilderLocalTestScenarios.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilderLocalTestScenarios.java index f89bcbb8ef5..370c7cd7e6b 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilderLocalTestScenarios.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilderLocalTestScenarios.java @@ -261,8 +261,10 @@ static List tests() throws Exception SPARQLQueryBuilderLocalTestScenarios::testWithLabelStartingWith_withLanguage_noFTS), new Scenario("testWithLabelContainingAnyOf_pets_ttl_noFTS", SPARQLQueryBuilderLocalTestScenarios::testWithLabelContainingAnyOf_pets_ttl_noFTS), - new Scenario("thatRootsCanBeRetrieved_ontolex", - SPARQLQueryBuilderLocalTestScenarios::thatRootsCanBeRetrieved_ontolex), + new Scenario("thatRootsCanBeRetrieved_owl", + SPARQLQueryBuilderLocalTestScenarios::thatRootsCanBeRetrieved_owl), + new Scenario("thatIntersectionClassIsChildOfItsOperands_owl", + SPARQLQueryBuilderLocalTestScenarios::thatIntersectionClassIsChildOfItsOperands_owl), new Scenario("testWithLabelContainingAnyOf_withLanguage_noFTS", SPARQLQueryBuilderLocalTestScenarios::testWithLabelContainingAnyOf_withLanguage_noFTS), new Scenario("testWithLabelMatchingAnyOf_withFallbackLanguages", @@ -349,8 +351,10 @@ static List tests() throws Exception SPARQLQueryBuilderLocalTestScenarios::thatItemQueryLimitedToChildrenDoesNotReturnOutOfScopeResults), new Scenario("thatItemQueryLimitedToDescendantsDoesNotReturnOutOfScopeResults", SPARQLQueryBuilderLocalTestScenarios::thatItemQueryLimitedToDescendantsDoesNotReturnOutOfScopeResults), - new Scenario("testWithLabelStartingWith_OLIA", - SPARQLQueryBuilderLocalTestScenarios::testWithLabelStartingWith_OLIA)); + new Scenario("testWithLabelStartingWith_customLabelProperty", + SPARQLQueryBuilderLocalTestScenarios::testWithLabelStartingWith_customLabelProperty), + new Scenario("testWithLabelStartingWith_customLabelProperty_rdfXml", + SPARQLQueryBuilderLocalTestScenarios::testWithLabelStartingWith_customLabelProperty_rdfXml)); } static class Scenario @@ -1378,12 +1382,13 @@ static void testWithLabelStartingWith_withLanguage_FTS_5(Repository aRepository, }); } - static void testWithLabelStartingWith_OLIA(Repository aRepository, KnowledgeBase aKB) + static void testWithLabelStartingWith_customLabelProperty(Repository aRepository, + KnowledgeBase aKB) throws Exception { - aKB.setLabelIri("http://purl.org/olia/system.owl#hasTag"); + aKB.setLabelIri("http://example.org/test/tagset#hasTag"); - importDataFromFile(aRepository, aKB, "src/test/resources/data/penn.owl"); + importDataFromFile(aRepository, aKB, "src/test/resources/data/tagset_custom_label.ttl"); var prefLabels = resolvePrefLabelProperties(aRepository, aKB); var results = asHandles(aRepository, SPARQLQueryBuilder // @@ -1391,6 +1396,7 @@ static void testWithLabelStartingWith_OLIA(Repository aRepository, KnowledgeBase .withPrefLabelProperties(prefLabels) // .withLabelStartingWith("N")); + // "Number" is only an rdfs:label, not a tag, so it must not match assertThat(results).extracting(KBHandle::getIdentifier).doesNotHaveDuplicates(); assertThat(results).isNotEmpty(); assertThat(results).extracting(KBHandle::getUiLabel).containsExactlyInAnyOrder("NN", "NNP", @@ -1419,11 +1425,10 @@ static void testWithLabelContainingAnyOf_pets_ttl_noFTS(Repository aRepository, .containsExactlyInAnyOrder(new KBHandle("http://mbugert.de/pets#socke", "Socke")); } - static void thatRootsCanBeRetrieved_ontolex(Repository aRepository, KnowledgeBase aKB) + static void thatRootsCanBeRetrieved_owl(Repository aRepository, KnowledgeBase aKB) throws Exception { - importDataFromFile(aRepository, aKB, - "src/test/resources/data/wordnet-ontolex-ontology.owl"); + importDataFromFile(aRepository, aKB, "src/test/resources/data/lexicon_ontology.ttl"); initOwlMapping(aKB); @@ -1432,10 +1437,62 @@ static void thatRootsCanBeRetrieved_ontolex(Repository aRepository, KnowledgeBas .roots() // .retrieveLabel()); - assertThat(results).isNotEmpty(); + // Excluded: subclasses, the intersection class "Noun", the instance "dog" and the class + // "Lemma", whose only superclass is an anonymous restriction. Included: the undeclared + // external class "Morpheme", which is only used as a superclass. + assertThat(results).extracting(KBHandle::getUiLabel).containsExactlyInAnyOrder( + "Lexical entry", "Sense", "Concept", "Part of speech", "Morpheme"); + } + + static void thatIntersectionClassIsChildOfItsOperands_owl(Repository aRepository, + KnowledgeBase aKB) + throws Exception + { + importDataFromFile(aRepository, aKB, "src/test/resources/data/lexicon_ontology.ttl"); + + initOwlMapping(aKB); + + for (var operand : List.of("http://example.org/test/lexicon#Word", + "http://example.org/test/lexicon#OpenClass")) { + var children = asHandles(aRepository, SPARQLQueryBuilder // + .forClasses(aKB) // + .childrenOf(operand) // + .retrieveLabel()); + + assertThat(children).as("Children of %s", operand) // + .extracting(KBHandle::getUiLabel) // + .containsExactly("Noun"); + } + + var ancestors = asHandles(aRepository, SPARQLQueryBuilder // + .forClasses(aKB) // + .ancestorsOf("http://example.org/test/lexicon#Noun") // + .retrieveLabel()); - assertThat(results).extracting(KBHandle::getUiLabel).contains("Adjective position", - "Lexical domain", "Part of speech", "Phrase type", "Synset"); + // Known limitation: owl:intersectionOf is followed only one step, so the superclasses of + // the operands ("Lexical entry", "Part of speech") are not returned as ancestors + assertThat(ancestors).extracting(KBHandle::getUiLabel) // + .containsExactlyInAnyOrder("Word", "Open class"); + } + + static void testWithLabelStartingWith_customLabelProperty_rdfXml(Repository aRepository, + KnowledgeBase aKB) + throws Exception + { + aKB.setLabelIri("http://example.org/test/tagset#hasTag"); + + // RDF/XML with internal DOCTYPE entities, which the import must accept + importDataFromFile(aRepository, aKB, "src/test/resources/data/tagset_custom_label.rdf"); + + var prefLabels = resolvePrefLabelProperties(aRepository, aKB); + var results = asHandles(aRepository, SPARQLQueryBuilder // + .forInstances(aKB) // + .withPrefLabelProperties(prefLabels) // + .withLabelStartingWith("N")); + + assertThat(results).extracting(KBHandle::getIdentifier).doesNotHaveDuplicates(); + assertThat(results).extracting(KBHandle::getUiLabel).containsExactlyInAnyOrder("NN", "NNP", + "NNPS", "NNS"); } static Set resolvePrefLabelProperties(Repository aRepository, KnowledgeBase aKB) diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/VirtuosoRepositoryTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/VirtuosoRepositoryTest.java index 5a08e7ab4e6..e33682f6821 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/VirtuosoRepositoryTest.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/VirtuosoRepositoryTest.java @@ -25,15 +25,21 @@ import static org.assertj.core.api.Assertions.assertThat; import java.io.IOException; +import java.io.InputStream; import java.lang.invoke.MethodHandles; import java.lang.reflect.Method; import java.util.List; import org.eclipse.rdf4j.model.impl.SimpleValueFactory; +import org.eclipse.rdf4j.model.Resource; import org.eclipse.rdf4j.repository.Repository; +import org.eclipse.rdf4j.repository.RepositoryConnection; +import org.eclipse.rdf4j.repository.RepositoryException; +import org.eclipse.rdf4j.repository.base.RepositoryConnectionWrapper; +import org.eclipse.rdf4j.repository.base.RepositoryWrapper; +import org.eclipse.rdf4j.rio.RDFFormat; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; @@ -56,7 +62,6 @@ // Go to http://localhost:8890/conductor -> System Admin -> User Accounts -> SPARQL and add account role SPARQL_UPDATE // Check if FTS is enabled: `SELECT * from DB.DBA.RDF_OBJ_FT_RULES;` // Enable FTS: `DB.DBA.RDF_OBJ_FT_RULE_ADD (null, null, 'ALL');` -@Disabled("It seems the FTS is not properly flushing its data and tests may fail kind of randomly") @Testcontainers(disabledWithoutDocker = true) public class VirtuosoRepositoryTest { @@ -66,9 +71,11 @@ public class VirtuosoRepositoryTest private static final int VIRTUOSO_PORT = 8890; + // Pinned: the "latest" image (7.2.18-dev at the time of writing) rejects SPARQL updates that + // end with a semicolon, which RDF4J always appends, so no test data can be loaded @Container private static final GenericContainer VIRTUOSO = new GenericContainer<>( - "openlink/virtuoso-opensource-7:latest") // + "openlink/virtuoso-opensource-7:7.2.16") // .withEnv("DBA_PASSWORD", "secret") // .withExposedPorts(VIRTUOSO_PORT) // .waitingFor(Wait.forHttp("/sparql").forPort(VIRTUOSO_PORT) @@ -100,16 +107,49 @@ public void setUp(TestInfo aTestInfo) throws Exception SPARQLQueryBuilderLocalTestScenarios.initRdfsMapping(kb); - repository = SPARQLQueryBuilderLocalTestScenarios + var sparqlRepository = SPARQLQueryBuilderLocalTestScenarios .buildSparqlRepository("http://dba:secret@" + VIRTUOSO.getHost() + ":" + VIRTUOSO.getMappedPort(VIRTUOSO_PORT) + "/sparql-auth/"); + // Virtuoso adds new literals to its full text index only in batches, even with batch + // updates switched off. Without updating the index after each import, the scenarios + // would search before their data is indexed. + repository = new RepositoryWrapper(sparqlRepository) + { + @Override + public RepositoryConnection getConnection() throws RepositoryException + { + return new RepositoryConnectionWrapper(this, super.getConnection()) + { + @Override + public void add(InputStream aIn, String aBaseUri, RDFFormat aFormat, + Resource... aContexts) + throws IOException + { + super.add(aIn, aBaseUri, aFormat, aContexts); + updateFullTextIndex(); + } + }; + } + }; + try (var conn = repository.getConnection()) { var ctx = SimpleValueFactory.getInstance().createIRI(kb.getDefaultDatasetIri()); conn.clear(ctx); } } + private static void updateFullTextIndex() throws IOException + { + try { + virtuosoSqlCommand("DB.DBA.VT_INC_INDEX_DB_DBA_RDF_OBJ ();"); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new IOException("Interrupted while updating the full text index", e); + } + } + static void virtuosoSqlCommand(String command) throws IOException, InterruptedException { command = command.replace("\"", "\\\""); @@ -138,8 +178,20 @@ private static List tests() throws Exception // Virtuoso 37000 Error SP031: SPARQL compiler: Object of transitive triple pattern // should be variable or QName or literal, not blank node "thatPropertyQueryLimitedToDomainDoesNotReturnOutOfScopeResults", - // Virtuoso does not like to import the test data for this one - "testWithLabelStartingWith_OLIA"); + // These search for the prefix "N". Virtuoso rejects wildcards with fewer than four + // leading characters (hard-coded in its text index), so FtsAdapterVirtuoso drops + // such prefixes and finds nothing + "testWithLabelStartingWith_customLabelProperty", + "testWithLabelStartingWith_customLabelProperty_rdfXml", + // FtsAdapterVirtuoso matches the value of withLabelContainingAnyOf() as a whole + // word, so "auto" finds the label "auto" but not "automobile" + "testWithLabelStartingWith_withLanguage_FTS_5", + // Virtuoso matches a multi-word query as a phrase, so "hand structure" does not + // match the label "Hand" as it does with the other full text indexes + "thatMatchingAgainstAdditionalSearchPropertiesWorks2", + // Virtuoso returns the blank node of an owl:Restriction superclass as a root + // concept - a bug in the roots query + "thatRootsCanBeRetrieved_owl"); return SPARQLQueryBuilderLocalTestScenarios.tests().stream() // .filter(scenario -> !exclusions.contains(scenario.name)) // diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/RateLimitRetryStrategy.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/RateLimitRetryStrategy.java new file mode 100644 index 00000000000..09ce3ef6866 --- /dev/null +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/RateLimitRetryStrategy.java @@ -0,0 +1,103 @@ +/* + * Licensed to the Technische Universität Darmstadt under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The Technische Universität Darmstadt + * licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package de.tudarmstadt.ukp.inception.kb.util; + +import static java.lang.Math.min; + +import java.lang.invoke.MethodHandles; + +import org.apache.http.HttpResponse; +import org.apache.http.client.ServiceUnavailableRetryStrategy; +import org.apache.http.protocol.HttpContext; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Retries requests that a public SPARQL endpoint rejected because of rate limiting (HTTP 429) or + * temporary unavailability (HTTP 503). The wait honours a {@code Retry-After} header given in + * seconds and otherwise doubles with each attempt. This keeps tests against endpoints such as + * AGROVOC from failing only because they were run too quickly. + */ +public class RateLimitRetryStrategy + implements ServiceUnavailableRetryStrategy +{ + private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); + + private static final int SC_TOO_MANY_REQUESTS = 429; + private static final int SC_SERVICE_UNAVAILABLE = 503; + + private final int maxRetries; + private final long initialIntervalMs; + private final long maxIntervalMs; + private final ThreadLocal nextIntervalMs = new ThreadLocal<>(); + + public RateLimitRetryStrategy(int aMaxRetries, long aInitialIntervalMs, long aMaxIntervalMs) + { + maxRetries = aMaxRetries; + initialIntervalMs = aInitialIntervalMs; + maxIntervalMs = aMaxIntervalMs; + } + + @Override + public boolean retryRequest(HttpResponse aResponse, int aExecutionCount, HttpContext aContext) + { + var status = aResponse.getStatusLine().getStatusCode(); + if (status != SC_TOO_MANY_REQUESTS && status != SC_SERVICE_UNAVAILABLE) { + return false; + } + + if (aExecutionCount > maxRetries) { + LOG.warn("Giving up after {} attempts (HTTP {})", aExecutionCount, status); + return false; + } + + var interval = retryAfterMs(aResponse); + if (interval < 0) { + interval = initialIntervalMs << (aExecutionCount - 1); + } + interval = min(interval, maxIntervalMs); + nextIntervalMs.set(interval); + + LOG.info("HTTP {} - retrying in {} ms (attempt {} of {})", status, interval, + aExecutionCount + 1, maxRetries + 1); + return true; + } + + @Override + public long getRetryInterval() + { + var interval = nextIntervalMs.get(); + return interval != null ? interval : initialIntervalMs; + } + + private static long retryAfterMs(HttpResponse aResponse) + { + var header = aResponse.getFirstHeader("Retry-After"); + if (header == null) { + return -1; + } + + try { + return Long.parseLong(header.getValue().trim()) * 1000; + } + catch (NumberFormatException e) { + // An HTTP date is also allowed here - fall back to the exponential backoff then + return -1; + } + } +} diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/RateLimitRetryStrategyTest.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/RateLimitRetryStrategyTest.java new file mode 100644 index 00000000000..f0eb17dfe7e --- /dev/null +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/RateLimitRetryStrategyTest.java @@ -0,0 +1,170 @@ +/* + * Licensed to the Technische Universität Darmstadt under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The Technische Universität Darmstadt + * licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package de.tudarmstadt.ukp.inception.kb.util; + +import static java.nio.charset.StandardCharsets.UTF_8; +import static org.assertj.core.api.Assertions.assertThat; + +import java.io.IOException; +import java.net.InetSocketAddress; +import java.util.Queue; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.atomic.AtomicInteger; + +import org.apache.http.HttpResponse; +import org.apache.http.HttpVersion; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.message.BasicHttpResponse; +import org.apache.http.util.EntityUtils; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import com.sun.net.httpserver.HttpServer; + +class RateLimitRetryStrategyTest +{ + private HttpServer server; + private Queue statuses; + private AtomicInteger requestCount; + + @BeforeEach + void setUp() throws IOException + { + statuses = new ConcurrentLinkedQueue<>(); + requestCount = new AtomicInteger(); + server = HttpServer.create(new InetSocketAddress("127.0.0.1", 0), 0); + server.createContext("/sparql", exchange -> { + requestCount.incrementAndGet(); + var status = statuses.isEmpty() ? 200 : statuses.poll(); + if (status != 200) { + exchange.getResponseHeaders().add("Retry-After", "0"); + } + var body = ("status " + status).getBytes(UTF_8); + exchange.sendResponseHeaders(status, body.length); + try (var os = exchange.getResponseBody()) { + os.write(body); + } + }); + server.start(); + } + + @AfterEach + void tearDown() + { + server.stop(0); + } + + @Test + void thatRateLimitedRequestsAreRetried() throws Exception + { + statuses.add(429); + statuses.add(503); + + var status = execute(new RateLimitRetryStrategy(3, 10, 100)); + + assertThat(status).isEqualTo(200); + assertThat(requestCount).hasValue(3); + } + + @Test + void thatRetriesAreLimited() throws Exception + { + statuses.add(429); + statuses.add(429); + statuses.add(429); + + var status = execute(new RateLimitRetryStrategy(2, 10, 100)); + + assertThat(status).isEqualTo(429); + assertThat(requestCount).hasValue(3); + } + + @Test + void thatOtherErrorsAreNotRetried() throws Exception + { + statuses.add(400); + + var status = execute(new RateLimitRetryStrategy(3, 10, 100)); + + assertThat(status).isEqualTo(400); + assertThat(requestCount).hasValue(1); + } + + @Test + void thatRetryAfterIsHonoured() + { + var sut = new RateLimitRetryStrategy(3, 1_000, 60_000); + + assertThat(sut.retryRequest(response(429, "7"), 1, null)).isTrue(); + assertThat(sut.getRetryInterval()).isEqualTo(7_000); + } + + @Test + void thatIntervalDoublesWithoutRetryAfter() + { + var sut = new RateLimitRetryStrategy(3, 1_000, 60_000); + + assertThat(sut.retryRequest(response(503, null), 1, null)).isTrue(); + assertThat(sut.getRetryInterval()).isEqualTo(1_000); + assertThat(sut.retryRequest(response(503, null), 3, null)).isTrue(); + assertThat(sut.getRetryInterval()).isEqualTo(4_000); + } + + @Test + void thatIntervalIsCapped() + { + var sut = new RateLimitRetryStrategy(3, 1_000, 60_000); + + assertThat(sut.retryRequest(response(429, "3600"), 1, null)).isTrue(); + assertThat(sut.getRetryInterval()).isEqualTo(60_000); + } + + @Test + void thatRetryAfterDateFallsBackToBackoff() + { + var sut = new RateLimitRetryStrategy(3, 1_000, 60_000); + + assertThat(sut.retryRequest(response(429, "Wed, 21 Oct 2015 07:28:00 GMT"), 2, null)) + .isTrue(); + assertThat(sut.getRetryInterval()).isEqualTo(2_000); + } + + private static HttpResponse response(int aStatus, String aRetryAfter) + { + var response = new BasicHttpResponse(HttpVersion.HTTP_1_1, aStatus, "test"); + if (aRetryAfter != null) { + response.addHeader("Retry-After", aRetryAfter); + } + return response; + } + + private int execute(RateLimitRetryStrategy aStrategy) throws IOException + { + try (var client = HttpClients.custom() // + .setServiceUnavailableRetryStrategy(aStrategy) // + .build()) { + var url = "http://127.0.0.1:" + server.getAddress().getPort() + "/sparql"; + try (var response = client.execute(new HttpGet(url))) { + EntityUtils.consume(response.getEntity()); + return response.getStatusLine().getStatusCode(); + } + } + } +} diff --git a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/TestFixtures.java b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/TestFixtures.java index 21091b12f52..20da5719de8 100644 --- a/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/TestFixtures.java +++ b/inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/util/TestFixtures.java @@ -26,12 +26,10 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue; import java.io.BufferedInputStream; -import java.io.File; import java.io.IOException; import java.io.InputStream; import java.lang.invoke.MethodHandles; import java.net.HttpURLConnection; -import java.net.MalformedURLException; import java.net.URI; import java.net.URL; import java.util.ArrayList; @@ -76,6 +74,8 @@ public class TestFixtures { + private static final int MAX_REDIRECTS = 10; + private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private static final Set UNREACHABLE_ENDPOINTS = new LinkedHashSet<>(); @@ -152,7 +152,11 @@ public static Repository buildRepository(KnowledgeBaseProfile profile) throws IO + profile.getAccess().getAccessUrl() + "] is not reachable"); var repo = new SPARQLRepository(profile.getAccess().getAccessUrl()); - repo.setHttpClient(newPerThreadSslCheckingHttpClientBuilder().build()); + // Public endpoints such as AGROVOC rate-limit, so back off and retry instead of failing + repo.setHttpClient(newPerThreadSslCheckingHttpClientBuilder() // + .setServiceUnavailableRetryStrategy( + new RateLimitRetryStrategy(4, 5_000, 60_000)) // + .build()); repo.setAdditionalHttpHeaders(Map.of("User-Agent", "INCEpTION/0.0.1-SNAPSHOT")); repo.init(); return repo; @@ -323,23 +327,59 @@ private static void importData(Repository aRepo, String aBasePrefix, String aUrl } } - private static InputStream openAsStream(String aUrl) throws MalformedURLException, IOException + private static InputStream openAsStream(String aUrl) throws IOException { if (aUrl.startsWith("classpath")) { return new PathMatchingResourcePatternResolver().getResource(aUrl).getInputStream(); } - else { - if ("https://www.bbc.co.uk/ontologies/wo/1.1.ttl".equals(aUrl)) { - return new File("src/test/resources/upstream-data/1.1.ttl").toURI().toURL() - .openStream(); + + var url = URI.create(aUrl).toURL(); + if (!url.getProtocol().startsWith("http")) { + return url.openStream(); + } + + // HttpURLConnection does not follow redirects that change the protocol, e.g. from http to + // https, which is common for PURLs. So we follow redirects ourselves. If the server cannot + // be reached, the test is skipped like it is for unreachable remote repositories. + for (var hop = 0; hop < MAX_REDIRECTS; hop++) { + HttpURLConnection con; + int status; + try { + con = (HttpURLConnection) url.openConnection(); + con.setInstanceFollowRedirects(false); + con.setConnectTimeout(7_500); + con.setReadTimeout(30_000); + con.setRequestProperty("User-Agent", "INCEpTION/0.0.1-SNAPSHOT"); + status = con.getResponseCode(); } - else if ("http://purl.org/olia/penn.owl".equals(aUrl)) { - return new File("src/test/resources/upstream-data/penn.owl").toURI().toURL() - .openStream(); + catch (IOException e) { + assumeTrue(false, "Data at [" + aUrl + "] is not reachable: " + e.getMessage()); + throw e; } - else { - return new URL(aUrl).openStream(); + + var location = con.getHeaderField("Location"); + if (status >= 300 && status < 400 && location != null) { + con.disconnect(); + url = URI.create(url.toString()).resolve(location).toURL(); + continue; } + + if (status == HttpURLConnection.HTTP_OK) { + return con.getInputStream(); + } + + var proxyError = con.getHeaderField("X-Proxy-Error"); + con.disconnect(); + + // Temporary conditions on the server or the network skip the test. Anything else, e.g. + // a 404 because the URL in a profile is no longer valid, is a real failure. + var temporary = status == 429 || status >= 500 + || (status == HttpURLConnection.HTTP_FORBIDDEN && proxyError != null); + assumeTrue(!temporary, + "Data at [" + aUrl + "] is temporarily not available (HTTP " + status + ")"); + throw new IOException("Unable to download [" + aUrl + "] (HTTP " + status + ")"); } + + throw new IOException("Too many redirects when downloading [" + aUrl + "]"); } } diff --git a/inception/inception-kb/src/test/resources/data/README.txt b/inception/inception-kb/src/test/resources/data/README.txt deleted file mode 100644 index 76407652240..00000000000 --- a/inception/inception-kb/src/test/resources/data/README.txt +++ /dev/null @@ -1,29 +0,0 @@ -== wildlife_ontology.ttl - -Source: https://www.bbc.co.uk/ontologies/wo -License: http://creativecommons.org/licenses/by/1.0#id -Attribution: http://www.ldodds.com#me, http://tomscott.name/ (Authors) - -== penn.owl - -Source: http://www.acoli.informatik.uni-frankfurt.de/resources/olia/#english -License: Creative Commons Attribution licence CC-BY -Attribution: Christian Chiarcos, and Maria Sukhareva (2015). OLiA - Ontologies of Linguistic - Annotation, SWJ (Semantic Web Journal) 6(4): 379-386. - -== wine-ontology.rdf - -Source: https://www.w3.org/TR/owl-guide/wine.rdf -License: https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document - - -== wordnet-ontolex-ontology.owl - -Source: http://wordnet-rdf.princeton.edu/ontology -License: http://wordnet-rdf.princeton.edu/license - - -== example1.obo - -Source: https://raw.githubusercontent.com/owlcs/owlapi/version5/oboformat/src/test/resources/example1.obo -License: Apache License 2.0 (https://github.com/owlcs/owlapi/blob/version5/README.md) diff --git a/inception/inception-kb/src/test/resources/data/example.obo b/inception/inception-kb/src/test/resources/data/example.obo new file mode 100644 index 00000000000..b56b0526b81 --- /dev/null +++ b/inception/inception-kb/src/test/resources/data/example.obo @@ -0,0 +1,118 @@ +! Licensed to the Technische Universität Darmstadt under one +! or more contributor license agreements. See the NOTICE file +! distributed with this work for additional information +! regarding copyright ownership. The Technische Universität Darmstadt +! licenses this file to you under the Apache License, Version 2.0 (the +! "License"); you may not use this file except in compliance +! with the License. +! +! http://www.apache.org/licenses/LICENSE-2.0 +! +! Unless required by applicable law or agreed to in writing, software +! distributed under the License is distributed on an "AS IS" BASIS, +! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +! See the License for the specific language governing permissions and +! limitations under the License. +! A small ontology in OBO format for import tests. It contains header and term constructs that +! the OBO-to-OWL conversion has to get through: subsets, synonym types, ontology and term property +! values, alternative ids, comments, creation metadata, definitions, exact/narrow/broad/related +! synonyms (including non-ASCII ones), cross references, is_a and relationship links, obsolete +! terms with a replacement, and typedefs with inverse, transitive, symmetric and chain properties. +! The tests check the imported terms, their hierarchy, deprecation, synonyms and the full text +! index; for the remaining constructs, they only check that the import succeeds. +format-version: 1.2 +data-version: test/2026-11-14 +saved-by: inception +subsetdef: core "Core terms" +subsetdef: extra "Additional terms" +synonymtypedef: German "German synonym (exact)" EXACT +synonymtypedef: Japanese "Japanese synonym (exact)" EXACT +default-namespace: inception_test +ontology: inctest +property_value: dc-description "A test ontology for INCEpTION." xsd:string +property_value: dc-source http://example.org/test/source + +[Term] +id: INCTEST:0000001 +name: plant part +namespace: inception_test +def: "A part of a plant." [INCTEST:curator] +comment: Every other term in this test ontology is a kind of plant part. +subset: core +created_by: inception +creation_date: 2026-11-14T12:00:00Z + +[Term] +id: INCTEST:0000002 +name: root +namespace: inception_test +alt_id: INCTEST:0000020 +def: "A plant part that usually grows below the ground." [INCTEST:curator] +subset: core +synonym: "Wurzel" EXACT German [] +synonym: "根" EXACT Japanese [] +synonym: "taproot" NARROW [] +is_a: INCTEST:0000001 ! plant part + +[Term] +id: INCTEST:0000003 +name: leaf +namespace: inception_test +def: "A plant part that grows from the stem." [INCTEST:curator] +subset: core +synonym: "Blatt" EXACT German [] +synonym: "foliage leaf" RELATED [] +synonym: "plant organ" BROAD [] +xref: INCTEST_REF:42 +is_a: INCTEST:0000001 ! plant part +relationship: part_of INCTEST:0000004 ! shoot system +relationship: adjacent_to INCTEST:0000006 ! stem + +[Term] +id: INCTEST:0000004 +name: shoot system +namespace: inception_test +def: "The part of a plant above the ground, including stem and leaves." [INCTEST:curator] +subset: extra +synonym: "Sprossachse (grün)" RELATED German [] +is_a: INCTEST:0000001 ! plant part +relationship: has_part INCTEST:0000003 ! leaf + +[Term] +id: INCTEST:0000006 +name: stem +namespace: inception_test +def: "A plant part that carries the leaves." [INCTEST:curator] +subset: extra +property_value: INCTEST:typical_length "30" xsd:string +is_a: INCTEST:0000001 ! plant part +relationship: part_of INCTEST:0000004 ! shoot system + +[Term] +id: INCTEST:0000005 +name: obsolete plant organ +comment: Use "plant part" instead. +is_obsolete: true +replaced_by: INCTEST:0000001 + +[Typedef] +id: part_of +name: part of +is_transitive: true + +[Typedef] +id: has_part +name: has part +inverse_of: part_of +is_transitive: true + +[Typedef] +id: adjacent_to +name: adjacent to +is_symmetric: true + +[Typedef] +id: located_in +name: located in +is_transitive: true +holds_over_chain: part_of located_in diff --git a/inception/inception-kb/src/test/resources/data/example.obo.gz b/inception/inception-kb/src/test/resources/data/example.obo.gz new file mode 100644 index 00000000000..6933aec644c Binary files /dev/null and b/inception/inception-kb/src/test/resources/data/example.obo.gz differ diff --git a/inception/inception-kb/src/test/resources/data/example1.obo b/inception/inception-kb/src/test/resources/data/example1.obo deleted file mode 100644 index 12ed94b68eb..00000000000 --- a/inception/inception-kb/src/test/resources/data/example1.obo +++ /dev/null @@ -1,190 +0,0 @@ -format-version: 1.2 -data-version: releases/2018-09-25 -saved-by: cooperl -subsetdef: Angiosperm "Term for angiosperms" -subsetdef: Arabidopsis "Term used for Arabidopsis" -subsetdef: Bryophytes "Term used for mosses, liverworts, and/or hornworts" -subsetdef: Citrus "Term used for citrus" -subsetdef: CL "plant cells" -subsetdef: Gymnosperms "Term used for gymnosperms" -subsetdef: Maize "Term used for maize" -subsetdef: Musa "Terms used for banana" -subsetdef: Poaceae "Term used for grasses" -subsetdef: Potato "Term used for potato" -subsetdef: Pteridophytes "Term used for ferns and allies" -subsetdef: reference "reference plant structure term" -subsetdef: Rice "Term used for rice" -subsetdef: Tomato "Term used for tomato" -subsetdef: TraitNet "Plant Functional Traits" -synonymtypedef: German "German synonym (exact)" EXACT -synonymtypedef: Japanese "Japanese synonym (exact)" EXACT -synonymtypedef: Plural "Plural" -synonymtypedef: Spanish "Spanish synonym (exact)" EXACT -default-namespace: plant_ontology -treat-xrefs-as-genus-differentia: CL part_of NCBITaxon:33090 -treat-xrefs-as-is_a: CARO -! We want the file to load without network access, so the import is commented out -!import: http://purl.obolibrary.org/obo/po/imports/ncbitaxon_import.owl -ontology: po -property_value: dc-contributor https://orcid.org/0000-0001-5889-4463 -property_value: dc-description "This is a sample ontology." xsd:string -property_value: dc-publisher http://po.org -property_value: dc-source "aggregates AAO from 13:04:2012" xsd:string -property_value: dc-source http://dbpedia.org -property_value: has_ontology_root_term UBERON:0000104 - -[Term] -id: PO:0000001 -name: plant embryo proper -namespace: plant_anatomy -def: "An embryonic plant structure (PO:0025099) that is the body of a developing plant embryo (PO:0009009) attached to the maternal tissue in an plant ovule (PO:0020003) by a suspensor (PO:0020108)." [POC:Laurel_Cooper, POC:Ramona_Walls] -comment: The embryo proper is the entire embryo exclusive of the suspensor. -synonym: "embrióforo (Spanish, exact)" EXACT Spanish [POC:Maria_Alejandra_Gandolfo] -synonym: "胚本体 (Japanese, exact)" EXACT Japanese [NIG:Yukiko_Yamazaki] -xref: PO_GIT:246 -customTag: custom value -property_value: dc-source http://purl.obolibrary.org/obo/aao.owl -property_value: dc-source "ISBN:0030229073 Invertebrate Zoology, Barnes" xsd:string -property_value: depicted_by http://upload.wikimedia.org/wikipedia/commons/4/41/Parts_of_feather_modified.jpg -property_value: has_ontology_root_term UBERON:0000104 -property_value: seeAlso http://xkcd.com/1104/ -property_value: structure_notes "Some notes" xsd:string - -[Term] -id: PO:0000002 -name: anther wall -namespace: plant_anatomy -alt_id: PO:0006445 -alt_id: PO:0006477 -def: "A microsporangium wall (PO:0025307) that is part of an anther (PO:0009066)." [ISBN:0471244554, ISBN:9780003686647] -comment: Has an outer epidermis (exothecium) and an endothecium and may have additional layers. If you are annotating to this structure for Zea mays or other grasses, please also add an annotation to the corresponding floret type. Choose the most specific term possible from: spikelet floret (PO:0009082), tassel floret (PO:0006310), lower floret of pedicellate spikelet of tassel (PO:0006313), lower floret of sessile spikelet of tassel (PO:0006315), upper floret of pedicellate spikelet of tassel (PO:0006314), upper floret of sessile spikelet of tassel (PO:0006316). -subset: Angiosperm -subset: reference -synonym: "pared de la antera (Spanish, exact)" EXACT Spanish [POC:Maria_Alejandra_Gandolfo] -synonym: "Poaceae anther wall (narrow)" NARROW [] -synonym: "pollen sac wall (exact)" EXACT [] -synonym: "Zea anther wall (narrow)" NARROW [] -synonym: "葯壁 (Japanese, exact)" EXACT Japanese [NIG:Yukiko_Yamazaki] -xref: PO_GIT:149 -xref: PO_GIT:298 -is_a: PO:0000001 ! plant embryo proper - -[Term] -id: PO:0000003 -name: whole plant -namespace: plant_anatomy -def: "A plant structure (PO:0005679) which is a whole organism." [POC:curators] -comment: Examples include plant embryo (PO:0009009), megagametophyte (PO:0025279) and microgametophyte (PO:0025280). -subset: reference -subset: TraitNet -synonym: "bush (narrow)" NARROW [] -synonym: "clonal colony (related)" RELATED [] -synonym: "colony (related)" RELATED [] -synonym: "frutex (narrow)" NARROW [FNA:e4dde193-57f7-4ab9-9d25-96b4ca0088ba] -synonym: "frutices (narrow)" NARROW Plural [FNA:ec8c2064-2a67-43d7-8e14-aecfef5cf33b] -synonym: "gametophyte (narrow)" NARROW [] -synonym: "genet (broad)" BROAD [] -synonym: "herb (narrow)" NARROW [] -synonym: "liana (narrow)" NARROW [] -synonym: "planta entera (Spanish, exact)" EXACT Spanish [POC:Maria_Alejandra_Gandolfo] -synonym: "prothalli (narrow)" NARROW Plural [FNA:4b610104-1bb0-4c6b-9bb9-e3cc61d11ac0] -synonym: "prothallium (narrow)" NARROW [] -synonym: "prothallus (narrow)" NARROW [FNA:f8f31520-e4bc-4430-9274-8dd3cee7ffd8] -synonym: "ramet (broad)" BROAD [] -synonym: "seedling (narrow)" NARROW [] -synonym: "shrub (narrow)" NARROW [] -synonym: "sporophyte (narrow)" NARROW [] -synonym: "suffrutex (narrow)" NARROW [FNA:99508f62-7116-4e2b-90c0-19ff55ebd967] -synonym: "suffrutices (narrow)" NARROW Plural [FNA:ba1b1bd5-75bd-4195-b11c-3aba08da08c2] -synonym: "tree (narrow)" NARROW [] -synonym: "vine (narrow)" NARROW [] -synonym: "woody clump (narrow)" NARROW [FNA:c1ccca7d-2a98-4a9d-8603-c34b551935e0] -synonym: "植物体全体 (Japanese, exact)" EXACT Japanese [NIG:Yukiko_Yamazaki] -xref: PO_GIT:538 -xref: PO_GIT:69 -is_a: PO:0000001 ! plant embryo proper - -[Typedef] -id: adjacent_to -name: adjacent_to -xref: RO:0002220 - -[Typedef] -id: derives_by_manipulation_from -name: derives_by_manipulation_from -def: "A derives_by_manipulation_from B means: A is a type of in vitro plant structure, and every instance of A exists at a point in time later than some instance of B from which it was created through human manipulation, and every instance of A inherited a biologically significant portion of its matter from the instance of B from which it was derived." [POC:curators] -comment: The derives_by_manipulation_from relation, is a special case of the RO relation derives_from. Derives_from implies an instance level derivation that holds between two distinct material continuants when one succeeds the other across a temporal divide in such a way that at least a biologically significant portion of the matter of the earlier continuant is inherited by the later. Likewise, derives_by_manipulation_from joins two plant structures before and after some manipulation. Specifically, derives_by_manipulation_from is used to describe the relation between an in vitro plant structure and the in vivo plant structure that is its temporal precursor. -created_by: rwalls -creation_date: 2010-07-01T02:45:12Z - -[Typedef] -id: developmentally_preceded_by -name: developmentally_preceded_by -def: "X developmentally related to y if and only if there exists some developmental process (GO:0032502) p such that x and y both participates in p, and x is the output of p and y is the input of p." [RO:0002258] -xref: RO:0002258 -is_obsolete: true -created_by: Laurel_Cooper -creation_date: 2013-06-27T13:16:56Z - -[Typedef] -id: develops_from -name: develops_from -xref: RO:0002202 -is_transitive: true - -[Typedef] -id: has_part -name: has_part -xref: BFO:0000051 -is_transitive: true - -[Typedef] -id: has_participant -name: has_participant -xref: BFO:0000057 - -[Typedef] -id: isolated_from_germplasm -name: isolated from germplasm - -[Typedef] -id: located_in -name: located_in -xref: RO:0001025 -created_by: rwalls -creation_date: 2012-05-23T09:52:02Z - -[Typedef] -id: only_in_taxon -name: only_in_taxon -xref: RO:0002160 - -[Typedef] -id: part_of -name: part_of -xref: BFO:0000050 -is_transitive: true - -[Typedef] -id: participates_in -name: participates_in -xref: BFO:0000056 -holds_over_chain: part_of participates_in -inverse_of: has_participant ! has_participant - -[Typedef] -id: preceded_by -name: preceded_by -def: "The assertion P preceded_by P1 tells us something about Ps in general: that is, it tells us something about what happened earlier, given what we know about what happened later. Thus it does not provide information pointing in the opposite direction, concerning instances of P1 in general; that is, that each is such as to be succeeded by some instance of P." [POC:Laurel_Cooper] -comment: Note that an assertion to the effect that P preceded_by P1 is rather weak; it tells us little about the relations between the underlying instances in virtue of which the preceded_by relation obtains. Typically we will be interested in stronger relations, for example in the relation immediately_preceded_by, or in relations which combine preceded_by with a condition to the effect that the corresponding instances of P and P1 share participants, or that their participants are connected by relations of derivation, or (as a first step along the road to a treatment of causality) that the one process in some way affects (for example, initiates or regulates) the other. -xref: BFO:0000062 -is_transitive: true -created_by: Laurel_Cooper -creation_date: 2013-07-09T14:29:15Z - -[Typedef] -id: precedes -name: precedes -xref: BFO:0000063 -created_by: Laurel_Cooper -creation_date: 2015-06-04T17:18:40Z diff --git a/inception/inception-kb/src/test/resources/data/example1.obo.gz b/inception/inception-kb/src/test/resources/data/example1.obo.gz deleted file mode 100644 index 6f3de66de9c..00000000000 Binary files a/inception/inception-kb/src/test/resources/data/example1.obo.gz and /dev/null differ diff --git a/inception/inception-kb/src/test/resources/data/lexicon_ontology.ttl b/inception/inception-kb/src/test/resources/data/lexicon_ontology.ttl new file mode 100644 index 00000000000..141f8fc4966 --- /dev/null +++ b/inception/inception-kb/src/test/resources/data/lexicon_ontology.ttl @@ -0,0 +1,60 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# A small OWL ontology of lexical categories for root class tests. + +@prefix lex: . +@prefix ext: . +@prefix owl: . +@prefix rdfs: . + +lex:LexicalEntry a owl:Class ; rdfs:label "Lexical entry"@en . +lex:Word a owl:Class ; rdfs:subClassOf lex:LexicalEntry ; rdfs:label "Word"@en . +lex:MultiwordExpression a owl:Class ; rdfs:subClassOf lex:LexicalEntry ; + rdfs:label "Multiword expression"@en . + +lex:Sense a owl:Class ; rdfs:label "Sense"@en . + +lex:Concept a owl:Class ; rdfs:label "Concept"@en . +lex:SemanticField a owl:Class ; rdfs:subClassOf lex:Concept ; rdfs:label "Semantic field"@en . + +lex:PartOfSpeech a owl:Class ; rdfs:label "Part of speech"@en . +lex:OpenClass a owl:Class ; rdfs:subClassOf lex:PartOfSpeech ; rdfs:label "Open class"@en . +lex:ClosedClass a owl:Class ; rdfs:subClassOf lex:PartOfSpeech ; rdfs:label "Closed class"@en . + +lex:sense a owl:ObjectProperty ; + rdfs:domain lex:LexicalEntry ; + rdfs:range lex:Sense ; + rdfs:label "sense"@en . + +# A class defined as the intersection of two named classes. It is a child of both operands and +# must not be a root. +lex:Noun a owl:Class ; + rdfs:label "Noun"@en ; + owl:intersectionOf ( lex:Word lex:OpenClass ) . + +# A class whose only superclass is an anonymous restriction. +lex:Lemma a owl:Class ; + rdfs:label "Lemma"@en ; + rdfs:subClassOf [ a owl:Restriction ; owl:onProperty lex:sense ; owl:someValuesFrom lex:Sense ] . + +# An external class that is only used as a superclass. It is a root although it is not declared. +ext:Morpheme rdfs:label "Morpheme"@en . +lex:Affix rdfs:subClassOf ext:Morpheme ; + rdfs:label "Affix"@en . + +# An instance, which must not show up as a class. +lex:dog a lex:Word ; + rdfs:label "dog"@en . diff --git a/inception/inception-kb/src/test/resources/data/library_ontology.ttl b/inception/inception-kb/src/test/resources/data/library_ontology.ttl new file mode 100644 index 00000000000..5b1ccf9a010 --- /dev/null +++ b/inception/inception-kb/src/test/resources/data/library_ontology.ttl @@ -0,0 +1,67 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# A small OWL ontology for root concept tests. All roots are owl:Class with language-tagged labels, +# except ext:Collection, which is only used as a superclass, is not declared in this file and has +# no label. + +@prefix lib: . +@prefix ext: . +@prefix owl: . +@prefix rdf: . +@prefix rdfs: . + +lib:Agent a owl:Class ; + rdfs:label "Agent"@en-gb ; + rdfs:comment "Someone or something that can create or own a work."@en-gb . + +lib:Person a owl:Class ; + rdfs:subClassOf lib:Agent ; + rdfs:label "Person"@en-gb . + +lib:Organisation a owl:Class ; + rdfs:subClassOf lib:Agent ; + rdfs:label "Organisation"@en-gb . + +lib:Work a owl:Class ; + rdfs:label "Work"@en-gb . + +lib:Book a owl:Class ; + rdfs:subClassOf lib:Work ; + rdfs:label "Book"@en-gb . + +lib:Article a owl:Class ; + rdfs:subClassOf lib:Work ; + rdfs:label "Article"@en-gb . + +lib:Place a owl:Class ; + rdfs:label "Place"@en-gb . + +lib:Library a owl:Class ; + rdfs:subClassOf lib:Place ; + rdfs:label "Library"@en-gb . + +lib:Subject a owl:Class ; + rdfs:label "Subject"@en-gb . + +lib:ReadingList a owl:Class ; + rdfs:subClassOf ext:Collection ; + rdfs:label "Reading List"@en-gb . + +# Declared as rdf:Property as well, so that it is found with an rdf:Property property type mapping. +lib:author a owl:ObjectProperty, rdf:Property ; + rdfs:domain lib:Work ; + rdfs:range lib:Agent ; + rdfs:label "author"@en-gb . diff --git a/inception/inception-kb/src/test/resources/data/more_pets.ttl b/inception/inception-kb/src/test/resources/data/more_pets.ttl index a28cd94ff5e..8f6d04b6c29 100644 --- a/inception/inception-kb/src/test/resources/data/more_pets.ttl +++ b/inception/inception-kb/src/test/resources/data/more_pets.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + @base . @prefix rdf: . @prefix rdfs: . diff --git a/inception/inception-kb/src/test/resources/data/penn.owl b/inception/inception-kb/src/test/resources/data/penn.owl deleted file mode 100644 index a8802e9e453..00000000000 --- a/inception/inception-kb/src/test/resources/data/penn.owl +++ /dev/null @@ -1,1099 +0,0 @@ - - - - - - - - -]> - - - - - 2008-04-10 created -2011-11-28 fixed typo (PR vs. RP) -2011-11-31 added Punctuation (not addressed by Santorini 1990) - -Christian Chiarcos, chiarcos@uni-potsdam.de - OLiA Annotation Model for Penn Treebank (PTB) part-of-speech annotation (Santorini 1990) - -Unless specified otherwise, all comments are taken from Santorini (1990). - -References -Beatrice Santorini (1990), Part-of-Speech tagging guidelines for the Penn Treebank Project, 3rd revision, 2nd printing, ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz - ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - These are adjectives, ordinal numerals, and ordinal numbers. -Hyphenated compounds that are used as modifiers are tagged as adjectives, e.g. "happy-go-lucky", "one-of-a-kind", "run-of-the-mill". Ordinal numbers are tagged as adjectives, as are compounds of the form "n-th" or "X-est", like "fourth-largest". - - - - - - - - - This category includes most words that end in -ly as well as degree words like "quite", "too" and "very", posthead modifiers like "enough" and "indeed" (as in "good enough", "very well indeed"), and negative markers like "not", "n' t" and "never". - - - - - - - - - - - - - - - - - This tag subsumes imperatives, infinitives and subjunctives. -EXAMPLES: -Imperative: Do/VB it. -Infinitive: You should do/VB it. - We want them to do/VB it. - We made them do/VB it. -Subjunctive: We suggested that he do/VB it. - - - - - - - - - This category includes the conditional form of the verb to be. -EXAMPLES: -If I were/VBD rich... -If I were/VBD to win the lottery... - - - - - - - - - These are verbforms in present tense. This class includes 3rd person singular or other than 3rd person singular verbforms. - - - - - - - - - These are cardinal numbers. - - - - - - - - - - - - - - - - - - - - - - - - - These are common nouns in singular or plural, or mass nouns. - - - - - - - - - These are adjectives mostly with the comparative ending -er and a comparative meaning. "More" or "less" should be tagged as a comparative adjective when it is used without a head noun and it -corresponds to the object of a verb or preposition. - - - - - - - - - These are comparative adverbs. - - - - - - - - - - - - - - - - - This category includes "and", "but", "nor", "or", "yet" (as in "Yet it's cheap", "cheap yet good"), as well as the mathematical operators "plus", "minus", "less", "times" (in the sense of "multiplied by") and "over" (in the sense of "divided by"), when they are spelled out. -For in the sense of "because" is a coordinating conjunction. - - - - - - - - - This category includes the articles "a(n)", "every", "no" and "the", the indefinite determiners "another", "any" and "some", "each", "either" (as in "either way"), "neither" (as in "neither decision"), "that", "these", "this" and "those", and instances of "all" and "both" when they do not precede a determiner or possessive pronoun (as in "all roads" or "both times"). - - - - - - - - - - - - - - - - - - - - - - - - - Existential "there" is the unstressed "there" that triggers inversion of the inflected verb and the logical subject of a sentence, e.g. "There/EX was a party in progress.", "There/EX ensued a melee.". - - - - - - - - - These are foreign words. - - - - - - - - - - - - - - - - - - - - - - - - - This is a verb in present participle or in gerund. - - - - - - - - - This category includes "my" (as in "My, what a gorgeous day"), "oh", "please", "see" (as in "See it's like this"), "uh", "well" and "yes", among others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This category includes letters and numerals when they are used to identify items in a list. - - - - - - - - - This category includes all verbs that don't take an -s ending in the third person singular present: "can", -"could", ("dare"), "may", "might", "must", "ought", "shall", "should", "will", "would". - - - - - - - - - This is a class, we inserted to structure the tagset. - - - - - - - - - This category includes a number of mostly monosyllabic words that also double as directional adverbs and prepositions. - - - - - - - - - This is a verb in past participle. - - - - - - - - - This category includes the personal pronouns proper, without regard for case distinctions ("I", "me", "you", "he", "him", etc.), the reflexive pronouns ending in -self or -selves, and the nominal possessive pronouns "mine", "yours", "his", "hers", "ours" and "theirs". - - - - - - - - - The possessive ending on nouns ending in 's or is split off by the tagging algorithm and tagged as if it -were a separate word. e.g. "John/ NP 's/POS idea", "the parents/NNS'/POS distress". - - - - - - - - - This category includes the adjectival possessive forms "my", "your", "his", "her", "its", "one's", "our" and "their". - - - - - - - - - - - - - - - - - - This category includes the following determinerlike elements when they precede an article or possessive pronoun. -EXAMPLES: -all/PDT his marbles -nary/PDT a soul -both/PDT the girls -quite/PDT a mess -half/PDT his time -rather/PDT a nuisance -many/PDT a moon -such/PDT a good time - - - - - - - - - We make no explicit distinction between prepositions and subordinating conjunctions. (The distinction is not lost, however - a preposition is an IN that precedes a noun phrase or a prepositional phrase, and a subordinate conjunction is an IN that precedes a clause). -The preposition "to" has its own special tag TO. - - - - - - - - - This is a class, we inserted to structure the tagset. - - - - - - - - - These are singular or plural proper nouns. - - - - - - - - - - - - pos - - - Not addressed by Santorini (1990), but produced by real-world taggers, also cf. http://www.cis.upenn.edu/~treebank/tokenization.html for the treatment of PTB punctuation tags in the parsed Penn Treebank. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - These are adjectives with the superlative ending -est (as well as "worst"). "Most" and "least" can also be tagged as superlative adjective when they occur by themselves. - - - - - - - - - These are superlative adverbs. - - - - - - - - - This tag should be used for mathematical, scientific and technical symbols or expressions that aren't words of English. It should not used for any and all technical expressions. For instance, the names of chemicals, units of measurements (including abbreviations thereof) and the like should be tagged as nouns. - - - - - - - - - - - - pos - - - - - - - - - - - "To" is tagged TO, regardless of whether it is a preposition or an infinitival marker. - - - - - - - - - - - - - - - - - This category includes "how", "where", "why", etc. When in a temporal sense is tagged as wh-adverb. In the sense of "if", on the other hand, it is a subordinating conjunction. -EXAMPLES: -"When/WRB he finally arrived, I was on my way out." - - - - - - - - - This category includes "which", as well as that when it is used as a relative pronoun. - - - - - - - - - This category includes "what", "who" and "whom". - - - - - - - - - - - - - - - - - - - - CC - - - - - - - - - CD - - - - - - - - - DT - determiner, also article - - - - - - - - - EX - - - - - - - - - FW - - - - - - - - - IN - - - - - - - - - JJ - adjective, ordinal numeral, ordinal number - - - - - - - - - JJR - - - - - - - - - JJS - - - - - - - - - LS - - - - - - - - - MD - - - - - - - - - NN - Noun singular or mass - - - - - - - - - NNP - Proper noun singular - - - - - - - - - NNPS - Proper noun plural - - - - - - - - - NNS - Noun plural - - - - - - - - - PDT - - - - - - - - - POS - - - - - - - - - PP - PP is the used Tag in "Part-of-Speech Tagging Guidelines for the Penn Treebank Project", Beatrice Santorini, 15.03.1991" -(http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/Penn-Treebank-Tagset.ps 21.11.07) - - - - - - - - - PP$ - PP$is the used Tag in "Part-of-Speech Tagging Guidelines for the Penn Treebank Project", Beatrice Santorini, 15.03.1991" -(http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/Penn-Treebank-Tagset.ps 21.11.07) - - - - - - - - - PRP - PRP is the used Tag in "Part of Speech Tagging Guidelines for the Penn Treebank Project, June 1990" (ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz 21.11.07) - - - - - - - - - PRP$ - PRP$ is the used Tag in "Part of Speech Tagging Guidelines for the Penn Treebank Project, June 1990" (ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz 21.11.07) - - - - - - - - - RB - adverb, negation - - - - - - - - - RBR - - - - - - - - - RBS - - - - - - - - - RP - - - - - - - - - SYM - - - - - - - - - TO - - - - - - - - - UH - interjections, exclamation - - - - - - - - - VB - - - - - - - - - VBD - - - - - - - - - VBG - - - - - - - - - VBN - - - - - - - - - VBP - Verb non 3-rd person singular present - - - - - - - - - VBZ - Verb 3-rd person singular present - - - - - - - - - WDT - - - - - - - - - WP - - - - - - - - - WP$ - - - - - - - - - WRB - - - - - - - - - '' - - - - - - - - - : - - - - - - - - - , - - - - - - - - - $ - - - - - - - - - " - - - - - - - - - `` - - - - - - - - - . - - - - - - - - - { - -LCB- - - - - - - - - - ( - -LRB- - - - - - - - - - -LSB- - [ - - - - - - - - - -RCB- - } - - - - - - - - - -RRB- - ) - - - - - - - - - ] - -RSB- - - - - - - - diff --git a/inception/inception-kb/src/test/resources/data/pets.ttl b/inception/inception-kb/src/test/resources/data/pets.ttl index 4b930d3a1df..ddb585e4aa5 100644 --- a/inception/inception-kb/src/test/resources/data/pets.ttl +++ b/inception/inception-kb/src/test/resources/data/pets.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + @base . @prefix rdf: . @prefix rdfs: . diff --git a/inception/inception-kb/src/test/resources/data/sparql_playground.ttl b/inception/inception-kb/src/test/resources/data/sparql_playground.ttl deleted file mode 100644 index b1188631371..00000000000 --- a/inception/inception-kb/src/test/resources/data/sparql_playground.ttl +++ /dev/null @@ -1,96 +0,0 @@ -@prefix dbo: . -@prefix dbp: . -@prefix dbpedia: . -@prefix rdf: . -@prefix rdfs: . -@prefix tto: . -@prefix ttr: . -@prefix xsd: . - -ttr:Eve dbo:parent ttr:William ; - dbp:birthDate "2006-11-03"^^xsd:date ; - dbp:name "Eve" ; - tto:sex "female" ; - a dbo:Person . - -ttr:John dbp:birthDate "1942-02-02"^^xsd:date ; - dbp:name "John" ; - tto:pet ttr:LunaCat , ttr:TomCat ; - tto:sex "male" ; - a dbo:Person . - -ttr:LunaCat dbp:name "Luna" ; - tto:color "violet" ; - tto:sex "female" ; - tto:weight 4.2 ; - a tto:Cat . - -ttr:RexDog dbp:name "Rex" ; - tto:color "brown" ; - tto:sex "male" ; - tto:weight 8.8 ; - a tto:Dog . - -ttr:SnuffMonkey dbp:name "Snuff" ; - tto:color "golden" ; - tto:sex "male" ; - tto:weight 3.6 ; - a tto:Monkey . - -ttr:TomCat dbp:name "Tom" ; - tto:color "grey" ; - tto:sex "male" ; - tto:weight 5.8 ; - a tto:Cat . - -ttr:William dbo:parent ttr:John ; - dbp:birthDate "1978-07-20"^^xsd:date ; - dbp:name "William" ; - tto:pet ttr:RexDog ; - tto:sex "male" ; - a dbo:Person . - -dbo:Person rdfs:subClassOf tto:Creature . - -tto:Animal a rdfs:Class ; - rdfs:isDefinedBy ; - rdfs:label "animal" ; - rdfs:subClassOf tto:Creature . - -tto:Cat a rdfs:Class ; - rdfs:isDefinedBy ; - rdfs:label "cat" ; - rdfs:subClassOf tto:Animal . - -tto:Creature a rdfs:Class ; - rdfs:isDefinedBy ; - rdfs:label "creature" . - -tto:Dog a rdfs:Class ; - rdfs:isDefinedBy ; - rdfs:label "dog" ; - rdfs:subClassOf tto:Animal . - -tto:Monkey a rdfs:Class ; - rdfs:isDefinedBy ; - rdfs:label "monkey" ; - rdfs:subClassOf tto:Animal . - -tto:pet a rdf:Property ; - rdfs:domain dbo:Person ; - rdfs:isDefinedBy ; - rdfs:label "domestic animal" ; - rdfs:range tto:Animal . - -tto:sex a rdf:Property ; - rdfs:domain tto:Creature ; - rdfs:isDefinedBy ; - rdfs:label "sex" ; - rdfs:range xsd:string . - -tto:weight a rdf:Property ; - rdfs:comment "weight in kilograms" ; - rdfs:domain tto:Creature ; - rdfs:isDefinedBy ; - rdfs:label "weight" ; - rdfs:range xsd:decimal . diff --git a/inception/inception-kb/src/test/resources/data/streams.ttl b/inception/inception-kb/src/test/resources/data/streams.ttl index e9072787a12..d24253b4d2a 100644 --- a/inception/inception-kb/src/test/resources/data/streams.ttl +++ b/inception/inception-kb/src/test/resources/data/streams.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + @prefix stream: . @prefix rdfs: . @@ -82,3 +98,19 @@ stream:objectoutput a rdfs:Class ; stream:pipedoutput a rdfs:Class ; rdfs:subClassOf stream:output ; rdfs:label "PipedOutputStream" . + +# A class declared only implicitly: it has a superclass, but no explicit rdf:type rdfs:Class. +stream:checkedoutput rdfs:subClassOf stream:filteroutput ; + rdfs:label "CheckedOutputStream" . + +# Also declared only implicitly. Having a subclass makes checkedoutput a root candidate, which +# must still be excluded because it has a superclass. +stream:verifiedoutput rdfs:subClassOf stream:checkedoutput ; + rdfs:label "VerifiedOutputStream" . + +# Instances, which must not be treated as concepts. +stream:systemin a stream:bufferedinput ; + rdfs:label "System.in" . + +stream:systemout a stream:print ; + rdfs:label "System.out" . diff --git a/inception/inception-kb/src/test/resources/data/tagset_custom_label.rdf b/inception/inception-kb/src/test/resources/data/tagset_custom_label.rdf new file mode 100644 index 00000000000..fd7a3f87a01 --- /dev/null +++ b/inception/inception-kb/src/test/resources/data/tagset_custom_label.rdf @@ -0,0 +1,80 @@ + + + + +]> + + + + + has tag + + + Noun + + + Common noun + + + + Proper noun + + Verb + Numeral + + + + NN + Singular common noun + + + + NNS + Plural common noun + + + + NNP + Singular proper noun + + + + NNPS + Plural proper noun + + + + VB + Verb in base form + + + + CD + Number + + diff --git a/inception/inception-kb/src/test/resources/data/tagset_custom_label.ttl b/inception/inception-kb/src/test/resources/data/tagset_custom_label.ttl new file mode 100644 index 00000000000..182a2cc4001 --- /dev/null +++ b/inception/inception-kb/src/test/resources/data/tagset_custom_label.ttl @@ -0,0 +1,56 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Part-of-speech tags as instances whose label is given by a custom label property (ex:hasTag) +# with typed literals. Each instance also has an rdfs:label, which a search over ex:hasTag must +# ignore. + +@prefix ex: . +@prefix owl: . +@prefix rdfs: . +@prefix xsd: . + +ex:hasTag a owl:DatatypeProperty ; + rdfs:label "has tag" . + +ex:Noun a owl:Class ; rdfs:label "Noun" . +ex:CommonNoun a owl:Class ; rdfs:subClassOf ex:Noun ; rdfs:label "Common noun" . +ex:ProperNoun a owl:Class ; rdfs:subClassOf ex:Noun ; rdfs:label "Proper noun" . +ex:Verb a owl:Class ; rdfs:label "Verb" . +ex:Numeral a owl:Class ; rdfs:label "Numeral" . + +ex:NN a owl:NamedIndividual, ex:CommonNoun ; + ex:hasTag "NN"^^xsd:string ; + rdfs:label "Singular common noun" . + +ex:NNS a owl:NamedIndividual, ex:CommonNoun ; + ex:hasTag "NNS"^^xsd:string ; + rdfs:label "Plural common noun" . + +ex:NNP a owl:NamedIndividual, ex:ProperNoun ; + ex:hasTag "NNP"^^xsd:string ; + rdfs:label "Singular proper noun" . + +ex:NNPS a owl:NamedIndividual, ex:ProperNoun ; + ex:hasTag "NNPS"^^xsd:string ; + rdfs:label "Plural proper noun" . + +ex:VB a owl:NamedIndividual, ex:Verb ; + ex:hasTag "VB"^^xsd:string ; + rdfs:label "Verb in base form" . + +ex:CD a owl:NamedIndividual, ex:Numeral ; + ex:hasTag "CD"^^xsd:string ; + rdfs:label "Number" . diff --git a/inception/inception-kb/src/test/resources/data/wildlife_ontology.ttl b/inception/inception-kb/src/test/resources/data/wildlife_ontology.ttl deleted file mode 100644 index 877ab6391de..00000000000 --- a/inception/inception-kb/src/test/resources/data/wildlife_ontology.ttl +++ /dev/null @@ -1,452 +0,0 @@ -@prefix wo: . -@prefix rdfs: . -@prefix foaf: . -@prefix owl: . -@prefix xsd: . -@prefix rdf: . -@prefix vs: . -@prefix dctypes: . -@prefix dcterms: . -@prefix dc: . -@prefix provenance: . - - - - rdf:type owl:Ontology , provenance:Ontology ; - rdfs:comment "A simple vocabulary for describing biological species and related taxa. The vocabulary defines terms for describing the names and ranking of taxa, as well as providing support for describing their habitats, conservation status, and behavioural characteristics, etc"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Wildlife Ontology"^^xsd:string ; - dc:creator , ; - dcterms:title "Wildlife Ontology"@en-gb ; - dcterms:created "2010-01-04"^^xsd:date ; - dc:date "Date: 2013/12/18 11:33:00 " ; - dcterms:license ; - provenance:canonicalLocation - "https://repo.dev.bbc.co.uk/services/linked-data/ontologies/domain/kl/wildlife"^^xsd:string ; - provenance:changeReason - "Copying foaf: makers into dc:contributor."^^xsd:string ; - provenance:slug "wo"^^xsd:string ; - provenance:version "1.1"^^xsd:string ; - provenance:public "true"^^xsd:boolean ; - foaf:maker , ; - owl:imports vs: , dc: , dcterms: , foaf: , , ; - owl:priorVersion ; - owl:versionIRI ; - owl:versionInfo "1.1"^^xsd:string . - - -wo:growsIn a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a habitat in which it grows. Sub-property of wo:habitat to be used for plants, fungi, etc"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "grows in"@en-gb ; - rdfs:range wo:Habitat ; - vs:term_status "testing" . - -wo:speciesName a owl:DatatypeProperty ; - rdfs:comment "specifies the species part of a binomial name, allowing this portion of the name to be explicitly described. Therefore this property will typically only be used in TaxonNames associated with species. The property is largely provided as a convenience to avoid applications having to parse the binomial name."@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "species name"@en-gb ; - rdfs:range xsd:string ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:adaptation a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with an adaptation which it displays"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "adaptation"@en-gb ; - rdfs:range wo:Adaptation ; - vs:term_status "testing" . - -wo:SurvivalStrategy a owl:Class ; - rdfs:comment "Survival strategies include adaptations to changes in the organisms environment, including: hibernation, abscission and migration."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Survival Strategy"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:SocialBehaviour a owl:Class ; - rdfs:comment "Social behaviour is all about how an animal interacts with members of its own species. For instance, does it live in a colony or on its own, does it fight to be top of the pecking order, or does it try to keep strangers away from its home?"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Social Behaviour"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - - - a foaf:Person ; - foaf:name "Leigh Dodds" . - -wo:className a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a class as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "class name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:Kingdom a owl:Class ; - rdfs:comment "Kingdoms are the major categories into which scientists divide up all living things. The main kingdoms are animals, plants, fungi and bacteria, although there are others. Each kingdom has its own suite of defining characteristics - for instance plants have rigid cell walls, whilst animals do not."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Kingdom"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:Adaptation a owl:Class ; - rdfs:comment "An adaptation is any feature of an animal or plant which makes it better suited for a particular habitat or to do a particular task. For instance, being streamlined is an adaptation to swimming fast and being able to survive on very little water is an adaptation to life in the desert."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Adaptation"@en-gb ; - rdfs:seeAlso , ; - vs:term_status "testing" . - -wo:yearAssessed a owl:DatatypeProperty ; - rdfs:comment "the year in which the conservation status was assessed."@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "year assessed"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:populationTrend a owl:DatatypeProperty ; - rdfs:comment "provides some indication of the population trend associated with an assessment of a taxon's conversation status. The value of this property is a simple literal, and is recommended to be one of: Decreasing, Increasing, Stable, Unknown."@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "population trend"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "unstable" . - -wo:redListStatus a owl:ObjectProperty ; - rdfs:comment "associates a Conservation Status with a category in the IUCN Red List"@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "red list status"@en-gb ; - rdfs:range wo:RedListStatus ; - vs:term_status "testing" . - -wo:genus a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a genus"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "genus"@en-gb ; - rdfs:range wo:Genus ; - vs:term_status "testing" . - -wo:shortDescription a owl:DatatypeProperty ; - rdfs:comment "associates a short description with a Collection."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "short description"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:FreshwaterHabitat a owl:Class ; - rdfs:comment "Freshwater habitats include bogs, ponds, lakes, rivers and streams. About 3% of Earth's water is freshwater, but this includes the water locked up in the ice caps and trapped in rocks and soil as groundwater. Only a tiny fraction (0.014%) is surface water in the form of rivers, lakes and swamps." ; - rdfs:isDefinedBy wo:; rdfs:label "Freshwater Habitat"@en-gb ; - rdfs:subClassOf wo:Habitat ; - vs:term_status "testing" . - -wo:orderName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of an order as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "order name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:PredationStrategy a owl:Class ; - rdfs:comment "Predation is catching and killing an animal in order to eat it. The prey can be chased, ambushed or caught in a trap such as a spider's web."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Predation Strategy"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:Ecozone a owl:Class ; - rdfs:comment "Ecozones are a method of dividing up the Earth's surface. Each ecozone is a large area that contains a number of habitats, which are linked by the evolutionary history of the animals and plants within them. For instance one ecozone is Australasia, because its marsupials evolved in isolation to mammals in the rest of the world."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Ecozone"@en-gb ; - vs:term_status "testing" . - -wo:commonName a owl:DatatypeProperty ; - rdfs:comment "associates a formal taxon name with a common version. E.g. Panthera leo might be associated with a common name of 'Lion'. A given taxon name may have several common names"@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "common name"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:family a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a family"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "family"@en-gb ; - rdfs:range wo:Family ; - vs:term_status "testing" . - -wo:collection a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank, habitat, species, clip with a collection of which it is a member"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "collection"@en-gb ; - rdfs:range wo:Collection ; - rdfs:subPropertyOf dcterms:isPartOf ; - vs:term_status "testing" . - -wo:kingdomName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a kingdom as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "kingdom name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:Species a owl:Class ; - rdfs:comment "Generic class defining a biological species"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "species"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:RedListStatus a owl:Class ; - rdfs:comment "A category in the IUCN red list, 2001."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Red List Status"@en-gb ; - rdfs:seeAlso ; - vs:term_status "testing" . - -wo:name a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a taxon name"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "name"@en-gb ; - rdfs:range wo:TaxonName ; - vs:term_status "testing" . - -wo:habitat a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a habitat in which it may typically be found"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "habitat"@en-gb ; - rdfs:range wo:Habitat ; - vs:term_status "testing" . - -wo:LocomotionAdaptation - a owl:Class ; - rdfs:comment "Locomotion is how an animal gets around - for instance by swimming, flying or climbing."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Locomotion"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:taxonomicName a owl:DatatypeProperty ; - rdfs:comment "a naming property, associating a formal taxonomic name with a Taxon Name instance. This property is a parent of a number of sub-properties that provide more specific terms for denoting names of families, phyla, species, etc."@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "taxonomic name"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:TerrestrialHabitat - a owl:Class ; - rdfs:comment "Terrestrial habitats include forests, grasslands, deserts and rainforests. They are typically defined by factors such as plant structure (trees and grasses), leaf types (eg broadleaf and needleleaf), plant spacing (forest, woodland, savanna) and climate." ; - rdfs:isDefinedBy wo:; rdfs:label "Terrestrial Habitat"@en-gb ; - rdfs:subClassOf wo:Habitat ; - vs:term_status "testing" . - -wo:ReproductionStrategy - a owl:Class ; - rdfs:comment "Reproduction covers all the tactics and behaviours involved in obtaining a mate, conceiving the next generation and successfully raising them. It includes everything from plants being pollinated, to stags fighting over hinds, to lionesses babysitting their sisters' cubs."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Reproduction Strategy"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:EcosystemRole a owl:Class ; - rdfs:comment "Ecosystem roles are about the part an animal or plant plays in sustaining or maintaining the habitat around them. Bees, for example, pollinate flowers, without which those plants would not produce fruits or seeds. Other species, such as dung beetles, play a vital role in keeping grasslands clear of animal waste and recycling valuable resources."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Ecosystem Role"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:Phylum a owl:Class ; - rdfs:comment "A phylum - also known as a division when referring to plants - is a scientific way of grouping together related organisms. All the members of a phylum have a common ancestor and anatomical similarities. For instance, all the arthropods have external skeletons. Phlya are large groups and are further subdivided into classes, orders, families and so on."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Phylum"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:LifeCycle a owl:Class ; - rdfs:comment "An organism's Life Cycle describes the stages in an organisms development including metamorphosis, courtship displays and parental care.."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Life Cycle"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:ConservationStatus - a owl:Class ; - rdfs:comment "Conservation status as described by the IUCN Red List. Will typically have a number of properties including an official IUCN status, population trend, and a year of assessment."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Conservation Status"@en-gb ; - vs:term_status "testing" . - -wo:MorphologyAdaptation - a owl:Class ; - rdfs:comment "Morphology is anything to do with what a plant or animal looks like - its size, shape, colour or structure."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Morphology"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:MarineHabitat a owl:Class ; - rdfs:comment "Approximately 71% of the Earth's surface is covered by the oceans, an area of some 223698816km/sq. Although marine life evolved around three billion years before life on land, marine habitats are relatively poorly studied and much of the ocean's depths remains unexplored." ; - rdfs:isDefinedBy wo:; rdfs:label "Marine Habitat"@en-gb ; - rdfs:subClassOf wo:Habitat ; - vs:term_status "testing" . - -wo:scientificName a owl:DatatypeProperty ; - rdfs:comment "associates a taxon name with its formal scientific name. This may be a binomial name (e.g. Panthera leo) in the case of a species name, or a uninomial (e.g. Panthera) name in the case of a name associated with another taxon rank. In formal taxonomic naming conventions, the scientific name is often qualified with the source of the name, e.g. Panthera leo (Linnaeus, 1758)."@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "scientific name"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:genusName a owl:DatatypeProperty ; - rdfs:comment "specifies the genus part of a binomial name, allowing this portion of the name to be explicitly described. Therefore this property will typically only be used in TaxonNames associated with species. The property is largely provided as a convenience to avoid applications having to parse the binomial name."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "genus name"@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:phylumName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a phylum as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "phylum name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - - - a foaf:Person ; - foaf:name "Tom Scott" . - -wo:Order a owl:Class ; - rdfs:comment "An order is a scientific way to categorise related organisms. An order is a smaller grouping than a class, but bigger than a family or genus. Examples of orders are willows, cockroaches and primates."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Order"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:BehaviouralPattern - a owl:Class ; - rdfs:comment "Behavioural pattern describes an animal's dominant way of life. Arboreal animals, for example, live in trees and nocturnal animals are active at night."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Behavioural Pattern"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:Collection a owl:Class ; - rdfs:comment "A collection of resources, including documents, multimedia files, programme clips and their associated taxa, which aims to showcase a particular aspect of natural history film-making, or illustrate aspects of the natural world. A collection provides an alternate way to organize content over and above the basic taxonomic hierarchy." ; - rdfs:isDefinedBy wo:; rdfs:label "Collection" ; - rdfs:subClassOf dctypes:Collection ; - vs:term_status "testing" . - -wo:AnimalIntelligence - a owl:Class ; - rdfs:comment "Animal Intelligence or animal cognition is the title given to a modern approach to the mental capacities of non-human animals. It has developed out of comparative psychology, but has also been strongly influenced by the approach of ethology, behavioral ecology, and evolutionary psychology."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Animal Intelligence"@en-gb ; - vs:term_status "testing" . - -wo:kingdom a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a kingdom"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "kingdom"@en-gb ; - rdfs:range wo:Kingdom ; - vs:term_status "testing" . - -wo:order a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with an order"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "order"@en-gb ; - rdfs:range wo:Kingdom ; - vs:term_status "testing" . - -wo:distributionMap a owl:ObjectProperty ; - rdfs:comment "associates a habitat, ecozone, or taxon rank with a map depicting its distribution or location"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "distribution map"@en-gb ; - rdfs:range foaf:Image ; - vs:term_status "unstable" . - -wo:Class a owl:Class ; - rdfs:comment "A class is a scientific way to group related organisms together, some examples of classes being jellyfish, reptiles and sea urchins. Classes are big groups and contain within them smaller groupings called orders, families, genera and species."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Class"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:class a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a class"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "class"@en-gb ; - rdfs:range wo:Class ; - vs:term_status "testing" . - -wo:conservationStatus - a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a description of a recent assessment of its conservation status"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "conservation status"@en-gb ; - rdfs:range wo:ConservationStatus ; - vs:term_status "testing" . - -wo:Family a owl:Class ; - rdfs:comment "A family is a scientific grouping of closely related organisms. It has smaller groups, called genera and species, within it. A family can have a lot of members or only a few. Examples of families include the cats (Felidae), the gulls (Laridae) and the grasses (Poaceae)."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Family"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:phylum a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a phylum"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "phylum"@en-gb ; - rdfs:range wo:Phylum ; - vs:term_status "testing" . - -wo:Habitat a owl:Class ; - rdfs:comment "A habitat, or biome, is the type of environment in which plant and animals live. Habitat is dictated by what kinds of plants grow there, the climate and the geography. Rainforest, coral reefs and the tundra are all habitats where particular kinds of plants and animals might be found."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Habitat"@en-gb ; - rdfs:seeAlso , ; - vs:term_status "testing" . - -wo:TaxonName a owl:Class ; - rdfs:comment "A taxonomic name, describing the structure and provenance of a taxonomic name."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Taxon Name"@en-gb ; - vs:term_status "testing" . - -wo:ecozone a owl:ObjectProperty ; - rdfs:comment "indicates that a habitat or a taxon rank can be found within an ecozone"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "ecozone"@en-gb ; - rdfs:range wo:Ecozone ; - vs:term_status "testing" . - -wo:CommunicationAdaptation - a owl:Class ; - rdfs:comment "Communication and senses are how an organism perceives the world - for instance through scent or sight - and how it sends messages or warnings to others."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Communication Adaptation"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:familyName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a family as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "family name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:threatDescription a owl:DatatypeProperty ; - rdfs:comment "description of the threat(s) that have been identified as part of the assessment of the Conservation Status of a taxon"@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "threatDescription"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:TaxonRank a owl:Class ; - rdfs:comment "Generic concept for a taxonomic rank such as a Genus or Species."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Taxonomic Rank"@en-gb ; - rdfs:seeAlso ; - vs:term_status "testing" . - -wo:livesIn a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a habitat in which it lives. Sub-property of wo:habitat to be used for members of the animal kingdom"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "lives in"@en-gb ; - rdfs:range wo:Habitat ; - vs:term_status "testing" . - -wo:ExtremesAdaptation - a owl:Class ; - rdfs:comment "Organisms that are adapted to extremes (known as Extremophiles) are organisms that thrives in and even may require physically or geochemically extreme conditions that are detrimental to the majority of life on Earth."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Adapted to Extremes"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:species a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a species"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "species"@en-gb ; - rdfs:range wo:Species ; - vs:term_status "testing" . - -wo:Genus a owl:Class ; - rdfs:comment "A genus is a scientific way of showing that species are very closed related to each other. In fact the first word of the species' scientific name is its genus. So for lions (Panthera leo), Panthera is the genus and tells us that they are closely related to tigers (Panthera tigris), because they share the name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Genus"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:FeedingHabit a owl:Class ; - rdfs:comment "Feeding habits describe the dominant diet of a particular species or group of species, and how they go about obtaining it."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Feeding Habit"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . \ No newline at end of file diff --git a/inception/inception-kb/src/test/resources/data/wine-ontology.rdf b/inception/inception-kb/src/test/resources/data/wine-ontology.rdf deleted file mode 100644 index a683c4741e2..00000000000 --- a/inception/inception-kb/src/test/resources/data/wine-ontology.rdf +++ /dev/null @@ -1,2403 +0,0 @@ - - - - - - ]> - - - - - An example OWL ontology - - - - - Derived from the DAML Wine ontology at - http://ontolingua.stanford.edu/doc/chimaera/ontologies/wines.daml - Substantially changed, in particular the Region based relations. - - Wine Ontology - - - - - - - - 1 - - - - - - - - - - - - 1 - - - - - - 1 - - - - - - 1 - - - - - - 1 - - - - - - 1 - - - - - - - - - wine - vin - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1998 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Made WineDescriptor unionType of tastes and color - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - 1 - - - - - - Sauternes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/inception/inception-kb/src/test/resources/data/wordnet-ontolex-ontology.owl b/inception/inception-kb/src/test/resources/data/wordnet-ontolex-ontology.owl deleted file mode 100644 index 2d22a45bfa0..00000000000 --- a/inception/inception-kb/src/test/resources/data/wordnet-ontolex-ontology.owl +++ /dev/null @@ -1,539 +0,0 @@ - - - - - - wordnet-ontology - http://wordnet-rdf.princeton.edu/ontology# - WordNet RDF Ontology - An ontology describing the data types used in the WordNet RDF model - 2014-03-03 - 2011-04-17 - 3.1 - - - - - - - - - - - - - - - - - - Noun.process - - - Sense tag - - - - - Instance hypernym - - - - - Action - - - - Verb.social - - - - Adjective - - - - - Verb frame sentence - - - Lexical domain - - - - Verb.weather - - - - Lexical domain - - - - Member - - - - - Noun.cognition - - - - Domain member category - - - - Hyponym - - - - - - Domain member usage - - - - Unlabeled - - - - Noun.communication - - - Phrase type - - - - - Domain - - - - Noun.person - - - - Verb.body - - - Verb.possession - - - - - Agent - - - Link - - - - - Noun.location - - - Tag count - - - - Phrase type - - - - - Theme - - - Noun.linkdef - - - - - Part holonym - - - - - Noun.artifact - - - - Domain category - - - - Verb.emotion - - - - Participle - - - - Goal - - - Verb group - - - - Noun.act - - - - Adj.ppl - - - - Domain usage - - - - Old sense key - - - - - Immediately postnominal - - - - Sense number - - - Noun.phenomenon - - - - Noun.motive - - - - - Instrument - - - - Domain region - - - Substance holonym - - - - - - - - Noun.state - - - - - Verb.competition - - - Also - - - - - Translation - - - - - - - Phrase - - - Noun.shape - - - - - - Idiom - - - Adj.pert - - - - Verb.motion - - - - - Location - - - Gloss - - - - - - Verb.creation - - - - Adj.all - - - Noun.event - - - - Verb.cognition - - - - - Result - - - Verb.stative - - - - Attributive - - - - - - Noun - - - - Noun.feeling - - - - - Beneficiary - - - - - Instance hyponym - - - - - Sample - - - Verb.contact - - - - - Entail - - - - Domain member region - - - - - Verb - - - - - Verb.change - - - - - Member meronym - - - - Noun.object - - - - Verbnet class - - - - Attribute - - - - Noun.body - - - - Patient - - - - Part meronym - - - - - - Adverb - - - - Product - - - - Noun.attribute - - - - - Predicate - - - - Synset - - - - - Hypernym - - - - - - - - Verb.perception - - - Noun.substance - - - - - Noun.plant - - - - Substance meronym - - - - - Adjective position - - - Noun.group - - - - Derivation - - - - - - Part of speech - - - - - Part of speech - - - - Noun.food - - - - Creator - - - - - Verb.consumption - - - - - Cause - - - - Member holonym - - - - - Adv.all - - - - - - - - Pertainym - - - - Adjective satellite - - - - Noun.tops - - - - Noun.possession - - - - Noun.animal - - - Noun.quantity - - - - - Experiencer - - - Synset member - - - - Verb.communication - - - - - Antonym - - - - - Similar - - - - Noun.time - - - diff --git a/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties.ttl b/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties.ttl index ec5fdc91303..e30c97c9aec 100644 --- a/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties.ttl +++ b/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + <#example> rdfs:prefLabel 'specimen' ; rdfs:label 'sample' ; diff --git a/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties_2.ttl b/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties_2.ttl index bb2b9a0f2f7..78572f594ba 100644 --- a/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties_2.ttl +++ b/inception/inception-kb/src/test/resources/turtle/data_additional_search_properties_2.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + <#example> rdfs:prefLabel 'Hand structure (body structure)' ; rdfs:label 'Hand' ; diff --git a/inception/inception-kb/src/test/resources/turtle/data_labels_and_descriptions_with_language.ttl b/inception/inception-kb/src/test/resources/turtle/data_labels_and_descriptions_with_language.ttl index 35eee5a1800..cb1fac245a5 100644 --- a/inception/inception-kb/src/test/resources/turtle/data_labels_and_descriptions_with_language.ttl +++ b/inception/inception-kb/src/test/resources/turtle/data_labels_and_descriptions_with_language.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + <#green-goblin> rdfs:label 'Green Goblin' ; rdfs:label 'Green Goblin'@en ; diff --git a/inception/inception-kb/src/test/resources/turtle/mismatching_literal_statement.ttl b/inception/inception-kb/src/test/resources/turtle/mismatching_literal_statement.ttl index 0f459ea8d63..b1703d85980 100644 --- a/inception/inception-kb/src/test/resources/turtle/mismatching_literal_statement.ttl +++ b/inception/inception-kb/src/test/resources/turtle/mismatching_literal_statement.ttl @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + @base . @prefix rdf: . @prefix rdfs: . diff --git a/inception/inception-kb/src/test/resources/upstream-data/1.1.ttl b/inception/inception-kb/src/test/resources/upstream-data/1.1.ttl deleted file mode 100644 index 710b44e309a..00000000000 --- a/inception/inception-kb/src/test/resources/upstream-data/1.1.ttl +++ /dev/null @@ -1,452 +0,0 @@ -@prefix wo: . -@prefix rdfs: . -@prefix foaf: . -@prefix owl: . -@prefix xsd: . -@prefix rdf: . -@prefix vs: . -@prefix dctypes: . -@prefix dcterms: . -@prefix dc: . -@prefix provenance: . - - - - rdf:type owl:Ontology , provenance:Ontology ; - rdfs:comment "A simple vocabulary for describing biological species and related taxa. The vocabulary defines terms for describing the names and ranking of taxa, as well as providing support for describing their habitats, conservation status, and behavioural characteristics, etc"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Wildlife Ontology"^^xsd:string ; - dc:creator , ; - dcterms:title "Wildlife Ontology"@en-gb ; - dcterms:created "2010-01-04"^^xsd:date ; - dc:date "Date: 2013/12/18 11:33:00 " ; - dcterms:license ; - provenance:canonicalLocation - "https://repo.dev.bbc.co.uk/services/linked-data/ontologies/domain/kl/wildlife"^^xsd:string ; - provenance:changeReason - "Copying foaf: makers into dc:contributor."^^xsd:string ; - provenance:slug "wo"^^xsd:string ; - provenance:version "1.1"^^xsd:string ; - provenance:public "true"^^xsd:boolean ; - foaf:maker , ; - owl:imports vs: , dc: , dcterms: , foaf: , , ; - owl:priorVersion ; - owl:versionIRI ; - owl:versionInfo "1.1"^^xsd:string . - - -wo:growsIn a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a habitat in which it grows. Sub-property of wo:habitat to be used for plants, fungi, etc"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "grows in"@en-gb ; - rdfs:range wo:Habitat ; - vs:term_status "testing" . - -wo:speciesName a owl:DatatypeProperty ; - rdfs:comment "specifies the species part of a binomial name, allowing this portion of the name to be explicitly described. Therefore this property will typically only be used in TaxonNames associated with species. The property is largely provided as a convenience to avoid applications having to parse the binomial name."@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "species name"@en-gb ; - rdfs:range xsd:string ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:adaptation a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with an adaptation which it displays"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "adaptation"@en-gb ; - rdfs:range wo:Adaptation ; - vs:term_status "testing" . - -wo:SurvivalStrategy a owl:Class ; - rdfs:comment "Survival strategies include adaptations to changes in the organisms environment, including: hibernation, abscission and migration."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Survival Strategy"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:SocialBehaviour a owl:Class ; - rdfs:comment "Social behaviour is all about how an animal interacts with members of its own species. For instance, does it live in a colony or on its own, does it fight to be top of the pecking order, or does it try to keep strangers away from its home?"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Social Behaviour"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - - - a foaf:Person ; - foaf:name "Leigh Dodds" . - -wo:className a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a class as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "class name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:Kingdom a owl:Class ; - rdfs:comment "Kingdoms are the major categories into which scientists divide up all living things. The main kingdoms are animals, plants, fungi and bacteria, although there are others. Each kingdom has its own suite of defining characteristics - for instance plants have rigid cell walls, whilst animals do not."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Kingdom"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:Adaptation a owl:Class ; - rdfs:comment "An adaptation is any feature of an animal or plant which makes it better suited for a particular habitat or to do a particular task. For instance, being streamlined is an adaptation to swimming fast and being able to survive on very little water is an adaptation to life in the desert."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Adaptation"@en-gb ; - rdfs:seeAlso , ; - vs:term_status "testing" . - -wo:yearAssessed a owl:DatatypeProperty ; - rdfs:comment "the year in which the conservation status was assessed."@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "year assessed"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:populationTrend a owl:DatatypeProperty ; - rdfs:comment "provides some indication of the population trend associated with an assessment of a taxon's conversation status. The value of this property is a simple literal, and is recommended to be one of: Decreasing, Increasing, Stable, Unknown."@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "population trend"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "unstable" . - -wo:redListStatus a owl:ObjectProperty ; - rdfs:comment "associates a Conservation Status with a category in the IUCN Red List"@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "red list status"@en-gb ; - rdfs:range wo:RedListStatus ; - vs:term_status "testing" . - -wo:genus a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a genus"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "genus"@en-gb ; - rdfs:range wo:Genus ; - vs:term_status "testing" . - -wo:shortDescription a owl:DatatypeProperty ; - rdfs:comment "associates a short description with a Collection."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "short description"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:FreshwaterHabitat a owl:Class ; - rdfs:comment "Freshwater habitats include bogs, ponds, lakes, rivers and streams. About 3% of Earth's water is freshwater, but this includes the water locked up in the ice caps and trapped in rocks and soil as groundwater. Only a tiny fraction (0.014%) is surface water in the form of rivers, lakes and swamps." ; - rdfs:isDefinedBy wo:; rdfs:label "Freshwater Habitat"@en-gb ; - rdfs:subClassOf wo:Habitat ; - vs:term_status "testing" . - -wo:orderName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of an order as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "order name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:PredationStrategy a owl:Class ; - rdfs:comment "Predation is catching and killing an animal in order to eat it. The prey can be chased, ambushed or caught in a trap such as a spider's web."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Predation Strategy"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:Ecozone a owl:Class ; - rdfs:comment "Ecozones are a method of dividing up the Earth's surface. Each ecozone is a large area that contains a number of habitats, which are linked by the evolutionary history of the animals and plants within them. For instance one ecozone is Australasia, because its marsupials evolved in isolation to mammals in the rest of the world."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Ecozone"@en-gb ; - vs:term_status "testing" . - -wo:commonName a owl:DatatypeProperty ; - rdfs:comment "associates a formal taxon name with a common version. E.g. Panthera leo might be associated with a common name of 'Lion'. A given taxon name may have several common names"@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "common name"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:family a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a family"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "family"@en-gb ; - rdfs:range wo:Family ; - vs:term_status "testing" . - -wo:collection a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank, habitat, species, clip with a collection of which it is a member"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "collection"@en-gb ; - rdfs:range wo:Collection ; - rdfs:subPropertyOf dcterms:isPartOf ; - vs:term_status "testing" . - -wo:kingdomName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a kingdom as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "kingdom name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:Species a owl:Class ; - rdfs:comment "Generic class defining a biological species"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "species"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:RedListStatus a owl:Class ; - rdfs:comment "A category in the IUCN red list, 2001."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Red List Status"@en-gb ; - rdfs:seeAlso ; - vs:term_status "testing" . - -wo:name a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a taxon name"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "name"@en-gb ; - rdfs:range wo:TaxonName ; - vs:term_status "testing" . - -wo:habitat a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a habitat in which it may typically be found"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "habitat"@en-gb ; - rdfs:range wo:Habitat ; - vs:term_status "testing" . - -wo:LocomotionAdaptation - a owl:Class ; - rdfs:comment "Locomotion is how an animal gets around - for instance by swimming, flying or climbing."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Locomotion"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:taxonomicName a owl:DatatypeProperty ; - rdfs:comment "a naming property, associating a formal taxonomic name with a Taxon Name instance. This property is a parent of a number of sub-properties that provide more specific terms for denoting names of families, phyla, species, etc."@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "taxonomic name"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:TerrestrialHabitat - a owl:Class ; - rdfs:comment "Terrestrial habitats include forests, grasslands, deserts and rainforests. They are typically defined by factors such as plant structure (trees and grasses), leaf types (eg broadleaf and needleleaf), plant spacing (forest, woodland, savanna) and climate." ; - rdfs:isDefinedBy wo:; rdfs:label "Terrestrial Habitat"@en-gb ; - rdfs:subClassOf wo:Habitat ; - vs:term_status "testing" . - -wo:ReproductionStrategy - a owl:Class ; - rdfs:comment "Reproduction covers all the tactics and behaviours involved in obtaining a mate, conceiving the next generation and successfully raising them. It includes everything from plants being pollinated, to stags fighting over hinds, to lionesses babysitting their sisters' cubs."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Reproduction Strategy"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:EcosystemRole a owl:Class ; - rdfs:comment "Ecosystem roles are about the part an animal or plant plays in sustaining or maintaining the habitat around them. Bees, for example, pollinate flowers, without which those plants would not produce fruits or seeds. Other species, such as dung beetles, play a vital role in keeping grasslands clear of animal waste and recycling valuable resources."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Ecosystem Role"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:Phylum a owl:Class ; - rdfs:comment "A phylum - also known as a division when referring to plants - is a scientific way of grouping together related organisms. All the members of a phylum have a common ancestor and anatomical similarities. For instance, all the arthropods have external skeletons. Phlya are large groups and are further subdivided into classes, orders, families and so on."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Phylum"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:LifeCycle a owl:Class ; - rdfs:comment "An organism's Life Cycle describes the stages in an organisms development including metamorphosis, courtship displays and parental care.."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Life Cycle"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:ConservationStatus - a owl:Class ; - rdfs:comment "Conservation status as described by the IUCN Red List. Will typically have a number of properties including an official IUCN status, population trend, and a year of assessment."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Conservation Status"@en-gb ; - vs:term_status "testing" . - -wo:MorphologyAdaptation - a owl:Class ; - rdfs:comment "Morphology is anything to do with what a plant or animal looks like - its size, shape, colour or structure."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Morphology"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:MarineHabitat a owl:Class ; - rdfs:comment "Approximately 71% of the Earth's surface is covered by the oceans, an area of some 223698816km/sq. Although marine life evolved around three billion years before life on land, marine habitats are relatively poorly studied and much of the ocean's depths remains unexplored." ; - rdfs:isDefinedBy wo:; rdfs:label "Marine Habitat"@en-gb ; - rdfs:subClassOf wo:Habitat ; - vs:term_status "testing" . - -wo:scientificName a owl:DatatypeProperty ; - rdfs:comment "associates a taxon name with its formal scientific name. This may be a binomial name (e.g. Panthera leo) in the case of a species name, or a uninomial (e.g. Panthera) name in the case of a name associated with another taxon rank. In formal taxonomic naming conventions, the scientific name is often qualified with the source of the name, e.g. Panthera leo (Linnaeus, 1758)."@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:isDefinedBy wo:; rdfs:label "scientific name"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:genusName a owl:DatatypeProperty ; - rdfs:comment "specifies the genus part of a binomial name, allowing this portion of the name to be explicitly described. Therefore this property will typically only be used in TaxonNames associated with species. The property is largely provided as a convenience to avoid applications having to parse the binomial name."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "genus name"@en-gb ; - rdfs:domain wo:TaxonName ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:phylumName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a phylum as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "phylum name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - - - a foaf:Person ; - foaf:name "Tom Scott" . - -wo:Order a owl:Class ; - rdfs:comment "An order is a scientific way to categorise related organisms. An order is a smaller grouping than a class, but bigger than a family or genus. Examples of orders are willows, cockroaches and primates."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Order"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:BehaviouralPattern - a owl:Class ; - rdfs:comment "Behavioural pattern describes an animal's dominant way of life. Arboreal animals, for example, live in trees and nocturnal animals are active at night."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Behavioural Pattern"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:Collection a owl:Class ; - rdfs:comment "A collection of resources, including documents, multimedia files, programme clips and their associated taxa, which aims to showcase a particular aspect of natural history film-making, or illustrate aspects of the natural world. A collection provides an alternate way to organize content over and above the basic taxonomic hierarchy." ; - rdfs:isDefinedBy wo:; rdfs:label "Collection" ; - rdfs:subClassOf dctypes:Collection ; - vs:term_status "testing" . - -wo:AnimalIntelligence - a owl:Class ; - rdfs:comment "Animal Intelligence or animal cognition is the title given to a modern approach to the mental capacities of non-human animals. It has developed out of comparative psychology, but has also been strongly influenced by the approach of ethology, behavioral ecology, and evolutionary psychology."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Animal Intelligence"@en-gb ; - vs:term_status "testing" . - -wo:kingdom a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a kingdom"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "kingdom"@en-gb ; - rdfs:range wo:Kingdom ; - vs:term_status "testing" . - -wo:order a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with an order"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "order"@en-gb ; - rdfs:range wo:Kingdom ; - vs:term_status "testing" . - -wo:distributionMap a owl:ObjectProperty ; - rdfs:comment "associates a habitat, ecozone, or taxon rank with a map depicting its distribution or location"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "distribution map"@en-gb ; - rdfs:range foaf:Image ; - vs:term_status "unstable" . - -wo:Class a owl:Class ; - rdfs:comment "A class is a scientific way to group related organisms together, some examples of classes being jellyfish, reptiles and sea urchins. Classes are big groups and contain within them smaller groupings called orders, families, genera and species."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Class"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:class a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a class"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "class"@en-gb ; - rdfs:range wo:Class ; - vs:term_status "testing" . - -wo:conservationStatus - a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a description of a recent assessment of its conservation status"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "conservation status"@en-gb ; - rdfs:range wo:ConservationStatus ; - vs:term_status "testing" . - -wo:Family a owl:Class ; - rdfs:comment "A family is a scientific grouping of closely related organisms. It has smaller groups, called genera and species, within it. A family can have a lot of members or only a few. Examples of families include the cats (Felidae), the gulls (Laridae) and the grasses (Poaceae)."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Family"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:phylum a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a phylum"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "phylum"@en-gb ; - rdfs:range wo:Phylum ; - vs:term_status "testing" . - -wo:Habitat a owl:Class ; - rdfs:comment "A habitat, or biome, is the type of environment in which plant and animals live. Habitat is dictated by what kinds of plants grow there, the climate and the geography. Rainforest, coral reefs and the tundra are all habitats where particular kinds of plants and animals might be found."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Habitat"@en-gb ; - rdfs:seeAlso , ; - vs:term_status "testing" . - -wo:TaxonName a owl:Class ; - rdfs:comment "A taxonomic name, describing the structure and provenance of a taxonomic name."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Taxon Name"@en-gb ; - vs:term_status "testing" . - -wo:ecozone a owl:ObjectProperty ; - rdfs:comment "indicates that a habitat or a taxon rank can be found within an ecozone"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "ecozone"@en-gb ; - rdfs:range wo:Ecozone ; - vs:term_status "testing" . - -wo:CommunicationAdaptation - a owl:Class ; - rdfs:comment "Communication and senses are how an organism perceives the world - for instance through scent or sight - and how it sends messages or warnings to others."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Communication Adaptation"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:familyName a owl:DatatypeProperty ; - rdfs:comment "Used to specify the name of a family as part of a Taxon Name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "family name"@en-gb ; - rdfs:subPropertyOf wo:taxonomicName ; - vs:term_status "testing" . - -wo:threatDescription a owl:DatatypeProperty ; - rdfs:comment "description of the threat(s) that have been identified as part of the assessment of the Conservation Status of a taxon"@en-gb ; - rdfs:domain wo:ConservationStatus ; - rdfs:isDefinedBy wo:; rdfs:label "threatDescription"@en-gb ; - rdfs:range xsd:string ; - vs:term_status "testing" . - -wo:TaxonRank a owl:Class ; - rdfs:comment "Generic concept for a taxonomic rank such as a Genus or Species."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Taxonomic Rank"@en-gb ; - rdfs:seeAlso ; - vs:term_status "testing" . - -wo:livesIn a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a habitat in which it lives. Sub-property of wo:habitat to be used for members of the animal kingdom"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "lives in"@en-gb ; - rdfs:range wo:Habitat ; - vs:term_status "testing" . - -wo:ExtremesAdaptation - a owl:Class ; - rdfs:comment "Organisms that are adapted to extremes (known as Extremophiles) are organisms that thrives in and even may require physically or geochemically extreme conditions that are detrimental to the majority of life on Earth."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Adapted to Extremes"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . - -wo:species a owl:ObjectProperty ; - rdfs:comment "associates a taxon rank with a species"@en-gb ; - rdfs:domain wo:TaxonRank ; - rdfs:isDefinedBy wo:; rdfs:label "species"@en-gb ; - rdfs:range wo:Species ; - vs:term_status "testing" . - -wo:Genus a owl:Class ; - rdfs:comment "A genus is a scientific way of showing that species are very closed related to each other. In fact the first word of the species' scientific name is its genus. So for lions (Panthera leo), Panthera is the genus and tells us that they are closely related to tigers (Panthera tigris), because they share the name"@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Genus"@en-gb ; - rdfs:seeAlso , ; - rdfs:subClassOf wo:TaxonRank ; - vs:term_status "testing" . - -wo:FeedingHabit a owl:Class ; - rdfs:comment "Feeding habits describe the dominant diet of a particular species or group of species, and how they go about obtaining it."@en-gb ; - rdfs:isDefinedBy wo:; rdfs:label "Feeding Habit"@en-gb ; - rdfs:subClassOf wo:Adaptation ; - vs:term_status "testing" . diff --git a/inception/inception-kb/src/test/resources/upstream-data/README.txt b/inception/inception-kb/src/test/resources/upstream-data/README.txt deleted file mode 100644 index 2348166c6c9..00000000000 --- a/inception/inception-kb/src/test/resources/upstream-data/README.txt +++ /dev/null @@ -1,16 +0,0 @@ -This folder must contain original upstream data files. We keep a copy so we don't have to hammer -the respective servers. - -== 1.1.ttl - -Source: https://www.bbc.co.uk/ontologies/wo/1.1.ttl -License: http://creativecommons.org/licenses/by/1.0#id -Attribution: http://www.ldodds.com#me, http://tomscott.name/ (Authors) - -== penn.owl - -Source: http://www.acoli.informatik.uni-frankfurt.de/resources/olia/#english -License: Creative Commons Attribution licence CC-BY -Attribution: Christian Chiarcos, and Maria Sukhareva (2015). OLiA - Ontologies of Linguistic - Annotation, SWJ (Semantic Web Journal) 6(4): 379-386. - diff --git a/inception/inception-kb/src/test/resources/upstream-data/penn.owl b/inception/inception-kb/src/test/resources/upstream-data/penn.owl deleted file mode 100644 index a8802e9e453..00000000000 --- a/inception/inception-kb/src/test/resources/upstream-data/penn.owl +++ /dev/null @@ -1,1099 +0,0 @@ - - - - - - - - -]> - - - - - 2008-04-10 created -2011-11-28 fixed typo (PR vs. RP) -2011-11-31 added Punctuation (not addressed by Santorini 1990) - -Christian Chiarcos, chiarcos@uni-potsdam.de - OLiA Annotation Model for Penn Treebank (PTB) part-of-speech annotation (Santorini 1990) - -Unless specified otherwise, all comments are taken from Santorini (1990). - -References -Beatrice Santorini (1990), Part-of-Speech tagging guidelines for the Penn Treebank Project, 3rd revision, 2nd printing, ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz - ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - These are adjectives, ordinal numerals, and ordinal numbers. -Hyphenated compounds that are used as modifiers are tagged as adjectives, e.g. "happy-go-lucky", "one-of-a-kind", "run-of-the-mill". Ordinal numbers are tagged as adjectives, as are compounds of the form "n-th" or "X-est", like "fourth-largest". - - - - - - - - - This category includes most words that end in -ly as well as degree words like "quite", "too" and "very", posthead modifiers like "enough" and "indeed" (as in "good enough", "very well indeed"), and negative markers like "not", "n' t" and "never". - - - - - - - - - - - - - - - - - This tag subsumes imperatives, infinitives and subjunctives. -EXAMPLES: -Imperative: Do/VB it. -Infinitive: You should do/VB it. - We want them to do/VB it. - We made them do/VB it. -Subjunctive: We suggested that he do/VB it. - - - - - - - - - This category includes the conditional form of the verb to be. -EXAMPLES: -If I were/VBD rich... -If I were/VBD to win the lottery... - - - - - - - - - These are verbforms in present tense. This class includes 3rd person singular or other than 3rd person singular verbforms. - - - - - - - - - These are cardinal numbers. - - - - - - - - - - - - - - - - - - - - - - - - - These are common nouns in singular or plural, or mass nouns. - - - - - - - - - These are adjectives mostly with the comparative ending -er and a comparative meaning. "More" or "less" should be tagged as a comparative adjective when it is used without a head noun and it -corresponds to the object of a verb or preposition. - - - - - - - - - These are comparative adverbs. - - - - - - - - - - - - - - - - - This category includes "and", "but", "nor", "or", "yet" (as in "Yet it's cheap", "cheap yet good"), as well as the mathematical operators "plus", "minus", "less", "times" (in the sense of "multiplied by") and "over" (in the sense of "divided by"), when they are spelled out. -For in the sense of "because" is a coordinating conjunction. - - - - - - - - - This category includes the articles "a(n)", "every", "no" and "the", the indefinite determiners "another", "any" and "some", "each", "either" (as in "either way"), "neither" (as in "neither decision"), "that", "these", "this" and "those", and instances of "all" and "both" when they do not precede a determiner or possessive pronoun (as in "all roads" or "both times"). - - - - - - - - - - - - - - - - - - - - - - - - - Existential "there" is the unstressed "there" that triggers inversion of the inflected verb and the logical subject of a sentence, e.g. "There/EX was a party in progress.", "There/EX ensued a melee.". - - - - - - - - - These are foreign words. - - - - - - - - - - - - - - - - - - - - - - - - - This is a verb in present participle or in gerund. - - - - - - - - - This category includes "my" (as in "My, what a gorgeous day"), "oh", "please", "see" (as in "See it's like this"), "uh", "well" and "yes", among others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This category includes letters and numerals when they are used to identify items in a list. - - - - - - - - - This category includes all verbs that don't take an -s ending in the third person singular present: "can", -"could", ("dare"), "may", "might", "must", "ought", "shall", "should", "will", "would". - - - - - - - - - This is a class, we inserted to structure the tagset. - - - - - - - - - This category includes a number of mostly monosyllabic words that also double as directional adverbs and prepositions. - - - - - - - - - This is a verb in past participle. - - - - - - - - - This category includes the personal pronouns proper, without regard for case distinctions ("I", "me", "you", "he", "him", etc.), the reflexive pronouns ending in -self or -selves, and the nominal possessive pronouns "mine", "yours", "his", "hers", "ours" and "theirs". - - - - - - - - - The possessive ending on nouns ending in 's or is split off by the tagging algorithm and tagged as if it -were a separate word. e.g. "John/ NP 's/POS idea", "the parents/NNS'/POS distress". - - - - - - - - - This category includes the adjectival possessive forms "my", "your", "his", "her", "its", "one's", "our" and "their". - - - - - - - - - - - - - - - - - - This category includes the following determinerlike elements when they precede an article or possessive pronoun. -EXAMPLES: -all/PDT his marbles -nary/PDT a soul -both/PDT the girls -quite/PDT a mess -half/PDT his time -rather/PDT a nuisance -many/PDT a moon -such/PDT a good time - - - - - - - - - We make no explicit distinction between prepositions and subordinating conjunctions. (The distinction is not lost, however - a preposition is an IN that precedes a noun phrase or a prepositional phrase, and a subordinate conjunction is an IN that precedes a clause). -The preposition "to" has its own special tag TO. - - - - - - - - - This is a class, we inserted to structure the tagset. - - - - - - - - - These are singular or plural proper nouns. - - - - - - - - - - - - pos - - - Not addressed by Santorini (1990), but produced by real-world taggers, also cf. http://www.cis.upenn.edu/~treebank/tokenization.html for the treatment of PTB punctuation tags in the parsed Penn Treebank. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - These are adjectives with the superlative ending -est (as well as "worst"). "Most" and "least" can also be tagged as superlative adjective when they occur by themselves. - - - - - - - - - These are superlative adverbs. - - - - - - - - - This tag should be used for mathematical, scientific and technical symbols or expressions that aren't words of English. It should not used for any and all technical expressions. For instance, the names of chemicals, units of measurements (including abbreviations thereof) and the like should be tagged as nouns. - - - - - - - - - - - - pos - - - - - - - - - - - "To" is tagged TO, regardless of whether it is a preposition or an infinitival marker. - - - - - - - - - - - - - - - - - This category includes "how", "where", "why", etc. When in a temporal sense is tagged as wh-adverb. In the sense of "if", on the other hand, it is a subordinating conjunction. -EXAMPLES: -"When/WRB he finally arrived, I was on my way out." - - - - - - - - - This category includes "which", as well as that when it is used as a relative pronoun. - - - - - - - - - This category includes "what", "who" and "whom". - - - - - - - - - - - - - - - - - - - - CC - - - - - - - - - CD - - - - - - - - - DT - determiner, also article - - - - - - - - - EX - - - - - - - - - FW - - - - - - - - - IN - - - - - - - - - JJ - adjective, ordinal numeral, ordinal number - - - - - - - - - JJR - - - - - - - - - JJS - - - - - - - - - LS - - - - - - - - - MD - - - - - - - - - NN - Noun singular or mass - - - - - - - - - NNP - Proper noun singular - - - - - - - - - NNPS - Proper noun plural - - - - - - - - - NNS - Noun plural - - - - - - - - - PDT - - - - - - - - - POS - - - - - - - - - PP - PP is the used Tag in "Part-of-Speech Tagging Guidelines for the Penn Treebank Project", Beatrice Santorini, 15.03.1991" -(http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/Penn-Treebank-Tagset.ps 21.11.07) - - - - - - - - - PP$ - PP$is the used Tag in "Part-of-Speech Tagging Guidelines for the Penn Treebank Project", Beatrice Santorini, 15.03.1991" -(http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/Penn-Treebank-Tagset.ps 21.11.07) - - - - - - - - - PRP - PRP is the used Tag in "Part of Speech Tagging Guidelines for the Penn Treebank Project, June 1990" (ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz 21.11.07) - - - - - - - - - PRP$ - PRP$ is the used Tag in "Part of Speech Tagging Guidelines for the Penn Treebank Project, June 1990" (ftp://ftp.cis.upenn.edu/pub/treebank/doc/tagguide.ps.gz 21.11.07) - - - - - - - - - RB - adverb, negation - - - - - - - - - RBR - - - - - - - - - RBS - - - - - - - - - RP - - - - - - - - - SYM - - - - - - - - - TO - - - - - - - - - UH - interjections, exclamation - - - - - - - - - VB - - - - - - - - - VBD - - - - - - - - - VBG - - - - - - - - - VBN - - - - - - - - - VBP - Verb non 3-rd person singular present - - - - - - - - - VBZ - Verb 3-rd person singular present - - - - - - - - - WDT - - - - - - - - - WP - - - - - - - - - WP$ - - - - - - - - - WRB - - - - - - - - - '' - - - - - - - - - : - - - - - - - - - , - - - - - - - - - $ - - - - - - - - - " - - - - - - - - - `` - - - - - - - - - . - - - - - - - - - { - -LCB- - - - - - - - - - ( - -LRB- - - - - - - - - - -LSB- - [ - - - - - - - - - -RCB- - } - - - - - - - - - -RRB- - ) - - - - - - - - - ] - -RSB- - - - - - - - diff --git a/inception/inception-pdf-editor2/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-pdf-editor2/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json index b71459d0db2..b6c5ef1bd3e 100644 --- a/inception/inception-pdf-editor2/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json +++ b/inception/inception-pdf-editor2/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -28,10 +28,12 @@ "originator": "Universite catholique de Louvain (UCL), Belgium and contributors", "homepage": "https://www.openjpeg.org/", "licenseDeclared": "BSD-2-Clause", - "description": "WASM-compiled OpenJPEG library for JPEG2000 decoding, bundled with PDF.js", + "description": "WASM-compiled OpenJPEG library for JPEG2000 decoding, bundled with PDF.js. Copied from the pdfjs-dist npm package into the jar at build time.", "hasFiles": [ - "src/main/ts/pdfjs-web/wasm/LICENSE_OPENJPEG", - "src/main/ts/pdfjs-web/wasm/LICENSE_PDFJS_OPENJPEG" + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/wasm/openjpeg.wasm", + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/wasm/openjpeg_nowasm_fallback.js", + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/wasm/LICENSE_OPENJPEG", + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/wasm/LICENSE_PDFJS_OPENJPEG" ] }, { @@ -39,10 +41,11 @@ "originator": "Mozilla Corporation, Marti Maria", "homepage": "https://github.com/mozilla/qcms", "licenseDeclared": "MIT", - "description": "WASM-compiled color management library, bundled with PDF.js", + "description": "WASM-compiled color management library, bundled with PDF.js. Copied from the pdfjs-dist npm package into the jar at build time.", "hasFiles": [ - "src/main/ts/pdfjs-web/wasm/LICENSE_QCMS", - "src/main/ts/pdfjs-web/wasm/LICENSE_PDFJS_QCMS" + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/wasm/qcms_bg.wasm", + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/wasm/LICENSE_QCMS", + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/wasm/LICENSE_PDFJS_QCMS" ] }, { @@ -50,9 +53,9 @@ "originator": "International Color Consortium", "homepage": "https://www.color.org/", "licenseDeclared": "CC0-1.0", - "description": "ICC color profiles for color management", + "description": "ICC color profiles for color management. Copied from the pdfjs-dist npm package into the jar at build time.", "hasFiles": [ - "src/main/ts/pdfjs-web/iccs/LICENSE" + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/iccs/**" ] }, { @@ -60,9 +63,10 @@ "originator": "Red Hat, Inc., Google Corporation", "homepage": "https://github.com/liberationfonts/liberation-fonts", "licenseDeclared": "OFL-1.1", - "description": "Standard fonts for PDF rendering", + "description": "Standard fonts for PDF rendering. Copied from the pdfjs-dist npm package into the jar at build time.", "hasFiles": [ - "src/main/ts/pdfjs-web/standard_fonts/LICENSE_LIBERATION" + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/standard_fonts/Liberation*", + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/standard_fonts/LICENSE_LIBERATION" ] }, { @@ -70,9 +74,10 @@ "originator": "PDFium Authors (Google Inc.)", "homepage": "https://pdfium.googlesource.com/pdfium/", "licenseDeclared": "BSD-3-Clause", - "description": "Standard fonts for PDF rendering from PDFium", + "description": "Standard fonts for PDF rendering from PDFium. Copied from the pdfjs-dist npm package into the jar at build time.", "hasFiles": [ - "src/main/ts/pdfjs-web/standard_fonts/LICENSE_FOXIT" + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/standard_fonts/Foxit*", + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/standard_fonts/LICENSE_FOXIT" ] }, { @@ -80,9 +85,9 @@ "originator": "Adobe Systems Incorporated", "homepage": "https://github.com/adobe-type-tools/cmap-resources", "licenseDeclared": "BSD-3-Clause", - "description": "Character mapping files for CJK fonts", + "description": "Character mapping files for CJK fonts. Copied from the pdfjs-dist npm package into the jar at build time.", "hasFiles": [ - "src/main/ts/pdfjs-web/cmaps/LICENSE" + "de/tudarmstadt/ukp/inception/pdfeditor2/resources/cmaps/**" ] } ] diff --git a/inception/inception-processing/NOTICE.txt b/inception/inception-processing/NOTICE.txt index 9c5a1b17a2f..19b70397097 100644 --- a/inception/inception-processing/NOTICE.txt +++ b/inception/inception-processing/NOTICE.txt @@ -1,3 +1,5 @@ +NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json + == Font Awesome Files: src/main/java/de/tudarmstadt/ukp/inception/processing/BulkProcessingSidebarIcon.svg @@ -5,7 +7,8 @@ Files: src/main/java/de/tudarmstadt/ukp/inception/processing/BulkProcessingSideb src/main/java/de/tudarmstadt/ukp/inception/processing/recommender/BulkRecommenderProcessor.svg These icons are derived from Font Awesome Free (classic solid). The icons are licensed under -CC BY 4.0. +CC BY 4.0. The modifications made for INCEpTION are copyright Technische Universität +Darmstadt and are also licensed under CC BY 4.0. Font Awesome Free 6.7.2 by @fontawesome Copyright 2024 Fonticons, Inc. diff --git a/inception/inception-processing/pom.xml b/inception/inception-processing/pom.xml index 97442072041..7078999f644 100644 --- a/inception/inception-processing/pom.xml +++ b/inception/inception-processing/pom.xml @@ -205,4 +205,28 @@ commons-lang3 + + + + + + org.apache.rat + apache-rat-plugin + + + default + + + + **/processing/BulkProcessingSidebarIcon.svg + **/processing/curation/BulkCurationProcessor.svg + **/processing/recommender/BulkRecommenderProcessor.svg + + + + + + + + \ No newline at end of file diff --git a/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/BulkProcessingSidebarIcon.svg b/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/BulkProcessingSidebarIcon.svg index 714f3c3c1d2..15ef5c0f2e4 100644 --- a/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/BulkProcessingSidebarIcon.svg +++ b/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/BulkProcessingSidebarIcon.svg @@ -1,29 +1,17 @@ diff --git a/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/curation/BulkCurationProcessor.svg b/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/curation/BulkCurationProcessor.svg index 46332cc2c2f..421f0be5330 100644 --- a/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/curation/BulkCurationProcessor.svg +++ b/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/curation/BulkCurationProcessor.svg @@ -1,23 +1,5 @@ diff --git a/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/recommender/BulkRecommenderProcessor.svg b/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/recommender/BulkRecommenderProcessor.svg index 6893313ade8..269b941a9f0 100644 --- a/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/recommender/BulkRecommenderProcessor.svg +++ b/inception/inception-processing/src/main/java/de/tudarmstadt/ukp/inception/processing/recommender/BulkRecommenderProcessor.svg @@ -1,29 +1,17 @@ diff --git a/inception/inception-processing/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-processing/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json new file mode 100644 index 00000000000..6f97a4fe72e --- /dev/null +++ b/inception/inception-processing/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", + "packages": [ + { + "name": "Font Awesome Free icons", + "versionInfo": "6.7.2", + "originator": "Fonticons, Inc.", + "homepage": "https://fontawesome.com", + "downloadLocation": "https://github.com/FortAwesome/Font-Awesome/tree/6.7.2", + "licenseDeclared": "CC-BY-4.0", + "licenseComments": "Font Awesome Free: icons under CC BY 4.0, fonts under SIL OFL 1.1, code under MIT. Only icons are used here. The modifications made for INCEpTION (Technische Universität Darmstadt) are also licensed under CC BY 4.0.", + "description": "Icons derived from the Font Awesome Free file, user-graduate and robot icons (classic solid).", + "hasFiles": [ + "de/tudarmstadt/ukp/inception/processing/BulkProcessingSidebarIcon.svg", + "de/tudarmstadt/ukp/inception/processing/curation/BulkCurationProcessor.svg", + "de/tudarmstadt/ukp/inception/processing/recommender/BulkRecommenderProcessor.svg" + ] + } + ] +} diff --git a/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/WineKnowledgeBase.svg b/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/WineKnowledgeBase.svg deleted file mode 100644 index 115d508a34d..00000000000 --- a/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/WineKnowledgeBase.svg +++ /dev/null @@ -1,1525 +0,0 @@ - - - - - - diff --git a/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/config/WikiDataLinkingProjectInitializersAutoConfiguration.java b/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/config/WikiDataLinkingProjectInitializersAutoConfiguration.java index 4bd67b382e9..218378e28e5 100644 --- a/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/config/WikiDataLinkingProjectInitializersAutoConfiguration.java +++ b/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/config/WikiDataLinkingProjectInitializersAutoConfiguration.java @@ -278,19 +278,6 @@ public ProfileBasedKnowledgeBaseInitializer snomwedCtKnowledgeBaseInitializer( }; } - @ConditionalOnBean(KnowledgeBaseService.class) - @Bean - public ProfileBasedKnowledgeBaseInitializer wineOntologyKnowledgeBaseInitializer( - KnowledgeBaseService aKbService) - { - var thumbnail = new PackageResourceReference(WikiDataKnowledgeBaseInitializer.class, - "WineKnowledgeBase.svg"); - return new ProfileBasedKnowledgeBaseInitializer(aKbService, PROFILES.get("wine_ontology"), - thumbnail) - { - }; - } - @ConditionalOnBean(KnowledgeBaseService.class) @Bean public ProfileBasedKnowledgeBaseInitializer yagoKnowledgeBaseInitializer( diff --git a/inception/inception-search-mtas/src/main/resources/META-INF/asciidoc/user-guide/search-mtas.adoc b/inception/inception-search-mtas/src/main/resources/META-INF/asciidoc/user-guide/search-mtas.adoc index e99f8c6b698..e86651a22af 100644 --- a/inception/inception-search-mtas/src/main/resources/META-INF/asciidoc/user-guide/search-mtas.adoc +++ b/inception/inception-search-mtas/src/main/resources/META-INF/asciidoc/user-guide/search-mtas.adoc @@ -243,35 +243,35 @@ The values of boolean features are indexed as `true` and `false`. === Concept feature queries -.Generic Search over annotated KB entities : all occurrences for KB entity *Bordeaux* +.Generic Search over annotated KB entities : all occurrences for KB entity *Albert Einstein* ---- - + ---- -The following query returns all mentions of *ChateauMorgonBeaujolais* or any of its subclasses in -the associated knowledge base. +The following query returns all mentions of the class *human* or any of its subclasses and +instances in the associated knowledge base. -.Named Entity Identifier for KB instance: all mentions of *ChateauMorgonBeaujolais* +.Named Entity Identifier for KB class: all mentions of *human* ---- - + ---- Mind that the label of a knowledge base item may be ambiguous, so it may be necessary to search by IRI. -.Named Entity Identifier for KB instance: all mentions of *ChateauMorgonBeaujolais* by IRI +.Named Entity Identifier for KB class: all mentions of *human* by IRI ---- - + ---- -.Named Entity Identifier : all exact mentions of *ChateauMorgonBeaujolais* . +.Named Entity Identifier : all exact mentions of *Albert Einstein* . ---- - + ---- -.OR All exact mentions of either *ChateauMorgonBeaujolais* or *AmericanWine* +.OR All exact mentions of either *Albert Einstein* or *Marie Curie* ---- -( | ) +( | ) ---- diff --git a/inception/inception-support/NOTICE.txt b/inception/inception-support/NOTICE.txt index ef78dfc11cf..cf4dafd78ef 100644 --- a/inception/inception-support/NOTICE.txt +++ b/inception/inception-support/NOTICE.txt @@ -1,44 +1,37 @@ NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json -== src/main/java/org/apache/uima/cas/impl/FixedBinaryCasSerDes.java +== AjaxDownloadBehavior -Stripped down and fixed version of the BinaryCasSerDes from UIMA 3.4.1 while UIMA 3.4.1 has not yet -been released. +File: src/main/java/de/tudarmstadt/ukp/inception/support/wicket/AjaxDownloadBehavior.java +Source: https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow +License: according to source, same as Wicket, so assuming Apache License 2.0 -== de.tudarmstadt.ukp.clarin.webanno.support.AJAXDownload: - Source: https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow - License: according to source, same as Wicket, so assuming Apache License 2.0 +== wicket-jquery-focus-patch.js -== Vue3 Single File Component loader 0.2.21 +File: src/main/java/de/tudarmstadt/ukp/inception/support/kendo/wicket-jquery-focus-patch.js -Source: https://github.com/FranckFreiburger/vue3-sfc-loader +The file wicket-jquery-focus-patch.js is a stripped-down version of Apache Wicket's +wicket-ajax-jquery.js which is licensed under the Apache License 2.0. -Files: -- vue3-sfc-loader.js -- vue3-sfc-loader.js.map -License: +== Wicketstuff jQuery UI ContextMenu template -MIT License +File: src/main/java/de/tudarmstadt/ukp/inception/support/wicket/ContextMenu.html -Copyright (c) 2020 Franck Freiburger +Modified copy of the ContextMenu.html template of Wicketstuff jQuery UI, which is licensed under +the Apache License 2.0. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Original source: https://github.com/wicketstuff/core +Version: 10.11.0 -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +== Trie.java + +File: src/main/java/de/tudarmstadt/ukp/inception/support/text/Trie.java + +Copyright 2009 Richard Eckart de Castilho +Copyright 2012 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt +Apache License 2.0 +Source: AnnoLab diff --git a/inception/inception-support/src/main/java/de/tudarmstadt/ukp/inception/support/text/Trie.java b/inception/inception-support/src/main/java/de/tudarmstadt/ukp/inception/support/text/Trie.java index b64cfe560c9..6c98cbfd517 100644 --- a/inception/inception-support/src/main/java/de/tudarmstadt/ukp/inception/support/text/Trie.java +++ b/inception/inception-support/src/main/java/de/tudarmstadt/ukp/inception/support/text/Trie.java @@ -1,13 +1,13 @@ /* - * Licensed to the Technische Universität Darmstadt under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The Technische Universität Darmstadt - * licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. + * Copyright 2009, Richard Eckart de Castilho + * Copyright 2012, Ubiquitous Knowledge Processing (UKP) Lab + * Technische Universität Darmstadt * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/inception/inception-support/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-support/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json index d2dbdfa0ead..1310c4a9845 100644 --- a/inception/inception-support/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json +++ b/inception/inception-support/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json @@ -7,11 +7,44 @@ "originator": "Apache Software Foundation", "homepage": "https://wicket.apache.org", "downloadLocation": "https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow", + "licenseDeclared": "Apache-2.0", "licenseConcluded": "Apache-2.0", "licenseComments": "According to source, same as Wicket, so assuming Apache License 2.0", "hasFiles": [ - "de/tudarmstadt/ukp/clarin/webanno/support/wicket/AjaxDownloadBehavior.java" + "de/tudarmstadt/ukp/inception/support/wicket/AjaxDownloadBehavior.java" + ] + }, + { + "name": "wicket-jquery-focus-patch.js", + "description": "The file wicket-jquery-focus-patch.js is a stripped-down version of Apache Wicket's wicket-ajax-jquery.js which is licensed under the Apache License 2.0.", + "versionInfo": "7.8.0", + "supplier": "INCEpTION Team", + "originator": "Apache Software Foundation", + "homepage": "https://wicket.apache.org", + "licenseDeclared": "Apache-2.0", + "hasFiles": [ + "de/tudarmstadt/ukp/inception/support/kendo/wicket-jquery-focus-patch.js" + ] + }, + { + "name": "Wicketstuff jQuery UI ContextMenu template", + "description": "Modified copy of the ContextMenu.html template of Wicketstuff jQuery UI. The icon no longer has the ui-icon class, so that Font Awesome icons can be used.", + "versionInfo": "10.11.0", + "originator": "Wicketstuff", + "homepage": "https://github.com/wicketstuff/core", + "licenseDeclared": "Apache-2.0", + "hasFiles": [ + "de/tudarmstadt/ukp/inception/support/wicket/ContextMenu.html" + ] + }, + { + "name": "AnnoLab Trie", + "originator": "Richard Eckart de Castilho", + "licenseDeclared": "Apache-2.0", + "description": "Modified version of the Trie that was part of AnnoLab. AnnoLab is no longer available online.", + "hasFiles": [ + "de/tudarmstadt/ukp/inception/support/text/Trie.java" ] } ] -} \ No newline at end of file +} diff --git a/inception/inception-ui-core/NOTICE.txt b/inception/inception-ui-core/NOTICE.txt deleted file mode 100644 index 030e1449c74..00000000000 --- a/inception/inception-ui-core/NOTICE.txt +++ /dev/null @@ -1,14 +0,0 @@ -NOTE: See META-INF/DEPENDENCIES-EMBEDDED.spdx.json - -== Enjoyhint - -File: src/main/java/de/tudarmstadt/ukp/inception/ui/core/footer/resources/enjoyhint.js - -The file is from xbsoftware and is licensed under the MIT. - -Original source: https://github.com/xbsoftware/enjoyhint - -== wicket-jquery-focus-patch.js - -The file wicket-jquery-focus-patch.js is a stripped-down version of Apache Wicket's -wicket-ajax-jquery.js which is licensed under the Apache License 2.0. \ No newline at end of file diff --git a/inception/inception-ui-core/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json b/inception/inception-ui-core/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json deleted file mode 100644 index 4074bad343e..00000000000 --- a/inception/inception-ui-core/src/main/resources/META-INF/DEPENDENCIES-EMBEDDED.spdx.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.2/schemas/spdx-schema.json", - "packages": [ - { - "name": "Enjoyhint", - "versionInfo": "4.0.0-SNAPSHOT (c9ddc7e60c4e3b4272bf0f9bc678c8f8cabe7c56)", - "originator": "XB Software Ltd.", - "homepage": "https://github.com/xbsoftware/enjoyhint", - "downloadLocation": "https://raw.githubusercontent.com/xbsoftware/enjoyhint/c9ddc7e60c4e3b4272bf0f9bc678c8f8cabe7c56/src/enjoyhint.js", - "licenseDeclared": "MIT", - "hasFiles": [ - "de/tudarmstadt/ukp/inception/ui/core/footer/resources/enjoyhint.js" - ] - }, - { - "name": "wicket-jquery-focus-patch.js", - "description": "The file wicket-jquery-focus-patch.js is a stripped-down version of Apache Wicket's wicket-ajax-jquery.js which is licensed under the Apache License 2.0.", - "versionInfo": "7.8.0", - "supplier": "INCEpTION Team", - "originator": "Apache Software Foundation", - "homepage": "https://wicket.apache.org", - "licenseDeclared": "Apache-2.0", - "hasFiles": [ - "de/tudarmstadt/ukp/clarin/webanno/ui/core/kendo/wicket-jquery-focus-patch.js" - ] - } - ] -} \ No newline at end of file