org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom Java Examples

The following examples show how to use org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractOwlAxiomConverterVisitor.java    From elk-reasoner with Apache License 2.0 5 votes vote down vote up
@Override
public T visit(OWLSymmetricObjectPropertyAxiom axiom) {
	throw new IllegalArgumentException(
			OWLSymmetricObjectPropertyAxiom.class.getSimpleName()
					+ " cannot be converted to "
					+ getTargetClass().getSimpleName());
}
 
Example #2
Source File: OWLGraphWrapperExtended.java    From owltools with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * true if c is symmetric in the graph
 * @param c
 * @return boolean
 */
public boolean getIsSymmetric(OWLObjectProperty c) {
	for(OWLOntology ont : getAllOntologies()) {
		Set<OWLSymmetricObjectPropertyAxiom> ax = ont.getSymmetricObjectPropertyAxioms(c);
		if (ax.isEmpty() == false) {
			return true;
		}
	}
	return false;
}
 
Example #3
Source File: AbstractElkObjectConverter.java    From elk-reasoner with Apache License 2.0 4 votes vote down vote up
@Override
public OWLSymmetricObjectPropertyAxiom visit(
		ElkSymmetricObjectPropertyAxiom axiom) {
	return owlFactory_.getOWLSymmetricObjectPropertyAxiom(
			convert(axiom.getProperty()));
}
 
Example #4
Source File: OwlConverter.java    From elk-reasoner with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("static-method")
public ElkSymmetricObjectPropertyAxiom convert(
		OWLSymmetricObjectPropertyAxiom owlSymmetricObjectPropertyAxiom) {
	return new ElkSymmetricObjectPropertyAxiomWrap<OWLSymmetricObjectPropertyAxiom>(
			owlSymmetricObjectPropertyAxiom);
}
 
Example #5
Source File: OwlAxiomConverterVisitor.java    From elk-reasoner with Apache License 2.0 4 votes vote down vote up
@Override
public ElkAxiom visit(
		OWLSymmetricObjectPropertyAxiom owlSymmetricObjectPropertyAxiom) {
	return CONVERTER.convert(owlSymmetricObjectPropertyAxiom);
}
 
Example #6
Source File: OwlObjectPropertyAxiomConverterVisitor.java    From elk-reasoner with Apache License 2.0 4 votes vote down vote up
@Override
public ElkObjectPropertyAxiom visit(
		OWLSymmetricObjectPropertyAxiom owlSymmetricObjectPropertyAxiom) {
	return CONVERTER.convert(owlSymmetricObjectPropertyAxiom);
}
 
Example #7
Source File: FailingOwlAxiomVisitor.java    From elk-reasoner with Apache License 2.0 4 votes vote down vote up
@Override
public void visit(OWLSymmetricObjectPropertyAxiom axiom) {
	defaultVisit(axiom);
}
 
Example #8
Source File: AxiomAnnotationTools.java    From owltools with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public OWLAxiom visit(OWLSymmetricObjectPropertyAxiom axiom) {
	return factory.getOWLSymmetricObjectPropertyAxiom(axiom.getProperty(), annotations);
}
 
Example #9
Source File: CardinalityContraintsTools.java    From owltools with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public void visit(OWLSymmetricObjectPropertyAxiom axiom) {
}