@Override public Stream<OWLOntology> stream(HasImportsClosure o) { return o.importsClosure(); } },
@Nonnull @Override public GetManchesterSyntaxFrameResult execute(@Nonnull GetManchesterSyntaxFrameAction action, @Nonnull ExecutionContext executionContext) { var writer = new StringWriter(); var escapingShortFormProvider = new EscapingShortFormProvider(dictionaryManager); var frameRenderer = new ManchesterOWLSyntaxFrameRenderer(importsClosure.getImportsClosure(), writer, escapingShortFormProvider); frameRenderer.setOntologyIRIShortFormProvider(ontologyIRIShortFormProvider); frameRenderer.setRenderExtensions(true); frameRenderer.writeFrame(action.getSubject()); var frameSubject = renderingManager.getRendering(action.getSubject()); return GetManchesterSyntaxFrameResult.get(frameSubject, writer.getBuffer().toString()); }
@Override public Boolean visit(OWLNamedIndividual individual) { final Collection<OWLClassExpression> types = EntitySearcher.getTypes(individual, rootOntologyImportsClosureProvider.getImportsClosure()); for (OWLClassExpression ce : types) { if (!ce.isAnonymous()) { if (isWatchedByAncestor(classHierarchyProvider.getAncestors(ce.asOWLClass()))) { return true; } } } return false; }
@Override public Stream<OWLOntology> stream(HasImportsClosure o) { return o.importsClosure(); } },
@Override public Stream<OWLOntology> stream(HasImportsClosure o) { return o.importsClosure(); } },
/** * Gets the set of <em>loaded</em> ontologies that this ontology is related * to via the <em>reflexive transitive closure</em> of the directlyImports * relation as defined in Section 3.4 of the OWL 2 Structural Specification. * For example, if this ontology imports ontology B, and ontology B imports * ontology C, then this method will return the set consisting of this * ontology, ontology B and ontology C. * * @return The set of ontologies in the reflexive transitive closure of the directlyImports * relation. * @throws UnknownOWLOntologyException If this ontology is no longer managed by its manager * because it was removed from the manager. * @deprecated use the stream method */ @Deprecated default Set<OWLOntology> getImportsClosure() { return asSet(importsClosure()); }
/** * Gets the set of <em>loaded</em> ontologies that this ontology is related * to via the <em>reflexive transitive closure</em> of the directlyImports * relation as defined in Section 3.4 of the OWL 2 Structural Specification. * For example, if this ontology imports ontology B, and ontology B imports * ontology C, then this method will return the set consisting of this * ontology, ontology B and ontology C. * * @return The set of ontologies in the reflexive transitive closure of the directlyImports * relation. * @throws UnknownOWLOntologyException If this ontology is no longer managed by its manager * because it was removed from the manager. * @deprecated use the stream method */ @Deprecated default Set<OWLOntology> getImportsClosure() { return asSet(importsClosure()); }
/** * Gets the set of <em>loaded</em> ontologies that this ontology is related * to via the <em>reflexive transitive closure</em> of the directlyImports * relation as defined in Section 3.4 of the OWL 2 Structural Specification. * For example, if this ontology imports ontology B, and ontology B imports * ontology C, then this method will return the set consisting of this * ontology, ontology B and ontology C. * * @return The set of ontologies in the reflexive transitive closure of the directlyImports * relation. * @throws UnknownOWLOntologyException If this ontology is no longer managed by its manager * because it was removed from the manager. * @deprecated use the stream method */ @Deprecated default Set<OWLOntology> getImportsClosure() { return asSet(importsClosure()); }