- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了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
暂无
代码示例来源: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() );
本文整理了Java中pl.edu.icm.model.bwmeta.YContributor.getRole()方法的一些代码示例,展示了YContributor.getRole()的具体用法。这些代
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.setIdentity()方法的一些代码示例,展示了YContributor.setIdentity(
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.addAffiliationRef()方法的一些代码示例,展示了YContributor.addAff
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.addName()方法的一些代码示例,展示了YContributor.addName()的具体用法。这
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getIdentity()方法的一些代码示例,展示了YContributor.getIdentity(
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getNames()方法的一些代码示例,展示了YContributor.getNames()的具体用法
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getAttributes()方法的一些代码示例,展示了YContributor.getAttribu
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.setNames()方法的一些代码示例,展示了YContributor.setNames()的具体用法
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getOneAttributeSimpleValue()方法的一些代码示例,展示了YContribut
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getOneName()方法的一些代码示例,展示了YContributor.getOneName()的
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.()方法的一些代码示例,展示了YContributor.()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.isInstitution()方法的一些代码示例,展示了YContributor.isInstitut
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getRole()方法的一些代码示例,展示了YContributor.getRole()的具体用法。这
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getDefaultName()方法的一些代码示例,展示了YContributor.getDefaul
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.isPerson()方法的一些代码示例,展示了YContributor.isPerson()的具体用法
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getAffiliationRefs()方法的一些代码示例,展示了YContributor.getAf
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.setRole()方法的一些代码示例,展示了YContributor.setRole()的具体用法。这
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.addAttribute()方法的一些代码示例,展示了YContributor.addAttribut
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getOneAttribute()方法的一些代码示例,展示了YContributor.getOneAt
我是一名优秀的程序员,十分优秀!