Package edu.stanford.bmir.protege.web.server.mansyntax

Examples of edu.stanford.bmir.protege.web.server.mansyntax.WebProtegeOntologyIRIShortFormProvider


    }

    private List<AutoCompletionChoice> getNameOntologyAutocompletionChoices(OWLAPIProject project, ParserException e, EditorPosition fromPos, EditorPosition toPos, String lastWordPrefix) {
        List<AutoCompletionChoice> choices = Lists.newArrayList();
        if(e.isOntologyNameExpected()) {
            WebProtegeOntologyIRIShortFormProvider sfp = new WebProtegeOntologyIRIShortFormProvider(project.getRootOntology());
            for(OWLOntology ont : project.getRootOntology().getImportsClosure()) {
                String ontologyName = sfp.getShortForm(ont);
                if(lastWordPrefix.isEmpty() || ontologyName.toLowerCase().startsWith(lastWordPrefix)) {
                    choices.add(new AutoCompletionChoice(ontologyName, ontologyName, "cm-ontology-list", fromPos, toPos));
                }
            }
        }
View Full Code Here


        setupBuiltInEntities();

        shortFormProvider = new WebProtegeBidirectionalShortFormProvider(project);

        ontologyIRIShortFormProvider = new WebProtegeOntologyIRIShortFormProvider(project.getRootOntology());

        entityIRIChecker = new ManchesterSyntaxObjectRenderer
                .EntityIRIChecker() {
            @Override
            public boolean isEntityIRI(IRI iri) {
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.server.mansyntax.WebProtegeOntologyIRIShortFormProvider

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.