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