Package org.aksw.r2rml.jena.arq.impl
Class R2rmlTemplateLib
java.lang.Object
org.aksw.r2rml.jena.arq.impl.R2rmlTemplateLib
Parser for R2RML Templates such as:
- rr:template "http://data.example.com/department/{DEPTNO}";
- rr:template "\\{\\{\\{ \\\\o/ {TITLE} \\\\o/ \\}\\}\\}";
- Author:
- Claus Stadler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdeparse(org.apache.jena.sparql.expr.Expr expr) Convert an expression created from a R2RML template string back to the R2RML template string.static StringescapeR2rml(String str) Escape a string to be safe for use in an R2RML template stringstatic org.apache.jena.sparql.expr.Exprstatic List<org.apache.jena.sparql.expr.Expr> parseTemplateCore(String str)
-
Constructor Details
-
R2rmlTemplateLib
public R2rmlTemplateLib()
-
-
Method Details
-
parse
-
parseTemplateCore
-
deparse
Convert an expression created from a R2RML template string back to the R2RML template string. Raises anIllegalArgumentExceptionif the conversion fails.- Parameters:
expr- The expression to be serialized as an R2RML template string- Returns:
- The R2RML template string
-
escapeR2rml
Escape a string to be safe for use in an R2RML template string- Parameters:
str-- Returns:
-