Class WiktionaryDataHandler
java.lang.Object
org.getalp.dbnary.model.DbnaryModel
org.getalp.dbnary.languages.OntolexBasedRDFDataHandler
org.getalp.dbnary.languages.eng.WiktionaryDataHandler
- All Implemented Interfaces:
IWiktionaryDataHandler
Created by serasset on 17/09/14, pantaleo
-
Nested Class Summary
Nested classes/interfaces inherited from class OntolexBasedRDFDataHandler
OntolexBasedRDFDataHandler.PosAndType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final HashSet<org.apache.jena.rdf.model.Resource> ArrayList<org.apache.jena.rdf.model.Resource> Resources containing Etymology Entries.org.apache.jena.rdf.model.Resourceprotected intAn integer counting the number of alternative etymologies for the same entry.org.apache.jena.rdf.model.Resourceprotected static final HashSet<org.apache.jena.rdf.model.Resource> protected static final HashMap<org.apache.jena.rdf.model.Resource, org.apache.jena.rdf.model.Resource> protected static final HashSet<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 TypeMethodDescriptionvoidaddAncestorsAndRegisterDescendants(Etymology etymology) voidprotected voidaddOtherFormPropertiesToLexicalEntry(org.apache.jena.rdf.model.Resource lexEntry, HashSet<PropertyObjectPair> properties) voidaddWrittenRep(String word) voidvoidorg.apache.jena.rdf.model.ResourcecreateEtymologyEntryResource(org.apache.jena.rdf.model.Model eBox, String e, String lang) voidorg.apache.jena.rdf.model.ResourcegetGlossURI(String id) voidvoidprotected org.apache.jena.rdf.model.ResourceinitializeLexicalEntry(String pos, org.apache.jena.rdf.model.Resource lexinfoPOS, org.apache.jena.rdf.model.Resource type) voidstatic booleanisValidPOS(String pos) voidvoidvoidvoidregisterDerived(Etymology etymology) voidregisterEtymology(Etymology etymology) voidregisterEtymologyPos(String wiktionaryPageName) voidregisterEtymologyPos(String lang, String languageName, String wiktionaryPageName) voidregisterInflection(String languageCode, String pos, String inflection, String canonicalForm, int defNumber, HashSet<PropertyObjectPair> props) voidregisterInflection(String languageCode, String pos, String inflection, String canonicalForm, int defNumber, HashSet<PropertyObjectPair> props, HashSet<PronunciationPair> pronunciations) voidregisterInflection(String inflection, String note, HashSet<PropertyObjectPair> props) voidregisterNymRelationToEntity(String target, String nymRelation, org.apache.jena.rdf.model.Resource entity, org.apache.jena.rdf.model.Resource gloss, String usage) voidregisterWikisaurusNym(String currentPOS, String currentWS, String currentNym, String s) voidregisterWikisaurusNymFromTo(String currentPOS, String nym, String gloss, String targetGloss, String s, String t) voidMethods inherited from class OntolexBasedRDFDataHandler
addTo, addToCurrentWordSense, buildDatacubeObservations, closeDataset, computeNymId, computeNymId, computeOtherFormResourceName, computeSenseNum, computeStatistics, createGeneralStatisticsObservation, createGlossResource, createGlossResource, createGlossResource, createGlossResource, createNymRelationObservation, createTranslationObservation, currentLexinfoPos, currentPagename, currentWiktionaryPos, decodePartOfSpeech, dump, dumpAllFeaturesAsHDT, enableEndolexFeatures, enableExolexFeatures, finalizeLanguageSection, finalizePageExtraction, getCurrentEntryLanguage, getDerivationStatementId, getEncodedPageName, getEndolexFeatureBox, getExolexFeatureBox, getExtractedLanguage, getFeatureBox, getGlossFilter, getGlossResourceName, 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, registerNewDefinition, registerNewDefinition, registerNewDefinition, registerNymRelation, registerNymRelation, registerNymRelationOnCurrentSense, registerNymRelationToEntity, registerPronunciation, registerPronunciation, registerPropertyOnCanonicalForm, registerPropertyOnLexicalEntry, registerTranslation, 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
-
ancestors
Resources containing Etymology Entries. -
currentEtymologyEntry
public org.apache.jena.rdf.model.Resource currentEtymologyEntry -
currentGlobalEtymologyEntry
public org.apache.jena.rdf.model.Resource currentGlobalEtymologyEntry -
currentEtymologyNumber
protected int currentEtymologyNumberAn integer counting the number of alternative etymologies for the same entry. -
wordToMutiWordPOSTypes
protected static final HashMap<org.apache.jena.rdf.model.Resource, org.apache.jena.rdf.model.Resource> wordToMutiWordPOSTypes -
multiWordTypes
-
affixTypes
-
wordTypes
-
-
Constructor Details
-
WiktionaryDataHandler
-
-
Method Details
-
initializeLanguageSection
- Specified by:
initializeLanguageSectionin interfaceIWiktionaryDataHandler- Overrides:
initializeLanguageSectionin classOntolexBasedRDFDataHandler
-
initializeLexicalEntry
protected 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
-
isValidPOS
-
registerEtymologyPos
-
registerEtymologyPos
-
getPrefix
-
postProcessEtymology
public void postProcessEtymology() -
registerDerived
-
registerCurrentEtymologyEntry
-
createEtymologyEntryResource
-
registerEtymology
-
initializeAncestors
public void initializeAncestors() -
finalizeAncestors
public void finalizeAncestors() -
addAncestorsAndRegisterDescendants
-
registerInflection
public void registerInflection(String languageCode, String pos, String inflection, String canonicalForm, int defNumber, HashSet<PropertyObjectPair> props, HashSet<PronunciationPair> pronunciations) - Specified by:
registerInflectionin interfaceIWiktionaryDataHandler- Overrides:
registerInflectionin classOntolexBasedRDFDataHandler
-
addOtherFormPropertiesToLexicalEntry
protected void addOtherFormPropertiesToLexicalEntry(org.apache.jena.rdf.model.Resource lexEntry, HashSet<PropertyObjectPair> properties) - Overrides:
addOtherFormPropertiesToLexicalEntryin classOntolexBasedRDFDataHandler
-
registerInflection
-
registerInflection
public void registerInflection(String languageCode, String pos, String inflection, String canonicalForm, int defNumber, HashSet<PropertyObjectPair> props) - Specified by:
registerInflectionin interfaceIWiktionaryDataHandler- Overrides:
registerInflectionin classOntolexBasedRDFDataHandler- Parameters:
languageCode- the language code of the inflectionpos- the part of speech of the inflected forminflection- inflected formcanonicalForm- canonical formdefNumber- definition number of the word sense associated to the formprops- morpho syntactic properties to be registered with the inflected form
-
addWrittenRep
-
uncountable
public void uncountable() -
countable
public void countable() -
comparable
public void comparable() -
notComparable
public void notComparable() -
addInflectionOnCanonicalForm
-
getGlossForWikisaurus
-
getGlossURI
-
registerWikisaurusNymFromTo
-
registerWikisaurusNym
-
registerNymRelationToEntity
public void registerNymRelationToEntity(String target, String nymRelation, org.apache.jena.rdf.model.Resource entity, org.apache.jena.rdf.model.Resource gloss, String usage) - Overrides:
registerNymRelationToEntityin classOntolexBasedRDFDataHandler
-
initializeNewEtymology
public void initializeNewEtymology()
-