Package org.iirds.rdf

Class IRIUtils

java.lang.Object
org.iirds.rdf.IRIUtils

public final class IRIUtils extends Object
Utility methods to generate IRIs
Author:
Martin Kreutzer, Empolis Information Management GmbH
  • Method Details

    • generateUniqueIRI

      public static String generateUniqueIRI()
      Creates a unique IRI using the UUID scheme.
      Returns:
      the IRI
    • generateIRIBasedOnLabel

      public static String generateIRIBasedOnLabel(String classURI, String label)
      Create a unique IRI for the class URI and the label. When calling the method the same parameters again, the same IRI will be returned.
      Parameters:
      classURI - the IRI if of the metadata class
      label - the label
      Returns:
      the IRI