@Override public Collection<Class> getClasses() { HashSet<Class> rv = new HashSet<Class>(); for (OWLClass val : onto.getClassesInSignature()) { if (val instanceof OWLClass) { rv.add(new OWLAPIClass((OWLClass) val, onto)); } } return rv; }
@Override @Deprecated public Set<OWLClass> getClassesInSignature(Imports imports) { return withReadLock(() -> delegate.getClassesInSignature(imports)); }
@Override @Deprecated public Set<OWLClass> getClassesInSignature(Imports imports) { return withReadLock(() -> delegate.getClassesInSignature(imports)); }
@Override @Deprecated public Set<OWLClass> getClassesInSignature(boolean b) { return withReadLock(() -> delegate.getClassesInSignature(b)); }
@Override @Deprecated public Set<OWLClass> getClassesInSignature(boolean b) { return withReadLock(() -> delegate.getClassesInSignature(b)); }
@Override @Deprecated public Set<OWLClass> getClassesInSignature(boolean b) { return withReadLock(() -> delegate.getClassesInSignature(b)); }
@Override protected int getEntityCount() { return getRootOntology().getClassesInSignature(true).size(); } }
public void preProcessing() { for (OWLClass cls : ontology.getClassesInSignature()) { hashToRetrieveClass.put(getLabel(cls).trim().toLowerCase(), cls); } }
@Override @Deprecated public Set<OWLClass> getClassesInSignature(Imports imports) { return withReadLock(() -> delegate.getClassesInSignature(imports)); }
private void importOntologyClasses(OWLOntology o, File inDir, Authorizations authorizations) throws IOException { for (OWLClass ontologyClass : o.getClassesInSignature()) { importOntologyClass(o, ontologyClass, inDir, authorizations); } }
public Set<OWLClass> getRootClasses() { Set<OWLClass> listOfTopClasses = new HashSet<>(); for (OWLClass cls : ontology.getClassesInSignature()) { if (ontology.getSubClassAxiomsForSubClass(cls).isEmpty() && ontology.getEquivalentClassesAxioms(cls).isEmpty()) listOfTopClasses.add(cls); } return listOfTopClasses; }
public Set<OWLClass> getRootClasses() { Set<OWLClass> listOfTopClasses = new HashSet<OWLClass>(); for (OWLClass cls : ontology.getClassesInSignature()) { if (ontology.getSubClassAxiomsForSubClass(cls).size() == 0 && ontology.getEquivalentClassesAxioms(cls).size() == 0) listOfTopClasses.add(cls); } return listOfTopClasses; }
protected int getIntMetric() { Set<OWLClass> clses = new HashSet<>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { clses.addAll(ont.getClassesInSignature()); } return clses.size(); } }
public SimpleEntityCandidateGenerator(OWLOntology ontology) { super(ontology); allEntities.addAll(ontology.getClassesInSignature()); allEntities.addAll(ontology.getObjectPropertiesInSignature()); allEntities.addAll(ontology.getDataPropertiesInSignature()); }
public static Map<OWLEntity, Double> getRelevantEntities(OWLEntity entity, OWLOntology ontology, RelevanceMetric metric){ Set<OWLEntity> owlEntities = new TreeSet<>(); owlEntities.addAll(ontology.getClassesInSignature()); owlEntities.addAll(ontology.getDataPropertiesInSignature()); owlEntities.addAll(ontology.getObjectPropertiesInSignature()); // Set<OWLEntity> otherEntities = OWLAPIConverter.getEntities(new HashSet<OWLEntity>(new ArrayList<OWLEntity>(owlEntities).subList(0, 20))); owlEntities.remove(entity); return getRelevantEntities(entity, owlEntities, metric); }
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 rebuildImplicitRoots() { Stopwatch stopwatch = Stopwatch.createStarted(); logger.info("{} Rebuilding class hierarchy", projectId); rootFinder.clear(); for (OWLOntology ont : rootOntology.getImportsClosure()) { Set<OWLClass> ref = ont.getClassesInSignature(); rootFinder.appendTerminalElements(ref); } rootFinder.finish(); logger.info("{} Rebuilt class hierarchy in {} ms", projectId, stopwatch.elapsed(MILLISECONDS)); }
protected void updateView(OWLOntology activeOntology) throws Exception { Set<AnonymousClassItem> clses = new HashSet<>(); AnonymousDefinedClassManager ADCManager = getOWLModelManager().get(AnonymousDefinedClassManager.ID); if (ADCManager != null){ for (OWLClass cls : activeOntology.getClassesInSignature()){ if (ADCManager.isAnonymous(cls)){ clses.add(new AnonymousClassItem(cls)); } } } list.setListData(clses.toArray()); }
public void rebuildImplicitRoots() { rootFinder.clear(); for (OWLOntology ont : ontologies) { Set<OWLClass> ref = ont.getClassesInSignature(); rootFinder.appendTerminalElements(ref); } rootFinder.finish(); }
public RuleRenaming(NormalizedOWLQLTbox tbox) { super(); this.tbox = tbox; this.fac = tbox.getFactory(); oprops = tbox.getNormalizedOntology().getObjectPropertiesInSignature(); dprops = tbox.getNormalizedOntology().getDataPropertiesInSignature(); classes = tbox.getNormalizedOntology().getClassesInSignature(); }