public Set<OWLDatatype> getReferencedDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> referencedTypes = new HashSet<>(); for (OWLOntology ont : onts){ referencedTypes.addAll(ont.getDatatypesInSignature()); } return referencedTypes; }
public Set<OWLDatatype> getReferencedDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> referencedTypes = new HashSet<OWLDatatype>(); for (OWLOntology ont : onts){ referencedTypes.addAll(ont.getDatatypesInSignature()); } return referencedTypes; }
public Set<OWLDatatype> getReferencedDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> referencedTypes = new HashSet<OWLDatatype>(); for (OWLOntology ont : onts){ referencedTypes.addAll(ont.getDatatypesInSignature()); } return referencedTypes; }
public Set<OWLDatatype> getReferencedDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> referencedTypes = new HashSet<>(); for (OWLOntology ont : onts){ referencedTypes.addAll(ont.getDatatypesInSignature()); } return referencedTypes; }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(boolean b) { return withReadLock(() -> delegate.getDatatypesInSignature(b)); }
public Set<OWLDatatype> getKnownDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> knownTypes = getBuiltinDatatypes(); for (OWLOntology ont : onts){ knownTypes.addAll(ont.getDatatypesInSignature()); } return knownTypes; } }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(Imports imports) { return withReadLock(() -> delegate.getDatatypesInSignature(imports)); }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(boolean b) { return withReadLock(() -> delegate.getDatatypesInSignature(b)); }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(Imports imports) { return withReadLock(() -> delegate.getDatatypesInSignature(imports)); }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(Imports imports) { return withReadLock(() -> delegate.getDatatypesInSignature(imports)); }
public Set<OWLDatatype> getKnownDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> knownTypes = getBuiltinDatatypes(); for (OWLOntology ont : onts){ knownTypes.addAll(ont.getDatatypesInSignature()); } return knownTypes; } }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(boolean b) { return withReadLock(() -> delegate.getDatatypesInSignature(b)); }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(Imports imports) { return withReadLock(() -> delegate.getDatatypesInSignature(imports)); }
@Override @Deprecated public Set<OWLDatatype> getDatatypesInSignature(boolean b) { return withReadLock(() -> delegate.getDatatypesInSignature(b)); }
public Set<OWLDatatype> getKnownDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> knownTypes = getBuiltinDatatypes(); for (OWLOntology ont : onts){ knownTypes.addAll(ont.getDatatypesInSignature()); } return knownTypes; } }
public Set<OWLDatatype> getKnownDatatypes(Set<OWLOntology> onts){ Set<OWLDatatype> knownTypes = getBuiltinDatatypes(); for (OWLOntology ont : onts){ knownTypes.addAll(ont.getDatatypesInSignature()); } return knownTypes; } }
private void renderDatatypes() throws IOException { Set<OWLDatatype> datatypes = ontology.getDatatypesInSignature(); renderEntities(datatypes, DATATYPES_BANNER_TEXT); }
@Override public Set<OWLDatatype> getChildren(OWLDatatype node) { Set<OWLDatatype> subs = new HashSet<>(); if (isRoot(node)){ for (OWLOntology ont : server.getOntologies()){ subs.addAll(ont.getDatatypesInSignature()); } } return subs; }
/** * Gets the datatypes that are referenced by this ontology and possibly its imports closure * @param includeImportsClosure Specifies whether referenced named individuals should be drawn from this ontology or the imports * closure of this ontology. If <code>true</code> then the set of referenced named individuals will be from the * imports closure of this ontology, if <code>false</code> then the set of referenced named individuals will just * be from this ontology. * @return The set of datatypes that are referenced by axioms in this ontology and possibly its imports closure */ public Set<OWLDatatype> getDatatypesInSignature(boolean includeImportsClosure) { if(!includeImportsClosure) { return getDatatypesInSignature(); } Set<OWLDatatype> results = new HashSet<OWLDatatype>(); for(OWLOntology ont : getImportsClosure()) { results.addAll(ont.getDatatypesInSignature()); } return results; }
public Set<OWLEntity> getEntities() { Set<OWLEntity> entities = new HashSet<OWLEntity>(); for(OWLOntology ont : ontologies) { entities.addAll(ont.getClassesInSignature()); entities.addAll(ont.getObjectPropertiesInSignature()); entities.addAll(ont.getDataPropertiesInSignature()); entities.addAll(ont.getIndividualsInSignature()); entities.addAll(ont.getAnnotationPropertiesInSignature()); entities.addAll(ont.getDatatypesInSignature()); } return entities; } }