Package org.protege.editor.owl.model.hierarchy

Examples of org.protege.editor.owl.model.hierarchy.OWLDataPropertyHierarchyProvider


                    entityData.setLocalAnnotationsCount(notesCount);
                    result.add(entityData);
                }
            }
            else if (entity.isOWLDataProperty()) {
                OWLDataPropertyHierarchyProvider hierarchyProvider = project.getDataPropertyHierarchyProvider();
                Set<OWLDataProperty> subProperties = hierarchyProvider.getChildren(entity.asOWLDataProperty());
                for (OWLDataProperty subProperty : subProperties) {
                    final EntityData entityData = rm.getEntityData(subProperty);
                    int notesCount = project.getNotesManager().getDirectNotesCount(subProperty);
                    entityData.setLocalAnnotationsCount(notesCount);
                    result.add(entityData);
                }
            }
            else if (entity.isOWLAnnotationProperty()) {
                OWLAnnotationPropertyHierarchyProvider hierarchyProvider = project.getAnnotationPropertyHierarchyProvider();
                Set<OWLAnnotationProperty> subProperties = hierarchyProvider.getChildren(entity.asOWLAnnotationProperty());
                for (OWLAnnotationProperty subProperty : subProperties) {
                    final EntityData entityData = rm.getEntityData(subProperty);
                    int notesCount = project.getNotesManager().getDirectNotesCount(subProperty);
                    entityData.setLocalAnnotationsCount(notesCount);
                    result.add(entityData);
View Full Code Here


                        result.addAll(rm.getEntityData(provider.getAncestors(owlObjectProperty)));
                    }
                }

                public void visit(OWLDataProperty owlDataProperty) {
                    OWLDataPropertyHierarchyProvider provider = project.getDataPropertyHierarchyProvider();
                    if(direct) {
                        result.addAll(rm.getEntityData(provider.getParents(owlDataProperty)));
                    }
                    else {
                        result.addAll(rm.getEntityData(provider.getAncestors(owlDataProperty)));
                    }
                }

                public void visit(OWLNamedIndividual owlNamedIndividual) {
                    // No parents
                }

                public void visit(OWLDatatype owlDatatype) {
                    // No parents
                }

                public void visit(OWLAnnotationProperty owlAnnotationProperty) {
                    OWLAnnotationPropertyHierarchyProvider provider = project.getAnnotationPropertyHierarchyProvider();
                    if(direct) {
                        result.addAll(rm.getEntityData(provider.getParents(owlAnnotationProperty)));
                    }
                    else {
                        result.addAll(rm.getEntityData(provider.getAncestors(owlAnnotationProperty)));
                    }
                }
            });
        }
        return result;
View Full Code Here

        classHierarchyProvider.setOntologies(manager.getOntologies());

        objectPropertyHierarchyProvider = new OWLObjectPropertyHierarchyProvider(manager);
        objectPropertyHierarchyProvider.setOntologies(manager.getOntologies());

        dataPropertyHierarchyProvider = new OWLDataPropertyHierarchyProvider(manager);
        dataPropertyHierarchyProvider.setOntologies(manager.getOntologies());

        annotationPropertyHierarchyProvider = new OWLAnnotationPropertyHierarchyProvider(manager);
        annotationPropertyHierarchyProvider.setOntologies(manager.getOntologies());
View Full Code Here

TOP

Related Classes of org.protege.editor.owl.model.hierarchy.OWLDataPropertyHierarchyProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.