On 7/03/2017 0:40, Oleksandr Mandryk wrote:
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:Conceptxmlns:composite="http://www.topbraid.org/2007/05/composite.owl"xmlns:skos="http://www.w3.org/2004/02/skos/core"skos:prefLabel=RootTestNode"/>
|

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:Descriptionrdf:about="http://test.com/Concept_7c932ea3-2b5b-11b2-8037-eac2f42a0c5a";>
<rdfs:labelrdf:datatype="http://www.w3.org/2001/XMLSchema#string";>NodeLabel</rdfs:label>
<rdf:typerdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>

<skos:broaderrdf:resource="http://test.com/#Concept_7c932e90-2b5b-11b2-8037-eac2f42a0c5a"/>

<skos:narrowerrdf:resource="http://test.com/#Concept_7c932ea8-2b5b-11b2-8037-eac2f42a0c5a"/>
<skos:narrowerrdf:resource="http://test.com/#Concept_7c932ea5-2b5b-11b2-8037-eac2f42a0c5a"/>


  ... other properties

</rdf:Description>

...

</rdf:RDF>

|


This output looks very much like RDF/XML. How does it differ, and could you simply use sml:ReturnRDF?

Holger



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 <mailto: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.

Reply via email to