Catrina; It is the case that we have changed the sml:RDFXML
serialization from Jena's "RDF/XML Abbrev" to "RDF/XML serialization"
in TBS 3.4.  This is required for EVN and some other applications.  We
will add a new serialization for ReturnRDF, etc., named
sml:RDFXMLAbbrev that will produce the "RDF/XML Abbrev" you are using.
We will include this in 3.4.3.  We can provide a beta version for you,
and 3.4.3 should be released within the next few days.

However, we do need to point out that the purpose of ReturnRDF is to
produce RDF/XML in a format that can be parsed by an RDF tool.  So it
really shouldn't matter which of these serialization formats are used
because they produce equivalent RDF.  If XML output in a specific
format is required, then we strongly encourage the use of ReturnXML.
XML can be produced in a SPARQLMotion script through either Semantic
XML (ConvertRDFToXML), using XSLT (ConvertXMLByXSLT), or text
templates (ReturnText).

-- Scott

On Mar 24, 1:52 pm, Catrina <[email protected]>
wrote:
> Scott,
>
> I should clarify, I want the results similar to what was returned in
> the TB 3.3.5 value as shown above.  Setting the serialization to
> RDFXML gets me the result shown in the TB 3.4.2 example shown above.
> So that being said, that means that setting the serialization to XML
> or RDFXML results in similar results (the one in the TB 3.4.2 example
> return value).
>
> ~Catrina
>
> On Mar 24, 2:19 pm, Scott Henninger <[email protected]>
> wrote:
>
> > Catrina; Try sml:RDFXML as the serialization.
>
> > -- Scott
>
> > On Mar 24, 12:20 pm, Catrina <[email protected]>
> > wrote:
>
> > > I have some SPARQLMotion scripts that are defined in SPIN functions
> > > using the sml:ReturnRDF modules.  Some of my return modules have the
> > > sml:serialization settings set to sm:XML.  In TopBraid 3.3.5 my return
> > > markup came back as nested XML.  However, in TopBraid 3.4.2, my
> > > returned XML comes back different and is a flat XML format, which
> > > looks more like RDF XML.
>
> > > For example, I have included two returned results from running my
> > > script from Ensemble.  One return result came from TopBraid 3.3.5 and
> > > the other result came from TopBraid 3.4.2.  This has caused a problem
> > > in processes that pick up these return results from the script calls
> > > since the XML markup is not returned in 3.4.2 as expected.
>
> > > RETURN XML RESULTS FROM TOPBRAID 3.3.5:
> > > <?xml version="1.0"?>
> > > <rdf:RDF
> > >     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
> > >                 ...........
> > >     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";>
> > >   <oext:modelBackupResultList>
> > >     <oext:hasModelBackupResult>
> > >       <oext:modelBackupResult>
> > >         <oext:oModelName>KNOS_Tester1_obk_20110324_121218</
> > > oext:oModelName>
> > >         <oext:oOutF>/DataDir/Export/RDFXML/
> > > KNOS_Tester1_obk_20110324_121218.rdf</oext:oOutF>
> > >       </oext:modelBackupResult>
> > >     </oext:hasModelBackupResult>
> > >     <oext:hasModelBackupResult>
> > >       <oext:modelBackupResult>
> > >         <oext:wkModelName>KNOS_Tester1_wkbk_20110324_121217</
> > > oext:wkModelName>
> > >         <oext:wkOut>/DataDir/Export/RDFXML/
> > > KNOS_Tester1_wkbk_20110324_121217.rdf</oext:wkOut>
> > >       </oext:modelBackupResult>
> > >     </oext:hasModelBackupResult>
> > >   </oext:modelBackupResultList>
> > > </rdf:RDF>
>
> > > RETURN XML RESULTS FROM TOPBRAID 3.4.2:
> > > <?xml version="1.0"?>
> > > <rdf:RDF
> > >     xmlns:spinowl="http://topbraid.org/spin/spinowl#";
> > >                 ...........
> > >     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"; >
> > >   <rdf:Description rdf:nodeID="A0">
> > >     <oext:oModelName>KNOS_dev_obk_20110324_120049</oext:oModelName>
> > >     <oext:oOutF>/DataDir/Export/RDFXML/
> > > KNOS_dev_obk_20110324_120049.rdf</oext:oOutF>
> > >     <rdf:type rdf:resource="http://www.oururl.com/
> > > oracleExtraction#modelBackupResult"/>
> > >   </rdf:Description>
> > >   <rdf:Description rdf:nodeID="A1">
> > >     <rdf:type rdf:resource="http://www.oururl.com/
> > > oracleExtraction#modelBackupResultList"/>
> > >     <oext:hasModelBackupResult rdf:nodeID="A2"/>
> > >     <oext:hasModelBackupResult rdf:nodeID="A0"/>
> > >   </rdf:Description>
> > >   <rdf:Description rdf:nodeID="A2">
> > >     <oext:wkOut>/DataDir/Export/RDFXML/
> > > KNOS_dev_wkbk_20110324_120048.rdf</oext:wkOut>
> > >     <rdf:type rdf:resource="http://www.oururl.com/
> > > oracleExtraction#modelBackupResult"/>
> > >     <oext:wkModelName>KNOS_dev_wkbk_20110324_120048</oext:wkModelName>
> > >   </rdf:Description>
> > > </rdf:RDF>
>
> > > ~Catrina- Hide quoted text -
>
> > - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to