Right. Same regression error as before. Fixed for 5.3 release.
Thanks,
Holger
On 10/04/2017 17:48, Oleksandr Mandryk wrote:
Hi Holger,
thank you very much!
It's exactly what I needed, but looks like there is the same issue
with the serialization as it was in ReturnRDF.
Both sml:RDFXML and sml:RDFXMLAbbrev in smf:convertRDFToText produce
the same output. Could you please have a look on it?
Thank you!
Best regards,
Oleksandr Mandryk
On Monday, April 10, 2017 at 1:53:41 AM UTC+2, Holger Knublauch wrote:
To produce a string (e.g. RDF/XML) from a graph, you can use the
SPARQL function smf:convertRDFToText:
smf:convertRDFToText (spin:Function)
Converts the current RDF graph to text. Optionally the
serialization of the RDF graph as text can be given. By default,
the serialization is Turtle.
Arguments
*sp:arg1* (rdfs:Resource): [Optional] The optional serialization
format of the output. By default, it is Turtle. This value should
be an instance of "sml:RDFSerialization" from the sparqlmotionlib
ontology, for example sml:RDFXML.
*sp:arg2* (rdfs:Resource): [Optional] An optional pointer to the
URI of a .context.json file - only used for JSON-LD.
Return type
* string
HTH
Holger
On 7/04/2017 17:44, Oleksandr Mandryk wrote:
Hi Richard,
thank you for reply!
1) I've checked module "Export to XML file", but there is no
property xml:serialization in this module, so I can't apply
RDFXML serialization before saving.
And actually it would be better to do it on the fly in memory, so
this question is still open.
2) Looks like it works with "Import text file" module, thank you
for hint!
Best regards
Oleksandr Mandryk
On Thursday, April 6, 2017 at 6:45:26 PM UTC+2, Richard Cyganiak
wrote:
Hi Oleksandr,
1) You could try writing the RDF/XML to a temporary file, and
then reading that file as an XML file with ImportXMLFile.
2) You could try reading the XSLT with ImportXMLFile and
passing the result as the template variable for ConvertXMLByXSLT.
Richard
On 6 Apr 2017, at 07:03, Oleksandr Mandryk
<[email protected]> wrote:
Hi,
As a continuation of this topic
<https://groups.google.com/forum/#%21topic/topbraid-users/nIbsRgX5IUQ>
I'm wondering which SPARQLMotion modules I have to use to build
a script that retrieves taxonomy, converts it to XML using
RDFXML serialization and then converts it to another XML
using ConvertXMLByXSLT module.
I've tried to do it like this:
<https://lh3.googleusercontent.com/-fkqNfvQRCL4/WOYfpsmc92I/AAAAAAAABCQ/1Yl96LaFFM8NcZ8QYHevTaMZ63IVgTdFwCLcB/s1600/ConvertXMLByXSLTExample.png>
but it doesn't work, because ConvertXMLByXSLT module throws
an exception with the message "Caused by:
org.topbraid.spin.sparqlmotion.modules.SMException: Expected
XML value for variable xml"
So I have few questions:
1) What I can use instead of ReturnRDF to apply RDFXML
serialization and return the result as a variable (that is
needed for ConvertXMLByXSLT module)?
2) Is it possible to use filename/filepath in the template
property of ConvertXMLByXSLT instead of putting whole schema
to this property?
Thank you!
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]
---
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
<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]
<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
<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]
<mailto:[email protected]>.
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.