Package edu.stanford.bmir.protege.web.shared.entity

Examples of edu.stanford.bmir.protege.web.shared.entity.OWLClassData


                }
            }
            if (relationships.size() == conjuncts.size()) {
                for (OWLObjectSomeValuesFrom rel : relationships) {
                    OWLObjectPropertyData property = toData(rel.getProperty().asOWLObjectProperty(), project);
                    OWLClassData filler = toData(rel.getFiller().asOWLClass(), project);
                    OBORelationship oboRel = new OBORelationship(property, filler);
                    rels.add(oboRel);
                }
            }
        }
View Full Code Here


                    genus = (OWLClass) conjunct;
                }
            }
        }
        Set<OBORelationship> discriminatingRelationships = new HashSet<OBORelationship>();
        OWLClassData visualCls = null;
        if (genus != null) {
            visualCls = toData(genus, project);
        }

        for (OWLObjectSomeValuesFrom rel : relationships) {
            OWLObjectPropertyData property = toData(rel.getProperty().asOWLObjectProperty(), project);
            OWLClassData filler = toData(rel.getFiller().asOWLClass(), project);
            OBORelationship oboRel = new OBORelationship(property, filler);
            discriminatingRelationships.add(oboRel);
        }
        return new OBOTermCrossProduct(visualCls, new OBOTermRelationships(discriminatingRelationships));
View Full Code Here

        OWLAPIProject project = getProject(projectId);
        OWLDataFactory df = project.getDataFactory();

        Set<OWLClassExpression> intersectionOperands = new HashSet<OWLClassExpression>();

        OWLClassData visualGenus = crossProduct.getGenus();
        if (visualGenus != null) {
            OWLClass cls = toOWLClass(df, visualGenus.getEntity());
            intersectionOperands.add(cls);
        }

        for (OBORelationship relationship : crossProduct.getRelationships().getRelationships()) {
            OWLObjectSomeValuesFrom someValuesFrom = toSomeValuesFrom(df, relationship);
View Full Code Here

        return dataFactory.getOWLClass(cls.getIRI());
    }


    private OWLClassData toData(OWLClass cls, OWLAPIProject project) {
        return new OWLClassData(cls, project.getRenderingManager().getBrowserText(cls));
    }
View Full Code Here

            return Optional.absent();
        }
        if(!relationshipsField.getValue().isPresent()) {
            return Optional.absent();
        }
        final OWLClassData genus = (OWLClassData) genusField.getValue().get();
        final OBOTermRelationships relationships = new OBOTermRelationships(new HashSet<OBORelationship>(relationshipsField.getValue().get()));
        return Optional.of(new OBOTermCrossProduct(genus, relationships));
    }
View Full Code Here

        when(browserTextProvider.getOWLEntityBrowserText(clsA)).thenReturn(Optional.<String>of("A"));

        BrowserTextMap map = new BrowserTextMap(signature, browserTextProvider);

        Collection<OWLEntityData> entityData = map.getOWLEntityData();
        assertEquals(Collections.<OWLEntityData>singleton(new OWLClassData(clsA, "A")), entityData);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.entity.OWLClassData

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.