Oleksandr, It seems you're using sml:ConvertRDFToXML - are you using sml:ConvertXMLToRDF at any point earlier to initially convert some XML data to RDF?
The reason I ask is because sml:ConvertRDFToXML is not meant to be called against arbitrary RDF data - you'd typically use it in order to round-trip some XML data from XML to RDF for processing then back to XML. More information about this module can be found in the SPARQLMotion Functions Library in the TBCME Help under *TopBraid Composer *--> *Reference *--> *SPARQLMotion Module Library Reference*. Let me know if this helps, Pat ---------- Forwarded message ---------- From: Oleksandr Mandryk <icoder...@gmail.com> Date: Mon, Mar 6, 2017 at 9:40 AM Subject: [topbraid-users] Export RDF to custom XML To: TopBraid Suite Users <topbraid-users@googlegroups.com> Hi, I'm trying to create a SPARQLMotion script that will export specified taxonomy to the custom XML output. Currently my script is based no these modules: *spl:Argument* -> *sml:ImportRDFFromWorkspace* -> *sml:ConvertRDFToXML* -> *sml:ReturnXML* But when I run this script I get only the first (root) node of the specified projectGraph: <skos:Concept xmlns:composite="http://www.topbraid.org/2007/05/composite.owl " xmlns:skos="http://www.w3.org/2004/02/skos/core" skos:prefLabel=Root Test Node"/> So I have a few questions: 1) Is my approach correct? I mean spl:Argument -> sml:ImportRDFFromWorkspace -> sml:ConvertRDFToXML -> sml:ReturnXML 2) Why I'm receiving only first node as result but not all? 3) How to specify a custom template for the XML, for example I need something like this: <rdf:RDF xmlns:ui="http://uispin.org/ui#" xmlns:let="http://uispin.org/let#" ... > <rdf:Description rdf:about="http://test.com/Concept_7c932ea3-2b5b-11b2- 8037-eac2f42a0c5a"> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Nod eLabel</rdfs:label> <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> <skos:broader rdf:resource="http://test.com/#Concept_7c932e90-2b5b-11b2- 8037-eac2f42a0c5a"/> <skos:narrower rdf:resource="http://test.com/#Concept_7c932ea8-2b5b-11b2- 8037-eac2f42a0c5a"/> <skos:narrower rdf:resource="http://test.com/#Concept_7c932ea5-2b5b-11b2- 8037-eac2f42a0c5a"/> ... other properties </rdf:Description> ... </rdf:RDF> Thank you very much! Best regards, Oleksandr Mandryk -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com --- 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 topbraid-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com --- 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 topbraid-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.