Hi Rob,

if you have already existing classes and properties with sxml: annotations then the algorithm should reuse those instead of creating new classes. See comment at sml:ConvertXMLToRDF:

Converts an arbitrary XML input document into an RDF graph using the Semantic XML mapping approach. The input graph of this module may contain class definitions that have sxml: declarations attached to them and these will be used for the instances. For more, see Help > Import and Export > Creating, Importing, Querying, Saving XML documents with Semantic XML.

One approach to produce a suitably annotated ontology is to import an XSD, another is to import an XML instance file, then delete the instances and adjust the namespaces. Use the resulting file as input to the sml:ConvertXMLToRDF step.

Holger


On 15/08/2019 10:07, Rob Atkinson wrote:
Checking I'm not missing something here.. can i import XML and have the model (classes and properties) in a different namespace than the instance data?

when using the <sml:ConvertXMLtoRDF> tag (NB not able to use the XML import wizard as i need a repeatable process under program control)

you have the option of specifying an XSD..

however AFAICT it forces both the model (elements => Class and property mappings) and instances into the same namespace, in the same output graph..

this is somewhat inconsistent with improvements elsewhere to separate model and instances.

I can deal with this by post-processing to strip model triples into a separate graph, and update all the namespaces .. but if there was already a way to control different namespaces for model and instances it would be much better...

Rob Atkinson
--
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]>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/c5e86483-2869-4696-96a4-fb2991ec80db%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/c5e86483-2869-4696-96a4-fb2991ec80db%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/96554864-5566-1727-cb02-6ee21d7f3528%40topquadrant.com.

Reply via email to