SPARQLMotion sml:ExportToXMLFile takes a lot of time

4 views
Skip to first unread message

PaulZH

unread,
Dec 17, 2011, 12:50:18 PM12/17/11
to TopBraid Suite Users
I have a script in which I (sml:IterateOverSelect) iterate over
instances.
At the end of the iteration I do a conversion from RDF/XML to HTML
using XSLT and save this file to the filesystem.
The strange thing is that this saving to the filesystem takes about 2
minutes.

Some info from the console:
18:28:16.642: - Import sesame remote repository
18:28:16.647: - Apply OWLIM
18:30:05.584: - Iterate over Instances
18:30:05.595: - Import HTML XSLT
18:30:05.707: - Apply 2 Instances
18:30:05.726: - Apply for n3
18:30:05.733: - Export 2 local n3
18:30:06.198: - Filter n3 by construct
18:30:06.205: - Apply for RDF
18:30:06.209: - Export 2 local RDF
18:30:06.229: - Import RDF File
18:30:06.259: - Import Grit XSLT
18:30:06.296: - Convert Instance By Grit XSLT
18:30:06.390: - Convert Instance By HTML XSLT
18:30:06.499: - Export to HTML
--- START SECOND ITERATION --
18:32:40.052: - Import HTML XSLT
18:32:40.077: - Apply 2 Instances
18:32:40.086: - Apply for n3
18:32:40.090: - Export 2 local n3
18:32:40.093: - Filter n3 by construct
18:32:40.098: - Apply for RDF
18:32:40.102: - Export 2 local RDF
18:32:40.107: - Import RDF File
18:32:40.113: - Import Grit XSLT
18:32:40.135: - Convert Instance By Grit XSLT
18:32:40.196: - Convert Instance By HTML XSLT
18:32:40.304: - Export to HTML
18:34:43.369: Finished executing SPARQLMotion script.

On the file system itself the html file appears 2 minutes after the
rdf from which it is derived.
Size of the generated html is 12 to 13 Kb.

The definition of this module is:
:ExportToHTML
a sml:ExportToXMLFile ;
rdfs:label "Export to HTML"^^xsd:string ;
sm:nodeX -65 ;
sm:nodeY 1809 ;
sml:replace "true"^^xsd:boolean ;
sml:targetFilePath "out/{?prefix}/{?label}.html"^^xsd:string ;
sml:xml "{?html}"^^rdf:XMLLiteral .

Any suggestion why this takes so long and how to remedy this?


Scott Henninger

unread,
Dec 17, 2011, 1:31:57 PM12/17/11
to TopBraid Suite Users
Paul; The sml:ExportToXMLFile does XML validation before writing. Can
you try just exporting the text file?

-- Scott

PaulZH

unread,
Dec 19, 2011, 5:04:21 AM12/19/11
to TopBraid Suite Users
Thanks Scott,

This made my day.

On Dec 17, 7:31 pm, Scott Henninger <shennin...@topquadrant.com>
wrote:

Reply all
Reply to author
Forward
0 new messages