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

x33g5p2x  于2022-02-05 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(103)

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

YAttribute.getAttributes介绍

暂无

代码示例

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

public void updateWithAttribute(YAttribute src, Map<String, String> relfields, String attrName, String fieldName) {
  List<YAttribute> attrs = src.getAttributes(attrName);
  if (attrs != null && attrs.size() > 0) {
    relfields.put(fieldName, attrs.get(0).getValue().trim());
  }
}

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

public void updateWithAttribute(YAttribute src, Map<String, String> relfields, String attrName, String fieldName) {
  List<YAttribute> attrs = src.getAttributes(attrName);
  if (attrs != null && attrs.size() > 0) {
    relfields.put(fieldName, attrs.get(0).getValue().trim());
  }
}

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

private Object getAttributeValue(YAttribute attribute){
  if(attribute.getAttributes() == null || attribute.getAttributes().isEmpty()){
    YRichText richText = attribute.getRichValue();
    Object richTextObject = converter.convertToMongoType(richText);
    return richTextObject;
  } else {
    DBObject attributeValue = (DBObject) converter.convertToMongoType(attribute, ClassTypeInformation.from(attribute.getClass()));
    attributeValue.removeField("key");
    return attributeValue;
  }
}

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

private void proceedReferenceAuthorZblFingerPrint(YAttribute ya,
    LinkedList<PredicateAndObject> pao) {
  for(YAttribute inner : ya.getAttributes()){
    if(YConstants.AT_ZBL_AUTHOR_FINGERPRINT.equals(inner.getKey()) && !"-".equals(inner.getValue())){/*5.1*/
      String zblfingerprint=inner.getValue();
      pao.add(new PredicateAndObject(RelConstants.RL_IS_PERSON, RelConstants.NS_ZBL_PERSON + zblfingerprint)); 
    }
  }
}

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

protected List<String> resolveAddresses(final YContributor contributor, final IFilteringContext filteringContext) {
  final List<String> addresses = new LinkedList<String>();
  if (contributor.isInstitution()) {
    final YAttribute institution = contributor.getOneAttribute(YConstants.AT_INSTITUTION);
    if (institution != null) {
      for (final YAttribute address : institution.getAttributes(YConstants.AT_INSTITUTION_ADDRESS)) {
        addresses.add(detailsFilter.filter(address.getValue(), InputType.RICH_TEXT, filteringContext));
      }
    }
  }
  return addresses;
}

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

/**
 * accomplished
 * @param ya
 * @param paos_ref
 * @param refno
 * @return
 */
private boolean parseReferenceName(YAttribute ya, LinkedList<PredicateAndObject> paos_ref, int refno) {
  if(YConstants.AT_ENHANCED_FROM_ZBL_NAME.equals(ya.getKey())){/*8*/
    for(YAttribute inner : ya.getAttributes()){
      if(YConstants.AT_ENHANCED_FROM_ZBL_TYPE.equals(inner.getKey())){/*8.1*/
        
      }else if(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE.equals(inner.getKey())){/*8.2*/
        
      }else if(YConstants.AT_ENHANCED_FROM_ZBL_VALUE.equals(inner.getKey())){/*8.3*/
        paos_ref.add(new PredicateAndObject(RelConstants.RL_TITLE, inner.getValue()));
      }
    }
    return true;
  }else return false;
}

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

/**
 * accomplished
 * @param ya
 * @param paos_ref
 * @param refno
 * @return
 */
private boolean parseReferenceName(YAttribute ya, LinkedList<PredicateAndObject> paos_ref, int refno) {
  if(YConstants.AT_ENHANCED_FROM_ZBL_NAME.equals(ya.getKey())){/*8*/
    for(YAttribute inner : ya.getAttributes()){
      if(YConstants.AT_ENHANCED_FROM_ZBL_TYPE.equals(inner.getKey())){/*8.1*/
        
      }else if(YConstants.AT_ENHANCED_FROM_ZBL_LANGUAGE.equals(inner.getKey())){/*8.2*/
        
      }else if(YConstants.AT_ENHANCED_FROM_ZBL_VALUE.equals(inner.getKey())){/*8.3*/
        paos_ref.add(new PredicateAndObject(RelConstants.RL_TITLE, inner.getValue()));
      }
    }
    return true;
  }else return false;
}

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

for(YAttribute inner : ya.getAttributes()){
  if(YConstants.AT_ENHANCED_FROM_ZBL_TYPE.equals(inner.getKey())){/*9.1*/
    type = inner.getValue().toString();
for(YAttribute inner : ya.getAttributes()){
  if(YConstants.AT_ENHANCED_FROM_ZBL_TYPE.equals(inner.getKey())){
    continue;

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

for(YAttribute inner : ya.getAttributes()){
  if(YConstants.AT_ENHANCED_FROM_ZBL_TYPE.equals(inner.getKey())){/*9.1*/
    type = inner.getValue().toString();
for(YAttribute inner : ya.getAttributes()){
  if(YConstants.AT_ENHANCED_FROM_ZBL_TYPE.equals(inner.getKey())){
    continue;

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

for(YAttribute inner : ya.getAttributes()){
  if(YConstants.AT_ZBL_AUTHOR_FINGERPRINT.equals(inner.getKey()) && !"-".equals(inner.getValue())){/*5.1*/
    String zblfingerprint=inner.getValue();

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

String iname = "";
for(YAttribute inner : ya.getAttributes()){
  if(YConstants.AT_REFERENCE_PARSED_AUTHOR_FORENAMES.equals(inner.getKey())){/*5.2*/
    String tmp = inner.getValue();

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

for(YAttribute inner : ya.getAttributes()){
  if(YConstants.EXT_SCHEME_ZBL.equals(inner.getKey())){/*6.1*/
    paos_ref.add(new PredicateAndObject(RelConstants.RL_IS_DOCUMENT, RelConstants.NS_ZBL_DOCUMENT+ inner.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

for(YAttribute inner : ya.getAttributes()){
  if(YConstants.EXT_SCHEME_ZBL.equals(inner.getKey())){/*6.1*/
    paos_ref.add(new PredicateAndObject(RelConstants.RL_IS_DOCUMENT, RelConstants.NS_ZBL_DOCUMENT+ inner.getValue()));

相关文章