Class PostTranslationDataHandler
java.lang.Object
org.getalp.dbnary.model.DbnaryModel
org.getalp.dbnary.languages.OntolexBasedRDFDataHandler
org.getalp.dbnary.commons.PostTranslationDataHandler
- All Implemented Interfaces:
IWiktionaryDataHandler
- Direct Known Subclasses:
WiktionaryDataHandler, WiktionaryDataHandler
A data handler tailored to handle language editions where translation are given after all the
different entries and should be attached to correct entries somehow.
-
Nested Class Summary
Nested classes/interfaces inherited from class OntolexBasedRDFDataHandler
OntolexBasedRDFDataHandler.PosAndType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, org.apache.commons.lang3.tuple.Pair<org.apache.jena.rdf.model.Resource, org.apache.jena.rdf.model.Resource>> Fields inherited from class OntolexBasedRDFDataHandler
aBox, currentCanonicalForm, currentEncodedLexicalEntryName, currentLexEntry, currentLexicalEntry, currentLexieCount, currentMainLexEntry, currentPage, currentSense, currentSenseNumber, currentSharedPronunciations, glossFilter, lexvoExtractedLanguage, lexvoSectionLanguage, longEditionLanguageCode, longSectionLanguageCode, nbEntries, posAndTypeValueMap, reifiedNymCount, shortEditionLanguageCode, shortSectionLanguageCode, translationCount, WIKTFields inherited from class DbnaryModel
DBNARY_NS_PREFIX, LEXVO, tBox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAllResourceOfPoS(ArrayList<List<org.apache.jena.rdf.model.Resource>> res, String pos) protected voidaddAllResourceOfPoS(ArrayList<List<org.apache.jena.rdf.model.Resource>> res, org.apache.jena.rdf.model.Resource pos) voidvoidprotected StringgetLexicalEntriesUsingGloss(org.apache.jena.rdf.model.Resource structuredGloss) voidorg.apache.jena.rdf.model.ResourceinitializeLexicalEntry(String pos, org.apache.jena.rdf.model.Resource lexinfoPOS, org.apache.jena.rdf.model.Resource type) org.apache.jena.rdf.model.ResourceregisterNewDefinition(String def, String senseNumber) Register a definition with the given sense number.voidregisterTranslation(String lang, org.apache.jena.rdf.model.Resource currentGloss, String usage, String word) voidMethods inherited from class OntolexBasedRDFDataHandler
addOtherFormPropertiesToLexicalEntry, addTo, addToCurrentWordSense, buildDatacubeObservations, closeDataset, computeNymId, computeNymId, computeOtherFormResourceName, computeSenseNum, computeStatistics, createGeneralStatisticsObservation, createGlossResource, createGlossResource, createGlossResource, createGlossResource, createNymRelationObservation, createTranslationObservation, currentLexinfoPos, currentPagename, currentWiktionaryPos, decodePartOfSpeech, dump, dumpAllFeaturesAsHDT, enableEndolexFeatures, enableExolexFeatures, finalizePageExtraction, getCurrentEntryLanguage, getDerivationStatementId, getEncodedPageName, getEndolexFeatureBox, getExolexFeatureBox, getExtractedLanguage, getFeatureBox, getGlossFilter, getLexEntry, getLexEntry, getPageResource, getPageResource, getPageResourceIRI, getPrefix, initializeLexicalEntry, initializeLexicalEntry__noModel, initializePageExtraction, isDisabled, isResourceCompatible, mergePropertiesIntoResource, nbEntries, populateMetadata, posResource, posResource, registerAlternateSpelling, registerDerivation, registerDerivation, registerExample, registerExample, registerExampleOnResource, registerExampleOnResource, registerInflection, registerInflection, registerInflection, registerNewDefinition, registerNewDefinition, registerNymRelation, registerNymRelation, registerNymRelationOnCurrentSense, registerNymRelationToEntity, registerNymRelationToEntity, registerPronunciation, registerPronunciation, registerPropertyOnCanonicalForm, registerPropertyOnLexicalEntry, registerTranslationToEntity, typeResource, typeResourceMethods inherited from class DbnaryModel
setGlobalDbnaryPrefix, uriEncode, uriEncode, uriEncodeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IWiktionaryDataHandler
registerNymRelationOnCurrentSense
-
Field Details
-
lexEntries
-
senses
-
-
Constructor Details
-
PostTranslationDataHandler
-
-
Method Details
-
initializeLanguageSection
- Specified by:
initializeLanguageSectionin interfaceIWiktionaryDataHandler- Overrides:
initializeLanguageSectionin classOntolexBasedRDFDataHandler
-
startNewEtymologySection
public void startNewEtymologySection() -
finalizeLanguageSection
public void finalizeLanguageSection()- Specified by:
finalizeLanguageSectionin interfaceIWiktionaryDataHandler- Overrides:
finalizeLanguageSectionin classOntolexBasedRDFDataHandler
-
initializeLexicalEntry
public org.apache.jena.rdf.model.Resource initializeLexicalEntry(String pos, org.apache.jena.rdf.model.Resource lexinfoPOS, org.apache.jena.rdf.model.Resource type) - Overrides:
initializeLexicalEntryin classOntolexBasedRDFDataHandler
-
registerNewDefinition
Description copied from class:OntolexBasedRDFDataHandlerRegister a definition with the given sense number.- Specified by:
registerNewDefinitionin interfaceIWiktionaryDataHandler- Overrides:
registerNewDefinitionin classOntolexBasedRDFDataHandler- Parameters:
def- the definition stringsenseNumber- a string giving the sense number of the definition.- Returns:
-
getGlossResourceName
- Overrides:
getGlossResourceNamein classOntolexBasedRDFDataHandler
-
registerTranslation
public void registerTranslation(String lang, org.apache.jena.rdf.model.Resource currentGloss, String usage, String word) - Specified by:
registerTranslationin interfaceIWiktionaryDataHandler- Overrides:
registerTranslationin classOntolexBasedRDFDataHandler
-
getLexicalEntriesUsingGloss
-
addAllResourceOfPoS
-
addAllResourceOfPoS
-
extractEtymology
public void extractEtymology()
-