Tabnine Logo
VersionInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
VersionInfo
in
it.unibz.inf.ontop.utils

Best Java code snippets using it.unibz.inf.ontop.utils.VersionInfo (Showing top 6 results out of 315)

origin: ontop/ontop

  @Override
  public void run() {
    //String version = getClass().getPackage().getImplementationVersion();

    VersionInfo versionInfo = VersionInfo.getVersionInfo();

    System.out.println(String.format("ontop version %s", versionInfo.toString()));
  }
}
origin: ontop/ontop

public synchronized static VersionInfo getVersionInfo() {
  if (instance == null) {
    instance = new VersionInfo();
  }
  return instance;
}
origin: ontop/ontop

@GetMapping(value = "/")
public ModelAndView home(HttpServletRequest request) {
  Map<String, String> model = new HashMap<>();
  model.put("version", VersionInfo.getVersionInfo().getVersion());
  model.put("endpointUrl", request.getRequestURL().toString() + "sparql");
  model.put("yasguiUrl", request.getRequestURL().toString() + "yasgui");
  return new ModelAndView("index", model);
}
origin: ontop/ontop

/**
 * extract version from {@link it.unibz.inf.ontop.utils.VersionInfo}, which is from the file {@code version.properties}
 */
private static Version extractVersion() {
  VersionInfo versionInfo = VersionInfo.getVersionInfo();
  String versionString = versionInfo.getVersion();
  String[] splits = versionString.split("\\.");
  int major = 0;
  int minor = 0;
  int patch = 0;
  int build = 0;
  try {
    major = Integer.parseInt(splits[0]);
    minor = Integer.parseInt(splits[1]);
    patch = Integer.parseInt(splits[2]);
    build = Integer.parseInt(splits[3]);
  } catch (Exception ignored) {
  }
  return new Version(major, minor, patch, build);
}
origin: it.unibz.inf.ontop/ontop-quest-owlapi

/**
 * extract version from {@link it.unibz.inf.ontop.utils.VersionInfo}, which is from the file {@code version.properties}
 */
private void extractVersion() {
  VersionInfo versionInfo = VersionInfo.getVersionInfo();
  String versionString = versionInfo.getVersion();
  String[] splits = versionString.split("\\.");
  int major = 0;
  int minor = 0;
  int patch = 0;
  int build = 0;
  try {
    major = Integer.parseInt(splits[0]);
    minor = Integer.parseInt(splits[1]);
    patch = Integer.parseInt(splits[2]);
    build = Integer.parseInt(splits[3]);
  } catch (Exception ignored) {
  }
  version = new Version(major, minor, patch, build);
}
origin: it.unibz.inf.ontop/ontop-obdalib-core

public synchronized static VersionInfo getVersionInfo() {
  if (instance == null) {
    instance = new VersionInfo();
  }
  return instance;
}
it.unibz.inf.ontop.utilsVersionInfo

Most used methods

  • getVersionInfo
  • getVersion
    Gets a string that contains the version of this build. This is generated from the manifest of the ja
  • <init>
  • toString

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now