> On 26 Apr 2019, at 11:07, Sanjeev Devireddy <[email protected]>
> wrote:
>
> There is a SPARQL Motion module sml:DeleteFile, which can be used to delete a
> file at a time, by specifying that file's path. Can this module or any other
> module of SPARQL Motion be used to delete all the existing files in a folder
> by specifying a regular expression (like *.* or *.xml) or so, without knowing
> the names of the files in that folder?
No, but one can use the tops:files property function in a SPARQL query to list
all files matching your criteria, and use sml:IterateOverSelect to run
sml:DeleteFile for each matching file.
For example, this query lists all .txt files in the workspace:
SELECT ?filePath {
?filePath tops:files ("/" true)
FILTER regex(?filePath, "\\.txt$")
}
Hope that helps,
Richard
--
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.