本文整理汇总了Java中org.semanticweb.owl.inference.OWLReasonerException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java OWLReasonerException.printStackTrace方法的具体用法?Java OWLReasonerException.printStackTrace怎么用?Java OWLReasonerException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.semanticweb.owl.inference.OWLReasonerException
的用法示例。
在下文中一共展示了OWLReasonerException.printStackTrace方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadBroaderProps
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
protected Set<OWLObjectProperty> loadBroaderProps() {
Set<Set<OWLObjectProperty>> broaderProperty = new HashSet<Set<OWLObjectProperty>>();
try {
broaderProperty = reasoner.getDescendantProperties(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADER.getURI()));
} catch (OWLReasonerException e) {
e.printStackTrace();
}
broaderProperties.add(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADER.getURI()));
for (Set<OWLObjectProperty> pb1 : broaderProperty) {
for (OWLObjectProperty pb1a : pb1) {
broaderProperties.add(pb1a);
}
}
return broaderProperties;
}
示例2: loadNarrowerProps
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
protected Set<OWLObjectProperty> loadNarrowerProps() {
Set<Set<OWLObjectProperty>> narrowerProperty = new HashSet<Set<OWLObjectProperty>>();;
try {
narrowerProperty = reasoner.getDescendantProperties(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWER.getURI()));
} catch (OWLReasonerException e) {
e.printStackTrace();
}
narrowerProperties.add(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWER.getURI()));
for (Set<OWLObjectProperty> pb1 : narrowerProperty) {
for (OWLObjectProperty pb1a : pb1) {
narrowerProperties.add(pb1a);
}
}
return narrowerProperties;
}
示例3: loadBroaderProps
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
protected Set<OWLObjectProperty> loadBroaderProps() {
Set<Set<OWLObjectProperty>> broaderProperty = new HashSet<Set<OWLObjectProperty>>();;
try {
broaderProperty = reasoner.getDescendantProperties(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADER.getURI()));
} catch (OWLReasonerException e) {
e.printStackTrace();
}
broaderProperties.add(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADER.getURI()));
for (Set<OWLObjectProperty> pb1 : broaderProperty) {
for (OWLObjectProperty pb1a : pb1) {
broaderProperties.add(pb1a);
}
}
return broaderProperties;
}
示例4: loadNarrowerProps
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
protected Set<OWLObjectProperty> loadNarrowerProps() {
Set<Set<OWLObjectProperty>> narrowerProperty = new HashSet<Set<OWLObjectProperty>>();;
try {
narrowerProperty = reasoner.getDescendantProperties(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWER.getURI()));
} catch (OWLReasonerException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
narrowerProperties.add(getManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWER.getURI()));
for (Set<OWLObjectProperty> pb1 : narrowerProperty) {
for (OWLObjectProperty pb1a : pb1) {
narrowerProperties.add(pb1a);
}
}
return narrowerProperties;
}
示例5: inSchemea
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
private boolean inSchemea(OWLIndividual ind, OWLIndividual conceptSchema) {
try {
return reasoner.getRelatedIndividuals(ind, inScheme).contains(conceptSchema);
} catch (OWLReasonerException e) {
e.printStackTrace();
}
return false;
}
示例6: isSatisfiable
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
private boolean isSatisfiable(OWLReasoner reasoner, OWLDescription desc) {
try {
return reasoner.isSatisfiable(desc);
} catch (OWLReasonerException e) {
e.printStackTrace();
return false;
}
}
示例7: run
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
@Override
public void run(IAction action) {
ITreeSelection sel= (ITreeSelection) part.getSite().getSelectionProvider().getSelection();
IProject p = (IProject) sel.iterator().next();
OntologyStore os = OntoEclipseManager.getOntologyStore(p.getName());
if (os != null) {
//then this store exist
try {
ConceptTree.refreshConceptTree(os, os.getMainOntologyURI());
OntologyInformation.refreshOntologyInformation(os,os.getMainOntologyURI());
try {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("de.fuberlin.agcsw.heraclitus.backend.ui.OntologyInformationView");
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("de.fuberlin.agcsw.heraclitus.backend.ui.ConceptExplorerView");
} catch (PartInitException e1) {
e1.printStackTrace();
}
} catch (OWLReasonerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
示例8: setOntologies
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
public void setOntologies(Set<OWLOntology> ontologies) {
reasoner = modelManager.getReasoner();
if (reasoner != null) {
isClassified = true;
}
if (!isClassified) {
return;
}
setFireEvents(false);
this.reasoner = modelManager.getReasoner();
conceptsToView.clear();
setUp();
try {
for (OWLIndividual ind : reasoner.getIndividuals( skosConcept, false)) {
Map<OWLObjectProperty, Set<OWLIndividual>> map = reasoner.getObjectPropertyRelationships(ind);
for (OWLObjectProperty prop : map.keySet()) {
for (OWLIndividual relInd : map.get(prop)) {
OWLObjectPropertyAssertionAxiom ax = getManager().getOWLDataFactory().getOWLObjectPropertyAssertionAxiom(ind, prop, relInd);
ax.accept(getFilter());
}
}
conceptsToView.add(ind);
}
for (OWLOntology ont : ontologies) {
// for (OWLClassAssertionAxiom axiom : ont.getAxioms(AxiomType.CLASS_ASSERTION)) {
// if (axiom.getDescription().equals(skosConcept)) {
// conceptsToView.add(axiom.getIndividual());
// }
// }
updateRoots(ont, conceptsToView);
}
fireHierarchyChanged();
setFireEvents(true);
} catch (OWLReasonerException e) {
e.printStackTrace();
}
}
示例9: infoButtonClick
import org.semanticweb.owl.inference.OWLReasonerException; //导入方法依赖的package包/类
/**
*
*/
private void infoButtonClick(boolean full){
URI physicalInfoURI = URI.create(srfl.getSelectedURI());
//delete the last information Ontology
if (lastOntology != null) {
infoStore.removeOntologyByURI(lastOntology);
}
try {
OWLOntology ont = infoStore.loadData(physicalInfoURI);
lastOntology = ont.getURI();
//refreshing the Views
ConceptTree.refreshConceptTree(OntoEclipseManager.getInfoStore(), ont.getURI());
OntologyInformation.refreshOntologyInformation(OntoEclipseManager.getInfoStore(), ont.getURI());
if (physicalInfoURI != null) {
System.out.println("Enabled buttons");
importToProjectButton.setEnabled(true);
projectCombo.setEnabled(true);
}
// init Graph Analysis
GraphAnalyse.ontologyInfo = infoStore.getOntologyInfos(lastOntology);
GraphAnalyse.ontologyStore = infoStore;
GraphAnalyse.preferredRootConcepts = queryText.getText().split(" ");
GraphAnalyse.fullGraph = full;
} catch (OWLReasonerException e2) {
System.out.println("OWL Reasoner Exception");
e2.printStackTrace();
} catch (OWLOntologyCreationException e3) {
System.out.println("Ontology creation Exception");
e3.printStackTrace();
}
try {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("de.fuberlin.agcsw.heraclitus.backend.ui.OntologyInformationView");
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("de.fuberlin.agcsw.heraclitus.backend.ui.ConceptExplorerView");
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("de.fuberlin.agcsw.heraclitus.graph.ui.GraphAnalyseView");
} catch (PartInitException e1) {
e1.printStackTrace();
}
}