gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 17:56:40 24 4
gpt4 key购买 nike

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

YRelation.getOneAttributeSimpleValue介绍

暂无

代码示例

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

private String getConfName(YRelation yRelation) {
  if (yRelation.getOneAttributeSimpleValue(AT_REFERENCE_PARSED_TITLE) != null) {
    return yRelation.getOneAttributeSimpleValue(AT_REFERENCE_PARSED_TITLE);
  } else if (yRelation.getOneAttributeSimpleValue(AT_REFERENCE_TEXT) != null) {
    return yRelation.getOneAttributeSimpleValue(AT_REFERENCE_TEXT);
  }
  return null;
}

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

public static String referenceText(final YRelation reference) {
  return reference.getOneAttributeSimpleValue(ReferenceAttributeTypes.AT_REFERENCE_TEXT);
}

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

protected static String resolveRelationName(YRelation yRelation) {
  String referenceText = yRelation.getOneAttributeSimpleValue(AT_REFERENCE_TEXT);
  String referenceTitle = yRelation.getOneAttributeSimpleValue(AT_REFERENCE_PARSED_TITLE);
  if (StringUtils.isNoneBlank(referenceText, referenceTitle)) {
    return referenceText.length() >= referenceTitle.length() ? referenceText : referenceTitle;
  }
  if (StringUtils.isNotBlank(referenceText)) {
    return referenceText;
  }
  if (StringUtils.isNotBlank(referenceTitle)) {
    return referenceTitle;
  }
  return "RELATION NAME";
}

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

private String formatBibliographyText(YRelation relation) {
  String textAttr = relation.getOneAttributeSimpleValue(ReferenceAttributeTypes.AT_REFERENCE_TEXT);
  String title = relation.getOneAttributeSimpleValue(ReferenceAttributeTypes.AT_REFERENCE_PARSED_TITLE);

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

YRelation parsed = parser.parse(value);
if(parsed!=null){
  String title = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_TITLE);
  String journal = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_JOURNAL);
  String volume = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_VOLUME);
  String year = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_YEAR);
  String pages = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_PAGES);

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

protected void enhanceRelationsInYElement(YElement ye, ZblBwMetaPathsGenerator zblPathGenerator) throws Exception {
  // sprawdź czy referencje głównego dokumentu mają id Zblattowe
  for (YRelation yr : ye.getRelations()) {
    if ("reference-to".equals(yr.getType()) || "related-to".equals(yr.getType())) {
      String extZblId = yr.getOneAttributeSimpleValue("reference-parsed-id-zbl");
      if (extZblId != null) {
        String zblId = mapExtZblToZbl(extZblId, zblPathGenerator.getExtZblToZblMappingFilePath());
        if (zblId != null) {
          List<YElement> zblyel = loadZblYElements(zblId, zblPathGenerator);
          if (zblyel.size() != 0)
            enhanceRelationElement(yr, zblyel);
        }
      }
    }
  }
}

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

YRelation parsed = PubParser.getCitationParser().parse(value);
if(parsed!=null){
  String title = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_TITLE);
  String journal = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_JOURNAL);
  String volume = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_VOLUME);
  String year = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_YEAR);
  String pages = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_PAGES);

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

String extZblId = yr.getOneAttributeSimpleValue("reference-parsed-id-zbl");
if(extZblId!=null){
  String zblId = mapExtZblToZbl(extZblId);

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

String extZblId = yr.getOneAttributeSimpleValue("reference-parsed-id-zbl");
if(extZblId!=null){
  String zblId = mapExtZblToZbl(extZblId);

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

public List<ElementWithThumbnail<BriefElementData>> prepareReferences(List<YRelation> yRelationList, ElementType elementType) {
  BriefDataFactory bdf = new BriefDataFactory();
  List<BriefElementData> referencesList = new ArrayList<BriefElementData>();
  for (YRelation reference : yRelationList) {
    BriefElementData referenceMetadata = null;
    if (reference.getTarget() != null) {
      try {
        final String id = resolveId(reference.getTarget());
        referenceMetadata = repositoryFacade.fetchBriefElementData(id);
      } catch (NotFoundException e) {
        referenceMetadata = bdf.createPublicationData(reference, elementType);
      }
    }
    if (referenceMetadata == null) {
      referenceMetadata = bdf.createPublicationData(reference, elementType);
    }
    if (referenceMetadata instanceof ObjectDetails && ((ObjectDetails) referenceMetadata).getObjectType().equals(ElementType.JOURNAL)) {
      if (referenceMetadata instanceof PublicationData) {
        final String date = reference.getOneAttributeSimpleValue(ReferenceAttributeTypes.AT_REFERENCE_PARSED_DATE);
        if (StringUtils.isNotBlank(date)) {
          ((PublicationData) referenceMetadata).setDescription(date);
        } else {
          ((PublicationData) referenceMetadata).setDescription(StringUtils.EMPTY);
        }
      }
    }
    referencesList.add(referenceMetadata);
  }
  return thumbnailService.enrichWithThumbnailUrl(referencesList);
}

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

YRelation parsed = parser.parse(ya.getValue());
if(parsed!=null){
  String title = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_TITLE);
  String journal = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_JOURNAL);
  String volume = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_VOLUME);
  String year = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_YEAR);
  String pages = parsed.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_PAGES);

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

processElementCitation(relation, ref.getChild("element-citation"));
String eudmlId = relation.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_PARSED_ID_EUDML);
if (eudmlId != null) {
  relation.setTarget(new YId(YConstants.EXT_SCHEMA_EUDML, eudmlId));

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

for (YRelation relation : yElement.getRelations(StorePublishingService.RL_REFERENCE_FROM)) {
  if (relation != null) {
    citations.append(relation.getOneAttributeSimpleValue(ReferenceAttributeTypes.AT_REFERENCE_TEXT));
    citations.append("\n");

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

String eudmlId = relation.getOneAttributeSimpleValue(ReferenceAttributeTypes.AT_REFERENCE_PARSED_ID_EUDML);
if (eudmlId != null) {
  relation.setTarget(new YId(IdSchemaIds.EXT_SCHEMA_EUDML, eudmlId));

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

@Override
public EnrichedPayload<YElement> process(EnrichedPayload<YElement> input, ProcessContext ctx) throws Exception {
  for (YRelation relation : input.getObject().getRelations()) {
    String text = relation.getOneAttributeSimpleValue(YConstants.AT_REFERENCE_TEXT);
    BibEntry parsed = bibReferenceParser.parseBibReference(text);

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