作者:长风剑客2502852893 | 来源:互联网 | 2024-10-19 11:21
本文整理了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()));