PropertyExtractor { public OWLOntology extractPropertyOntology() throws OWLOntologyCreationException { UUID uuid = UUID.randomUUID(); IRI iri = IRI.create("http: return extractPropertyOntology(iri); } PropertyExtractor(OWLOntology propertyOntology);  PropertyExtractor(OWLOntology propertyOntology,
			OWLOntology mainOntology); OWLOntology extractPropertyOntology(); OWLOntology extractPropertyOntology(IRI newIRI); OWLOntology extractPropertyOntology(IRI newIRI, OWLOntology ont); OWLOntology extractPropertyOntology(IRI newIRI, Set<OWLProperty> props); public boolean isCreateShorthand; public boolean isUseSubProperties; }
@Test public void testExtractBridge() throws Exception { ParserWrapper pw = new ParserWrapper(); OWLOntology sourceOntol = pw.parseOBO(getResourceIRIString("go_xp_predictor_test_subset.obo")); OWLOntology propertyOntol = pw.parseOWL(getResourceIRIString("ro.owl")); PropertyExtractor pe = new PropertyExtractor(propertyOntol, sourceOntol); OWLOntology pont = pe.extractPropertyOntology(); pw.saveOWL(pont, new OBODocumentFormat(), "target/foo.obo"); }