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 Summary

  Modifier and Type
  Method
  Description
  `static String`
  `generateIRIBasedOnLabel(String classURI, String label)`
  Create a unique IRI for the class URI and the label.
  `static String`
  `generateUniqueIRI()`
  Creates a unique IRI using the UUID scheme.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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