@Override protected int getEntityCount() { return getRootOntology().getIndividualsInSignature(true).size(); } }
@Override @Deprecated public Set<OWLNamedIndividual> getIndividualsInSignature(Imports imports) { return withReadLock(() -> delegate.getIndividualsInSignature(imports)); }
@Override @Deprecated public Set<OWLNamedIndividual> getIndividualsInSignature(boolean b) { return withReadLock(() -> delegate.getIndividualsInSignature(b)); }
@Override @Deprecated public Set<OWLNamedIndividual> getIndividualsInSignature(boolean b) { return withReadLock(() -> delegate.getIndividualsInSignature(b)); }
@Override @Deprecated public Set<OWLNamedIndividual> getIndividualsInSignature(boolean b) { return withReadLock(() -> delegate.getIndividualsInSignature(b)); }
@Override @Deprecated public Set<OWLNamedIndividual> getIndividualsInSignature(boolean b) { return withReadLock(() -> delegate.getIndividualsInSignature(b)); }
@Override @Deprecated public Set<OWLNamedIndividual> getIndividualsInSignature(Imports imports) { return withReadLock(() -> delegate.getIndividualsInSignature(imports)); }
public List<OWLOntologyChange> getChanges() { Set<OWLIndividual> individuals = ontologies.stream() .flatMap(o -> o.getIndividualsInSignature().stream()) .collect(toSet()); List<OWLOntologyChange> changes = new ArrayList<>(); if (!individuals.isEmpty()) { changes.add(new AddAxiom(ont, dataFactory.getOWLDifferentIndividualsAxiom(individuals))); } return changes; } }
public List<OWLOntologyChange> getChanges() { Set<OWLIndividual> individuals = new HashSet<>(); for(OWLOntology ont : ontologies) { individuals.addAll(ont.getIndividualsInSignature()); } List<OWLOntologyChange> changes = new ArrayList<>(); if(!individuals.isEmpty()) { changes.add(new AddAxiom(ont, dataFactory.getOWLDifferentIndividualsAxiom(individuals))); } return changes; } }
protected int getIntMetric() { Set<OWLIndividual> clses = new HashSet<>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { clses.addAll(ont.getIndividualsInSignature()); } return clses.size(); } }
protected int getIntMetric() { Set<OWLIndividual> clses = new HashSet<>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { clses.addAll(ont.getIndividualsInSignature()); } return clses.size(); } }
protected int getIntMetric() { Set<OWLIndividual> clses = new HashSet<OWLIndividual>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { clses.addAll(ont.getIndividualsInSignature()); } return clses.size(); } }
protected void refill() { // Initial fill individualsInList.clear(); for (OWLOntology ont : getOntologies()) { individualsInList.addAll(ont.getIndividualsInSignature()); } reset(); }
protected void refill() { // Initial fill individualsInList.clear(); for (OWLOntology ont : getOntologies()) { individualsInList.addAll(ont.getIndividualsInSignature()); } reset(); }
protected void refill() { // Initial fill individualsInList.clear(); for (OWLOntology ont : getOntologies()) { individualsInList.addAll(ont.getIndividualsInSignature()); } reset(); }
private void updateState() { boolean enabled = getOWLModelManager().getActiveOntologies().stream() .filter(o -> !o.getIndividualsInSignature().isEmpty()) .findAny() .isPresent(); setEnabled(enabled); }
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() { Set<OWLEntity> result = new HashSet<OWLEntity>(); result.addAll(ontology.getClassesInSignature()); result.addAll(ontology.getObjectPropertiesInSignature()); result.addAll(ontology.getDataPropertiesInSignature()); result.addAll(ontology.getIndividualsInSignature()); result.addAll(ontology.getAnnotationPropertiesInSignature()); return result; }
private void refill() { individualsInList.clear(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { individualsInList.addAll(ont.getIndividualsInSignature()); } reset(); }
protected Set<OWLNamedIndividual> getUntypedIndividuals() { Set<OWLNamedIndividual> untypedIndividuals = new HashSet<OWLNamedIndividual>(); OWLOntology activeOntology = getOWLModelManager().getActiveOntology(); Set<OWLOntology> importsClosure = activeOntology.getImportsClosure(); for (OWLNamedIndividual individual : activeOntology.getIndividualsInSignature(true)) { Set<OWLClassExpression> types = individual.getTypes(importsClosure); if (types == null || types.size() == 0) { untypedIndividuals.add(individual); } } return untypedIndividuals; }
protected Set<OWLNamedIndividual> getUntypedIndividuals() { Set<OWLNamedIndividual> untypedIndividuals = new HashSet<>(); OWLOntology activeOntology = getOWLModelManager().getActiveOntology(); Set<OWLOntology> importsClosure = activeOntology.getImportsClosure(); for (OWLNamedIndividual individual : activeOntology.getIndividualsInSignature(Imports.INCLUDED)) { Collection<OWLClassExpression> types = EntitySearcher.getTypes(individual, importsClosure); if (types.size() == 0) { untypedIndividuals.add(individual); } } return untypedIndividuals; }