热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.semanticweb.owlapi.model.UnloadableImportException.()方法的使用及代码示例

本文整理了Java中org.semanticweb.owlapi.model.UnloadableImportException.<init>()方法的一些

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

UnloadableImportException.介绍

暂无

代码示例

代码示例来源:origin: net.sourceforge.owlapi/owlapi

public void makeLoadImportRequest(OWLImportsDeclaration declaration) throws UnloadableImportException {
try {
OWLOntology Ont= loadImports(declaration);
if (ont != null) {
ontologyIDsByImportsDeclaration.put(declaration, ont.getOntologyID());
}
}
catch (OWLOntologyCreationException e) {
// Wrap as UnloadableImportException and throw
throw new UnloadableImportException(e, declaration);
}
}

代码示例来源:origin: owlcs/owlapi

@Override
public void makeLoadImportRequest(OWLImportsDeclaration declaration,
OWLOntologyLoaderConfiguration configuration) {
writeLock.lock();
try {
IRI iri = declaration.getIRI();
if (!configuration.isIgnoredImport(iri) && !importedIRIs.containsKey(iri)) {
// insert temporary value - we do not know the actual ID yet
importedIRIs.put(iri, new Object());
try {
OWLOntology Ont= loadImports(declaration, configuration);
if (ont != null) {
ontologyIDsByImportsDeclaration.put(declaration, ont.getOntologyID());
importedIRIs.put(iri, ont.getOntologyID());
}
} catch (OWLOntologyCreationException e) {
// Wrap as UnloadableImportException and throw
throw new UnloadableImportException(e, declaration);
}
}
} finally {
writeLock.unlock();
}
}

代码示例来源:origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void makeLoadImportRequest(OWLImportsDeclaration declaration,
OWLOntologyLoaderConfiguration configuration) {
writeLock.lock();
try {
IRI iri = declaration.getIRI();
if (!configuration.isIgnoredImport(iri) && !importedIRIs.containsKey(iri)) {
// insert temporary value - we do not know the actual ID yet
importedIRIs.put(iri, new Object());
try {
OWLOntology Ont= loadImports(declaration, configuration);
if (ont != null) {
ontologyIDsByImportsDeclaration.put(declaration, ont.getOntologyID());
importedIRIs.put(iri, ont.getOntologyID());
}
} catch (OWLOntologyCreationException e) {
// Wrap as UnloadableImportException and throw
throw new UnloadableImportException(e, declaration);
}
}
} finally {
writeLock.unlock();
}
}

代码示例来源:origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public void makeLoadImportRequest(OWLImportsDeclaration declaration,
OWLOntologyLoaderConfiguration configuration) {
writeLock.lock();
try {
IRI iri = declaration.getIRI();
if (!configuration.isIgnoredImport(iri) && !importedIRIs.containsKey(iri)) {
// insert temporary value - we do not know the actual ID yet
importedIRIs.put(iri, new Object());
try {
OWLOntology Ont= loadImports(declaration, configuration);
if (ont != null) {
ontologyIDsByImportsDeclaration.put(declaration, ont.getOntologyID());
importedIRIs.put(iri, ont.getOntologyID());
}
} catch (OWLOntologyCreationException e) {
// Wrap as UnloadableImportException and throw
throw new UnloadableImportException(e, declaration);
}
}
} finally {
writeLock.unlock();
}
}

代码示例来源:origin: net.sourceforge.owlapi/owlapi-impl

@Override
public void makeLoadImportRequest(OWLImportsDeclaration declaration,
OWLOntologyLoaderConfiguration configuration) {
writeLock.lock();
try {
IRI iri = declaration.getIRI();
if (!configuration.isIgnoredImport(iri) && !importedIRIs.containsKey(iri)) {
// insert temporary value - we do not know the actual ID yet
importedIRIs.put(iri, new Object());
try {
OWLOntology Ont= loadImports(declaration, configuration);
if (ont != null) {
ontologyIDsByImportsDeclaration.put(declaration, ont.getOntologyID());
importedIRIs.put(iri, ont.getOntologyID());
}
} catch (OWLOntologyCreationException e) {
// Wrap as UnloadableImportException and throw
throw new UnloadableImportException(e, declaration);
}
}
} finally {
writeLock.unlock();
}
}

代码示例来源:origin: net.sourceforge.owlapi/owlapi-osgidistribution

.getCause();
IRI importedOntologyIRI= ex.getOntologyID().getOntologyIRI().get();
throw new UnloadableImportException(ex,
ontology.getOWLOntologyManager().getOWLDataFactory()
.getOWLImportsDeclaration(importedOntologyIRI));

代码示例来源:origin: owlcs/owlapi

.getCause();
IRI importedOntologyIRI= ex.getOntologyID().getOntologyIRI().get();
throw new UnloadableImportException(ex,
ontology.getOWLOntologyManager().getOWLDataFactory()
.getOWLImportsDeclaration(importedOntologyIRI));

代码示例来源:origin: net.sourceforge.owlapi/owlapi-obo

throw new UnloadableImportException(ex, ontology.getOWLOntologyManager().getOWLDataFactory().getOWLImportsDeclaration(ex.getOntologyID().getOntologyIRI()));

代码示例来源:origin: net.sourceforge.owlapi/owlapi-compatibility

.getCause();
IRI importedOntologyIRI= ex.getOntologyID().getOntologyIRI().get();
throw new UnloadableImportException(ex,
ontology.getOWLOntologyManager().getOWLDataFactory()
.getOWLImportsDeclaration(importedOntologyIRI));

代码示例来源:origin: com.github.ansell.owlapi/owlapi-parsers

throw new UnloadableImportException(ex, ontology.getOWLOntologyManager().getOWLDataFactory().getOWLImportsDeclaration(ex.getOntologyID().getOntologyIRI()));

推荐阅读
  • 本文详细介绍了Java中org.neo4j.helpers.collection.Iterators.single()方法的功能、使用场景及代码示例,帮助开发者更好地理解和应用该方法。 ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 本文详细介绍了Java中org.eclipse.ui.forms.widgets.ExpandableComposite类的addExpansionListener()方法,并提供了多个实际代码示例,帮助开发者更好地理解和使用该方法。这些示例来源于多个知名开源项目,具有很高的参考价值。 ... [详细]
  • 本文详细介绍了 Apache Jena 库中的 Txn.executeWrite 方法,通过多个实际代码示例展示了其在不同场景下的应用,帮助开发者更好地理解和使用该方法。 ... [详细]
  • 本文详细介绍了 GWT 中 PopupPanel 类的 onKeyDownPreview 方法,提供了多个代码示例及应用场景,帮助开发者更好地理解和使用该方法。 ... [详细]
  • 技术分享:从动态网站提取站点密钥的解决方案
    本文探讨了如何从动态网站中提取站点密钥,特别是针对验证码(reCAPTCHA)的处理方法。通过结合Selenium和requests库,提供了详细的代码示例和优化建议。 ... [详细]
  • Java 中的 BigDecimal pow()方法,示例 ... [详细]
  • Java 类成员初始化顺序与数组创建
    本文探讨了Java中类成员的初始化顺序、静态引入、可变参数以及finalize方法的应用。通过具体的代码示例,详细解释了这些概念及其在实际编程中的使用。 ... [详细]
  • 本文介绍了Java并发库中的阻塞队列(BlockingQueue)及其典型应用场景。通过具体实例,展示了如何利用LinkedBlockingQueue实现线程间高效、安全的数据传递,并结合线程池和原子类优化性能。 ... [详细]
  • 深入解析Spring Cloud Ribbon负载均衡机制
    本文详细介绍了Spring Cloud中的Ribbon组件如何实现服务调用的负载均衡。通过分析其工作原理、源码结构及配置方式,帮助读者理解Ribbon在分布式系统中的重要作用。 ... [详细]
  • 本文详细介绍了Akka中的BackoffSupervisor机制,探讨其在处理持久化失败和Actor重启时的应用。通过具体示例,展示了如何配置和使用BackoffSupervisor以实现更细粒度的异常处理。 ... [详细]
  • 本文详细介绍了Java编程语言中的核心概念和常见面试问题,包括集合类、数据结构、线程处理、Java虚拟机(JVM)、HTTP协议以及Git操作等方面的内容。通过深入分析每个主题,帮助读者更好地理解Java的关键特性和最佳实践。 ... [详细]
  • Android LED 数字字体的应用与实现
    本文介绍了一种适用于 Android 应用的 LED 数字字体(digital font),并详细描述了其在 UI 设计中的应用场景及其实现方法。这种字体常用于视频、广告倒计时等场景,能够增强视觉效果。 ... [详细]
  • 本文详细介绍了Java中org.w3c.dom.Text类的splitText()方法,通过多个代码示例展示了其实际应用。该方法用于将文本节点在指定位置拆分为两个节点,并保持在文档树中。 ... [详细]
  • 2023年京东Android面试真题解析与经验分享
    本文由一位拥有6年Android开发经验的工程师撰写,详细解析了京东面试中常见的技术问题。涵盖引用传递、Handler机制、ListView优化、多线程控制及ANR处理等核心知识点。 ... [详细]
author-avatar
长风剑客2502852893
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有