Here you can find the source of getOntologyURIBase(String defaultBase, boolean appendYear, boolean appendMonth, boolean appendDay)
public static String getOntologyURIBase(String defaultBase, boolean appendYear, boolean appendMonth, boolean appendDay)
//package com.java2s; import java.util.Calendar; public class Main { public static String getOntologyURIBase(String defaultBase, boolean appendYear, boolean appendMonth, boolean appendDay) { if (defaultBase != null && defaultBase.trim().length() > 0) { if (defaultBase.endsWith("/") == false) { defaultBase += "/"; }// w ww .j a v a 2s . c om if (appendYear) { int year = Calendar.getInstance().get(Calendar.YEAR); defaultBase += year + "/"; if (appendMonth) { int month = Calendar.getInstance().get(Calendar.MONTH) + 1; defaultBase += month + "/"; if (appendDay) { int day = Calendar.getInstance().get( Calendar.DAY_OF_MONTH); defaultBase += day + "/"; } } } } return defaultBase; } }