Hi Pat,
thank you for reply!

Actually I'm not using sml:ConvertXMLToRDF, I just need to get RDF from 
taxonomy and compose custom XML based on this RDF.
Do you know better way how to do it?

Thank you.

Best regards,
Oleksandr Mandryk

On Monday, March 6, 2017 at 10:47:02 PM UTC+1, Pat Doyle wrote:
>
> 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 <[email protected] <javascript:>>
> Date: Mon, Mar 6, 2017 at 9:40 AM
> Subject: [topbraid-users] Export RDF to custom XML
> To: TopBraid Suite Users <[email protected] <javascript:>>
>
>
> 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";>
> NodeLabel</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 [email protected] 
> <javascript:>
> --- 
> 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] <javascript:>.
> 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 [email protected]
--- 
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.

Reply via email to