gpt4 book ai didi

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

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

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

YContributor.getAttributes介绍

暂无

代码示例

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

static List<YContributor> filterContributorsWithoutZblId(List<YContributor> contribs) {
  List<YContributor> selected = new ArrayList<YContributor>();
  for (YContributor c: contribs) {
    List<YAttribute> fingerprints = c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT);
    if (fingerprints==null || fingerprints.size()==0) {
      selected.add(c);
    }
  }
  
  return selected;
}

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

static List<YContributor> filterContributorsWithZblId(List<YContributor> contribs) {
  List<YContributor> selected = new ArrayList<YContributor>();
  for (YContributor c: contribs) {
    List<YAttribute> fingerprints = c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT);
    if (fingerprints!=null && fingerprints.size()>0) {
      selected.add(c);
    }
  }
  
  return selected;
}

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

private Set<String> getAffiliationNamesFromContactLocation(YContributor contributor) {
  List<YAttribute> attributes = contributor.getAttributes(YConstants.AT_CONTACT_LOCATION);
  return getAffiliationsNamesFromAttributes(attributes);
}

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

/**
 * 
 * @param contributors all contributors
 * @return contributors' zbl fingerprints
 */
private List<String> extractAuthorsFingerprints(List<YContributor> contributors) {
  List<String> fingerprints = new ArrayList<String>();
  for (YContributor contributor: contributors) {
    List<YAttribute> attrs = contributor.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT);
    if (attrs.size() == 0) {
      continue;
    }
    if (attrs.size() > 1) {
      log.warn("More than one author-identifier(fingerprint) found for contributor=[{}]",contributor);                
    }
    fingerprints.add(attrs.get(0).getValue());
  }
  return fingerprints;
}

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

private static void proceedEmail(YContributor yc,
    LinkedList<PredicateAndObject> pao) {
  for(YAttribute ya : yc.getAttributes(YConstants.AT_CONTACT_EMAIL))
    pao.add(new PredicateAndObject(RelConstants.RL_CONTACT_EMAIL,ya.getValue()));
}

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

List<YAttribute> fingerprints = c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT);
if (fingerprints == null || fingerprints.size() == 0) {
  ai.append("-");

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

@SuppressWarnings("deprecation")
public static void updateYRelationWithZblContributor(YRelation relye, YContributor c) {
  YAttribute ya = null;
  if (c.getOneName("canonical") != null)
    ya = new YAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR, c.getOneName("canonical").getText().toString());
  if (c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT).size() > 0)
    ya.addAttribute(YConstants.AT_ZBL_AUTHOR_FINGERPRINT, c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT)
        .get(0).getValue());
  if (c.getOneName("forenames") != null)
    ya.addAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR_FORENAMES, c.getOneName("forenames").getText()
        .toString());
  ya.addAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR_SURNAME, c.getOneName("surname").getText().toString());
  relye.addAttribute(ya);
}

代码示例来源:origin: pl.edu.icm.synat/synat-process-common

final String newEmail = StringUtils.removePattern(email, "E[-]?mail:");
if (!StringUtils.equals(email, newEmail)) {
  Iterator<YAttribute> itr = contributor.getAttributes().iterator();
  while (itr.hasNext()) {
    if (CommonAttributeTypes.AT_CONTACT_EMAIL.equals(itr.next().getKey())) {

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

for(YAttribute ya : yc.getAttributes(YConstants.AT_CONTACT_EMAIL))
  pao.add(new PredicateAndObject(RelConstants.RL_CONTACT_EMAIL,ya.getValue()));

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

protected List<ViewContact> resolveContributorContacts(final YContributor contributor,
    final IFilteringContext filteringContext) {
  final List<ViewContact> contacts = new LinkedList<ViewContact>();
  for (final YAttribute contact : contributor.getAttributes()) {
    if (contact.getKey().equals(YConstants.AT_AC_CONTACT_EMAIL)) {
      final ViewContact viewContact = new ViewContact(YConstants.AT_CONTACT_EMAIL,
          filterEmail(contact.getValue(), filteringContext));
      contacts.add(viewContact);
    } else if (contact.getKey().equals(YConstants.AT_INSTITUTION)) {
      for (final YAttribute contact2 : contact.getAttributes()) {
        if (contact2.getKey().equals(YConstants.AT_INSTITUTION_MAIL)) {
          final ViewContact viewContact = new ViewContact(YConstants.AT_CONTACT_EMAIL,
              filterEmail(contact2.getValue(), filteringContext));
          contacts.add(viewContact);
        } else if (contact2.getKey().equals(YConstants.AT_INSTITUTION_WWW)) {
          final ViewContact viewContact = new ViewContact(YConstants.AT_CONTACT_URL,
              detailsFilter.filter(contact2.getValue(), InputType.RICH_TEXT, filteringContext));
          contacts.add(viewContact);
        } else if (contact2.getKey().equals(YConstants.AT_INSTITUTION_PHONE)) {
          final ViewContact viewContact = new ViewContact(YConstants.AT_CONTACT_PHONE,
              detailsFilter.filter(contact2.getValue(), InputType.RICH_TEXT, filteringContext));
          contacts.add(viewContact);
        }
      }
    }
  }
  return contacts;
}

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

nc.setNames(ynames);
for(YAttribute a : zblc.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT)){
  nc.addAttribute(a);

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

nc.setNames(ynames);
for(YAttribute a : zblc.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT)){
  nc.addAttribute(a);

代码示例来源:origin: pl.edu.icm.synat/synat-process-common

indexDocument.setUserId(identity);
for (YAttribute attribute : contributor.getAttributes(ApplicationConstants.COANSYS_ID_SCHEMA)) {
  indexDocument.setPersonId(attribute.getValue());

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

for (YAttribute a : zblc.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT)) {
  nc.addAttribute(a);

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

if(c.getOneName("canonical")!=null)
  ya = new YAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR,c.getOneName("canonical").getText().toString());
if(c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT).size()>0)
  ya.addAttribute(YConstants.AT_ZBL_AUTHOR_FINGERPRINT , c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT).get(0).getValue());
if(c.getOneName("forenames")!=null)
  ya.addAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR_FORENAMES , c.getOneName("forenames").getText().toString() );

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

if(c.getOneName("canonical")!=null)
  ya = new YAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR,c.getOneName("canonical").getText().toString());
if(c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT).size()>0)
  ya.addAttribute(YConstants.AT_ZBL_AUTHOR_FINGERPRINT , c.getAttributes(YConstants.AT_ZBL_AUTHOR_FINGERPRINT).get(0).getValue());
if(c.getOneName("forenames")!=null)
  ya.addAttribute(YConstants.AT_REFERENCE_PARSED_AUTHOR_FORENAMES , c.getOneName("forenames").getText().toString() );

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