private String toName(String fileName) {
            String shortName = new File(fileName).getName();
            return shortName.substring(0, shortName.length() - ".sr".length());
        }
Builds the semantic rules for an application package and validates them
config-model/src/main/java/com/yahoo/vespa/model/container/search/SemanticRules.java