Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.IRI.subSequence()


    public void testSubSequence() {
        String str = "http://owlapi.sourceforge.net#ABC";
        IRI iri = IRI(str);
        for (int i = 0; i < str.length(); i++) {
            for (int j = i; j < str.length(); j++) {
                assertEquals(str.subSequence(i, j), iri.subSequence(i, j));
            }
        }
    }

    @Test
View Full Code Here


            if(!entity.isBuiltIn()) {
                IRI iri = entity.getIRI();
                String iriString = iri.toString();
                if(iriString.startsWith(fromPrefix)) {
                    StringBuilder sb = new StringBuilder(toPrefix);
                    sb.append(iri.subSequence(fromPrefix.length(), iri.length()));
                    IRI toIRI = IRI.create(sb.toString());
                    renameMap.put(entity, toIRI);
                }
            }
        }
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.