Convert Rdf to xml and then export to local file Sparql Motion script

234 views
Skip to first unread message

John Perdoni

unread,
Mar 12, 2012, 5:17:08 AM3/12/12
to topbrai...@googlegroups.com
Hi I have the following sparqlMotion script which works fine

                arg1------>

sml:ImportRDFFromWorkspace--------->sml:ApplyConstruct-------->sml:ReturnRDF
                      ----->
              arg2

I wish in addition to take the constructed triples and export them to an a local xml file

I created a local file /testExport/text.xml, and added sml:ConvertRDFToXML and sml:ExportToXMLFile( with sml:TargetFilePath set to /testExport/test.xml)in series to sml:ApplyContstruct

The script runs without any errors but the file is not populated . What am i missing

Regards

John

Scott Henninger

unread,
Mar 12, 2012, 9:56:12 AM3/12/12
to TopBraid Suite Users
John, you may want to check with the documentation for
sml:ConvertRDFToXML, which I will repeat here:

"Converts RDF into XML using the Semantic XML (sxml) ontology for the
round-tripping. The resulting XML will be bound to the specified
output variable. Note that this requires the RDF model to contain an
SXML root document element - this function does not work with
arbitrary RDF data! For more, see Help > Import and Export >
Creating, Importing, Querying, Saving XML documents with Semantic
XML."

For more on the format the RDF data needs to be in, see documentation
on Semantic XML (Help > Import and Export
Creating, Importing > Querying, Saving XML documents with Semantic
XML)

If you are looking to save your data in RDF/XML, then just specify
a .rdf file in the sml:ReturnRDF or sml:ExportToRDFFile module.

-- Scott
Reply all
Reply to author
Forward
0 new messages