gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 13:51:31 26 4
gpt4 key购买 nike

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

YInstitution.getNames介绍

暂无

代码示例

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

protected List<Statements> processInstitution(YInstitution item) {
  List<Statements> retL = new LinkedList<Statements>(); 
  
  if(!item.getNames().isEmpty()){
    Statements s = new Statements();
    s.setSubject(RelConstants.NS_INSTITUTION+item.getId());
    LinkedList<PredicateAndObject> pao = new LinkedList<PredicateAndObject>();
    for(YName name : item.getNames()){
      pao.add(new PredicateAndObject(RelConstants.RL_NAME,name.getText()));				
    }
    s.setContinuations(pao);
    retL.add(s);
  }else;
  
  return retL;
}

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

protected List<Statements> processInstitution(YInstitution item) {
  List<Statements> retL = new LinkedList<Statements>(); 
  
  if(!item.getNames().isEmpty()){
    Statements s = new Statements();
    s.setSubject(RelConstants.NS_INSTITUTION+item.getId());
    LinkedList<PredicateAndObject> pao = new LinkedList<PredicateAndObject>();
    for(YName name : item.getNames()){
      pao.add(new PredicateAndObject(RelConstants.RL_NAME,name.getText()));				
    }
    s.setContinuations(pao);
    retL.add(s);
  }else;
  
  return retL;
}

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

protected List<Statements> processInstitution(YInstitution item) {
  List<Statements> retL = new LinkedList<Statements>(); 
  
  if(!item.getNames().isEmpty()){
    Statements s = new Statements();
    s.setSubject(RelConstants.NS_INSTITUTION+item.getId());
    LinkedList<PredicateAndObject> pao = new LinkedList<PredicateAndObject>();
    for(YName name : item.getNames()){
      pao.add(new PredicateAndObject(RelConstants.RL_NAME,name.getText()));				
    }
    s.setContinuations(pao);
    retL.add(s);
  }else;
  
  return retL;
}

代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core

@Override
protected Object buildElementViewPart(YExportable exp,
    String[] elementTags, Map<String, Object> additionalParameters,
    IFilteringContext filteringContext) {
  YInstitution inst = (YInstitution) exp;
  Map<String, Object> partModel = new HashMap<String, Object>();
  partModel.put("extId", detailsFilter.filter(inst.getId(),
      InputType.PLAIN_TEXT, filteringContext));
  partModel.put("title", detailsFilter.filter(
      YRTHelper.toXmlFragment(inst.getDefaultName().getRichText()),
      InputType.RICH_TEXT, filteringContext));
  partModel.put("titles", prepareTitles(inst.getNames(), inst.getDefaultName(), filteringContext));
  partModel.put("addresses", getAddresses(inst, filteringContext));
  partModel.put("contacts", CommonBuilderUtils.resolveContacts(inst, filteringContext, detailsFilter));
  partModel.put("description", getDescription(inst, filteringContext, YConstants.DS_ABSTRACT));
  partModel.put("fullAddress", getFullAddress(inst, filteringContext));
  partModel.put("notes", getDescription(inst, filteringContext, YConstants.DS_NOTE));
  
  if (pageTitleFactory!=null) {
    String role = (String) additionalParameters.get(DetailsConstants.PARAM_ROLE);
    String title = pageTitleFactory.getTitleForContributor(role, inst.getDefaultName().getText());
    additionalParameters.put(DetailsConstants.VIEW_PARAM_PAGE_TITLE, title);
  }
  
  return partModel;
}

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