当前位置: 首页>>代码示例>>Java>>正文


Java OWLReasonerException.printStackTrace方法代码示例

本文整理汇总了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;
}
 
开发者ID:simonjupp,项目名称:skoseditor,代码行数:17,代码来源:SKOSConceptInferredHierarchyProvider.java

示例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;
}
 
开发者ID:simonjupp,项目名称:skoseditor,代码行数:17,代码来源:SKOSConceptInferredHierarchyProvider.java

示例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;
}
 
开发者ID:simonjupp,项目名称:skoseditor,代码行数:17,代码来源:SKOSInSchemeInferredHierarchyProvider.java

示例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;
}
 
开发者ID:simonjupp,项目名称:skoseditor,代码行数:17,代码来源:SKOSInSchemeInferredHierarchyProvider.java

示例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;
    }
 
开发者ID:simonjupp,项目名称:skoseditor,代码行数:11,代码来源:SKOSInSchemeInferredHierarchyProvider.java

示例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;
	}	
}
 
开发者ID:Kaljurand,项目名称:aceview,代码行数:9,代码来源:ACEAnswer.java

示例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();
		}
		
	}
	
}
 
开发者ID:ag-csw,项目名称:SVoNt,代码行数:30,代码来源:OpenConceptTreeAction.java

示例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();
        }

    }
 
开发者ID:simonjupp,项目名称:skoseditor,代码行数:45,代码来源:SKOSConceptInferredHierarchyProvider.java

示例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();
	}
}
 
开发者ID:ag-csw,项目名称:SVoNt,代码行数:51,代码来源:SwoogleView.java


注:本文中的org.semanticweb.owl.inference.OWLReasonerException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。