Package org.semanticweb.owlapi.vocab

Examples of org.semanticweb.owlapi.vocab.OWLRDFVocabulary


        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 org.semanticweb.owlapi.vocab.OWLRDFVocabulary

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.