I have a list of XML files that I want to process in SparqlMotion. I
have created a tab-delimited text file that includes all the files I
want to process (1 file per line). I import that file and convert it
to RDF and pass the RDF into an "IterateOverSelect" module which
executes a SPARQL query that simply returns/formats a file name. The
body of the "IterateOverSelect" module attempts to import the xml file
(whereby I will subsequently do additional processing - however, I am
simply trying to get the import XML to work so there is no further
processing yet).
The variable/parameter in the ImportXML module (i.e.the "body" of the
IterateOverSelect) is "sml:sourceFilePath" (which I have left blank so
it will use the variable bound from the IterateOverSelect). The
SPARQL query in the IterateOverSelect is as follows:
SELECT ?sourceFilePath
WHERE {
?node a :XMLFileName .
?node :hasFileName ?file .
?node :hasFileName "DR8907.xml" .
LET (?sourceFilePath := smf:cast(smf:concat("Data/iddb3/", ?file),
xsd:string)) .
}
NOTE: I have intentionally hard-coded he "DR8907.xml" file so as to
have the SPARQL return only 1 file just for testing. I have verified
that this query does, indeed, return the formatted filename as I want
it to. However, I cannot get the ImportXML file to use the
"sourceFilePath" variable as the import. The error I get indcates
that TopBraid cannot open the file. However, the file it identifies
does not include the parameter I passed to it.
Am I doing anything wrong? I am using the v3 production.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---