Class R2rmlTemplateLib

java.lang.Object
org.aksw.r2rml.jena.arq.impl.R2rmlTemplateLib

public class R2rmlTemplateLib extends Object
Parser for R2RML Templates such as:
  • rr:template "http://data.example.com/department/{DEPTNO}";
  • rr:template "\\{\\{\\{ \\\\o/ {TITLE} \\\\o/ \\}\\}\\}";
Author:
Claus Stadler
  • Constructor Details

    • R2rmlTemplateLib

      public R2rmlTemplateLib()
  • Method Details

    • parse

      public static org.apache.jena.sparql.expr.Expr parse(String str)
    • parseTemplateCore

      public static List<org.apache.jena.sparql.expr.Expr> parseTemplateCore(String str)
    • deparse

      public static String deparse(org.apache.jena.sparql.expr.Expr expr)
      Convert an expression created from a R2RML template string back to the R2RML template string. Raises an IllegalArgumentException if the conversion fails.
      Parameters:
      expr - The expression to be serialized as an R2RML template string
      Returns:
      The R2RML template string
    • escapeR2rml

      public static String escapeR2rml(String str)
      Escape a string to be safe for use in an R2RML template string
      Parameters:
      str -
      Returns: