gpt4 book ai didi

pl.edu.icm.model.bwmeta.y.YLanguage.getName()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 06:20:40 26 4
gpt4 key购买 nike

本文整理了Java中pl.edu.icm.model.bwmeta.y.YLanguage.getName()方法的一些代码示例,展示了YLanguage.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YLanguage.getName()方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YLanguage
类名称:YLanguage
方法名:getName

YLanguage.getName介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api

/**
 * Creates Language with specified single parameters
 *
 * @param id
 *            identification
 * @param name
 *            Displayed name
 */
public LanguageData(YLanguage yLanguage) {
  super(yLanguage.getBibliographicCode(), yLanguage.getName());
  this.yLanguage = yLanguage;
}

代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  LanguageData other = (LanguageData) obj;
  if (!yLanguage.getBibliographicCode().equals(other.yLanguage.getBibliographicCode()) ||
     !yLanguage.getName().equals(other.yLanguage.getName()))
    return false;
  return true;
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

/**
 * accomplished
 */
private void proceedLanguage() {
  for(YLanguage yl : in_item.getLanguages()){
    paos_doc.add(new PredicateAndObject(RelConstants.RL_LANGUAGE, yl.getName().toLowerCase()));
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

/**
 * accomplished
 */
private void proceedLanguage() {
  for(YLanguage yl : in_item.getLanguages()){
    paos_doc.add(new PredicateAndObject(RelConstants.RL_LANGUAGE, yl.getName().toLowerCase()));
  }
}

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

protected void fillLanguages(YElement yElement, List<YExportable> referedElements, Map<String, List<StringWithAttributes>> ret) {
  //        language element
  if (!yElement.getLanguages().isEmpty()) {
    ret.put(E_LANGUAGE, new ArrayList<StringWithAttributes>());
  }
  for (YLanguage yLanguage : yElement.getLanguages()) {
    ret.get(E_LANGUAGE).add(new StringWithAttributes(yLanguage.getName()));
  }
}

代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core

public String extractLanguageCode(YLanguage yLanguage){
  
  String code = yLanguage.getShortCode();
  if(code.isEmpty())
    code = yLanguage.getTerminologyCode();
  if(code.isEmpty())
    code = yLanguage.getBibliographicCode();
  if(code.isEmpty())
    code = yLanguage.getName();
  
  return code;
}

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

protected void fillTitle(HtmlMetaHeaders metadata, YElement yElement) {
  String title = YModelUtils.getDefaultName(yElement);
  if (StringUtils.isNotEmpty(title)) {
    metadata.addMetadataName(WP_TITLE, title);
  }
  YLanguage language = YModelUtils.getDefaultLanguage(yElement);
  if (language != null && language.getName() != null) {
    metadata.addMetadataName(WP_LANGUAGE, language.getName());
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

/**
 * accomplished
 */
private void parseDescriptions() {
  if(!in_item.getDescriptions().isEmpty()){
    int descriptionid = 0;
    for(YDescription yd : in_item.getDescriptions()){
      descriptionid++;
      Statements s_desc = new Statements();statements.add(s_desc);
      s_desc.setSubject(RelConstants.NS_DESCRIPTION+in_item.getId()+"#"+descriptionid);
      LinkedList<PredicateAndObject> paos_description = new LinkedList<PredicateAndObject>();
      paos_description.add(new PredicateAndObject(RelConstants.RL_LANGUAGE, yd.getLanguage().getName()));
      paos_description.add(new PredicateAndObject(RelConstants.RL_TYPE, yd.getType()));
      paos_description.add(new PredicateAndObject(RelConstants.RL_TEXT, yd.getText()));				
      paos_doc.add(new PredicateAndObject(RelConstants.RL_HAS_DESCRIPTION , RelConstants.NS_DESCRIPTION+in_item.getId()+"#"+descriptionid));
    }
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

/**
 * accomplished
 */
private void parseDescriptions() {
  if(!in_item.getDescriptions().isEmpty()){
    int descriptionid = 0;
    for(YDescription yd : in_item.getDescriptions()){
      descriptionid++;
      Statements s_desc = new Statements();statements.add(s_desc);
      s_desc.setSubject(RelConstants.NS_DESCRIPTION+in_item.getId()+"/"+descriptionid);
      LinkedList<PredicateAndObject> paos_description = new LinkedList<PredicateAndObject>();
      paos_description.add(new PredicateAndObject(RelConstants.RL_LANGUAGE, yd.getLanguage().getName()));
      paos_description.add(new PredicateAndObject(RelConstants.RL_TYPE, yd.getType()));
      paos_description.add(new PredicateAndObject(RelConstants.RL_TEXT, yd.getText()));				
      paos_doc.add(new PredicateAndObject(RelConstants.RL_HAS_DESCRIPTION , RelConstants.NS_DESCRIPTION+in_item.getId()+"/"+descriptionid));
    }
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-content

paos_doc.add(new PredicateAndObject(RelConstants.RL_LANGUAGE, yl.getName().toLowerCase()));

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

public static void updateYRelationWithZblNames(YRelation relye, YElement zblye) {
  for (YName n : zblye.getNames()) {
    YAttribute ya = new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_NAME, "");
    ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE, n.getLanguage().getName()));
    ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TYPE, n.getType()));
    ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_VALUE, n.getText()));
    relye.addAttribute(ya);
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

public static void updateYRelationWithZblTags(YRelation relye, YElement zblye) {
  for (YTagList tl : zblye.getTagLists()) {
    YAttribute ya = new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TAG, "");
    ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TYPE, tl.getType()));
    ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE, tl.getLanguage().getName()));
    for (String t : tl.getValues()) {
      ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_VALUE, t));
    }
    relye.addAttribute(ya);
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE,n.getLanguage().getName()));
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TYPE,n.getType()));
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_VALUE,n.getText()));
ya = new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TAG, "");
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TYPE, tl.getType()));
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE, tl.getLanguage().getName()));

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE,n.getLanguage().getName()));
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TYPE,n.getType()));
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_VALUE,n.getText()));
ya = new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TAG, "");
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_TYPE, tl.getType()));
ya.addAttribute(new YAttribute(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE, tl.getLanguage().getName()));

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com