You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping you can provide me some guidance on using a regular expression as a parameter to a function to replace (more like substitute) the value of a literal object using a regular expression.
I need to slug the "Name" value so the string is URI safe according to our standards. e.g., if value of Name was "Hey Mister Tally M#n" we need the string to be slug'd to "Hey-Mister-Tally-M-n" (we have the regexp that does the conversion properly)
To start, I updated the Name value in student.csv file to "Hey Mister Tally M#n" and attempted to use grel:string_replace the object of foaf:Name with no success. Any help is greatly appreciated.
It would also appreciate guidance on how would I apply the function to {Name} in rr:subjectMap [ rr:template ]
The result I get from the rule/function:
{"message":"Error while executing the rules.","log":"23:02:42.082 [main] ERROR be.ugent.rml.cli.Main .main(404) - null\n","stack":"Error: Error while executing the rules.\n at ChildProcess.<anonymous> (/rmlmapper-webapi-js/node_modules/@rmlio/rmlmapper-java-wrapper/lib/wrapper.js:170:23)\n at ChildProcess.emit (events.js:400:28)\n at maybeClose (internal/child_process.js:1088:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)"}
I'm hoping you can provide me some guidance on using a regular expression as a parameter to a function to replace (more like substitute) the value of a literal object using a regular expression.
Particularly "Name" in:
I need to slug the "Name" value so the string is URI safe according to our standards. e.g., if value of Name was "Hey Mister Tally M#n" we need the string to be slug'd to "Hey-Mister-Tally-M-n" (we have the regexp that does the conversion properly)
To start, I updated the Name value in student.csv file to "Hey Mister Tally M#n" and attempted to use
grel:string_replace
the object of foaf:Name with no success. Any help is greatly appreciated.It would also appreciate guidance on how would I apply the function to {Name} in rr:subjectMap [ rr:template ]
The result I get from the rule/function:
Here is what I have for a mapping.ttl:
The text was updated successfully, but these errors were encountered: