org.semanticweb.owlapi.model.OWLObjectPropertyAxiom Java Examples

The following examples show how to use org.semanticweb.owlapi.model.OWLObjectPropertyAxiom. 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: AbstractConverter.java    From OWL2VOWL with MIT License 6 votes vote down vote up
private void processObjectProperties(OWLOntology ontology, VowlData vowlData) {
	for (OWLObjectProperty owlObjectProperty : ontology.objectPropertiesInSignature(Imports.INCLUDED)
			.collect(Collectors.toSet())) {
		for (OWLObjectPropertyAxiom owlObjectPropertyAxiom : ontology.axioms(owlObjectProperty, Imports.INCLUDED)
				.collect(Collectors.toSet())) {
			try {
				owlObjectPropertyAxiom.accept(new ObjectPropertyVisitor(vowlData, owlObjectProperty));
			} catch (Exception e) {
				logger.info(
						"          @WORKAROUND: Failed to accept property with HAS_VALUE OR  SubObjectPropertyOf ... SKIPPING THIS");
				logger.info("          propertyName: " + owlObjectProperty);
				logger.info("          propertyAxiom: " + owlObjectPropertyAxiom);
			}
		}
	}
}
 
Example #2
Source File: OwlConverter.java    From elk-reasoner with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("static-method")
public ElkObjectPropertyAxiom convert(
		OWLObjectPropertyAxiom owlObjectPropertyAxiom) {
	return owlObjectPropertyAxiom
			.accept(OWL_OBJECT_PROPERTY_AXIOM_CONVERTER);
}