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

Examples of edu.stanford.bmir.protege.web.shared.axiom.AxiomTypeGroup


            return getDisplayName(object);
        }

        private String getDisplayName(UsageReference object) {
            final AxiomType axiomType = object.getAxiomType();
            AxiomTypeGroup axiomTypeGroup = AxiomTypeGroup.getAxiomTypeGroup(axiomType);
            if (axiomTypeGroup != AxiomTypeGroup.OTHER) {
                return axiomTypeGroup.getDisplayName();
            }
            else {
                return axiomType.getName();
            }
        }
View Full Code Here


        }

        @Override
        public void render(Cell.Context context, UsageReference object, SafeHtmlBuilder sb) {
            sb.appendEscaped(getDisplayName(object));
            AxiomTypeGroup axiomTypeGroup = AxiomTypeGroup.getAxiomTypeGroup(object.getAxiomType());
            final Optional<OWLRDFVocabulary> owlrdfVocabulary = axiomTypeGroup.getOWLRDFVocabulary();
            if(owlrdfVocabulary.isPresent()) {
                final OWLRDFVocabulary vocabulary = owlrdfVocabulary.get();
                String shortName = vocabulary.getNamespace().name().toLowerCase() + ":" + vocabulary.getShortName();
                sb.appendHtmlConstant("<br><span style=\"color: gray; font-size: 90%;\">(" + shortName +  ")</span>");
            }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.axiom.AxiomTypeGroup

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.