/** * Gets the has key axioms that have the specified class as their subject. * * @param cls The subject of the has key axioms * @return the axioms matching the search. The set is a copy of the data. * @deprecated use the stream method */ @Deprecated default Set<OWLHasKeyAxiom> getHasKeyAxioms(OWLClass cls) { return asSet(hasKeyAxioms(cls)); }
/** * Gets the datatype definition axioms for the specified datatype. * * @param datatype The datatype * @return The set of datatype definition axioms for the specified datatype. The set is a copy * of the data. * @deprecated use the stream method */ @Deprecated default Set<OWLDatatypeDefinitionAxiom> getAxioms(OWLDatatype datatype) { return asSet(axioms(datatype)); }
/** * @return the individuals * @deprecated use the stream method */ @Deprecated default Set<OWLIndividual> getIndividuals() { return asSet(individuals()); }
/** * Gets the {@code Node}s contained in this {@code NodeSet}. * * @return The set of {@code Node}s contained in this {@code NodeSet}. Note that this set will * be an unmodifiable set. * @deprecated use {@link #nodes()} */ @Deprecated default Set<Node<E>> getNodes() { return asSet(nodes()); }
/** * @return the class expressions * @deprecated use the stream method */ @Deprecated default Set<OWLClassExpression> getOperands() { return asSet(operands()); } }
/** * Gets the anonymous individuals occurring in this object. The set is a copy, changes are not * reflected back. The default implementation of this method returns a modifiable, empty set. * * @return A set of anonymous individuals * @deprecated use {@link #anonymousIndividuals()} */ @Deprecated default Set<OWLAnonymousIndividual> getAnonymousIndividuals() { return asSet(anonymousIndividuals()); }
/** * Gets all of the nested (includes top level) class expressions that are used in this object. * The default implementation of this method returns an empty, modifiable set. * * @return A set of {@link org.semanticweb.owlapi.model.OWLClassExpression}s that represent the * nested class expressions used in this object. * @deprecated use the stream method */ @Deprecated default Set<OWLClassExpression> getNestedClassExpressions() { return asSet(nestedClassExpressions()); }
/** * Gets the datatype definition axioms for the specified datatype. * * @param datatype The datatype * @return The set of datatype definition axioms for the specified datatype. The set is a copy * of the data. * @deprecated use the stream method */ @Deprecated default Set<OWLDatatypeDefinitionAxiom> getAxioms(OWLDatatype datatype) { return asSet(axioms(datatype)); }
/** * @return all of the properties that appear in this axiom * @deprecated use the stream method */ @Deprecated default Set<P> getProperties() { return asSet(properties()); }
/** * Gets the {@code Node}s contained in this {@code NodeSet}. * * @return The set of {@code Node}s contained in this {@code NodeSet}. Note that this set will * be an unmodifiable set. * @deprecated use {@link #nodes()} */ @Deprecated default Set<Node<E>> getNodes() { return asSet(nodes()); }
/** * Gets the {@link OWLAxiom}s contained in this object. * * @return The set of {@link OWLAxiom}s contained in this object. Changes are not reflected * back. * @deprecated use the stream method */ @Deprecated default Set<OWLAxiom> getAxioms() { return asSet(axioms()); }
/** * Gets the classes in the signature and optionally the imports closure. * * @param imports if INCLUDED, include imports closure. * @return the set of classes in the signature, optionally including the import closure. The set * that is returned is a copy of the data. * @deprecated use the stream method */ @Deprecated default Set<OWLClass> getClassesInSignature(Imports imports) { return asSet(classesInSignature(imports)); }
/** * Gets the named individuals in the signature and optionally the imports closure. * * @param includeImportsClosure if INCLUDED, include imports closure. * @return the set of individuals in the signature, optionally including the import closure. The * set that is returned is a copy of the data. * @deprecated use the stream method */ @Deprecated default Set<OWLNamedIndividual> getIndividualsInSignature(Imports includeImportsClosure) { return asSet(individualsInSignature(includeImportsClosure)); }
/** * Gets the referenced anonymous individuals. * * @return The set of referenced anonymous individuals * @deprecated use the stream method */ @Deprecated default Set<OWLAnonymousIndividual> getReferencedAnonymousIndividuals() { return asSet(referencedAnonymousIndividuals()); }
/** * Gets the anonymous individuals occurring in this object. The set is a copy, changes are not * reflected back. The default implementation of this method returns a modifiable, empty set. * * @return A set of anonymous individuals * @deprecated use {@link #anonymousIndividuals()} */ @Deprecated default Set<OWLAnonymousIndividual> getAnonymousIndividuals() { return asSet(anonymousIndividuals()); }
/** * @param includeImportsClosure if INCLUDED, include imports closure. * @return All of the axioms in this collection, and optionally in the import closure. The set * that is returned is a copy of the data. * @deprecated use the stream method */ @Deprecated default Set<OWLAxiom> getAxioms(Imports includeImportsClosure) { return asSet(axioms(includeImportsClosure)); }
/** * @param dataFactory data factory to use * @return set of SKOS data properties */ public static Set<OWLDataProperty> getDataProperties(OWLDataFactory dataFactory) { return asSet(stream().filter(v -> v.entityType.equals(DATA_PROPERTY)) .map(v -> dataFactory.getOWLDataProperty( v.iri))); }
/** * @param dataFactory data factory to use * @return set of SKOS annotation properties */ public static Set<OWLAnnotationProperty> getAnnotationProperties( AnnotationPropertyProvider dataFactory) { return asSet( stream().filter(v -> v.entityType.equals(ANNOTATION_PROPERTY)).map(v -> dataFactory .getOWLAnnotationProperty(v.iri))); }
/** * @return all facets */ public static Set<String> getFacets() { return asSet(stream().map(v -> v.getSymbolicForm())); }
private static Set<OWLEntity> build(OWLImmutableOntologyImpl key) { Stream<OWLEntity> stream = Stream .of(key.classesInSignature(), key.objectPropertiesInSignature(), key.dataPropertiesInSignature(), key.individualsInSignature(), key.datatypesInSignature(), key.annotationPropertiesInSignature()) .flatMap(x -> x); return asSet(stream.distinct().sorted()); }