public override bool acceptProp(ParsedTriple t, WiktCtx ctx) { int?trId = null; if (t.setRefValue <Helper>(ctx, this, predicates.dbnary_isTranslationOf, ref trId)) { WiktIdManager.decodeLowByte((int)trId, out string langId, out string classUri); switch (classUri) { case WiktConsts.NodeTypeNames.Page: pageTransId = trId; break; case WiktConsts.NodeTypeNames.LexicalÈntry: entryTransId = trId; break; case WiktConsts.NodeTypeNames.LexicalSense: senseTransId = trId; break; } return(true); } else { return(t.setRefValue <Gloss>(ctx, this, predicates.dbnary_gloss, ref glossId) || t.setValue(ctx, this, predicates.dbnary_targetLanguage, ref trans1.targetLanguage1) || t.setValue(ctx, this, predicates.dbnary_targetLanguageCode, ref trans1.targetLanguage1) || t.setValue(ctx, this, predicates.dbnary_usage, ref trans1.usage1) || t.setValueWithLang(ctx, this, predicates.dbnary_writtenForm, ref trans1.writtenForm1, ref trans1.targetLanguage1) || base.acceptProp(t, ctx)); } }
public override bool acceptProp(ParsedTriple t, WiktCtx ctx) => t.setValue(ctx, this, predicates.ontolex_writtenRep, ref writtenRep1) || t.setNymsValue(ctx, this, ref nyms1) || t.setFormInfosValue(ctx, this, ref infos1) || t.setRefValue <Form>(ctx, this, predicates.ontolex_canonicalForm, ref canonicalFormId) || t.setRefValues <Form>(ctx, this, predicates.ontolex_otherForm, ref otherFormIdx) || t.setRefValues <Sense>(ctx, this, predicates.ontolex_sense, ref senseIds) || t.setUriValue(ctx, this, predicates.lexinfo_partOfSpeech, ref partOfSpeech1) || t.setUriValues(ctx, this, predicates.lexinfo_partOfSpeechEx, ref partOfSpeechEx1) || base.acceptProp(t, ctx);
public override bool acceptProp(ParsedTriple t, WiktCtx ctx) => t.setRefValue <Helper>(ctx, this, predicates.dbnary_gloss, ref glossId) || t.setRefValue <Entry>(ctx, this, predicates.rdf_subject, ref subjectId1) || t.setRefValue <Page>(ctx, this, predicates.rdf_object, ref objectId1) || t.setUriValue(ctx, this, predicates.rdf_predicate, ref predicate1) || base.acceptProp(t, ctx);