- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.utils.YModelToolbox
类的一些代码示例,展示了YModelToolbox
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YModelToolbox
类的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.utils.YModelToolbox
类名称:YModelToolbox
暂无
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract year info from
* @param parent parent element for the created element
* @return the created year element
*/
private YElement processYear(org.jdom.Element ameta, YElement parent) {
return y.element(EXT_LEVEL_JOURNAL_YEAR,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "pub-date", "year"))),
parent);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* @param hierarchy the hierarchy identifier for the created elements
*/
public void setHierarchy(String hierarchy) {
super.setHierarchy(hierarchy);
this.eudmlFactory = new EudmlYElementFactory(hierarchy);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
Element aabstract = ameta.getChild("abstract");
YElement article = y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ARTICLE,
y.canonicalName(getYLang(atitle), textOfElement(atitle)),
parent).addDescription(y.description(getYLang(aabstract), textOfElement(aabstract), DescriptionTypes.DS_ABSTRACT)).addLanguage(getYLang(ameta));
article.addName(y.name(getYLang(tr), textOfElement(tr.getChild("trans-title")), NameTypes.NM_ALTERNATIVE));
YContributor cont= new YContributor(ctValue, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, (defName).trim()));
if (StringUtils.isNotBlank(surname)) {
cont.addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME));
cont.addName(y.name(YLanguage.NoLinguisticContent, forenames, NM_FORENAMES));
cont.addAttribute(CommonAttributeTypes.AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
} else {
YContributor cont= new YContributor(ContributorRoles.CR_OTHER, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, (defName).trim()));
if (StringUtils.isNotBlank(surname)) {
cont.addName(y.name(YLanguage.NoLinguisticContent, surname, NameTypes.NM_SURNAME));
cont.addName(y.name(YLanguage.NoLinguisticContent, forenames, NameTypes.NM_FORENAMES));
cont.addAttribute(CommonAttributeTypes.AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>journal-meta</code> metadata creating a journal element.
*
* @param jmeta the metadata element to extract journal info from
* @param parent parent element for the created element
* @return the created journal element
*/
private YElement processJournal(org.jdom.Element jmeta, YElement parent) {
org.jdom.Element jtitles = jmeta.getChild("journal-title-group");
List<org.jdom.Element> aids = jmeta.getChildren("journal-id");
YElement journal = y.element(EXT_LEVEL_JOURNAL_JOURNAL,
y.canonicalName(YLanguage.Undetermined, jtitles.getChildTextTrim("journal-title")),
parent).addName(y.name(YLanguage.Undetermined, jtitles.getChildTextTrim("abbrev-journal-title"), NM_ABBREVIATION)).addId(y.id(EXT_SCHEME_ISSN, jmeta.getChildTextTrim("issn")));
for (org.jdom.Element aid : aids) {
if ("eudml-id".equalsIgnoreCase(aid.getAttributeValue("journal-id-type"))) {
journal.addId(new YId(YConstants.EXT_SCHEMA_EUDML, aid.getText()));
} else {
journal.addId(new YId("bwmeta1.id-class." + aid.getAttributeValue("journal-id-type"), aid.getText()));
}
}
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
journal.addContributor(new YContributor(CR_PUBLISHER, true).addName(pname));
return journal;
}
代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api
protected YElement initializeYElement(final DataSet dataSet) {
YElement yElement = null;
String bwmetaXml = dataSet.getBwmetaXml();
if (StringUtils.isNotBlank(bwmetaXml)) {
List<YExportable> metadata = bwmetaDeserializer.parse(bwmetaXml, null);
yElement = YModelToolbox.retrieveFirstYElement(metadata);
} else {
yElement = new YElement();
}
return yElement;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
org.jdom.Element aabstract = ameta.getChild("abstract");
YElement article = y.element(EXT_LEVEL_JOURNAL_ARTICLE,
y.canonicalName(getYLang(atitle), textOfElement(atitle)),
parent).addDescription(y.description(getYLang(aabstract), textOfElement(aabstract), DS_ABSTRACT)).addLanguage(getYLang(ameta));
article.addName(y.name(getYLang(tr), textOfElement(tr.getChild("trans-title")), NM_ALTERNATIVE));
article.addContent(y.contentFile(href, type, mime, href));
if (contributorRoles.contains(ctValue)) {
article.addContributor(
new YContributor(ctValue, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, canonicalName)).addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME)).addName(y.name(YLanguage.NoLinguisticContent, forenames, NM_FORENAMES)).addAttribute(AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
} else {
article.addContributor(
new YContributor(YConstants.CR_OTHER, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, canonicalName)).addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME)).addName(y.name(YLanguage.NoLinguisticContent, forenames, NM_FORENAMES)).addAttribute(AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YElement journal = y.element(EXT_LEVEL_JOURNAL_JOURNAL,
y.canonicalName(YLanguage.Undetermined, defaultTitle),parent);
journal.addName(y.name(YLanguage.Undetermined, jtitles.getChildTextTrim("abbrev-journal-title"), NM_ABBREVIATION));
journal.addId(y.id(IdSchemaIds.EXT_SCHEME_ISSN, jmeta.getChildTextTrim("issn")));
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
代码示例来源:origin: pl.edu.icm.synat/synat-console-core
@Override
public void replaceMetadata(String id, String xml) {
Document document = (Document) documentRepository.fetchDocument(id);
YExportable element;
element = YModelToolbox.retrieveFirstYElement(bwmetaDeserializer.parse(xml, null));
document.setMetadata(element);
documentRepository.storeDocument(document, null);
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract volume info from
* @param parent parent element for the created element
* @return the created volume element
*/
private YElement processVolume(org.jdom.Element ameta, YElement parent) {
return y.element(EXT_LEVEL_JOURNAL_VOLUME,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "volume"))),
parent);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract volume info from
* @param parent parent element for the created element
* @return the created volume element
*/
private YElement processVolume(Element ameta, YElement parent) {
return y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "volume"))),
parent);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* Processes <code>article-meta</code> metadata creating a year element.
*
* @param ameta the metadata element to extract year info from
* @param parent parent element for the created element
* @return the created year element
*/
private YElement processYear(Element ameta, YElement parent) {
return y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR,
y.canonicalName(YLanguage.NoLinguisticContent, getTextTrim(optDescendant(ameta, "pub-date", "year"))),
parent);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* Processes <code>journal-meta</code> metadata creating a publisher element.
*
* @param jmeta the metadata element to extract publisher info from
* @return the created publisher element
*/
private YElement processPublisher(Element jmeta) {
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
// TODO: add publisher-loc
return y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_PUBLISHER, pname, ROOT).addContributor(new YContributor(ContributorRoles.CR_PUBLISHER, true).addName(pname));
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>journal-meta</code> metadata creating a publisher element.
*
* @param jmeta the metadata element to extract publisher info from
* @return the created publisher element
*/
private YElement processPublisher(org.jdom.Element jmeta) {
YName pname = y.canonicalName(YLanguage.Undetermined, getTextTrim(optDescendant(jmeta, "publisher", "publisher-name")));
// TODO: add publisher-loc
return y.element(EXT_LEVEL_JOURNAL_PUBLISHER, pname, ROOT).addContributor(new YContributor(CR_PUBLISHER, true).addName(pname));
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
/**
* Processes <code>article-meta</code> metadata creating an issue element.
*
* @param ameta the metadata element to extract issue info from
* @param parent parent element for the created element
* @return the created issue element
*/
private YElement processIssue(Element ameta, YElement parent) {
String name = getTextTrim(optDescendant(ameta,"issue"));
YElement issue = y.element(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ISSUE,
y.canonicalName(YLanguage.NoLinguisticContent, name),
parent);
List<Element> aids = ameta.getChildren("issue-id");
for (Element aid : aids) {
if ("eudml-id".equalsIgnoreCase(aid.getAttributeValue("pub-id-type"))) {
issue.addId(new YId(IdSchemaIds.EXT_SCHEMA_EUDML, aid.getText()));
}
}
return issue;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Processes <code>article-meta</code> metadata creating an issue element.
*
* @param ameta the metadata element to extract issue info from
* @param parent parent element for the created element
* @return the created issue element
*/
private YElement processIssue(org.jdom.Element ameta, YElement parent) {
String name = getTextTrim(optDescendant(ameta, "issue"));
YElement issue = y.element(EXT_LEVEL_JOURNAL_ISSUE,
y.canonicalName(YLanguage.NoLinguisticContent, name),
parent);
List<org.jdom.Element> aids = ameta.getChildren("issue-id");
for (org.jdom.Element aid : aids) {
if ("eudml-id".equalsIgnoreCase(aid.getAttributeValue("pub-id-type"))) {
issue.addId(new YId(YConstants.EXT_SCHEMA_EUDML, aid.getText()));
} else {
issue.addId(new YId("bwmeta1.id-class." + aid.getAttributeValue("pub-id-type"), aid.getText()));
}
}
return issue;
}
我对 mongoosejs 中模型的使用感到有些困惑。 可以通过这些方式使用 mongoose 创建模型 使用 Mongoose var mongoose = require('mongoose');
我正在看 from django.db import models class Publisher(models.Model): name = models.CharField(max_len
我有自己的 html 帮助器扩展,我用这种方式 model.Reason_ID, Register.PurchaseReason) %> 这样声明的。 public static MvcHtmlS
假设模型原本是存储在CPU上的,然后我想把它移到GPU0上,那么我可以这样做: device = torch.device('cuda:0') model = model.to(device) # o
我过去读过一些关于模型的 MVC 建议,指出不应为域和 View 重用相同的模型对象;但我找不到任何人愿意讨论为什么这很糟糕。 我认为创建两个单独的模型 - 一个用于域,一个用于 View - 然后在
我正在使用pytorch构建一个像VGG16这样的简单模型,并且我已经重载了函数forward在我的模型中。 我发现每个人都倾向于使用 model(input)得到输出而不是 model.forwar
tf.keras API 中的 models 是否多余?对于某些情况,即使不使用 models,代码也能正常运行。 keras.models.sequential 和 keras.sequential
当我尝试使用 docker 镜像运行 docker 容器时遇到问题:tensorflow/serving。 我运行命令: docker run --name=tf_serving -it tensor
我有一个模型,我用管道注册了它: register_step = PythonScriptStep(name = "Register Model",
如果 View 需要访问模型中的数据,您是否认为 Controller 应: a)将模型传递给 View b)将模型的数据传递给 View c)都不;这不应该是 Controller 所关心的。让 V
我正在寻找一个可以在模型中定义的字段,该字段本质上是一个列表,因为它将用于存储多个字符串值。显然CharField不能使用。 最佳答案 您正在描述一种多对一的关系。这应该通过一个额外的 Model 进
我最近了解了 Django 中的模型继承。我使用很棒的包 django-model-utils 取得了巨大的成功。我继承自 TimeStampedModel 和 SoftDeletableModel。
我正在使用基于 resnet50 的双输出模型进行项目。一个输出用于回归任务,第二个输出用于分类任务。 我的主要问题是关于模型评估。在训练期间,我在验证集的两个输出上都取得了不错的结果: - 综合损失
我是keras的新手。现在,我将使用我使用 model.fit_generator 训练的模型来预测测试图像组。我可以使用 model.predict 吗?不确定如何使用model.predict_g
在 MVC 应用程序中,我加入了多个表并将其从 Controller 返回到 View,如下所示: | EmployeeID | ControlID | DoorAddress | DoorID |
我在使用 sails-cassandra 连接系统的 Sails 中有一个 Data 模型。数据。 Data.count({...}).exec() 返回 1,但 Data.find({...}).e
我正在使用 PrimeFaces dataTable 开发一个 jsf 页面来显示用户列表。用户存储在 Model.User 类的对象中。
我正在关注https://www.tensorflow.org/tutorials/keras/basic_classification解决 Kaggle 挑战。 但是,我不明白应该将什么样的数据输入
我是这个领域的新手。那么,你们能帮忙如何为 CNN 创建 .config 文件吗? 传递有关如何执行此操作的文档或教程将对我有很大帮助。谢谢大家。 最佳答案 这个问题对我来说没有多大意义,因为 .co
我是“物理系统建模”主题的新手。我阅读了一些基础文献,并在 Modelica 和 Simulink/Simscape 中做了一些教程。我想问你,如果我对以下内容理解正确: 符号操作是将微分代数方程组(
我是一名优秀的程序员,十分优秀!