Klasse StaticFunctions

java.lang.Object
alps.java.api.util.StaticFunctions

public class StaticFunctions extends Object
  • Felddetails

    • BASE_URI_SEPARATOR

      public static final char BASE_URI_SEPARATOR
      Siehe auch:
  • Konstruktordetails

    • StaticFunctions

      public StaticFunctions()
  • Methodendetails

    • replaceBaseUriWithGeneric

      public static String replaceBaseUriWithGeneric(String input, String baseuri)
      Replaces a base uri contained in a string with a generic placeholder. Example: http://www.imi.kit.edu/exampleBaseURI#MyModel1 will return baseuri:MyModel1. The baseuri name mapping is defined in the triple store graph. This way, the base uri can be changed without changing all triples.
      Parameter:
      input - The string that MAY contain a base uri
      Gibt zurück:
      the string without specific base uri
    • removeBaseUri

      public static String removeBaseUri(String input, String baseuri)
      Replaces a base uri contained in a string with a generic placeholder. Example: http://www.imi.kit.edu/exampleBaseURI#MyModel1 will return baseuri:MyModel1. The baseuri name mapping is defined in the triple store graph. This way, the base uri can be changed without changing all triples.
      Parameter:
      input - The string that MAY contain a base uri
      baseuri -
      Gibt zurück:
      the string without specific base uri
    • addGenericBaseURI

      public static String addGenericBaseURI(String input)