Composer doesn't have an output format like this. If you know SPARQL, you should be able to write a query that achieves this. Step 1, write a query that selects the label or URI of all the classes you want (1 class per line). Step 2, change the query to use SPARQL string functions to get each line into the 'xxx' format including the single quotes. Step 3, change the query to use SPARQL's GROUP_CONCAT feature to join all Iines to one line.
Richard > On 1 Feb 2021, at 06:14, [email protected] <[email protected]> wrote: > > Hello Everyone, > I am using top braid composer maestro edition and I want to extract all > classes or subclasses from ontology in a .py file . Content of file should be > as shown in screen shot attached. > Anyone Please suggest!! > > -- > 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/c09ae5d5-a983-4aa7-811c-6ec1754c7ea6n%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/c09ae5d5-a983-4aa7-811c-6ec1754c7ea6n%40googlegroups.com?utm_medium=email&utm_source=footer>. > <ontology_list.png> -- 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/715AE962-C328-48C6-AD25-462FD9280775%40topquadrant.com.
