Map<String, Vocabulary> prefixesMap = new HashMap<String, Vocabulary>();
JSONArray prefixesArr = ParsingUtilities.evaluateJsonStringToArray(request.getParameter("prefixes"));
for(int i =0;i<prefixesArr.length();i++){
JSONObject prefixObj = prefixesArr.getJSONObject(i);
String name = prefixObj.getString("name");
prefixesMap.put(name,new Vocabulary(name, prefixObj.getString("uri")));
}
getRdfSchema(request).setPrefixesMap(prefixesMap);
String projectId = request.getParameter("project");
getRdfContext().getVocabularySearcher().synchronize(projectId, prefixesMap.keySet());