• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AxiomType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.semanticweb.owlapi.model.AxiomType的典型用法代码示例。如果您正苦于以下问题:Java AxiomType类的具体用法?Java AxiomType怎么用?Java AxiomType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AxiomType类属于org.semanticweb.owlapi.model包,在下文中一共展示了AxiomType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: done

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
@Override
public void done() {
	if(!isCancelled()){
		// stop timer
		if(timer != null) {
			timer.cancel();
		}

		// show results
		if(view.getAxiomType().equals(AxiomType.EQUIVALENT_CLASSES) || view.getAxiomType().equals(AxiomType.SUBCLASS_OF)) {
			List<EvaluatedDescriptionClass> result = Manager.getInstance().getCurrentlyLearnedDescriptions();
			updateList(result);
		}

		// show that leaning has been finished
		view.setLearningFinished();
		setProgress(0);
	}
	ProtegeApplication.getBackgroundTaskManager().endTask(learningTask);
}
 
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:21,代码来源:ActionHandler.java


示例2: deleteFactCommand

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
@Deprecated
public void deleteFactCommand() throws IOException, OWLOntologyCreationException, OWLOntologyStorageException, UnknownOWLClassException {
	if (isHelp()) {
		info("generates ClassAssertion");
		return;
	}
	OWLOntology ont = resolveOntology(Param.ontology);
	OWLIndividual i = resolveIndividual(Param.individualId);
	OWLIndividual j = resolveIndividual(Param.fillerId);
	OWLObjectProperty p = resolveObjectProperty(Param.propertyId);
	for (OWLObjectPropertyAssertionAxiom ax : ont.getAxioms(AxiomType.OBJECT_PROPERTY_ASSERTION)) {
		if (ax.getSubject().equals(i)) {
			if (p == null || ax.getProperty().equals(p)) {
				if (j == null || ax.getObject().equals(j)) {
					removeAxiom(ont, graph.getDataFactory().getOWLObjectPropertyAssertionAxiom(p, i, j));
				}
			}
		}
	}
	String jsonStr = "";
	response.getWriter().write(jsonStr);
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:23,代码来源:OWLHandler.java


示例3: testServerGetCoAnnotationSuggestions

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
@Test
	public void testServerGetCoAnnotationSuggestions() throws Exception {
		g = loadOntology("../OWLTools-Sim/src/test/resources/sim/mp-subset-1.obo");
		String file="../OWLTools-Sim/src/test/resources/sim/mgi-gene2mp-subset-1.tbl";
//		g = loadOntology("/Users/Nicole/work/MONARCH/phenotype-ontologies/src/ontology/hp.obo");
//		String file="/Users/Nicole/work/MONARCH/phenotype-ontologies/data/Homo_sapiens/Hs-disease-to-phenotype-O.txt";

		TableToAxiomConverter ttac = new TableToAxiomConverter(g);
		ttac.config.axiomType = AxiomType.CLASS_ASSERTION;
		ttac.config.isSwitchSubjectObject = true;
		ttac.parse(file);			

		OwlSimFactory owlSimFactory = new FastOwlSimFactory();
		OwlSim sos = owlSimFactory.createOwlSim(g.getSourceOntology());

		sos.createElementAttributeMapFromOntology();
//		sos.populateFullCoannotationMatrix();
		LOG.info("Finished populating the big matrix");
		
		HttpUriRequest httppost = createGoodCoAnnotationRequest(1);

		runServerCommunication(httppost,sos);

	}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:25,代码来源:OWLServerSimSearchTest.java


示例4: makeHasPhenotypeInstancesDirect

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
protected void makeHasPhenotypeInstancesDirect() {
	// x Type has_phenotype some C ==> x Type C
	LOG.info("x Type has_phenotype some C ==> x Type C");
	OWLObjectProperty hasPhenotype = getOWLObjectPropertyViaOBOSuffix(HAS_PHENOTYPE);
	Set<OWLAxiom> rmAxioms = new HashSet<OWLAxiom>();
	Set<OWLAxiom> newAxioms = new HashSet<OWLAxiom>();
	for (OWLClassAssertionAxiom caa : outputOntology.getAxioms(AxiomType.CLASS_ASSERTION)) {
		OWLClassExpression ex = caa.getClassExpression();
		OWLIndividual i = caa.getIndividual();
		if (ex instanceof OWLObjectSomeValuesFrom) {
			OWLObjectSomeValuesFrom svf = (OWLObjectSomeValuesFrom)ex;
			if (svf.getProperty().equals(hasPhenotype)) {
				rmAxioms.add(caa);
				newAxioms.add(getOWLDataFactory().getOWLClassAssertionAxiom(svf.getFiller(), i));
			}

		}
	}
	LOG.info("making instances direct: +"+newAxioms.size()+ " -"+rmAxioms.size());
	addAxiomsToOutput(newAxioms, false);
	removeAxiomsFromOutput(rmAxioms, false);
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:23,代码来源:PhenoSimHQEPreProcessor.java


示例5: testAutoSimOnGO

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
@Test
public void testAutoSimOnGO() throws Exception, MathException {

	ParserWrapper pw = new ParserWrapper();
	sourceOntol = pw.parseOBO(getResourceIRIString("go-subset-t1.obo"));
	g = new OWLGraphWrapper(sourceOntol);
	IRI vpIRI = g.getOWLObjectPropertyByIdentifier("GOTESTREL:0000001").getIRI();
	TableToAxiomConverter ttac = new TableToAxiomConverter(g);
	ttac.config.axiomType = AxiomType.CLASS_ASSERTION;
	ttac.config.property = vpIRI;
	ttac.config.isSwitchSubjectObject = true;
	ttac.parse("src/test/resources/simplegaf-t1.txt");

	OWLPrettyPrinter pp = new OWLPrettyPrinter(g);
	
	AutomaticSimPreProcessor pproc = new AutomaticSimPreProcessor();
	try {
		pproc.setInputOntology(sourceOntol);
		pproc.setOutputOntology(sourceOntol);
		pproc.preprocess();
	} finally {
		pproc.dispose();
	}

}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:26,代码来源:AutomaticSimPreProcessorTest.java


示例6: getPropertyChains

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
public Set<List<OWLObjectPropertyExpression>> getPropertyChains(OWLObjectProperty p) {
	LOG.info("Getting chains for: "+p);
	Set<List<OWLObjectPropertyExpression>> chains = new HashSet<List<OWLObjectPropertyExpression>>();
	for (OWLSubPropertyChainOfAxiom spca : sourceOntology.getAxioms(AxiomType.SUB_PROPERTY_CHAIN_OF)) {
		if (spca.getSuperProperty().equals(p)) {
			List<OWLObjectPropertyExpression> chain = spca.getPropertyChain();
			chains.add(chain);

			// note: limited form of cycle checking
			if (!chain.contains(p)) {
				chains.addAll(expandPropertyChain(chain));
			}
		}
	}
	LOG.info(p+" ==> "+chains);
	return chains;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:18,代码来源:PropertyViewOntologyBuilder.java


示例7: addSubAnnotationProperties

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
void addSubAnnotationProperties(Set<OWLAxiom> axioms) {
	// add ALL subannotprop axioms
	// - this is quite geared towards obo ontologies, where
	//   we want to preserve obo headers.
	// TODO: make this configurable
	LOG.info("adding SubAnnotationProperties");
	Set<OWLAxiom> sapAxioms = new HashSet<OWLAxiom>();
	for (OWLOntology refOnt : this.getReferencedOntologies()) {
		for (OWLSubAnnotationPropertyOfAxiom a : refOnt.getAxioms(AxiomType.SUB_ANNOTATION_PROPERTY_OF)) {
			sapAxioms.add(a);
			Set<OWLAnnotationAssertionAxiom> s = refOnt.getAnnotationAssertionAxioms(a.getSubProperty().getIRI());
			if (s != null && !s.isEmpty()) {
				for (OWLAnnotationAssertionAxiom owlAnnotationAssertionAxiom : s) {
					sapAxioms.add(owlAnnotationAssertionAxiom);
				}
			}
		}
	}
	axioms.addAll(sapAxioms);
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:21,代码来源:Mooncat.java


示例8: getMappings

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
public Set<Mapping> getMappings() {
	Set<Mapping> ms = new HashSet<Mapping>();
	OWLAnnotationProperty vap = getVariableAnnotationProperty();
	for (OWLSubClassOfAxiom sca : ontology.getAxioms(AxiomType.SUBCLASS_OF, Imports.INCLUDED)) {
		Mapping m = new Mapping();
		Set<OWLAnnotation> anns = sca.getAnnotations(vap);
		for (OWLAnnotation ann : anns) {
			IRI v = (IRI) ann.getValue();
			m.vars.add(v);
		}
		if (m.vars.size() > 0) {
			m.src = sca.getSubClass();
			m.tgt = sca.getSuperClass();
			ms.add(m);
			LOG.info("MAPPING: "+m);
		}
	}
	return ms;
	
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:21,代码来源:TemplatedTransformer.java


示例9: initNeighborAxioms

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
private Map<OWLClass, Set<OWLSubClassOfAxiom>> initNeighborAxioms() {
	Map<OWLClass, Set<OWLSubClassOfAxiom>> result = new HashMap<OWLClass, Set<OWLSubClassOfAxiom>>();
	for(OWLOntology ont : getAllOntologies()) {
		for(OWLSubClassOfAxiom ax : ont.getAxioms(AxiomType.SUBCLASS_OF)) {
			Set<OWLClass> inSignature = ax.getClassesInSignature();
			for (OWLClass cls : inSignature) {
				Set<OWLSubClassOfAxiom> neighbors = result.get(cls);
				if (neighbors == null) {
					neighbors = new HashSet<OWLSubClassOfAxiom>();
					result.put(cls, neighbors);
				}
				neighbors.add(ax);
			}
		}
	}
	
	return result;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:19,代码来源:OWLGraphWrapperEdgesAdvanced.java


示例10: getAllOWLObjectsByAltId

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
/**
 * Find all corresponding {@link OWLObject}s with an OBO-style alternate identifier.
 * <p>
 * WARNING: This methods scans all object annotations in all ontologies. 
 * This is an expensive method.
 * 
 * @return map of altId to OWLObject (never null)
 */
public Map<String, OWLObject> getAllOWLObjectsByAltId() {
	final Map<String, OWLObject> results = new HashMap<String, OWLObject>();
	final OWLAnnotationProperty altIdProperty = getAnnotationProperty(OboFormatTag.TAG_ALT_ID.getTag());
	if (altIdProperty == null) {
		return Collections.emptyMap();
	}
	for (OWLOntology o : getAllOntologies()) {
		Set<OWLAnnotationAssertionAxiom> aas = o.getAxioms(AxiomType.ANNOTATION_ASSERTION);
		for (OWLAnnotationAssertionAxiom aa : aas) {
			OWLAnnotationValue v = aa.getValue();
			OWLAnnotationProperty property = aa.getProperty();
			if (altIdProperty.equals(property) && v instanceof OWLLiteral) {
				String altId = ((OWLLiteral)v).getLiteral();
				OWLAnnotationSubject subject = aa.getSubject();
				if (subject instanceof IRI) {
					OWLObject obj = getOWLObject((IRI) subject);
					if (obj != null) {
						results.put(altId, obj);
					}
				}
			}
		}
	}
	return results;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:34,代码来源:OWLGraphWrapperExtended.java


示例11: getPropertyChainMap

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
private Map<OWLObjectProperty,Set<List<OWLObjectProperty>>> getPropertyChainMap() {
	if (pcMap == null) {
		pcMap = new HashMap<OWLObjectProperty,Set<List<OWLObjectProperty>>>();
		for (OWLSubPropertyChainOfAxiom a : sourceOntology.getAxioms(AxiomType.SUB_PROPERTY_CHAIN_OF)) {
			//LOG.info("CHAIN:"+a+" // "+a.getPropertyChain().size());
			if (a.getPropertyChain().size() == 2) {
				OWLObjectPropertyExpression p1 = a.getPropertyChain().get(0);
				OWLObjectPropertyExpression p2 = a.getPropertyChain().get(1);
				//LOG.info("  xxCHAIN:"+p1+" o "+p2);
				if (p1 instanceof OWLObjectProperty && p2 instanceof OWLObjectProperty) {
					List<OWLObjectProperty> list = new Vector<OWLObjectProperty>();
					list.add((OWLObjectProperty) p2);
					list.add((OWLObjectProperty) a.getSuperProperty());
					if (!pcMap.containsKey(p1)) 
						pcMap.put((OWLObjectProperty) p1, new HashSet<List<OWLObjectProperty>>());
					pcMap.get((OWLObjectProperty) p1).add(list);
					//LOG.info("  xxxCHAIN:"+p1+" ... "+list);
				}
			}
			else {
				// TODO
			}
		}
	}
	return pcMap;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:27,代码来源:OWLGraphWrapperEdges.java


示例12: getAnnotationValue

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
public Set<OWLAnnotationAssertionAxiom> getAnnotationValue(
		String turambarOntologyAnnotation) {
	OWLDataFactory factory = ontology.getOWLOntologyManager()
			.getOWLDataFactory();
	final OWLAnnotationProperty dcProperty = factory
			.getOWLAnnotationProperty(IRI
					.create(turambarOntologyAnnotation));
	final Set<OWLAxiom> axioms = dcProperty.getReferencingAxioms(
			getOntology(), true);
	final Set<OWLAnnotationAssertionAxiom> values = new HashSet<OWLAnnotationAssertionAxiom>();
	for (OWLAxiom a : axioms) {
		if (a.getAxiomType().equals(AxiomType.ANNOTATION_ASSERTION)) {
			final OWLAnnotationAssertionAxiom annotationAssertion = (OWLAnnotationAssertionAxiom) a;

			values.add(annotationAssertion);
		}
	}
	return values;
}
 
开发者ID:edlectrico,项目名称:Pellet4Android,代码行数:20,代码来源:OntologyManager.java


示例13: extract

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
/**
 * Extracts {@link PredicateVariableExtractor} rules.
 * 
 * @param ot ontology
 * @return extracted rules
 */
@Override
public List<Rule> extract(OWLOntology ot) {
	List<Rule> list = new ArrayList<>();
	// list of predicates in ontology
	List<String> ps = new ArrayList<>();
	ps.add(TOPOBJ);
	ps.add(TOPDATA);
	OWLEntity e;
	String op;
	// check all declarations
	for (OWLDeclarationAxiom a : ot.getAxioms(AxiomType.DECLARATION)) {
		e = a.getEntity();
		if (e.isOWLObjectProperty()) {
			// if it is a object property declaration, add it to the list
			// and also add it as subproperty of owl:topObjectProperty
			op = getString(e.asOWLObjectProperty());
			ps.add(op);
			list.add(new SubPropertyOf(op, TOPOBJ));
		} else if (e.isOWLDataProperty()) {
			// if it is a data property declaration, add it to the list
			// and also add it as subproperty of owl:topDataProperty
			op = getString(e.asOWLDataProperty());
			ps.add(op);
			list.add(new SubPropertyOf(op, TOPDATA));
		}
	}
	list.add(new PredicateVariable(ps));
	return list;
}
 
开发者ID:lszeremeta,项目名称:neo4j-sparql-extension-yars,代码行数:36,代码来源:PredicateVariableExtractor.java


示例14: addPositiveAxioms

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
public void addPositiveAxioms(Set<? extends OWLAxiom> axioms) {
	for (OWLAxiom axiom : axioms) {
		if (axiom.isOfType(AxiomType.EQUIVALENT_CLASSES)) {
			addEquation((OWLEquivalentClassesAxiom) axiom);
		} else if (axiom.isOfType(AxiomType.SUBCLASS_OF)) {
			addSubsumption((OWLSubClassOfAxiom) axiom);
		} else {
			throw new RuntimeException("Unsupported axiom type: " + axiom);
		}
	}
}
 
开发者ID:julianmendez,项目名称:uel,代码行数:12,代码来源:UelOntologyGoal.java


示例15: addNegativeAxioms

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
public void addNegativeAxioms(Set<? extends OWLAxiom> axioms) {
	for (OWLAxiom axiom : axioms) {
		if (axiom.isOfType(AxiomType.EQUIVALENT_CLASSES)) {
			addDisequation((OWLEquivalentClassesAxiom) axiom);
		} else if (axiom.isOfType(AxiomType.SUBCLASS_OF)) {
			addDissubsumption((OWLSubClassOfAxiom) axiom);
		} else {
			throw new RuntimeException("Unsupported axiom type: " + axiom);
		}
	}
}
 
开发者ID:julianmendez,项目名称:uel,代码行数:12,代码来源:UelOntologyGoal.java


示例16: renderModel

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
/**
 * @return Map to be passed to Gson
 */
public JsonModel renderModel() {
	JsonModel json = new JsonModel();
	json.modelId = modelId;
	
	// per-Individual
	List<JsonOwlIndividual> iObjs = new ArrayList<JsonOwlIndividual>();
	for (OWLNamedIndividual i : ont.getIndividualsInSignature()) {
		iObjs.add(renderObject(i));
	}
	json.individuals = iObjs.toArray(new JsonOwlIndividual[iObjs.size()]);
	
	// per-Assertion
	Set<OWLObjectProperty> usedProps = new HashSet<OWLObjectProperty>();
	
	List<JsonOwlFact> aObjs = new ArrayList<JsonOwlFact>();
	for (OWLObjectPropertyAssertionAxiom opa : ont.getAxioms(AxiomType.OBJECT_PROPERTY_ASSERTION)) {
		JsonOwlFact fact = renderObject(opa);
		if (fact != null) {
			aObjs.add(fact);
			usedProps.addAll(opa.getObjectPropertiesInSignature());
		}
	}
	json.facts = aObjs.toArray(new JsonOwlFact[aObjs.size()]);

	JsonAnnotation[] anObjs = renderAnnotations(ont.getAnnotations(), curieHandler);
	if (anObjs != null && anObjs.length > 0) {
		json.annotations = anObjs;
	}
	
	return json;
	
}
 
开发者ID:geneontology,项目名称:minerva,代码行数:36,代码来源:MolecularModelJsonRenderer.java


示例17: isValidInput

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
@Override
public boolean isValidInput() {
	if(getAxiomType() == AxiomType.EQUIVALENT_CLASSES) {
		Manager.getInstance(getOWLEditorKit()).setLearningType(LearningType.EQUIVALENT);
	} else if(getAxiomType() == AxiomType.SUBCLASS_OF) {
		Manager.getInstance(getOWLEditorKit()).setLearningType(LearningType.SUPER);
	}
	view.reset();
	checkReasonerStatus();
	return true;
}
 
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:12,代码来源:ProtegePlugin.java


示例18: valueChanged

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
@Override
	public void valueChanged(ListSelectionEvent e) {
		if(view.getSuggestClassPanel().getSuggestionsTable().getSelectedRow() >= 0){

			// get the selected class expression
			EvaluatedDescription newDesc = view.getSuggestClassPanel().getSuggestionsTable().getSelectedSuggestion();

			// enable 'Add' button
			if(!e.getValueIsAdjusting() && newDesc != null) {
				view.getAddButton().setEnabled(true);
			}

			// update the class coverage diagram
			if(view.getAxiomType().equals(AxiomType.EQUIVALENT_CLASSES) || 
					view.getAxiomType().equals(AxiomType.SUBCLASS_OF)) {
//				evaluatedDescription = view.getSuggestClassPanel().getSuggestionsTable().getSelectedSuggestion();
				if(!e.getValueIsAdjusting() && (evaluatedDescription == null || !evaluatedDescription.equals(newDesc))){
//					view.getMoreDetailForSuggestedConceptsPanel().renderDetailPanel(evaluatedDescription);
					view.showHintMessagePanel(false);
					view.showGraphicalPanel(true);
					view.getGraphicalPanel().setDescription(evaluatedDescription);
				}
			}

			evaluatedDescription = newDesc;
		}
		
		
	}
 
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:30,代码来源:SuggestClassPanelHandler.java


示例19: loadDefaultConstraintsFromOWL

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
/**
 * Loads conditional constraints from an ontology with annotated axioms
 * 
 * @param ontology
 * @param signature 
 * @param declAxioms Used to return declaration axioms for auto-generated class names
 * @param iriPrefix IRI prefix for auto-generated class names
 * @param raxList
 * @return
 */
public static Set<ConditionalConstraint> loadDefaultConstraintsFromOWL(
		OWLOntology ontology,
		Map<String, OWLClassExpression> nameMap,
		Set<OWLEntity> signature,
		List<RemoveAxiom> raxList, String iriPrefix,
		OWLOntologyManager manager) {

	Set<ConditionalConstraint> ccSet = new HashSet<ConditionalConstraint>();
	//Begin with generic (default) subclass-of axioms
	for( OWLAxiom axiom : ontology.getAxioms( AxiomType.SUBCLASS_OF ) ) {
		for( OWLAnnotation annotation : axiom.getAnnotations() ) {

			if( Constants.CERTAINTY_ANNOTATION_URI.equals(annotation.getProperty().getIRI().toURI() ) ) {

				OWLSubClassOfAxiom sbAxiom = (OWLSubClassOfAxiom) axiom;
				String subClassIRI = generateClassName(sbAxiom.getSubClass(), nameMap, iriPrefix);
				String superClassIRI = generateClassName(sbAxiom.getSuperClass(), nameMap, iriPrefix);
				ConditionalConstraint cc = newConstraint(subClassIRI, superClassIRI, annotation.getValue().toString());

				signature.addAll( sbAxiom.getSubClass().getClassesInSignature() );
				signature.addAll( sbAxiom.getSuperClass().getClassesInSignature() );
				
				if( null != cc ) {

					ccSet.add( cc );

					if( null != raxList ) {
						raxList.add( new RemoveAxiom( ontology, axiom ) );
					}
				}
			}
		}
	}

	return ccSet;
}
 
开发者ID:klinovp,项目名称:pronto,代码行数:47,代码来源:ProntoLoaderUtils.java


示例20: isEntailmentCheckingSupported

import org.semanticweb.owlapi.model.AxiomType; //导入依赖的package包/类
@Override
public boolean isEntailmentCheckingSupported(final AxiomType<?> axiomType) {
	Class<? extends ElkObject> elkAxiomClass = OwlConverter
			.convertType(axiomType.getActualClass());
	if (elkAxiomClass == null
			|| !ElkAxiom.class.isAssignableFrom(elkAxiomClass)) {
		// not supported
		return false;
	}
	// else
	return EntailmentQueryConverter.isEntailmentCheckingSupported(
			elkAxiomClass.asSubclass(ElkAxiom.class));
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:14,代码来源:ElkReasoner.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java NamedAnalyzer类代码示例发布时间:2022-05-21
下一篇:
Java KLog类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap