Forgot to add a hint on the SXML mapping. To see the SXML mapping you need, open an XML file in the format you want directly in Composer. This will show the desired mapping between XML and RDF. -- Scott
On Jul 6, 5:30 pm, Scott Henninger <[email protected]> wrote: > Catrina; There are two basic ways to approach this using Composer. > The first is to use SXML. The key here is to transform the RDF into a > structure that will define the xml format you want. This will use > sxml:element, sxml:attribute, composite:child, etc. See the following > for more: > Help > TopBraid Composer > Import and Export > Creating, Importing, > Querying, Saving XML documents with Semantic XML > > The second way is to use Semantic JSP to create text output matching > the XML structure you want. The advantage of this approach is that > you could use SPARQL queries (using Semantic JSP) to generate whatever > ordering you want. See the following for more: > Help > TopBraid Composer > Import and Export > Generating XML/HTML > documents with Semantic Java Server Pages > > -- Scott > > On Jul 2, 3:06 pm, Catrina <[email protected]> wrote: > > > I'm looking for a way to convert my RDF into a format similar to RDF/ > > XML-ABBREV (which can be found with TBC). Ultimately, I'd like to get > > to a point where I could import and export into and out of Composer > > with such an XML format. I want to use a format similar to RDF/XML- > > ABBREV, because my data contains multiple property values for a single > > property on a single node. My data also contains properties that may > > also contain properties. > > > The RDF to XML SPARQLMotion module cannot be used in such examples > > since my data contains the multiple properties. XML only allows one > > attribute value per attribute name per element. But, RDF allows such > > properties to exists and we'd like to represent this in XML somehow. > > > For example, if my RDF in Composer contains multiple property values > > on an instance of a class and nested RDF (such as a property that > > contains properties of its own), it may look something like the > > following in N3: > > <http://www.owl-ontologies.com/myRDFfile#node1> > > a samVocab:Node ; > > samVocab:prop "A value", "Another value" ; > > composite:child <http://www.owl-ontologies.com/ > > myRDFfile#node2> ; > > samVocab:hasPropClassB <http://www.owl-ontologies.com/ > > myRDFfile#node1sClassBinstance> . > > > <http://www.owl-ontologies.com/myRDFfile#node2> > > a samVocab:Node ; > > samVocab:prop "node 2's value 1", "node 2's value 2" . > > > <http://www.owl-ontologies.com/myRDFfile#node1sClassBinstance> > > a samVocab:ClassB ; > > samVocab:propA "class B's propertyA value" ; > > samVocab:propB "class B's propertyB value" . > > > I want to be able to export this RDF into an XML format similar to the > > one below (which is a bit like the RDF/XML-ABBREV format). > > <samVocab:Node> > > <samVocab:prop>A value</samVocab:prop> > > <samVocab:prop>Another value</samVocab:prop> > > <samVocab:ClassB> > > <samVocab:propA>class B's propertyA value</samVocab:propA> > > <samVocab:propB>class B's propertyB value</samVocab:propB> > > </samVocab:ClassB> > > <samVocab:Node> > > <samVocab:prop>node 2's value 1</samVocab:prop> > > <samVocab:prop>node 2's value 2</samVocab:prop> > > </samVocab:Node> > > </samVocab:Node> > > > I also want to be able to import the XML above into Composer by using > > a predefined data model. The samVocab:Node needs to be mapped to a > > Class named 'Node' in Composer, where each <samVocab:Node> XML element > > should result in an instance of my Class Node. The samVocab:prop > > values need to be mapped to a property named 'prop' that I created in > > Composer. > > > I've created a data model in RDF using the sxml:attribute property to > > map XML attributes to RDF properties. However, I'd also like to map > > XML elements like 'samVocab:prop' to RDF properties. How can I create > > such a mapping by using a predefined data model? > > > Since my data contains many different property names, I'd like to use > > a generic process to perform such XML to RDF conversions and RDF to > > XML conversions. > > > Thanks, > > Catrina --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. 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-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
