├── .gitignore ├── LICENSE.txt ├── README.md ├── de.tudarmstadt.ukp.uby.distribution ├── LICENSE.txt ├── pom.xml └── src │ └── main │ └── assembly │ └── dist.xml ├── de.tudarmstadt.ukp.uby.doc-asl ├── LICENSE.txt ├── pom.xml └── src │ └── main │ └── asciidoc │ ├── developer-guide.adoc │ ├── developer-guide │ ├── api.adoc │ ├── conversion.adoc │ ├── germanet.adoc │ ├── imslex.adoc │ ├── modules.adoc │ └── setup.adoc │ ├── user-guide.adoc │ └── user-guide │ ├── db-import.adoc │ ├── external-system-naming.adoc │ ├── faq.adoc │ ├── groovy.adoc │ ├── images │ └── maven-setup.png │ └── setup.adoc ├── de.tudarmstadt.ukp.uby.integration.alignment-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ ├── java │ │ └── de │ │ │ └── tudarmstadt │ │ │ └── ukp │ │ │ ├── alignment │ │ │ └── framework │ │ │ │ ├── Global.java │ │ │ │ ├── candidates │ │ │ │ └── CandidateExtractor.java │ │ │ │ ├── clustering │ │ │ │ └── CreateClusteringFromAlignment.java │ │ │ │ ├── combined │ │ │ │ └── WekaMachineLearning.java │ │ │ │ ├── evaluation │ │ │ │ └── Evaluator.java │ │ │ │ ├── example │ │ │ │ └── SemanticLexicalResourceAligner.java │ │ │ │ ├── gloss │ │ │ │ └── GlossSimilarityCalculator.java │ │ │ │ ├── graph │ │ │ │ ├── CalculateDijkstraWSA.java │ │ │ │ ├── CreateAlignmentFromGraphOutput.java │ │ │ │ ├── JointGraphBuilder.java │ │ │ │ ├── NodeWithDistance.java │ │ │ │ └── OneResourceBuilder.java │ │ │ │ └── uima │ │ │ │ ├── StringReader.java │ │ │ │ ├── StringWriter.java │ │ │ │ └── Toolkit.java │ │ │ ├── integration │ │ │ └── alignment │ │ │ │ └── xml │ │ │ │ ├── AlignmentXmlReader.java │ │ │ │ ├── AlignmentXmlWriter.java │ │ │ │ └── model │ │ │ │ ├── Alignments.java │ │ │ │ ├── Decision.java │ │ │ │ ├── Decisiontype.java │ │ │ │ ├── ResourceXml.java │ │ │ │ ├── Score.java │ │ │ │ ├── Scoretype.java │ │ │ │ ├── Source.java │ │ │ │ ├── SubSource.java │ │ │ │ ├── SubTarget.java │ │ │ │ ├── Target.java │ │ │ │ └── XmlMeta.java │ │ │ ├── lmf │ │ │ └── transform │ │ │ │ ├── alignments │ │ │ │ ├── MySQLDirectQueries.java │ │ │ │ ├── SenseAlignment.java │ │ │ │ └── SenseAlignmentUtils.java │ │ │ │ └── sensealignments │ │ │ │ ├── FrameNetWiktionaryAlignment.java │ │ │ │ ├── FramenetWordnetAlignment.java │ │ │ │ ├── FramenetWordnetAlignmentFerrandez.java │ │ │ │ ├── GermaNetOntoWiktionaryDEAlignment.java │ │ │ │ ├── GermaNetWiktionaryDeAlignment.java │ │ │ │ ├── OmegaWikiCrossLingualAlignment.java │ │ │ │ ├── OmegaWikiDeEnAlignment.java │ │ │ │ ├── OmegaWikiWikipediaAlignment.java │ │ │ │ ├── OmegaWikiWiktionaryAlignment.java │ │ │ │ ├── OmegaWikiWordNetAlignment.java │ │ │ │ ├── VerbNetFrameNetSenseAlignment.java │ │ │ │ ├── VerbNetWordNetAlignment.java │ │ │ │ ├── WikiEnDeSenseAlignment.java │ │ │ │ ├── WiktionaryWNAlignment.java │ │ │ │ └── WordnetWikipediaAlignment.java │ │ │ └── uby │ │ │ └── integration │ │ │ └── alignment │ │ │ └── xml │ │ │ └── transform │ │ │ ├── AlignmentGenericXml.java │ │ │ ├── PredicateAlignmentGenericXml.java │ │ │ ├── SenseAlignmentGenericXml.java │ │ │ └── sensealignments │ │ │ ├── FnWnSenseAlignmentXml.java │ │ │ ├── SenseAlignmentXml.java │ │ │ ├── VnFnSenseAlignmentXml.java │ │ │ └── VnWnSenseAlignmentXml.java │ └── resources │ │ ├── snowball_german_stopwords.txt │ │ └── stopwords_english_punctuation.txt │ └── test │ ├── java │ └── de │ │ └── tudarmstadt │ │ └── integration │ │ └── alignment │ │ └── xml │ │ └── AlignmentXmlWriterTest.java │ └── resources │ ├── ResourceAlignmentDraft_v1.2nn.xml │ └── ResourceAlignmentDraft_v1.2nn_predicate.xml ├── de.tudarmstadt.ukp.uby.integration.framenet-gpl ├── .activate_license-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── lmf │ └── transform │ └── framenet │ ├── FNConverter.java │ ├── FNUtils.java │ ├── LexicalEntryGenerator.java │ └── SemanticPredicateGenerator.java ├── de.tudarmstadt.ukp.uby.integration.germanet-gpl ├── .activate_license-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ ├── java │ │ └── de │ │ │ └── tudarmstadt │ │ │ └── ukp │ │ │ └── lmf │ │ │ └── transform │ │ │ └── germanet │ │ │ ├── GNConverter.java │ │ │ ├── InterlingualIndexConverter.java │ │ │ ├── LexicalEntryGenerator.java │ │ │ ├── SemanticClassLabelExtractor.java │ │ │ ├── SenseExampleGenerator.java │ │ │ ├── SenseGenerator.java │ │ │ ├── SubcategorizationFrameExtractor.java │ │ │ └── SynsetGenerator.java │ └── resources │ │ └── GermaNetSubcatMappings │ │ └── gnFrameMapping.txt │ └── test │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── lmf │ └── transform │ └── germanet │ ├── GNConverterTest.java │ ├── InterlingualIndexConverterTest.java │ ├── SenseGeneratorTest.java │ ├── SynsetGeneratorTest.java │ └── TestSuite.java ├── de.tudarmstadt.ukp.uby.integration.gsubcatlex-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ ├── java │ ├── de │ │ └── tudarmstadt │ │ │ └── ukp │ │ │ └── lmf │ │ │ └── transform │ │ │ ├── gvc │ │ │ ├── GermanVcConverter.java │ │ │ ├── GermanVcExtractor.java │ │ │ └── GermanVcSense.java │ │ │ └── imslex │ │ │ ├── IMSlexConverter.java │ │ │ ├── IMSlexExtractor.java │ │ │ └── IMSlexSense.java │ └── org │ │ └── dkpro │ │ └── uby │ │ └── imslex │ │ ├── IMSLexSubcatConverter.java │ │ └── IMSLexSubcatMap.java │ └── resources │ └── ClassMappings │ └── verbClassMapping ├── de.tudarmstadt.ukp.uby.integration.omegawiki-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── lmf │ └── transform │ └── omegawiki │ ├── EquivalentGenerator.java │ ├── LexicalEntryGenerator.java │ ├── OWConverter.java │ ├── OmegaWikiLMFMap.java │ ├── SenseGenerator.java │ ├── SenseRelationGenerator.java │ ├── SynsetGenerator.java │ └── SynsetRelationGenerator.java ├── de.tudarmstadt.ukp.uby.integration.ontowiktionary-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ ├── java │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── lmf │ │ └── transform │ │ └── ontowiktionary │ │ ├── OntoWiktionary.java │ │ ├── OntoWiktionaryConcept.java │ │ ├── OntoWiktionarySemanticRelation.java │ │ ├── OntoWiktionaryTransformer.java │ │ ├── WiktionaryLMFMap.java │ │ └── WiktionaryLabelManager.java │ └── resources │ └── ontowiktionary │ ├── form_labels.txt │ ├── language_codes.txt │ └── pragmatic_labels.txt ├── de.tudarmstadt.ukp.uby.integration.verbnet-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ └── java │ │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── lmf │ │ └── transform │ │ └── verbnet │ │ ├── VNConverter.java │ │ ├── VerbNetExtractor.java │ │ └── VerbNetSense.java │ └── scripts │ └── vn2converterInput_v2.0 ├── de.tudarmstadt.ukp.uby.integration.wikipedia-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ ├── java │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── lmf │ │ └── transform │ │ └── wikipedia │ │ ├── ILanguage.java │ │ ├── WikipediaDETransformer.java │ │ ├── WikipediaENTransformer.java │ │ ├── WikipediaLMFMap.java │ │ ├── WikipediaLMFTransformer.java │ │ └── WikipediaLanguageMapper.java │ └── resources │ └── language_codes.txt ├── de.tudarmstadt.ukp.uby.integration.wiktionary-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ ├── java │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── lmf │ │ └── transform │ │ └── wiktionary │ │ ├── TemplateParser.java │ │ ├── WiktionaryLMFMap.java │ │ ├── WiktionaryLMFTransformer.java │ │ └── WiktionaryLabelManager.java │ └── resources │ └── uby-wiktionary │ ├── form_labels.txt │ ├── language_codes.txt │ └── pragmatic_labels.txt ├── de.tudarmstadt.ukp.uby.integration.wordnet-gpl ├── .activate_license-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ ├── java │ │ └── de │ │ │ └── tudarmstadt │ │ │ └── ukp │ │ │ └── lmf │ │ │ └── transform │ │ │ └── wordnet │ │ │ ├── LexicalEntryGenerator.java │ │ │ ├── RelatedFormGenerator.java │ │ │ ├── SenseGenerator.java │ │ │ ├── SenseRelationGenerator.java │ │ │ ├── SubcategorizationFrameExtractor.java │ │ │ ├── SynsetGenerator.java │ │ │ ├── SynsetRelationGenerator.java │ │ │ ├── WNConverter.java │ │ │ └── util │ │ │ ├── IndexSenseReader.java │ │ │ └── WNConvUtil.java │ └── resources │ │ └── WordNetSubcatMappings │ │ └── wnFrameMapping.txt │ └── test │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── lmf │ └── transform │ └── wordnet │ ├── SenseGeneratorTest.java │ ├── TestSuite.java │ └── util │ └── WNConvUtilTest.java ├── de.tudarmstadt.ukp.uby.lmf.api-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ ├── java │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── lmf │ │ ├── api │ │ ├── CriteriaIterable.java │ │ ├── CriteriaIterator.java │ │ ├── Uby.java │ │ ├── UbyQuickAPI.java │ │ └── UbyStatistics.java │ │ ├── hibernate │ │ ├── EnumUserType.java │ │ ├── HibernateConnect.java │ │ ├── UBYH2Dialect.java │ │ └── UBYMySQLDialect.java │ │ └── transform │ │ └── DBConfig.java │ └── resources │ └── hibernatemap │ └── access │ ├── core │ ├── Definition.hbm.xml │ ├── GlobalInformation.hbm.xml │ ├── LexicalEntry.hbm.xml │ ├── LexicalResource.hbm.xml │ ├── Lexicon.hbm.xml │ ├── Sense.hbm.xml │ ├── Statement.hbm.xml │ └── TextRepresentation.hbm.xml │ ├── meta │ ├── Frequency.hbm.xml │ ├── MetaData.hbm.xml │ └── SemanticLabel.hbm.xml │ ├── morphology │ ├── Component.hbm.xml │ ├── FormRepresentation.hbm.xml │ ├── Lemma.hbm.xml │ ├── ListOfComponents.hbm.xml │ ├── RelatedForm.hbm.xml │ └── WordForm.hbm.xml │ ├── mrd │ ├── Context.hbm.xml │ └── Equivalent.hbm.xml │ ├── multilingual │ ├── PredicateArgumentAxis.hbm.xml │ ├── SenseAxis.hbm.xml │ └── SenseAxisRelation.hbm.xml │ ├── semantics │ ├── ArgumentRelation.hbm.xml │ ├── MonolingualExternalRef.hbm.xml │ ├── PredicateRelation.hbm.xml │ ├── PredicativeRepresentation.hbm.xml │ ├── SemanticArgument.hbm.xml │ ├── SemanticPredicate.hbm.xml │ ├── SenseExample.hbm.xml │ ├── SenseRelation.hbm.xml │ ├── SynSemArgMap.hbm.xml │ ├── SynSemCorrespondence.hbm.xml │ ├── Synset.hbm.xml │ └── SynsetRelation.hbm.xml │ └── syntax │ ├── LexemeProperty.hbm.xml │ ├── SubcatFrameSetElement.hbm.xml │ ├── SubcategorizationFrame.hbm.xml │ ├── SubcategorizationFrameSet.hbm.xml │ ├── SynArgMap.hbm.xml │ ├── SyntacticArgument.hbm.xml │ └── SyntacticBehaviour.hbm.xml ├── de.tudarmstadt.ukp.uby.lmf.model-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ ├── java │ │ └── de │ │ │ └── tudarmstadt │ │ │ └── ukp │ │ │ └── lmf │ │ │ └── model │ │ │ ├── abstracts │ │ │ ├── HasFrequencies.java │ │ │ ├── HasMonolingualExternalRefs.java │ │ │ ├── HasTextRepresentations.java │ │ │ └── SemanticRelation.java │ │ │ ├── core │ │ │ ├── Definition.java │ │ │ ├── GlobalInformation.java │ │ │ ├── LexicalEntry.java │ │ │ ├── LexicalResource.java │ │ │ ├── Lexicon.java │ │ │ ├── Sense.java │ │ │ ├── Statement.java │ │ │ └── TextRepresentation.java │ │ │ ├── enums │ │ │ ├── EAuxiliary.java │ │ │ ├── ECase.java │ │ │ ├── EComplementizer.java │ │ │ ├── EContextType.java │ │ │ ├── ECoreType.java │ │ │ ├── EDefinitionType.java │ │ │ ├── EDegree.java │ │ │ ├── EDeterminer.java │ │ │ ├── EExampleType.java │ │ │ ├── EGrammaticalFunction.java │ │ │ ├── EGrammaticalGender.java │ │ │ ├── EGrammaticalNumber.java │ │ │ ├── ELabelNameSemantics.java │ │ │ ├── ELabelTypeSemantics.java │ │ │ ├── ELanguageIdentifier.java │ │ │ ├── EPartOfSpeech.java │ │ │ ├── EPerson.java │ │ │ ├── ERelNameSemantics.java │ │ │ ├── ERelTypeMorphology.java │ │ │ ├── ERelTypeSemantics.java │ │ │ ├── ESenseAxisType.java │ │ │ ├── EStatementType.java │ │ │ ├── ESyntacticCategory.java │ │ │ ├── ESyntacticProperty.java │ │ │ ├── ETense.java │ │ │ ├── EVerbForm.java │ │ │ ├── EVerbFormMood.java │ │ │ └── EYesNo.java │ │ │ ├── interfaces │ │ │ ├── IHasDefinitions.java │ │ │ ├── IHasFrequencies.java │ │ │ ├── IHasID.java │ │ │ ├── IHasLanguageIdentifier.java │ │ │ ├── IHasMonolingualExternalRefs.java │ │ │ ├── IHasParentSpecificTable.java │ │ │ ├── IHasSemanticLabels.java │ │ │ ├── IHasTextRepresentations.java │ │ │ └── ISemanticRelation.java │ │ │ ├── meta │ │ │ ├── Frequency.java │ │ │ ├── MetaData.java │ │ │ └── SemanticLabel.java │ │ │ ├── miscellaneous │ │ │ ├── AccessType.java │ │ │ ├── ConstraintSet.java │ │ │ ├── EAccessType.java │ │ │ ├── EVarType.java │ │ │ └── VarType.java │ │ │ ├── morphology │ │ │ ├── Component.java │ │ │ ├── FormRepresentation.java │ │ │ ├── Lemma.java │ │ │ ├── ListOfComponents.java │ │ │ ├── RelatedForm.java │ │ │ └── WordForm.java │ │ │ ├── mrd │ │ │ ├── Context.java │ │ │ └── Equivalent.java │ │ │ ├── multilingual │ │ │ ├── PredicateArgumentAxis.java │ │ │ ├── SenseAxis.java │ │ │ └── SenseAxisRelation.java │ │ │ ├── semantics │ │ │ ├── ArgumentRelation.java │ │ │ ├── MonolingualExternalRef.java │ │ │ ├── PredicateRelation.java │ │ │ ├── PredicativeRepresentation.java │ │ │ ├── SemanticArgument.java │ │ │ ├── SemanticPredicate.java │ │ │ ├── SenseExample.java │ │ │ ├── SenseRelation.java │ │ │ ├── SynSemArgMap.java │ │ │ ├── SynSemCorrespondence.java │ │ │ ├── Synset.java │ │ │ └── SynsetRelation.java │ │ │ └── syntax │ │ │ ├── LexemeProperty.java │ │ │ ├── SubcatFrameSetElement.java │ │ │ ├── SubcategorizationFrame.java │ │ │ ├── SubcategorizationFrameSet.java │ │ │ ├── SynArgMap.java │ │ │ ├── SyntacticArgument.java │ │ │ └── SyntacticBehaviour.java │ └── resources │ │ └── dtd │ │ └── UBY_LMF.dtd │ └── test │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── lmf │ └── model │ ├── core │ ├── LexicalEntryTest.java │ ├── LexicalResourceTest.java │ ├── LexiconTest.java │ └── SenseTest.java │ ├── meta │ └── FrequencyTest.java │ └── semantics │ ├── SemanticArgumentTest.java │ └── SynsetTest.java ├── de.tudarmstadt.ukp.uby.persistence.lmfxml-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ └── main │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── lmf │ └── writer │ ├── LMFWriter.java │ ├── LMFWriterException.java │ └── xml │ ├── LMFXmlWriter.java │ ├── LMFXmlWriterDOM.java │ └── LMFXmlWriterImmediate.java ├── de.tudarmstadt.ukp.uby.persistence.transform-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ └── java │ │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── lmf │ │ └── transform │ │ ├── DBToXMLTransformer.java │ │ ├── GenericUtils.java │ │ ├── LMFDBTransformer.java │ │ ├── LMFDBUtils.java │ │ ├── LMFTransformer.java │ │ ├── LMFXMLTransformer.java │ │ ├── LMFXmlWriter.java │ │ ├── StringUtils.java │ │ ├── UBYHibernateTransformer.java │ │ ├── UBYLMFClassMetadata.java │ │ ├── UBYTransformer.java │ │ ├── UBYXMLTransformer.java │ │ └── XMLToDBTransformer.java │ └── test │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── lmf │ └── transform │ └── LMFXmlWriterTest.java ├── de.tudarmstadt.ukp.uby.testing-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ ├── java │ │ └── de │ │ │ └── tudarmstadt │ │ │ └── ukp │ │ │ └── test │ │ │ └── resources │ │ │ └── UbyTestDbProvider.java │ └── resources │ │ ├── UBY_LMF.dtd │ │ └── UbyTestLexicon.xml │ └── test │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── uby │ └── lmf │ └── api │ └── test │ └── UbyTest.java ├── de.tudarmstadt.ukp.uby.ubycreate-gpl ├── .activate_license-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ └── java │ │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── uby │ │ └── ubycreate │ │ ├── Creator.java │ │ ├── FrameNetCreator.java │ │ ├── GermaNetCreator.java │ │ ├── MainController.java │ │ ├── WordNetCreator.java │ │ └── XMLCreator.java │ └── test │ └── java │ └── de │ └── tudarmstadt │ └── ukp │ └── uby │ └── AppTest.java ├── de.tudarmstadt.ukp.uby.uima-asl ├── .activate_rat-check ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ └── java │ │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── uby │ │ ├── resource │ │ ├── UbyResource.java │ │ ├── UbyResourceUtils.java │ │ ├── UbySemanticFieldResource.java │ │ └── package-info.java │ │ └── uima │ │ ├── annotator │ │ ├── UbySemanticFieldAnnotator.java │ │ └── package-info.java │ │ └── writer │ │ └── SemanticTagWriter.java │ └── test │ ├── java │ └── de │ │ └── tudarmstadt │ │ └── ukp │ │ └── uby │ │ └── uima │ │ └── annotator │ │ └── test │ │ ├── UbyResourceTest.java │ │ └── UbySemanticFieldAnnotatorTest.java │ └── resources │ ├── UBY_LMF.dtd │ └── UbyTestLexicon.xml └── pom.xml /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | **/target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | pom.xml.next 7 | release.properties 8 | dependency-reduced-pom.xml 9 | buildNumber.properties 10 | .mvn/timing.properties 11 | .settings 12 | .classpath 13 | .project 14 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | While most UBY modules are available under the Apache Software License (ASL) version 2, there 2 | are a few modules that depend on external libraries and are thus licensed under the GPL. The license 3 | of each individual module is specified in its LICENSE file. 4 | 5 | It must be pointed out that while the component's source code itself is licensed under the ASL or 6 | GPL, individual components might make use of third-party libraries or products that are not licensed 7 | under the ASL or GPL. 8 | 9 | Please make sure that you are aware of the third party licenses and respect them. 10 | 11 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.distribution/src/main/assembly/dist.xml: -------------------------------------------------------------------------------- 1 | 5 | dist 6 | 7 | dir 8 | zip 9 | 10 | false 11 | 12 | 13 | 14 | 15 | false 16 | lib 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.doc-asl/src/main/asciidoc/developer-guide.adoc: -------------------------------------------------------------------------------- 1 | // Copyright 2016 2 | // Ubiquitous Knowledge Processing (UKP) Lab 3 | // Technische Universität Darmstadt 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | UBY Developer Guide 18 | =================== 19 | :Author: The UBY Team 20 | 21 | == Introduction 22 | 23 | This guide summarizes the functionality of UBY from the developer's perspective. 24 | 25 | <<< 26 | 27 | include::{include-dir}setup.adoc[] 28 | 29 | <<< 30 | 31 | include::{include-dir}conversion.adoc[] 32 | 33 | <<< 34 | 35 | include::{include-dir}imslex.adoc[] 36 | 37 | <<< 38 | 39 | include::{include-dir}germanet.adoc[] 40 | 41 | <<< 42 | 43 | include::{include-dir}api.adoc[] 44 | 45 | <<< 46 | 47 | include::{include-dir}modules.adoc[] 48 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.doc-asl/src/main/asciidoc/user-guide.adoc: -------------------------------------------------------------------------------- 1 | // Copyright 2016 2 | // Ubiquitous Knowledge Processing (UKP) Lab 3 | // Technische Universität Darmstadt 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | UBY User Guide 18 | ============== 19 | :Author: The UBY Team 20 | 21 | == Introduction 22 | 23 | This guide summarizes the functionality of UBY from the user's perspective. 24 | 25 | include::{include-dir}groovy.adoc[] 26 | 27 | <<< 28 | 29 | include::{include-dir}setup.adoc[] 30 | 31 | <<< 32 | 33 | include::{include-dir}db-import.adoc[] 34 | 35 | <<< 36 | 37 | include::{include-dir}external-system-naming.adoc[] 38 | 39 | <<< 40 | 41 | include::{include-dir}faq.adoc[] 42 | 43 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.doc-asl/src/main/asciidoc/user-guide/external-system-naming.adoc: -------------------------------------------------------------------------------- 1 | // Copyright 2016 2 | // Ubiquitous Knowledge Processing (UKP) Lab 3 | // Technische Universität Darmstadt 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | == Naming Convention 18 | 19 | * FrameNet_1.5_eng_lexicalUnit 20 | * FrameNet_1.5_eng_semanticType 21 | * VerbNet_3.1_eng_sense 22 | * WordNet_3.0_eng_senseKey 23 | * WordNet_3.0_eng_synsetOffset 24 | * GermaNet_7.0_deu_lexicalUnit 25 | * GermaNet_7.0_deu_synset 26 | 27 | OmegaWiki, Wiktionary, Wikipedia: version = [YYYY]-[MM]-[DD] 28 | 29 | ---- 30 | OmegaWiki___synTrans 31 | OmegaWiki___definedMeaning 32 | ---- 33 | 34 | An OmegaWiki multilingual synset is a "defined meaning". A "synTrans" is a combination of "synonym" and "translation", they are treated internally as the same thing in OmegaWiki(a synonym is a translation in the same language), and in UBY-LMF it translates to either a "Sense" if it's in the same language or an "Equivalent" otherwise. 35 | 36 | ---- 37 | Wiktionary___sense 38 | Wikipedia___articleTitle 39 | ---- 40 | 41 | Wiktionary: e.g., Wiktionary_1.0.0_2013-02-04_deu_sense -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.doc-asl/src/main/asciidoc/user-guide/images/maven-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkpro/dkpro-uby/65cac8db258abb24412fe07701126952e3dd22f2/de.tudarmstadt.ukp.uby.doc-asl/src/main/asciidoc/user-guide/images/maven-setup.png -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.doc-asl/src/main/asciidoc/user-guide/setup.adoc: -------------------------------------------------------------------------------- 1 | // Copyright 2016 2 | // Ubiquitous Knowledge Processing (UKP) Lab 3 | // Technische Universität Darmstadt 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | == Using the UBY-API 18 | 19 | 1. Configure Eclipse and Maven: 20 | 21 | ** Follow the link:http://code.google.com/p/dkpro-core-asl/wiki/UserSetup[user setup] instructions 22 | ** If you are in Eclipse, restart it 23 | 24 | NOTE: If you do not have `settings.xml` file in your `.m2` directory, just create one with exactly the same content as in the link:http://code.google.com/p/dkpro-core-asl/wiki/UkpMavenRepository[Maven setup instructions]. You can also use the `settings.xml` provided in link:http://code.google.com/p/uby/downloads/list[Downloads section] and copy it to your `.m2` folder. 25 | 26 | 2. Import the UBY database, as described in <>. 27 | 3. In Eclipse, go to the Package Explorer and create new a Maven Project. On the first page of the properties dialogue, tick Create a simple project (skip archetype selection). 28 | + 29 | image::maven-setup.png[align="center"] 30 | + 31 | 4. Edit the pom.xml and include the following dependencies: 32 | + 33 | [source,xml,subs="+attributes"] 34 | ---- 35 | 36 | de.tudarmstadt.ukp.uby 37 | de.tudarmstadt.ukp.uby.lmf.api-asl 38 | {uby-version} 39 | 40 | 41 | de.tudarmstadt.ukp.uby 42 | de.tudarmstadt.ukp.uby.lmf.model-asl 43 | {uby-version} 44 | 45 | 46 | mysql 47 | mysql-connector-java 48 | 5.1.20 49 | 50 | ---- 51 | + 52 | 5. Done. You can start using UBY-API. For example queries, see link:http://code.google.com/p/dkpro-tutorials/wiki/UbyTutorial2013[UBY Tutorial Code]. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/alignment/framework/graph/NodeWithDistance.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.alignment.framework.graph; 19 | 20 | public class NodeWithDistance implements Comparable 21 | { 22 | public int id; 23 | public int path_length; 24 | 25 | public NodeWithDistance(int id, int path_length) 26 | { 27 | this.id = id; 28 | this.path_length = path_length; 29 | } 30 | 31 | @Override 32 | public int compareTo(Object o) 33 | { 34 | NodeWithDistance nwd = (NodeWithDistance) o; 35 | if(nwd.path_lengththis.path_length) { 39 | return -1; 40 | } 41 | else if(nwd.id > this.id) { 42 | return -1; 43 | } 44 | else if(nwd.id < this.id) { 45 | return 1; 46 | } 47 | return 0; 48 | } 49 | 50 | @Override 51 | public String toString() 52 | { 53 | return id+" "+path_length; 54 | 55 | } 56 | 57 | 58 | } -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/alignment/framework/uima/StringWriter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.alignment.framework.uima; 19 | 20 | import org.apache.uima.analysis_engine.AnalysisEngineProcessException; 21 | import org.apache.uima.cas.CAS; 22 | import org.apache.uima.cas.CASException; 23 | import org.apache.uima.fit.component.CasConsumer_ImplBase; 24 | import org.apache.uima.jcas.JCas; 25 | 26 | import de.tudarmstadt.ukp.alignment.framework.uima.Toolkit.PosGetter; 27 | 28 | 29 | 30 | public class StringWriter extends CasConsumer_ImplBase { 31 | 32 | public static Object mContent; 33 | public static PosGetter getter; 34 | 35 | @Override 36 | public void process(CAS aCAS) throws AnalysisEngineProcessException { 37 | JCas jcas; 38 | try { 39 | jcas = aCAS.getJCas(); 40 | System.out.println(aCAS); 41 | mContent = getter.retrieveData(aCAS); 42 | 43 | } catch (CASException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/Alignments.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | import javax.xml.bind.annotation.XmlElement; 24 | 25 | public class Alignments { 26 | 27 | @XmlElement(name = "source") 28 | public List source = new ArrayList(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/Decision.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import javax.xml.bind.annotation.XmlAttribute; 21 | 22 | public class Decision { 23 | 24 | 25 | @XmlAttribute 26 | public String src; 27 | 28 | @XmlAttribute 29 | public boolean value; 30 | 31 | @XmlAttribute 32 | public Double confidence; 33 | 34 | } 35 | 36 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/Decisiontype.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import javax.xml.bind.annotation.XmlAttribute; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlEnum; 23 | import javax.xml.bind.annotation.XmlType; 24 | 25 | public class Decisiontype { 26 | 27 | @XmlType(name="") 28 | @XmlEnum 29 | public enum Decision { 30 | AUTOMATIC, 31 | MANUAL; 32 | 33 | public String value() { 34 | return name(); 35 | } 36 | 37 | public static Decisiontype.Decision fromValue(String v){ 38 | return valueOf(v); 39 | } 40 | }; 41 | 42 | @XmlAttribute 43 | public String id; 44 | public Decision type; //automatic or manual 45 | 46 | @XmlElement(name="name") 47 | public String name; 48 | 49 | @XmlElement(name="description") 50 | public String description; 51 | } 52 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/ResourceXml.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import javax.xml.bind.annotation.XmlAttribute; 21 | import javax.xml.bind.annotation.XmlElement; 22 | 23 | public class ResourceXml { 24 | 25 | @XmlAttribute 26 | public String id; 27 | 28 | @XmlElement(name="description") 29 | public String description; 30 | @XmlElement(name="identifiertype") 31 | public String identifiertype; 32 | @XmlElement(name="language") 33 | public String language; 34 | } 35 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/Score.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import javax.xml.bind.annotation.XmlAttribute; 21 | 22 | public class Score { 23 | 24 | @XmlAttribute 25 | public String src; 26 | 27 | @XmlAttribute 28 | public double value; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/Scoretype.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import javax.xml.bind.annotation.XmlAttribute; 21 | import javax.xml.bind.annotation.XmlElement; 22 | 23 | public class Scoretype { 24 | 25 | @XmlAttribute 26 | public String id; 27 | @XmlAttribute 28 | public String min; 29 | @XmlAttribute 30 | public String max; 31 | @XmlAttribute 32 | public String step; 33 | @XmlAttribute 34 | public String type; 35 | 36 | @XmlElement(name="name") 37 | public String name; 38 | 39 | @XmlElement(name="description") 40 | public String description; 41 | } 42 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/Source.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | import javax.xml.bind.annotation.XmlAttribute; 24 | import javax.xml.bind.annotation.XmlElement; 25 | 26 | public class Source { 27 | 28 | @XmlAttribute 29 | public String ref; 30 | 31 | @XmlElement(name = "target") 32 | public List targets = new ArrayList(); 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/SubSource.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | import javax.xml.bind.annotation.XmlAttribute; 24 | import javax.xml.bind.annotation.XmlElement; 25 | 26 | public class SubSource { 27 | 28 | @XmlAttribute 29 | public String ref; 30 | 31 | @XmlElement(name = "subtarget") 32 | public List subtargets = new ArrayList(); 33 | } 34 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/SubTarget.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | import javax.xml.bind.annotation.XmlAttribute; 24 | import javax.xml.bind.annotation.XmlElement; 25 | 26 | public class SubTarget { 27 | 28 | @XmlAttribute 29 | public String ref; 30 | 31 | @XmlElement 32 | public Decision decision; 33 | 34 | @XmlElement(name = "score") 35 | public List scores = new ArrayList(); 36 | } 37 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/integration/alignment/xml/model/Target.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.integration.alignment.xml.model; 19 | 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | import javax.xml.bind.annotation.XmlAttribute; 24 | import javax.xml.bind.annotation.XmlElement; 25 | import javax.xml.bind.annotation.XmlElementWrapper; 26 | 27 | public class Target { 28 | 29 | @XmlAttribute 30 | public String ref; 31 | 32 | @XmlElement 33 | public Decision decision; 34 | 35 | @XmlElement(name = "score") 36 | public List scores = new ArrayList(); 37 | 38 | @XmlElementWrapper(name = "secondaryalignment") 39 | @XmlElement(name = "subsource") 40 | public List subsources = new ArrayList(); 41 | } 42 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/java/de/tudarmstadt/ukp/uby/integration/alignment/xml/transform/sensealignments/SenseAlignmentXml.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | 19 | package de.tudarmstadt.ukp.uby.integration.alignment.xml.transform.sensealignments; 20 | 21 | import java.io.FileOutputStream; 22 | import java.io.IOException; 23 | 24 | import de.tudarmstadt.ukp.integration.alignment.xml.AlignmentXmlWriter; 25 | import de.tudarmstadt.ukp.integration.alignment.xml.model.XmlMeta; 26 | 27 | /** 28 | * Conversion of alignment files to generic alignment xml 29 | */ 30 | public abstract class SenseAlignmentXml { 31 | 32 | public static double DEFAULTCONFIDENCE = 0.0; 33 | 34 | protected static String LF = System.getProperty("line.separator"); 35 | protected String alignmentFile; 36 | protected AlignmentXmlWriter writer; 37 | protected StringBuilder logString; 38 | 39 | public SenseAlignmentXml(String alignmentFile, String outFile) { 40 | this.alignmentFile = alignmentFile; 41 | logString = new StringBuilder(); 42 | try { 43 | FileOutputStream stream = new FileOutputStream(outFile); 44 | writer = new AlignmentXmlWriter(stream); 45 | } catch (IOException ex) { 46 | ex.printStackTrace(); 47 | } 48 | } 49 | 50 | public abstract XmlMeta getDefaultXmlMeta(); 51 | 52 | public abstract void toAlignmentXml(XmlMeta metadata) throws IOException; 53 | } 54 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/resources/snowball_german_stopwords.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkpro/dkpro-uby/65cac8db258abb24412fe07701126952e3dd22f2/de.tudarmstadt.ukp.uby.integration.alignment-asl/src/main/resources/snowball_german_stopwords.txt -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.framenet-gpl/.activate_license-check: -------------------------------------------------------------------------------- 1 | Copyright ${year} 2 | Ubiquitous Knowledge Processing (UKP) Lab 3 | Technische Universität Darmstadt 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.framenet-gpl/pom.xml: -------------------------------------------------------------------------------- 1 | 21 | 22 | 4.0.0 23 | 24 | de.tudarmstadt.ukp.uby 25 | de.tudarmstadt.ukp.uby 26 | 0.8.0-SNAPSHOT 27 | 28 | de.tudarmstadt.ukp.uby.integration.framenet-gpl 29 | Integration: FrameNet 30 | 31 | 32 | GNU General Public License Version 3.0 33 | http://www.gnu.org/licenses/gpl-3.0.txt 34 | 35 | 36 | 37 | 38 | de.tudarmstadt.ukp.uby 39 | de.tudarmstadt.ukp.uby.lmf.model-asl 40 | 41 | 42 | JFN_042_recompiled 43 | JFN_042_recompiled 44 | 45 | 46 | de.tudarmstadt.ukp.uby 47 | de.tudarmstadt.ukp.uby.persistence.lmfxml-asl 48 | 49 | 50 | de.tudarmstadt.ukp.uby 51 | de.tudarmstadt.ukp.uby.persistence.transform-asl 52 | 53 | 54 | org.apache.directory.studio 55 | org.apache.commons.lang 56 | 2.6 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.germanet-gpl/.activate_license-check: -------------------------------------------------------------------------------- 1 | Copyright ${year} 2 | Ubiquitous Knowledge Processing (UKP) Lab 3 | Technische Universität Darmstadt 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.gsubcatlex-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.gsubcatlex-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.integration.gsubcatlex-asl 26 | Integration: German Subcategorization lexicon 27 | 28 | 29 | Apache License Version 2.0 30 | http://www.apache.org/licenses/LICENSE-2.0.txt 31 | 32 | 33 | 34 | 35 | de.tudarmstadt.ukp.uby 36 | de.tudarmstadt.ukp.uby.lmf.model-asl 37 | 38 | 39 | de.tudarmstadt.ukp.uby 40 | de.tudarmstadt.ukp.uby.persistence.lmfxml-asl 41 | 42 | 43 | de.tudarmstadt.ukp.uby 44 | de.tudarmstadt.ukp.uby.persistence.transform-asl 45 | 46 | 47 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.gsubcatlex-asl/src/main/java/de/tudarmstadt/ukp/lmf/transform/gvc/GermanVcSense.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | 19 | package de.tudarmstadt.ukp.lmf.transform.gvc; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * This class defines a German verb class (GVC) sense in the LMF-Model 25 | * @author Eckle-Kohler 26 | * 27 | */ 28 | public class GermanVcSense { 29 | public String lemma, synArgs, classInformation; 30 | 31 | public GermanVcSense(String lemma,String synArgs,String classInformation) throws IOException { 32 | this.lemma = lemma; 33 | this.synArgs = synArgs; // syntactic arguments: role information might be present in few cases 34 | this.classInformation = classInformation; 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.gsubcatlex-asl/src/main/java/de/tudarmstadt/ukp/lmf/transform/imslex/IMSlexSense.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | 19 | package de.tudarmstadt.ukp.lmf.transform.imslex; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * This class defines a German IMSlex sense in the LMF-Model 25 | * @author Eckle-Kohler 26 | * @deprecated Use {@link org.dkpro.uby.imslex.IMSLexSubcatConverter} instead. 27 | */ 28 | @Deprecated 29 | public class IMSlexSense { 30 | public String lemma, pos, aux, synArgs, classInformation; 31 | 32 | public IMSlexSense(String lemma,String pos,String aux,String synArgs,String classInformation) throws IOException { 33 | this.lemma = lemma; 34 | this.pos = pos; // POS information 35 | this.aux = aux; // for verbs: auxiliary 36 | this.synArgs = synArgs; // syntactic arguments: role information might be present in few cases 37 | // e.g. adverb phrase complements with locative meaning 38 | this.classInformation = classInformation; 39 | } 40 | 41 | } 42 | 43 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.omegawiki-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.omegawiki-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.integration.omegawiki-asl 26 | Integration: OmegaWiki 27 | 28 | 29 | Apache License Version 2.0 30 | http://www.apache.org/licenses/LICENSE-2.0.txt 31 | 32 | 33 | 34 | 35 | de.tudarmstadt.ukp.uby 36 | de.tudarmstadt.ukp.uby.lmf.model-asl 37 | 38 | 39 | de.tudarmstadt.ukp.uby 40 | de.tudarmstadt.ukp.uby.persistence.lmfxml-asl 41 | 42 | 43 | de.tudarmstadt.ukp.uby 44 | de.tudarmstadt.ukp.uby.persistence.transform-asl 45 | 46 | 47 | de.tudarmstadt.ukp.omegawikiapi 48 | de.tudarmstadt.ukp.omegawikiapi-asl 49 | 50 | 51 | de.tudarmstadt.ukp.uby 52 | de.tudarmstadt.ukp.uby.lmf.api-asl 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.ontowiktionary-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.ontowiktionary-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.integration.ontowiktionary-asl 26 | Integration: OntoWiktionary 27 | 28 | 29 | de.tudarmstadt.ukp.uby 30 | de.tudarmstadt.ukp.uby.lmf.model-asl 31 | 32 | 33 | de.tudarmstadt.ukp.uby 34 | de.tudarmstadt.ukp.uby.persistence.transform-asl 35 | 36 | 37 | de.tudarmstadt.ukp.jwktl 38 | jwktl 39 | 1.0.0 40 | 41 | 42 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.ontowiktionary-asl/src/main/java/de/tudarmstadt/ukp/lmf/transform/ontowiktionary/OntoWiktionarySemanticRelation.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.transform.ontowiktionary; 19 | 20 | import de.tudarmstadt.ukp.jwktl.api.RelationType; 21 | 22 | public class OntoWiktionarySemanticRelation { 23 | 24 | // protected String sourceSenseId; 25 | protected RelationType relationType; 26 | protected String targetSenseId; 27 | protected String targetWordForm; 28 | 29 | public OntoWiktionarySemanticRelation(final String sourceSenseId, 30 | final RelationType relationType, final String targetSenseId, 31 | final String targetWordForm) { 32 | // this.sourceSenseId = sourceSenseId; 33 | this.relationType = relationType; 34 | this.targetSenseId = targetSenseId; 35 | this.targetWordForm = targetWordForm; 36 | } 37 | 38 | // public String getSourceSenseId() { 39 | // return sourceSenseId; 40 | // } 41 | 42 | public RelationType getRelationType() { 43 | return relationType; 44 | } 45 | 46 | public String getTargetSenseId() { 47 | return targetSenseId; 48 | } 49 | 50 | public String getTargetWordForm() { 51 | return targetWordForm; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.verbnet-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.verbnet-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.integration.verbnet-asl 26 | Integration: VerbNet 27 | 28 | 29 | Apache License Version 2.0 30 | http://www.apache.org/licenses/LICENSE-2.0.txt 31 | 32 | 33 | 34 | 35 | de.tudarmstadt.ukp.uby 36 | de.tudarmstadt.ukp.uby.lmf.model-asl 37 | 38 | 39 | de.tudarmstadt.ukp.uby 40 | de.tudarmstadt.ukp.uby.persistence.lmfxml-asl 41 | 42 | 43 | de.tudarmstadt.ukp.uby 44 | de.tudarmstadt.ukp.uby.persistence.transform-asl 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.verbnet-asl/src/main/java/de/tudarmstadt/ukp/lmf/transform/verbnet/VerbNetSense.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.transform.verbnet; 19 | 20 | import java.io.IOException; 21 | import java.util.List; 22 | 23 | /** 24 | * This class defines a VerbNet sense in the LMF-Model 25 | * @author Eckle-Kohler 26 | * 27 | */ 28 | public class VerbNetSense { 29 | public String lemma, wnSense, example, arguments, predicate, classInformation, roleSet, synArgs; 30 | public List synSemArgs; // syntactic arguments enriched with thematic roles and selectional restrictions 31 | 32 | public VerbNetSense(String lemma,String wnSense,String example,String arguments,String predicate,String classInformation,String roleSet,String synArgs) throws IOException { 33 | this.lemma = lemma; 34 | this.wnSense = wnSense; 35 | this.example = example; 36 | this.arguments = arguments; // syntactic arguments enriched with thematic roles 37 | this.predicate = predicate; 38 | this.classInformation = classInformation; 39 | this.roleSet = roleSet; // thematic roles enriched with selectional restrictions 40 | this.synArgs = synArgs; // purely syntactic arguments 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wikipedia-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wikipedia-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.integration.wikipedia-asl 26 | Integration: Wikipedia 27 | Wikipedia integration 28 | 29 | 30 | Apache License Version 2.0 31 | http://www.apache.org/licenses/LICENSE-2.0.txt 32 | 33 | 34 | 35 | 36 | de.tudarmstadt.ukp.uby 37 | de.tudarmstadt.ukp.uby.lmf.model-asl 38 | 39 | 40 | de.tudarmstadt.ukp.wikipedia 41 | de.tudarmstadt.ukp.wikipedia.api 42 | 43 | 44 | de.tudarmstadt.ukp.uby 45 | de.tudarmstadt.ukp.uby.persistence.transform-asl 46 | 47 | 48 | de.tudarmstadt.ukp.wikipedia 49 | 50 | de.tudarmstadt.ukp.wikipedia.parser 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wikipedia-asl/src/main/java/de/tudarmstadt/ukp/lmf/transform/wikipedia/ILanguage.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.transform.wikipedia; 19 | 20 | 21 | /** 22 | * Generic interface for languages used in Wikipedia. Each language is encoded using the 23 | * international standard of language classification (ISO 639). Languages 24 | * are compared by their internal code. 25 | * @author Christian M. Meyer 26 | * @author Christof Mller 27 | * @author Lizhen Qu 28 | */ 29 | public interface ILanguage extends Comparable { 30 | 31 | 32 | /** Returns the internal language code used by JWPL. These codes roughly 33 | * correspond to ISO 639-1, but also include language families, 34 | * deprecated classifications, and not yet classified languages. */ 35 | public String getCode(); 36 | 37 | /** Returns the language name (in English language). */ 38 | public String getName(); 39 | 40 | /** Returns the ISO 639-1 code or an empty string if none. */ 41 | public String getISO639_1(); 42 | 43 | /** Returns the ISO 639-2b code or an empty string if none. */ 44 | public String getISO639_2B(); 45 | 46 | /** Returns the ISO 639-2t code or an empty string if none. */ 47 | public String getISO639_2T(); 48 | 49 | /** Returns the ISO 639-3 code or an empty string if none. */ 50 | public String getISO639_3(); 51 | 52 | } 53 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wikipedia-asl/src/main/java/de/tudarmstadt/ukp/lmf/transform/wikipedia/WikipediaLMFMap.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.transform.wikipedia; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.enums.ELanguageIdentifier; 21 | import de.tudarmstadt.ukp.wikipedia.api.WikiConstants.Language; 22 | 23 | /** 24 | * Maps Wikipedia constants to LMF constants 25 | * @author Yevgen Chebotar 26 | * @author Christian M. Meyer 27 | */ 28 | public class WikipediaLMFMap { 29 | 30 | /** 31 | * Maps Wikipedia Language to LMF LanguageIdentifier 32 | * @param lang 33 | * @return 34 | */ 35 | public static String mapLanguage(final Language lang){ 36 | if (lang.equals(Language.english)) { 37 | return ELanguageIdentifier.ENGLISH; 38 | } else 39 | if (lang.equals(Language.german)) { 40 | return ELanguageIdentifier.GERMAN; 41 | } else { 42 | return null; 43 | } 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wiktionary-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wiktionary-asl/src/main/resources/uby-wiktionary/form_labels.txt: -------------------------------------------------------------------------------- 1 | abbreviation of 2 | ablative of 3 | ablative plural of 4 | accusative dual of 5 | accusative plural of 6 | accusative singular of 7 | acronym of 8 | agent noun of 9 | alternative capitalization of 10 | alternative form of 11 | alternative name of 12 | alternative spelling of 13 | apocopic form of 14 | archaic form of 15 | archaic past of 16 | archaic spelling of 17 | augmentative of 18 | causative of 19 | combining form of 20 | comparative of 21 | contraction of 22 | dated form of 23 | dative plural of 24 | defective spelling of 25 | definite of 26 | diminutive of 27 | dual of 28 | eclipsis of 29 | elative of 30 | euphemistic form of 31 | euphemistic spelling of 32 | excessive spelling of 33 | eye dialect of 34 | feminine of 35 | feminine past participle of 36 | feminine plural of 37 | feminine plural past participle of 38 | first person singular present tense and imperative of 39 | form of 40 | frequentative of 41 | future tense of 42 | genitive dual of 43 | genitive plural of 44 | gerund of 45 | infinitive of 46 | inflected form of 47 | conjugation of 48 | inflection of 49 | informal form of 50 | informal spelling of 51 | initialism of 52 | instrumental dual of 53 | instrumental of 54 | instrumental plural of 55 | irregular plural of 56 | irregular simple past of 57 | lenition of 58 | locative dual of 59 | locative of 60 | locative plural of 61 | masculine plural of 62 | medieval spelling of 63 | misconstruction of 64 | misspelling of 65 | mutation of 66 | negative of 67 | neuter of 68 | new en adj attr bot 69 | nominative dual of 70 | nominative of 71 | nominative plural of 72 | nonstandard spelling of 73 | obsolete form of 74 | obsolete spelling of 75 | official form of 76 | participle of 77 | passive form of 78 | past of 79 | past participle of 80 | past tense form of 81 | past tense of 82 | plural definite of 83 | plural gerund of 84 | plural indefinite of 85 | plural of 86 | plural past participle of 87 | present participle of 88 | rare spelling of 89 | reflexive of 90 | romanization of 91 | short for 92 | simple past of 93 | singular definite of 94 | spelling of 95 | superlative of 96 | supine of 97 | traditional orthography spelling of 98 | verbal noun of 99 | vocative dual of 100 | vocative of 101 | vocative plural of 102 | vocative singular of 103 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wordnet-gpl/.activate_license-check: -------------------------------------------------------------------------------- 1 | Copyright ${year} 2 | Ubiquitous Knowledge Processing (UKP) Lab 3 | Technische Universität Darmstadt 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wordnet-gpl/pom.xml: -------------------------------------------------------------------------------- 1 | 21 | 22 | 4.0.0 23 | 24 | de.tudarmstadt.ukp.uby 25 | de.tudarmstadt.ukp.uby 26 | 0.8.0-SNAPSHOT 27 | 28 | de.tudarmstadt.ukp.uby.integration.wordnet-gpl 29 | Integration: WordNet 30 | 31 | 32 | GNU General Public License Version 3.0 33 | http://www.gnu.org/licenses/gpl-3.0.txt 34 | 35 | 36 | 37 | 38 | de.tudarmstadt.ukp.uby 39 | de.tudarmstadt.ukp.uby.lmf.model-asl 40 | 41 | 42 | commons-logging 43 | commons-logging 44 | 45 | 46 | net.sf.extjwnl 47 | extjwnl 48 | 49 | 50 | junit 51 | junit 52 | test 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.integration.wordnet-gpl/src/test/java/de/tudarmstadt/ukp/lmf/transform/wordnet/util/WNConvUtilTest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * This program is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | package de.tudarmstadt.ukp.lmf.transform.wordnet.util; 20 | 21 | import static org.junit.Assert.assertEquals; 22 | import net.sf.extjwnl.data.POS; 23 | 24 | import org.junit.Ignore; 25 | import org.junit.Test; 26 | 27 | import de.tudarmstadt.ukp.lmf.model.enums.EPartOfSpeech; 28 | 29 | /** 30 | * Tests methods of {@link WNConvUtil} class.
31 | * 32 | * Tests are made for WordNet 3.0 33 | * data and UBY-LMF DTD version 0.2.0. 34 | * 35 | * @author Zijad Maksuti 36 | * 37 | * @since 0.2.0 38 | * 39 | */ 40 | @Ignore public class WNConvUtilTest { 41 | 42 | @Test 43 | public void testGetPos() { 44 | assertEquals(EPartOfSpeech.noun, WNConvUtil.getPOS(POS.NOUN)); 45 | assertEquals(EPartOfSpeech.verb, WNConvUtil.getPOS(POS.VERB)); 46 | assertEquals(EPartOfSpeech.adjective, WNConvUtil.getPOS(POS.ADJECTIVE)); 47 | assertEquals(EPartOfSpeech.adverb, WNConvUtil.getPOS(POS.ADVERB)); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.lmf.api-asl 26 | UBY API 27 | 28 | 29 | Apache License Version 2.0 30 | http://www.apache.org/licenses/LICENSE-2.0.txt 31 | 32 | 33 | 34 | 35 | de.tudarmstadt.ukp.uby 36 | de.tudarmstadt.ukp.uby.lmf.model-asl 37 | 38 | 39 | org.springframework 40 | spring-core 41 | 42 | 43 | org.hibernate 44 | hibernate-core 45 | 46 | 47 | org.slf4j 48 | slf4j-simple 49 | 50 | 51 | org.hibernate 52 | hibernate-c3p0 53 | 54 | 55 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/java/de/tudarmstadt/ukp/lmf/api/CriteriaIterable.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.api; 19 | 20 | import java.util.Iterator; 21 | 22 | 23 | import org.hibernate.SessionFactory; 24 | import org.hibernate.criterion.DetachedCriteria; 25 | 26 | /** 27 | * This class represents an {@link Iterable} for {@link CriteriaIterator}. 28 | * 29 | * @author Yevgen Chebotar 30 | * 31 | * @param Class of the object that is iterated 32 | */ 33 | public class CriteriaIterable implements Iterable { 34 | 35 | private int bufferSize; 36 | private DetachedCriteria criteria; 37 | private SessionFactory sessionFactory; 38 | 39 | public CriteriaIterable(DetachedCriteria criteria, SessionFactory sessionFactory, int bufferSize){ 40 | this.criteria = criteria; 41 | this.sessionFactory = sessionFactory; 42 | this.bufferSize = bufferSize; 43 | } 44 | 45 | @Override 46 | public Iterator iterator() { 47 | return new CriteriaIterator(criteria, sessionFactory, bufferSize); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/java/de/tudarmstadt/ukp/lmf/hibernate/UBYH2Dialect.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.hibernate; 19 | 20 | import org.hibernate.HibernateException; 21 | import org.hibernate.dialect.H2Dialect; 22 | 23 | /** 24 | * Variant of the {@link H2Dialect} that treats LONGVARCHAR fields as 25 | * VARCHAR(maxint). This is necessary since Hibernate's schema validator 26 | * fails for fields typed "text" otherwise. 27 | */ 28 | public class UBYH2Dialect extends H2Dialect { 29 | 30 | @Override 31 | public String getTypeName(int code, long length, int precision, int scale) 32 | throws HibernateException { 33 | String result = super.getTypeName(code, length, precision, scale); 34 | if ("longvarchar".equals(result)) 35 | return "varchar(" + Integer.MAX_VALUE + ")"; 36 | return result; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/java/de/tudarmstadt/ukp/lmf/hibernate/UBYMySQLDialect.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.hibernate; 19 | 20 | import org.hibernate.HibernateException; 21 | import org.hibernate.dialect.MySQL5InnoDBDialect; 22 | 23 | 24 | /** 25 | * This class resolves the issue of correct UTF-8 encoding when creating MySQL tables 26 | * with Hibernate SchemaExport-Tool. 27 | * 28 | * @author Yevgen Chebotar 29 | * 30 | */ 31 | public class UBYMySQLDialect extends MySQL5InnoDBDialect { 32 | 33 | public String getTableTypeString() { 34 | return " ENGINE=InnoDB default character set = \"UTF8\" default collate = \"utf8_general_ci\""; 35 | } 36 | 37 | @Override 38 | public String getTypeName(int code, long length, int precision, int scale) 39 | throws HibernateException { 40 | String result = super.getTypeName(code, length, precision, scale); 41 | if ("boolean".equals(result)) 42 | return "bit"; 43 | return result; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/core/Definition.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | de.tudarmstadt.ukp.lmf.model.enums.EDefinitionType 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/core/GlobalInformation.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/core/LexicalResource.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 38 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/core/Statement.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | de.tudarmstadt.ukp.lmf.model.enums.EStatementType 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/meta/Frequency.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/meta/MetaData.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/meta/SemanticLabel.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | de.tudarmstadt.ukp.lmf.model.enums.ELabelTypeSemantics 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/morphology/Component.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/morphology/Lemma.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/morphology/ListOfComponents.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/morphology/RelatedForm.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | de.tudarmstadt.ukp.lmf.model.enums.ERelTypeMorphology 20 | 21 | 22 | 23 | 25 | 27 | 28 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/mrd/Context.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | de.tudarmstadt.ukp.lmf.model.enums.EContextType 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/mrd/Equivalent.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/multilingual/PredicateArgumentAxis.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 16 | 17 | 19 | 20 | 22 | 23 | 25 | 26 | 28 | 29 | 30 | 31 | 35 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/multilingual/SenseAxisRelation.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/ArgumentRelation.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/MonolingualExternalRef.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/PredicateRelation.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/PredicativeRepresentation.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/SemanticArgument.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | de.tudarmstadt.ukp.lmf.model.enums.ECoreType 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/SemanticPredicate.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/SenseExample.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | de.tudarmstadt.ukp.lmf.model.enums.EExampleType 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/SenseRelation.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | de.tudarmstadt.ukp.lmf.model.enums.ERelTypeSemantics 15 | 16 | 17 | 18 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/SynSemArgMap.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/SynSemCorrespondence.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/Synset.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/semantics/SynsetRelation.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | de.tudarmstadt.ukp.lmf.model.enums.ERelTypeSemantics 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/syntax/LexemeProperty.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | de.tudarmstadt.ukp.lmf.model.enums.EAuxiliary 15 | 16 | 17 | 18 | 19 | de.tudarmstadt.ukp.lmf.model.enums.ESyntacticProperty 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/syntax/SubcatFrameSetElement.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/syntax/SubcategorizationFrame.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/syntax/SubcategorizationFrameSet.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/syntax/SynArgMap.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.api-asl/src/main/resources/hibernatemap/access/syntax/SyntacticBehaviour.hbm.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 13 | 15 | 16 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.lmf.model-asl 26 | UBY Object Model 27 | 28 | 29 | Apache License Version 2.0 30 | http://www.apache.org/licenses/LICENSE-2.0.txt 31 | 32 | 33 | 34 | 35 | 36 | org.apache.maven.plugins 37 | maven-surefire-plugin 38 | 39 | -Xmx128m 40 | 41 | 42 | 43 | 44 | 45 | 46 | junit 47 | junit 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/abstracts/HasFrequencies.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.abstracts; 19 | 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | import de.tudarmstadt.ukp.lmf.model.interfaces.IHasFrequencies; 24 | import de.tudarmstadt.ukp.lmf.model.meta.Frequency; 25 | import de.tudarmstadt.ukp.lmf.model.miscellaneous.EVarType; 26 | import de.tudarmstadt.ukp.lmf.model.miscellaneous.VarType; 27 | 28 | /** 29 | * A parent class for UBY-LMF classes which contain a {@link List} of 30 | * one or more {@link Frequency} instances. 31 | * 32 | * @author Zijad Maksuti 33 | * 34 | */ 35 | public class HasFrequencies implements IHasFrequencies { 36 | 37 | // Frequency information 38 | @VarType(type = EVarType.CHILDREN) 39 | protected List frequencies = new ArrayList(); 40 | 41 | /** 42 | * Sets the {@link List} of {@link Frequency} instances to this UBY-LMF class instance. 43 | * @param frequencies the frequencies to set 44 | */ 45 | public void setFrequencies(List frequencies) { 46 | this.frequencies = frequencies; 47 | } 48 | 49 | /** 50 | * Returns a {@link List} of all {@link Frequency} instances of this UBY-LMF class instance. 51 | * @return a list of all frequencies of this lexical entry or an empty list if the instance has no frequencies set 52 | */ 53 | public List getFrequencies() { 54 | return frequencies; 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/abstracts/HasMonolingualExternalRefs.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.abstracts; 19 | 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | import de.tudarmstadt.ukp.lmf.model.interfaces.IHasMonolingualExternalRefs; 24 | import de.tudarmstadt.ukp.lmf.model.miscellaneous.EVarType; 25 | import de.tudarmstadt.ukp.lmf.model.miscellaneous.VarType; 26 | import de.tudarmstadt.ukp.lmf.model.semantics.MonolingualExternalRef; 27 | 28 | /** 29 | * A parent class for UBY-LMF classes containing one or more 30 | * references to an external system, represented by a {@link List} of {@link MonolingualExternalRef} instances. 31 | * 32 | * @author Zijad Maksuti 33 | * 34 | */ 35 | public class HasMonolingualExternalRefs implements IHasMonolingualExternalRefs { 36 | 37 | // references to external resources 38 | @VarType(type = EVarType.CHILDREN) 39 | protected List monolingualExternalRefs = new ArrayList(); 40 | 41 | public List getMonolingualExternalRefs() { 42 | return this.monolingualExternalRefs; 43 | } 44 | 45 | public void setMonolingualExternalRefs(List monolingualExternalRefs) { 46 | if(this.monolingualExternalRefs != null) 47 | this.monolingualExternalRefs = monolingualExternalRefs; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/abstracts/HasTextRepresentations.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.abstracts; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.core.TextRepresentation; 21 | import de.tudarmstadt.ukp.lmf.model.interfaces.IHasTextRepresentations; 22 | 23 | /** 24 | * Base class for all containers that aggegrate multiple 25 | * {@link TextRepresentation} instances in a list. 26 | */ 27 | public abstract class HasTextRepresentations implements IHasTextRepresentations { 28 | 29 | public String getText() { 30 | StringBuilder result = new StringBuilder(); 31 | for (TextRepresentation textRep : getTextRepresentations()) { 32 | if (result.length() > 0) 33 | result.append("\n"); 34 | result.append(textRep.getWrittenText()); 35 | } 36 | return result.toString(); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/core/GlobalInformation.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.core; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.miscellaneous.EVarType; 21 | import de.tudarmstadt.ukp.lmf.model.miscellaneous.VarType; 22 | 23 | /** 24 | * GlobalInformation is a class representing administrative information and other general attributes 25 | * of a {@link LexicalResource}. 26 | * 27 | * @author Zijad Maksuti 28 | */ 29 | public class GlobalInformation { 30 | 31 | //Label 32 | @VarType(type = EVarType.ATTRIBUTE) 33 | private String label; 34 | 35 | /** 36 | * Sets label to this {@link GlobalInformation} instance. 37 | * @param label the label to set 38 | */ 39 | public void setLabel(String label) { 40 | this.label = label; 41 | } 42 | 43 | /** 44 | * Returns the label of this {@link GlobalInformation} instance. 45 | * @return the label of this GlobalInformation instance or null, if the label is not set 46 | */ 47 | public String getLabel() { 48 | return label; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EAuxiliary.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of auxiliary verbs. 22 | */ 23 | public enum EAuxiliary { 24 | 25 | /** German auxiliary verb haben. 26 | * ISOcat: http://www.isocat.org/datcat/DC-1299 */ 27 | haben, 28 | 29 | /** German auxiliary verb sein. 30 | * ISOcat: http://www.isocat.org/datcat/DC-1246 */ 31 | sein; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ECase.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of grammatical cases. 22 | */ 23 | public enum ECase { 24 | 25 | /** Nominative case. 26 | * ISOcat: http://www.isocat.org/datcat/DC-2721 */ 27 | nominative, 28 | 29 | /** Genitive case. 30 | * ISOcat: http://www.isocat.org/datcat/DC-2722 */ 31 | genitive, 32 | 33 | /** Dative case. 34 | * ISOcat: http://www.isocat.org/datcat/DC-2723 */ 35 | dative, 36 | 37 | /** Accusative case. 38 | * ISOcat: http://www.isocat.org/datcat/DC-2724 */ 39 | accusative, 40 | 41 | vocative, 42 | instrumental, 43 | locative; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EComplementizer.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of different complementizers. A complementizer is a 22 | * connective which marks a complement clause. 23 | */ 24 | public enum EComplementizer { 25 | 26 | thatType, 27 | whType, 28 | yesNoType; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EContextType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.mrd.Context; 21 | 22 | /** 23 | * Enumeration of different {@link Context} types. 24 | */ 25 | public enum EContextType { 26 | 27 | corpusEvidence, 28 | citation; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ECoreType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.semantics.SemanticArgument; 21 | 22 | /** 23 | * Enumeration of different core types to classify {@link SemanticArgument}s. 24 | * That is, a notion of how central they are to a particular predicate. 25 | */ 26 | public enum ECoreType { 27 | 28 | core, 29 | peripheral, 30 | coreUnexpressed, 31 | extraThematic; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EDefinitionType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of different definition types. 22 | * @author Zijad Maksuti 23 | * 24 | */ 25 | public enum EDefinitionType { 26 | extensionalDefinition, 27 | intensionalDefinition, 28 | partitiveDefinition, 29 | translatedDefinition 30 | } 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EDegree.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of grammatical degrees of adjectives and adverbs (e.g., big, 22 | * bigger, biggest). 23 | */ 24 | public enum EDegree { 25 | 26 | /** Positive; basic level of intensity. 27 | * ISOcat: http://www.isocat.org/datcat/DC-2780 */ 28 | positive, 29 | 30 | /** Comparative; higher level of intensity than the basic level. 31 | * http://www.isocat.org/datcat/DC-2781 */ 32 | comparative, 33 | 34 | /** Superlative; highest level of intensity. 35 | * ISOcat: http://www.isocat.org/datcat/DC-2782 */ 36 | superlative; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EDeterminer.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.syntax.SyntacticArgument; 21 | 22 | /** 23 | * Enumeration of different types of determiners of a {@link SyntacticArgument}. 24 | */ 25 | public enum EDeterminer { 26 | 27 | possessive, 28 | indefinite; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EExampleType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.semantics.SenseExample; 21 | 22 | /** 23 | * Enumeration of different types of {@link SenseExample}s. 24 | */ 25 | public enum EExampleType { 26 | 27 | /** Example sentence illustrating a subcategorization frame. 28 | * ISOcat: http://www.isocat.org/datcat/DC-4630 */ 29 | subcatFrame, 30 | 31 | /** Example sentence illustrating syntactic usage. 32 | * ISOcat: http://www.isocat.org/datcat/DC-455 */ 33 | syntacticUsage, 34 | 35 | /** Example sentence illustrating a word's meaning. 36 | * ISOcat: http://www.isocat.org/datcat/DC-3778 */ 37 | senseInstance, 38 | 39 | /** Example sentence illustrating the use of an idiomatic expression. 40 | * ISOcat: http://www.isocat.org/datcat/DC-351 */ 41 | idiomaticExpression, 42 | 43 | other; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EGrammaticalFunction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.syntax.SyntacticArgument; 21 | 22 | /** 23 | * Enumeration of the grammatical function of a {@link SyntacticArgument}. 24 | */ 25 | public enum EGrammaticalFunction { 26 | 27 | subject, 28 | subjectComplement, 29 | directObject, 30 | objectComplement, 31 | complement, 32 | adverbialComplement, 33 | prepositionalComplement; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EGrammaticalGender.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.morphology.WordForm; 21 | 22 | /** 23 | * Enumeration of grammatical genders of a {@link WordForm}. 24 | */ 25 | public enum EGrammaticalGender { 26 | 27 | /** Feminine gender. 28 | * ISOcat: http://www.isocat.org/datcat/DC-3197 */ 29 | feminine, 30 | 31 | /** Masculine gender. 32 | * ISOcat: http://www.isocat.org/datcat/DC-3312 */ 33 | masculine, 34 | 35 | /** Neuter. 36 | * ISOcat: http://www.isocat.org/datcat/DC-3336 */ 37 | neuter; 38 | 39 | } 40 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EGrammaticalNumber.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.morphology.WordForm; 21 | 22 | /** 23 | * Enumeration of grammatical numbers of a {@link WordForm}. 24 | */ 25 | public enum EGrammaticalNumber { 26 | 27 | /** Singular form. 28 | * ISOcat: http://www.isocat.org/datcat/DC-252 */ 29 | singular, 30 | 31 | /** Plural form. 32 | * ISOcat: http://www.isocat.org/datcat/DC-253 */ 33 | plural; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ELabelTypeSemantics.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Label types for {@link SemanticLabels}s 22 | * 23 | * @author Judith Eckle-Kohler 24 | * @author Christian M. Meyer 25 | * 26 | */ 27 | public enum ELabelTypeSemantics 28 | { 29 | 30 | category, 31 | collocate, 32 | discourseFunction, 33 | domain, 34 | interjectionClass, 35 | phrasemeClass, 36 | regionOfUsage, 37 | register, 38 | resourceSpecific, 39 | selectionalPreference, 40 | semanticCategory, 41 | semanticField, 42 | semanticNounClass, 43 | sentiment, 44 | syntacticAlternationClass, 45 | syntax, 46 | timePeriodOfUsage, 47 | usage, 48 | verbnetClass; 49 | 50 | } 51 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EPerson.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.morphology.WordForm; 21 | 22 | /** 23 | * Enumeration of the grammatical person of a {@link WordForm}. 24 | */ 25 | public enum EPerson { 26 | 27 | /** First person (e.g., I, we). 28 | * ISOcat: http://www.isocat.org/datcat/DC-3198 */ 29 | first, 30 | 31 | /** Second person (e.g., you). 32 | * ISOcat: http://www.isocat.org/datcat/DC-3464 */ 33 | second, 34 | 35 | /** Third person (e.g., she, they). 36 | * ISOcat: http://www.isocat.org/datcat/DC-3526 */ 37 | third; 38 | 39 | } 40 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ERelTypeMorphology.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of possible relation types specified by an instance of 22 | * {@link RelatedForm} class. 23 | */ 24 | public enum ERelTypeMorphology { 25 | etymology, 26 | compound, 27 | compoundRoot, 28 | derivative, 29 | derivationBase, 30 | derivationBaseNoun, 31 | derivationBaseVerb, 32 | derivationBaseAdj, 33 | derivationBaseVerbAdj, 34 | loanWord, 35 | supportVerb 36 | } 37 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ERelTypeSemantics.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.semantics.SenseRelation; 21 | import de.tudarmstadt.ukp.lmf.model.semantics.SynsetRelation; 22 | 23 | /** 24 | * Enumeration of possible relation types specified by an instance of 25 | * {@link SenseRelation} or {@link SynsetRelation} class. 26 | */ 27 | public enum ERelTypeSemantics { 28 | 29 | taxonomic, // e.g. hyponym 30 | partWhole, // e.g. metonym 31 | association, // e.g. see also 32 | label, // e.g. region, topic, but also capital, currency 33 | predicative, // e.g. is played by, flows through 34 | complementary, // e.g. antonym 35 | frameRelation, // e.g. subframe, relation between semantic predicates 36 | sameFrame, // e.g. excludes, relation between semantic predicates 37 | coreSet, // e.g. core_set_4 relation between semantic arguments 38 | 39 | @Deprecated translation, 40 | 41 | @Deprecated labelOmegaWiki, 42 | 43 | @Deprecated predicativeOmegaWiki 44 | 45 | } 46 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ESenseAxisType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of different types of a {@link SenseAxis} instance. 22 | */ 23 | public enum ESenseAxisType { 24 | 25 | monolingualSenseAlignment, 26 | crosslingualSenseAlignment, 27 | definedMeaning; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EStatementType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * Enumeration of different types of a {@link Statement} instance. 22 | */ 23 | public enum EStatementType { 24 | 25 | usageNote, 26 | encyclopedicInformation, 27 | etymology, 28 | backgroundText, 29 | externalReference; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ESyntacticCategory.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.syntax.SyntacticArgument; 21 | 22 | /** 23 | * Enumeration of the different categories of a {@link SyntacticArgument} 24 | * instance. A syntactic category is a set of words and/or phrases in a 25 | * language which share a significant number of common characteristics. 26 | */ 27 | public enum ESyntacticCategory { 28 | 29 | nounPhrase, 30 | reflexive, 31 | expletive, 32 | prepositionalPhrase, 33 | adverbPhrase, 34 | adjectivePhrase, 35 | verbPhrase, 36 | declarativeClause, 37 | subordinateClause, 38 | adverbPhrase_prepositionalPhrase_nounPhrase, 39 | adverbPhrase_prepositionalPhrase, 40 | adjectivePhrase_nounPhrase; 41 | 42 | } 43 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ESyntacticProperty.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | /** 21 | * ESyntacticProperty encodes the name of some lexical-syntactic, i.e. idiosyncratic, 22 | * behaviour of the lexeme. 23 | */ 24 | public enum ESyntacticProperty { 25 | 26 | subjectControl, 27 | objectControl, 28 | subjectRaising, 29 | objectRaising, 30 | nonPredicativeAdjective, 31 | predicativeAdjective, 32 | postpositiveAdjective; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/ETense.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.morphology.WordForm; 21 | import de.tudarmstadt.ukp.lmf.model.syntax.SyntacticArgument; 22 | 23 | /** 24 | * Enumeration of the grammatical tense of a {@link WordForm} or 25 | * {@link SyntacticArgument}. 26 | */ 27 | public enum ETense { 28 | 29 | /** Present tense. 30 | * ISOcat: http://www.isocat.org/datcat/DC-3421 */ 31 | present, 32 | 33 | /** Past tense. 34 | * ISOcat: http://www.isocat.org/datcat/DC-3378 */ 35 | past; 36 | 37 | //TODO: future 38 | 39 | } 40 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EVerbForm.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.syntax.SyntacticArgument; 21 | 22 | /** 23 | * Enumeration of different verb forms of a {@link SyntacticArgument}. 24 | */ 25 | public enum EVerbForm { 26 | 27 | toInfinitive, 28 | bareInfinitive, 29 | participle, 30 | ingForm; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EVerbFormMood.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.enums; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.morphology.WordForm; 21 | 22 | /** 23 | * Enumerator for moods of a verb described by a 24 | * {@link WordForm} instance. 25 | * 26 | * @author Zijad Maksuti 27 | * 28 | */ 29 | public enum EVerbFormMood { 30 | 31 | infinitive, 32 | infinitiveZu, 33 | participle, 34 | indicative, 35 | subjunctive, 36 | imperative, 37 | ingForm; 38 | 39 | } 40 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/enums/EYesNo.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | /** 19 | * 20 | */ 21 | package de.tudarmstadt.ukp.lmf.model.enums; 22 | 23 | /** 24 | * This enumerator is used as a replacement for 25 | * the boolean values true and false.
26 | * It is created for convenience reasons when converting the Uby-LMF 27 | * to an XML-file or to a database. 28 | * @deprecated Use boolean types instead. This enum will be removed. 29 | */ 30 | @Deprecated 31 | public enum EYesNo { 32 | yes, 33 | no 34 | } 35 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/interfaces/IHasDefinitions.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.interfaces; 19 | 20 | import java.util.List; 21 | 22 | import de.tudarmstadt.ukp.lmf.model.core.Definition; 23 | 24 | /** 25 | * An interface for Uby-LMF classes that are associated to one or more {@link Definition} instances. 26 | * 27 | * @author Zijad Maksuti 28 | * 29 | */ 30 | public interface IHasDefinitions { 31 | 32 | /** 33 | * Returns the {@link List} of all {@link Definition} instances representing the 34 | * narrative description of this Uby-LMF class instance. 35 | * @return the list of all definitions of this sense or an empty list, if the sense does not have 36 | * any definitions set 37 | */ 38 | List getDefinitions(); 39 | 40 | /** 41 | * Sets the {@link List} of all {@link Definition} instances to this Uby-LMF class instance. 42 | * @param definitions the definitions to set 43 | */ 44 | void setDefinitions(List definitions); 45 | 46 | } 47 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/interfaces/IHasFrequencies.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.interfaces; 19 | 20 | import java.util.List; 21 | 22 | import de.tudarmstadt.ukp.lmf.model.meta.Frequency; 23 | 24 | /** 25 | * An interface for Uby-LMF classes that are associated with one or more {@link Frequency} instances. 26 | * 27 | * @author Zijad Maksuti 28 | * 29 | */ 30 | public interface IHasFrequencies { 31 | 32 | /** 33 | * Returns a {@link List} of all {@link Frequency} instances associated with this Uby-LMF class instance. 34 | * @return a list of all frequencies of this Uby-LMF class instance or an empty list, if the instance has no frequencies set 35 | */ 36 | List getFrequencies(); 37 | 38 | /** 39 | * Sets the {@link List} of {@link Frequency} instances to this Uby-LMF class instance. 40 | * @param frequencies the list of frequencies to set 41 | */ 42 | void setFrequencies(List frequencies); 43 | 44 | } 45 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/interfaces/IHasID.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.interfaces; 19 | 20 | /** 21 | * An interface for UBY-LMF classes that have a unique identifier. 22 | * 23 | * @author Zijad Maksuti 24 | * 25 | */ 26 | public interface IHasID { 27 | 28 | 29 | /** 30 | * Returns the unique identifier of the UBY-LMF object. 31 | * @return the unique identifier of the UBY-LMF object or null, 32 | * if the object does not have the identifier set

33 | * 34 | * Note that all UBY-LMF classes implementing {@link IHasID} interface should 35 | * have this field set. Absence of the value of identifier field may indicate to an 36 | * incomplete conversion process of the original resource. 37 | * 38 | */ 39 | String getId(); 40 | 41 | /** 42 | * Sets the unique identifier of this UBY-LMF object. 43 | * @param id the unique identifier to set 44 | */ 45 | void setId(String id); 46 | } 47 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/interfaces/IHasMonolingualExternalRefs.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.interfaces; 19 | 20 | import java.util.List; 21 | 22 | import de.tudarmstadt.ukp.lmf.model.semantics.MonolingualExternalRef; 23 | 24 | /** 25 | * Interface for UBY-LMF classes containing one or more 26 | * references to an external system, represented by {@link MonolingualExternalRef} instances. 27 | * 28 | * @author Zijad Maksuti 29 | * 30 | */ 31 | public interface IHasMonolingualExternalRefs { 32 | 33 | /** 34 | * Returns the {@link List} of all {@link MonolingualExternalRef} instances which 35 | * link this UBY-LMF class instance to an external system. 36 | * @return the list of all monolingual external references of this UBY-LMF class instance or an empty 37 | * list if the instance does not have any monolingual external references set 38 | */ 39 | List getMonolingualExternalRefs(); 40 | 41 | /** 42 | * Sets the {@link List} of all {@link MonolingualExternalRef} instances to this 43 | * UBY-LMF class instance. 44 | * @param monolingualExternalRefs the monolingual external references to set 45 | */ 46 | void setMonolingualExternalRefs(List monolingualExternalRefs); 47 | 48 | } 49 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/interfaces/IHasParentSpecificTable.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.interfaces; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.core.TextRepresentation; 21 | import de.tudarmstadt.ukp.lmf.model.morphology.FormRepresentation; 22 | 23 | /** 24 | * Interface for UBY-LMF classes whose data will be stored in multiple 25 | * parent-specific tables. This should be the case for all entities that 26 | * are the target of more than one composition relations (i.e., they 27 | * appear has a child in multiple aggregation relations, but do not 28 | * stand for themselves). Practical examples are the 29 | * {@link FormRepresentation} and {@link TextRepresentation} classes 30 | * which are a child of multiple parent classes. 31 | * @author Christian M. Meyer 32 | */ 33 | public interface IHasParentSpecificTable { 34 | 35 | } 36 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/interfaces/IHasSemanticLabels.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.interfaces; 19 | 20 | import java.util.List; 21 | 22 | import de.tudarmstadt.ukp.lmf.model.meta.SemanticLabel; 23 | 24 | /** 25 | * Interface for Uby-LMF classes containing one or more semantic labels. 26 | * 27 | * @author Zijad Maksuti 28 | * 29 | */ 30 | public interface IHasSemanticLabels { 31 | 32 | /** 33 | * Returns the list of all {@link SemanticLabel} instances attached to this 34 | * Uby-LMF class instance. 35 | * @return the list of all semantic labels attached to this Uby-LMF class instance 36 | * or an empty list, if the instance does not have any semantic labels attached 37 | */ 38 | List getSemanticLabels(); 39 | 40 | /** 41 | * Sets the {@link List} of all {@link SemanticLabel} instances attached to 42 | * this Uby-LMF class instance instance. 43 | * @param semanticLabels the list of all semantic labels to set 44 | */ 45 | void setSemanticLabels(List semanticLabels); 46 | 47 | } 48 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/interfaces/IHasTextRepresentations.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.interfaces; 19 | 20 | import java.util.List; 21 | 22 | import de.tudarmstadt.ukp.lmf.model.core.TextRepresentation; 23 | 24 | /** 25 | * Interface for UBY-LMF classes containing one or more 26 | * {@link TextRepresentation} instances. 27 | * 28 | * @author Zijad Maksuti 29 | * 30 | */ 31 | public interface IHasTextRepresentations { 32 | 33 | /** 34 | * Returns all text representations of this Uby-LMF class instance 35 | * @return {@link List} of this Uby-LMF class instances text representations.
36 | * If the instance has no text representation, this method returns an empty list 37 | * @see TextRepresentation 38 | */ 39 | List getTextRepresentations(); 40 | 41 | /** 42 | * Sets a {@link List} of text representations to this Uby-LMF class instance instance. 43 | * @param textRepresentations the text representations to set 44 | * @see TextRepresentation 45 | */ 46 | void setTextRepresentations(List textRepresentations); 47 | 48 | /** Returns the written text of all text representations. If there are 49 | * multiple text representations then a line break is used to separate 50 | * the individual written texts. */ 51 | String getText(); 52 | 53 | } 54 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/miscellaneous/AccessType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.miscellaneous; 19 | 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.RetentionPolicy; 23 | import java.lang.annotation.Target; 24 | 25 | /** 26 | * Annotation type introduced for convenience reasons when converting 27 | * UBY-LMF to an XML-file. It specifies in which matter values of 28 | * class fields are read.

29 | * 30 | * By default, all fields are accessed using a canonical getter, 31 | * thus the default annotation is {@link EAccessType#GETTER}. 32 | * 33 | * @author Zijad Maksuti 34 | * 35 | */ 36 | @Retention(RetentionPolicy.RUNTIME) 37 | @Target(ElementType.FIELD) 38 | public @interface AccessType { 39 | EAccessType type() default EAccessType.GETTER; 40 | } 41 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/miscellaneous/ConstraintSet.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.miscellaneous; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.core.Lexicon; 21 | 22 | /** 23 | * This class represents a group of constraints 24 | * associated with a {@link Lexicon} instance. 25 | * 26 | * @author Zijad Maksuti 27 | * 28 | */ 29 | public class ConstraintSet { 30 | // empty for now 31 | } 32 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/miscellaneous/EAccessType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.miscellaneous; 19 | 20 | 21 | /** 22 | * Enumeration of all access types used for the annotation 23 | * defined in {@link AccessType}. 24 | * 25 | * @author Zijad Maksuti 26 | * 27 | */ 28 | public enum EAccessType { 29 | /** 30 | * The value of the field will be read using a canonical getter 31 | */ 32 | GETTER, 33 | 34 | /** 35 | * The value of the field will be directly read 36 | */ 37 | FIELD 38 | } 39 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/miscellaneous/EVarType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.miscellaneous; 19 | 20 | 21 | /** 22 | * Enumeration of all variable types used for the annotation 23 | * defined in {@link VarType}. 24 | * 25 | * @author Yevgen Chebotar 26 | * 27 | */ 28 | public enum EVarType { 29 | ATTRIBUTE, 30 | ATTRIBUTE_OPTIONAL, 31 | CHILD, 32 | CHILDREN, 33 | IDREF, 34 | IDREFS, 35 | NONE 36 | } 37 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/miscellaneous/VarType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.miscellaneous; 19 | 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.RetentionPolicy; 23 | import java.lang.annotation.Target; 24 | 25 | /** 26 | * Annotation type introduced for convenience reasons when converting 27 | * Uby-LMF to an XML-file or to a database. 28 | * @author Yevgen Chebotar 29 | * 30 | */ 31 | @Retention(RetentionPolicy.RUNTIME) 32 | @Target(ElementType.FIELD) 33 | public @interface VarType { 34 | EVarType type() default EVarType.NONE; 35 | } 36 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/main/java/de/tudarmstadt/ukp/lmf/model/semantics/SynsetRelation.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.semantics; 19 | 20 | import de.tudarmstadt.ukp.lmf.model.abstracts.SemanticRelation; 21 | 22 | /** 23 | * SynsetRelation is a class representing the oriented relationship between {@link Synset} instances. 24 | * 25 | * @author Zijad Maksuti 26 | * 27 | */ 28 | public class SynsetRelation extends SemanticRelation{ 29 | 30 | } 31 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/test/java/de/tudarmstadt/ukp/lmf/model/core/LexicalEntryTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.core; 19 | 20 | import static org.junit.Assert.assertEquals; 21 | 22 | import org.junit.Before; 23 | import org.junit.Test; 24 | 25 | /** 26 | * Tests methods of {@link LexicalEntry} class 27 | * 28 | * @author Zijad Maksuti 29 | * 30 | */ 31 | public class LexicalEntryTest { 32 | 33 | private LexicalEntry lexicalEntry; 34 | 35 | @Before 36 | public void setUp(){ 37 | lexicalEntry = new LexicalEntry("l"); 38 | } 39 | 40 | /** 41 | * Tests {@link #LexicalEntry(String)} 42 | */ 43 | @Test 44 | public void testLexicalEntry(){ 45 | String id = "2"; 46 | lexicalEntry = new LexicalEntry(id); 47 | assertEquals(id, lexicalEntry.getId()); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/test/java/de/tudarmstadt/ukp/lmf/model/core/LexicalResourceTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.core; 19 | 20 | import static org.junit.Assert.*; 21 | 22 | import java.util.List; 23 | 24 | import org.junit.Before; 25 | import org.junit.Test; 26 | 27 | /** 28 | * Tests methods of {@link LexicalResource} class 29 | * 30 | * @author Zijad Maksuti 31 | * 32 | */ 33 | public class LexicalResourceTest { 34 | 35 | private LexicalResource lexicalResource; 36 | 37 | @Before 38 | public void setUp(){ 39 | lexicalResource = new LexicalResource(); 40 | } 41 | 42 | /** 43 | * Tests {@link LexicalResource#addLexicon(Lexicon)} 44 | */ 45 | @Test 46 | public void testAddLexicon() { 47 | Lexicon lexicon = new Lexicon(); 48 | assertTrue(lexicalResource.addLexicon(lexicon)); 49 | List lexicons = lexicalResource.getLexicons(); 50 | assertEquals(1, lexicons.size()); 51 | assertEquals(lexicon, lexicons.get(0)); 52 | assertFalse(lexicalResource.addLexicon(lexicon)); 53 | assertEquals(1, lexicons.size()); 54 | Lexicon lexicon2 = new Lexicon(); 55 | assertTrue(lexicalResource.addLexicon(lexicon2)); 56 | assertEquals(2, lexicons.size()); 57 | assertTrue(lexicons.contains(lexicon)); 58 | assertTrue(lexicons.contains(lexicon2)); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/test/java/de/tudarmstadt/ukp/lmf/model/core/LexiconTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.core; 19 | 20 | import static org.junit.Assert.*; 21 | 22 | import java.util.List; 23 | 24 | import org.junit.Before; 25 | import org.junit.Test; 26 | 27 | /** 28 | * Tests methods of {@link Lexicon} class 29 | * 30 | * @author Zijad Maksuti 31 | * 32 | * @since UBY 0.2.0 33 | * 34 | */ 35 | public class LexiconTest { 36 | 37 | private Lexicon lexicon; 38 | 39 | @Before 40 | public void setUp(){ 41 | lexicon = new Lexicon(); 42 | } 43 | 44 | /** 45 | * Tests {@link Lexicon#addLexicalEntry(LexicalEntry)} 46 | */ 47 | @Test 48 | public void testAddLexicalEntry() { 49 | LexicalEntry lexicalEntry = new LexicalEntry("1"); 50 | assertTrue(lexicon.addLexicalEntry(lexicalEntry)); 51 | List lexicalEntries = lexicon.getLexicalEntries(); 52 | 53 | assertEquals(1, lexicalEntries.size()); 54 | assertEquals(lexicalEntry, lexicalEntries.get(0)); 55 | assertFalse(lexicon.addLexicalEntry(lexicalEntry)); 56 | assertEquals(1, lexicalEntries.size()); 57 | LexicalEntry lexicalEntry2 = new LexicalEntry("2"); 58 | assertTrue(lexicon.addLexicalEntry(lexicalEntry2)); 59 | assertEquals(2, lexicalEntries.size()); 60 | assertTrue(lexicalEntries.contains(lexicalEntry)); 61 | assertTrue(lexicalEntries.contains(lexicalEntry2)); 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/test/java/de/tudarmstadt/ukp/lmf/model/core/SenseTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.core; 19 | 20 | import static org.junit.Assert.assertEquals; 21 | import static org.junit.Assert.assertNull; 22 | 23 | import org.junit.Test; 24 | 25 | /** 26 | * Tests methods of {@link Sense} class 27 | * 28 | * @author Zijad Maksuti 29 | * 30 | * @since UBY 0.2.0 31 | */ 32 | public class SenseTest { 33 | 34 | /** 35 | * Tests the {@link Sense#Sense()} constructor. 36 | */ 37 | @Test 38 | public void testSense(){ 39 | Sense sense = new Sense(); 40 | assertNull(sense.getId()); 41 | // TODO check other fields 42 | } 43 | 44 | /** 45 | * Tests the {@link Sense#Sense(String)} constructor. 46 | */ 47 | @Test 48 | public void testSenseWithId(){ 49 | String senseId = "senseId"; 50 | Sense sense = new Sense(senseId); 51 | assertEquals(senseId, sense.getId()); 52 | // TODO check other fields 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/test/java/de/tudarmstadt/ukp/lmf/model/semantics/SemanticArgumentTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.semantics; 19 | 20 | import static org.junit.Assert.assertEquals; 21 | import static org.junit.Assert.assertNull; 22 | 23 | import org.junit.Test; 24 | 25 | /** 26 | * Tests methods of {@link SemanticArgument} class 27 | * 28 | * @author Zijad Maksuti 29 | * 30 | * @since UBY 0.2.0 31 | */ 32 | public class SemanticArgumentTest { 33 | 34 | /** 35 | * Tests the {@link SemanticArgument#SemanticArgument()} constructor. 36 | */ 37 | @Test 38 | public void testSemanticArgument(){ 39 | SemanticArgument semanticArgument = new SemanticArgument(); 40 | assertNull(semanticArgument.getId()); 41 | // TODO check other fields 42 | } 43 | 44 | /** 45 | * Tests the {@link SemanticArgument#SemanticArgument(String)} constructor. 46 | */ 47 | @Test 48 | public void testSemanticArgumentWithId(){ 49 | String semArgId = "semArgId"; 50 | SemanticArgument semArg = new SemanticArgument(semArgId); 51 | assertEquals(semArgId, semArg.getId()); 52 | // TODO check other fields 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.lmf.model-asl/src/test/java/de/tudarmstadt/ukp/lmf/model/semantics/SynsetTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | package de.tudarmstadt.ukp.lmf.model.semantics; 19 | 20 | import static org.junit.Assert.assertEquals; 21 | import static org.junit.Assert.assertNull; 22 | 23 | import org.junit.Test; 24 | 25 | import de.tudarmstadt.ukp.lmf.model.semantics.Synset; 26 | 27 | /** 28 | * Tests methods of {@link Synset} class 29 | * 30 | * @author Zijad Maksuti 31 | * 32 | * @since UBY 0.2.0 33 | */ 34 | public class SynsetTest { 35 | 36 | /** 37 | * Tests the {@link Synset#Synset()} constructor. 38 | */ 39 | @Test 40 | public void testSynset(){ 41 | Synset synset = new Synset(); 42 | assertNull(synset.getId()); 43 | // TODO check other fields 44 | } 45 | 46 | /** 47 | * Tests the {@link Synset#Synset(String)} constructor. 48 | */ 49 | @Test 50 | public void testSynsetWithId(){ 51 | String synsetId = "synsetId"; 52 | Synset synset = new Synset(synsetId); 53 | assertEquals(synsetId, synset.getId()); 54 | // TODO check other fields 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.persistence.lmfxml-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.persistence.lmfxml-asl/src/main/java/de/tudarmstadt/ukp/lmf/writer/LMFWriter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | 19 | package de.tudarmstadt.ukp.lmf.writer; 20 | 21 | /** @deprecated THIS CLASS WILL BE REMOVED SOON. USE MODULE persistence.transform INSTEAD! */ 22 | @Deprecated 23 | public abstract class LMFWriter { 24 | public abstract void writeElement(Object lmfObject) throws LMFWriterException; 25 | public abstract void writeStartElement(Object lmfObject) throws LMFWriterException; 26 | public abstract void writeEndElement(Object lmfObject) throws LMFWriterException; 27 | public abstract void writeEndDocument() throws LMFWriterException; 28 | } 29 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.persistence.lmfxml-asl/src/main/java/de/tudarmstadt/ukp/lmf/writer/LMFWriterException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | 19 | package de.tudarmstadt.ukp.lmf.writer; 20 | 21 | /** 22 | * This exception should be thrown by all {@link LMFWriter} instances and can be used 23 | * as a wrapper. 24 | * 25 | * @author Yevgen Chebotar 26 | * @since UBY 0.1.0 27 | * @deprecated THIS CLASS WILL BE REMOVED SOON. USE MODULE persistence.transform INSTEAD! 28 | */ 29 | @Deprecated 30 | public class LMFWriterException extends Exception { 31 | 32 | private static final long serialVersionUID = 3656613135105045894L; 33 | 34 | public LMFWriterException(Throwable cause) { 35 | super(cause); 36 | } 37 | 38 | public LMFWriterException(){ 39 | super(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.persistence.transform-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.persistence.transform-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 4.0.0 20 | 21 | de.tudarmstadt.ukp.uby 22 | de.tudarmstadt.ukp.uby 23 | 0.8.0-SNAPSHOT 24 | 25 | de.tudarmstadt.ukp.uby.persistence.transform-asl 26 | Persistence: Streaming Import/Export 27 | 28 | 29 | Apache License Version 2.0 30 | http://www.apache.org/licenses/LICENSE-2.0.txt 31 | 32 | 33 | 34 | 35 | de.tudarmstadt.ukp.uby 36 | de.tudarmstadt.ukp.uby.lmf.model-asl 37 | 38 | 39 | de.tudarmstadt.ukp.uby 40 | de.tudarmstadt.ukp.uby.persistence.lmfxml-asl 41 | 42 | 43 | de.tudarmstadt.ukp.uby 44 | de.tudarmstadt.ukp.uby.lmf.api-asl 45 | 46 | 47 | junit 48 | junit 49 | test 50 | 51 | 52 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.testing-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.testing-asl/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 4.0.0 21 | 22 | de.tudarmstadt.ukp.uby 23 | de.tudarmstadt.ukp.uby 24 | 0.8.0-SNAPSHOT 25 | 26 | de.tudarmstadt.ukp.uby.testing-asl 27 | Testing: API testing with in-memory DB 28 | 29 | 30 | Apache License Version 2.0 31 | http://www.apache.org/licenses/LICENSE-2.0.txt 32 | 33 | 34 | 35 | 36 | 37 | de.tudarmstadt.ukp.uby 38 | de.tudarmstadt.ukp.uby.lmf.model-asl 39 | 40 | 41 | de.tudarmstadt.ukp.uby 42 | de.tudarmstadt.ukp.uby.persistence.transform-asl 43 | 44 | 45 | de.tudarmstadt.ukp.uby 46 | de.tudarmstadt.ukp.uby.lmf.api-asl 47 | 48 | 49 | com.h2database 50 | h2 51 | 1.3.160 52 | jar 53 | compile 54 | 55 | 56 | junit 57 | junit 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.ubycreate-gpl/.activate_license-check: -------------------------------------------------------------------------------- 1 | Copyright ${year} 2 | Ubiquitous Knowledge Processing (UKP) Lab 3 | Technische Universität Darmstadt 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.ubycreate-gpl/src/main/java/de/tudarmstadt/ukp/uby/ubycreate/Creator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * This program is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | package de.tudarmstadt.ukp.uby.ubycreate; 20 | 21 | import java.io.File; 22 | 23 | import de.tudarmstadt.ukp.lmf.transform.DBConfig; 24 | 25 | public interface Creator 26 | { 27 | public File lexicon2XML(String source, File lmfXML) 28 | throws Exception; 29 | 30 | public void lexicon2DB(DBConfig dbConfig, String source) 31 | throws Exception; 32 | } 33 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.ubycreate-gpl/src/main/java/de/tudarmstadt/ukp/uby/ubycreate/XMLCreator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * This program is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | package de.tudarmstadt.ukp.uby.ubycreate; 20 | 21 | import java.io.File; 22 | 23 | import org.dom4j.DocumentException; 24 | 25 | import de.tudarmstadt.ukp.lmf.transform.DBConfig; 26 | import de.tudarmstadt.ukp.lmf.transform.XMLToDBTransformer; 27 | 28 | public class XMLCreator 29 | implements Creator 30 | { 31 | 32 | /** 33 | * This method store the data from the XML file in UBY format into DB 34 | * 35 | */ 36 | @Override 37 | public void lexicon2DB(DBConfig dbConfig, String source) 38 | throws DocumentException 39 | { 40 | String lexicalName = "xml"; 41 | System.out.println("xml2db: " + source + " -> " + dbConfig.getJdbc_url()); 42 | 43 | File lmfXML = new File(source); 44 | 45 | /* Persisting lmfXML into DB */ 46 | 47 | XMLToDBTransformer xmlToDB = new XMLToDBTransformer(dbConfig); 48 | xmlToDB.transform(lmfXML, lexicalName); 49 | } 50 | 51 | @Override 52 | public File lexicon2XML(String source, File lmfXML) 53 | throws Exception 54 | { 55 | return lmfXML; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.ubycreate-gpl/src/test/java/de/tudarmstadt/ukp/uby/AppTest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * This program is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | package de.tudarmstadt.ukp.uby; 20 | 21 | import junit.framework.Test; 22 | import junit.framework.TestCase; 23 | import junit.framework.TestSuite; 24 | 25 | /** 26 | * Unit test for simple App. 27 | */ 28 | public class AppTest 29 | extends TestCase 30 | { 31 | /** 32 | * Create the test case 33 | * 34 | * @param testName name of the test case 35 | */ 36 | public AppTest( String testName ) 37 | { 38 | super( testName ); 39 | } 40 | 41 | /** 42 | * @return the suite of tests being tested 43 | */ 44 | public static Test suite() 45 | { 46 | return new TestSuite( AppTest.class ); 47 | } 48 | 49 | /** 50 | * Rigourous Test :-) 51 | */ 52 | public void testApp() 53 | { 54 | assertTrue( true ); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.uima-asl/.activate_rat-check: -------------------------------------------------------------------------------- 1 | Trigger to activate the "rat-check" profile in the parent POM. -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.uima-asl/src/main/java/de/tudarmstadt/ukp/uby/resource/package-info.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | 19 | /** 20 | * @author Judith Eckle-Kohler 21 | * 22 | * UIMA resources based on UBY 23 | * 24 | */ 25 | package de.tudarmstadt.ukp.uby.resource; -------------------------------------------------------------------------------- /de.tudarmstadt.ukp.uby.uima-asl/src/main/java/de/tudarmstadt/ukp/uby/uima/annotator/package-info.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2017 3 | * Ubiquitous Knowledge Processing (UKP) Lab 4 | * Technische Universität Darmstadt 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | ******************************************************************************/ 18 | 19 | /** 20 | * 21 | * Interface to UIMA-based processing with Uby as ExternalResource 22 | * 23 | * 24 | */ 25 | package de.tudarmstadt.ukp.uby.uima.annotator; --------------------------------------------------------------------------------