Class NIFUriHelper

java.lang.Object
org.aksw.gerbil.io.nif.utils.NIFUriHelper

public class NIFUriHelper extends Object
  • Constructor Details

    • NIFUriHelper

      public NIFUriHelper()
  • Method Details

    • getDocumentUriFromNifUri

      public static String getDocumentUriFromNifUri(String nifUri)
      Transforms the NIF URI http://example.org/document_1#char=0,120 into the document URI http://example.org/document_1.
      Parameters:
      nifUri - the URI the document has inside the NIF model
      Returns:
      the documents URI without the character position information
    • getNifUri

      public static String getNifUri(Document document, int endPosition)
    • getNifUri

      public static String getNifUri(String documentURI, int start, int end)