Skip to content

Commit

Permalink
fix(vocabulary): update py_data and _shapes variable name because the…
Browse files Browse the repository at this point in the history
… "$" was breaking the Python code
  • Loading branch information
ashleycaselli committed Jan 10, 2024
1 parent d63504c commit f2aeb58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Object invokeFunction(String functionName, QuerySolution bindings) throws
String varName = varNames.next();
int index = functionParams.indexOf(varName);
if (index < 0) {
index = functionParams.indexOf("$" + varName);
index = functionParams.indexOf("_" + varName);
}
if (index >= 0) {
RDFNode value = bindings.get(varName);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/topbraid/shacl/vocabulary/SH.java
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ public class SH {

public final static String JS_SHAPES_VAR = "$shapes";

public final static String Py_DATA_VAR = "$data";
public final static String Py_DATA_VAR = "_data";

public final static String Py_SHAPES_VAR = "$shapes";
public final static String Py_SHAPES_VAR = "_shapes";


public static String getURI() {
Expand Down

0 comments on commit f2aeb58

Please sign in to comment.