Gokce; It's rather difficult to dive into a complex XSD like this
one.  One thought is to use an incremental approach.  If you have a
working version, then add parts until it fails.  That's for the
"Import XML Schemas and Instance files" XSD/XML importer.  If you have
a small example with specific parts you feel are not working properly,
please let us know with a small example exhibiting the problems.

In terms of Semantic XML, I think you may have misinterpreted the Help
files (or, more precisely, what do you mean by "guidelines documents"
- the Help files?).  In Semantic XML, each XML element/tag name is
mapped into an OWL class.  No instances of classes are generated.
However, you could create a custom SPARQLMotion script that transforms
the XML elements to instances created from your schema.  See
http://www.topquadrant.com/products/SPARQLMotion.html and the
SPARQLMotion tutorial found at http://www.topquadrant.com/products/support.html.

The key idea behind Semantic XML is that the XML document is
represented in a set of triples (RDF graph) that retains all
information about the XML document structure - the element/sub-element
relationships, order of sibling elements, element attributes, etc.
One in this regular RDF form, one can use SPARQL to query and
transform the XML structure to any RDF that is needed for use in your
application.

-- Scott

On Jul 8, 1:12 am, Gökçe Banu Laleci <[email protected]> wrote:
> Hi,
>
> We need to create an RDF representation of a quite complex XSD, and
> have an XML conforming to this Schema to be translated in RDF. We
> tried a number of tools, but due to the complexity of the XSD most of
> them failed to create an RDF representation. Luckily through the
> Import XSD/XML option of Topbraid composer we created almost a
> complete mapping in RDF. However when we also added the XML file
> together with the XSD, the RDF created out of XML file is almost
> empty. I tried with simpler XSD and XML examples, where I was able to
> map both XSD and XML correctly. I found out that Topbraid also
> provides support for Semantic XML document. I followed the guidelines
> in the documents and created an RDF from the XSD through the import
> XML method (including SXML annotations), then created another ontology
> where the ontology created from the XSD and the XML is imported,
> however, unlike what is being said in the guidelines, new classes have
> been created for the XML file instead of creating them as instances of
> the classes of the previously created ontology.
>
> We have uploaded the XSD and XML files we tried to the following
> address:
>
> "http://195.142.27.166/tasi/salus/packageXSDXML.zip";.
>
> The main XSD is CDA.xsd, the other XSD's are included by it, and the
> XML I want to translate is "SampleCCD.xml". We will be grateful if you
> can guide us about how to use Topbraid composer for this.
>
> Thank you in advance and best regards,
>
> Gokce B. Laleci

-- 
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