Examples of SKOSType


Examples of org.xbib.elasticsearch.index.analysis.skos.tokenattributes.SKOSTypeAttribute.SKOSType

        }
        List<SKOSType> types = new LinkedList<SKOSType>();
        if (typeString != null) {
            for (String s : typeString.split(" ")) {
                try {
                    SKOSType st = SKOSType.valueOf(s.toUpperCase());
                    if (st != null) {
                        types.add(st);
                    }
                } catch (IllegalArgumentException e) {
                    throw new ElasticsearchIllegalArgumentException("The property 'skosType' must be one of PREF, ALT, HIDDEN, BROADER, NARROWER, BROADERTRANSITIVE, NARROWERTRANSITIVE, RELATED");
View Full Code Here

Examples of org.xbib.elasticsearch.index.analysis.skos.tokenattributes.SKOSTypeAttribute.SKOSType

    protected void processTermOnStack() throws IOException {
        ExpandedTerm expandedTerm = termStack.pop();

        String term = expandedTerm.getTerm();

        SKOSType termType = expandedTerm.getTermType();

        String sTerm;
        try {
            sTerm = analyze(analyzer, term, new CharsRef()).toString();
        } catch (IllegalArgumentException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.