Help in importing instances to classes in Top Braid Composer

56 views
Skip to first unread message

Monika Yadav

unread,
Jul 19, 2019, 1:23:06 AM7/19/19
to TopBraid Suite Users
Hello Sir,
I have data in xml format.
  I wanted to convert xml to .ttl format in top braid.
 I am able to import from XSD to  .ttl. But instances of class does not copied by converting from xsd to .ttl because xsd only have structure file. Now please suggest me some way how to import instances to claases in .ttl file in top braid. I have tried the option of " Import from spreadsheet tab delimlited file"  .but again it has impoeted 675 instances of one class only I have 8 classes and this option is not copying imstances of other classes. Please help me out

Irene Polikoff

unread,
Jul 19, 2019, 1:55:43 AM7/19/19
to topbrai...@googlegroups.com
Monica,

These page describes the process for importing XML when you have a corresponding XSD https://topbraidcomposer.org/html/Import_XSD.htm. Alternatively, you can simply open XML file by double clicking - as described here https://topbraidcomposer.org/html/XMap.htm.

Spreadsheet import will always create instances of one class. For example, if each row contains information about a Person including Organizations they work for and Countries they were born in, you can import all information as properties of a Person. Then, once in RDF, run some transformations to create instances of Organization and Country. The simplest way to do transformation is to select a class and then select “Extract class” in the Resource menu. This will open a dialog that would let you create instances of another, related class and move some of the data to these instances. Other ways to transform data include using SPARQL and SPINMap.

There are several different spreadsheet importers. The one you are referring to is documented here https://topbraidcomposer.org/html/Import_Spreadsheets.htm. Alternatively, you could import the same spreadsheet multiple times creating different mappings. For an overview of different spreadsheet import capabilities, take a look at https://www.topquadrant.com/download/using-topbraid-to-work-with-spreadsheet-data/?wpdmdl=15930&refresh=5d31588dcb5ba1563515021.



--
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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/4cde453b-a462-40f3-ae40-59c311513f47%40googlegroups.com.

Monika Yadav

unread,
Jul 23, 2019, 3:16:53 AM7/23/19
to TopBraid Suite Users
Hey Irene,
I have imported the instance from excel but while doing importing to current ontology 
An unexpected error has occured.

If you believe this is due to an issue with TopBraid Composer, then please consider to report the problem to composersupport@topquadrant.com and ideally include an export of the Error Log View (Window > Show View > Error Log).

On: Jul 19, 2019 1:31:34 PM

Reason:
org.topbraid.spin.sparqlmotion.modules.SMException: Failed to convert spreadsheet

at org.topbraid.spreadsheets.module.ConvertSpreadsheetToRDFModule.createGraph(ConvertSpreadsheetToRDFModule.java:119)

at org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getRDFOutput(AbstractSMModule.java:921)

at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:172)

at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:118)

at org.topbraidcomposer.spreadsheets.wizard.ImportSpreadsheetWizard.runImport(ImportSpreadsheetWizard.java:183)

at org.topbraidcomposer.spreadsheets.wizard.ImportSpreadsheetWizard.access$0(ImportSpreadsheetWizard.java:147)

at org.topbraidcomposer.spreadsheets.wizard.ImportSpreadsheetWizard$1.execute(ImportSpreadsheetWizard.java:106)

at org.topbraid.core.change.ChangeOperation.execute(ChangeOperation.java:105)

at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:488)

at org.topbraid.core.change.AbstractChangeEngine.execute(AbstractChangeEngine.java:288)

at org.topbraidcomposer.core.change.TBCChangeEngine.access$0(TBCChangeEngine.java:1)

at org.topbraidcomposer.core.change.TBCChangeEngine$2.run(TBCChangeEngine.java:159)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Caused by: java.lang.Exception

at org.topbraid.spreadsheets.util.SpreadsheetUtil.isSpreadsheetEmpty(SpreadsheetUtil.java:848)

at org.topbraid.spreadsheets.mapper.AbstractMapEngine.runReally(AbstractMapEngine.java:154)

at org.topbraid.spreadsheets.mapper.AbstractMapEngine.run(AbstractMapEngine.java:149)

at org.topbraid.spreadsheets.module.ConvertSpreadsheetToRDFModule.createGraph(ConvertSpreadsheetToRDFModule.java:116)

... 12 more

Monika Yadav

unread,
Jul 23, 2019, 3:17:34 AM7/23/19
to topbrai...@googlegroups.com
Hey Irene,
I have imported the 
An unexpected error has occured.

If you believe this is due to an issue with TopBraid Composer, then please consider to report the problem to compose...@topquadrant.com and ideally include an export of the Error Log View (Window > Show View > Error Log).


On: Jul 19, 2019 1:31:34 PM

Reason:
org.topbraid.spin.sparqlmotion.modules.SMException: Failed to convert spreadsheet

at org.topbraid.spreadsheets.module.ConvertSpreadsheetToRDFModule.createGraph(ConvertSpreadsheetToRDFModule.java:119)

at org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getRDFOutput(AbstractSMModule.java:921)

at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:172)

at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:118)

at org.topbraidcomposer.spreadsheets.wizard.ImportSpreadsheetWizard.runImport(ImportSpreadsheetWizard.java:183)

at org.topbraidcomposer.spreadsheets.wizard.ImportSpreadsheetWizard.access$0(ImportSpreadsheetWizard.java:147)

at org.topbraidcomposer.spreadsheets.wizard.ImportSpreadsheetWizard$1.execute(ImportSpreadsheetWizard.java:106)

at org.topbraid.core.change.ChangeOperation.execute(ChangeOperation.java:105)

at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:488)

at org.topbraid.core.change.AbstractChangeEngine.execute(AbstractChangeEngine.java:288)

at org.topbraidcomposer.core.change.TBCChangeEngine.access$0(TBCChangeEngine.java:1)

at org.topbraidcomposer.core.change.TBCChangeEngine$2.run(TBCChangeEngine.java:159)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Caused by: java.lang.Exception

at org.topbraid.spreadsheets.util.SpreadsheetUtil.isSpreadsheetEmpty(SpreadsheetUtil.java:848)

at org.topbraid.spreadsheets.mapper.AbstractMapEngine.runReally(AbstractMapEngine.java:154)

at org.topbraid.spreadsheets.mapper.AbstractMapEngine.run(AbstractMapEngine.java:149)

at org.topbraid.spreadsheets.module.ConvertSpreadsheetToRDFModule.createGraph(ConvertSpreadsheetToRDFModule.java:116)

... 12 more



--
Regards:
Monika Yadav
Assistant Professor
M.Tech (Computer Science)


Holger Knublauch

unread,
Jul 23, 2019, 3:58:08 AM7/23/19
to topbrai...@googlegroups.com

Hi Monika,

it seems that you have opened an Excel file while the wizard expects a Tab-Separated Values (.tsv) file. Could you export to .tsv from Excel and try again?

If this doesn't help, please provide details of your choices in the wizard and (unless private) an example file that you are trying to load.

Holger

--
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 topbraid-user...@googlegroups.com.

Monika Yadav

unread,
Jul 23, 2019, 4:39:39 AM7/23/19
to topbrai...@googlegroups.com
I saving excel file as Text (Tab delimited). PFA for file  i am importing. I am able to import this file to top braid. But after importing second step which will include importing to current ontology giving me error.


On Tue, Jul 23, 2019 at 1:28 PM Holger Knublauch <hol...@topquadrant.com> wrote:

Hi Monika,

it seems that you have opened an Excel file while the wizard expects a Tab-Separated Values (.tsv) file. Could you export to .tsv from Excel and try again?

If this doesn't help, please provide details of your choices in the wizard and (unless private) an example file that you are trying to load.

Holger


On 23/07/2019 17:16, Monika Yadav wrote:
Hey Irene,
I have imported the instance from excel but while doing importing to current ontology 
An unexpected error has occured.

If you believe this is due to an issue with TopBraid Composer, then please consider to report the problem to compose...@topquadrant.com and ideally include an export of the Error Log View (Window > Show View > Error Log).
Drug10000.txt

Holger Knublauch

unread,
Jul 23, 2019, 7:27:09 AM7/23/19
to topbrai...@googlegroups.com

This error depends on the chosen target ontology. Furthermore, the rows in the file that you have attached don't look correct - they have plenty of line breaks instead of tabs.

Holger

Irene Polikoff

unread,
Jul 24, 2019, 12:08:47 AM7/24/19
to topbrai...@googlegroups.com
Monica,

Please provide a detailed step by step description of what you are doing, the kind of error you are getting and what you expect the result to be. It is not clear, for example, what you mean by the “second step”.

I see that you have attached a file and it looks like your data is not really tabular but rather contain a hierarchy of some sort. None of the spreadsheet import options in TBC directly supported building a hierarchy. Hierarchical imports are supported in TopBraid EDG. 

Monika Yadav

unread,
Jul 24, 2019, 2:23:02 AM7/24/19
to topbrai...@googlegroups.com
Hey Irene,
Hey Holger,
Actually I want to import xml data to Top Braid.
I want to convert xml to ontology together with its instances.
Steps which i am followings are:
1. converting XML to Excel by simply opening xml file to excel 2010.e.g My file is test.xml
2. saving excel file as Text(tab delimlited). Now it becomes test.txt
3. Importing test.txt by using top braid:
For this I have made a folder under Top braid.
1. Right Click on that Folder -->> Import-->Top Braid->  Import Tab delimited spreadsheet File.
2. browsing test.txt file and changing class name as required.
3. Finish
4. As a result .ttl file get created by taking first column as class instances and other column as properties of that class
5. Now I want to import instances to data type properties .
6. In order to copy instances to data type properties we again do import -> Import Tab delimited spreadsheet File.
           Now we checked the import to current ontology.
           so, after this m getting error as mentioned earlier and not able to add instances of other column.
Suggest me some other way or how to resolve this issue.

or if there is other way to convert xml to ontology with instances .


Holger Knublauch

unread,
Jul 24, 2019, 2:28:04 AM7/24/19
to topbrai...@googlegroups.com

Have you tried the following:

1) Copy the .xml file into the TBC workspace
2) Double-click the .xml file to open it with TopBraid

This will translate all XML element types into OWL classes, the attributes to RDF properties, and all elements into corresponding RDF instances. This approach is called Semantic XML in the documentation, and includes the ability to map the instances into an existing ontology.

Holger

Monika Yadav

unread,
Jul 24, 2019, 3:07:31 AM7/24/19
to topbrai...@googlegroups.com
When I am copying the xml file and opening it directly. it is giving me following error:
a.lang.RuntimeException: org.eclipse.ui.PartInitException: Editor could not be initialized.
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:792)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:363)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:150)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:340)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:931)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:151)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:375)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:294)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:74)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:56)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:975)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:651)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:757)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:728)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:722)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:104)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:233)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4821)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:211)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:201)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:94)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:60)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:173)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:617)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:581)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:770)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:401)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3261)
at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3176)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3158)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3153)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3117)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3107)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:563)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:518)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:100)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:97)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:225)
at org.eclipse.ui.navigator.CommonNavigatorManager$2.open(CommonNavigatorManager.java:191)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:46)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:855)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:852)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1169)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:451)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: org.eclipse.ui.PartInitException: Editor could not be initialized.
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3188)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3197)
at org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredTextEditor.java:2651)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:240)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:214)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.addSourcePage(XMLMultiPageEditorPart.java:515)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:771)
... 101 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:596)
at java.lang.StringBuffer.append(StringBuffer.java:367)
at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.setDocumentContent(ResourceTextFileBuffer.java:549)
at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:265)
at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:248)
at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.createFileInfo(TextFileDocumentProvider.java:560)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:478)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4178)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:229)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1466)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:150)
at org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(StructuredTextEditor.java:1958)
at org.eclipse.ui.texteditor.AbstractTextEditor$5.run(AbstractTextEditor.java:3154)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:437)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:353)
at org.eclipse.ui.internal.WorkbenchWindow$14.run(WorkbenchWindow.java:2184)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2180)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3172)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3197)
at org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredTextEditor.java:2651)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:240)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:214)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.addSourcePage(XMLMultiPageEditorPart.java:515)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:771)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:363)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:150)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:340)

Holger Knublauch

unread,
Jul 24, 2019, 3:17:16 AM7/24/19
to topbrai...@googlegroups.com

The error indicates out-of-memory, but it also uses the default Eclipse XML editor.

With TBC-ME 6.2.3, the following should work (right-click on the file to get to that menu):

HTH
Holger

Monika Yadav

unread,
Jul 25, 2019, 1:08:28 AM7/25/19
to topbrai...@googlegroups.com
Hey Hoger,
I am attached error while following above mentioned step. How to resolve this issue?
Actually my data file is big its about 900 Mb because of that I am getting out of memory exception . Please Help me out? I am new to top braid and facing problem in using it.

prob.png

Holger Knublauch

unread,
Jul 25, 2019, 1:20:30 AM7/25/19
to topbrai...@googlegroups.com

From the FAQ at https://www.topquadrant.com/knowledge-assets/faq/tbc/ under Can I increase the amount of memory for Composer:

---

Increasing the amount of memory available to Composer involves setting the -Xmx value for the maximum Java heap size. The setting is packaged in the .ini file with the command line parameters for starting Composer.

For Windows, use the “TopBraid Composer.ini.orig” file. This will ensure the settings stay the same even if other Eclipse applications try to change it.
Open the file with a text editor. The -Xmx value can be set to any whole number, such as “-Xmx800m”. However, if the value exceeds the amount of memory that can be allocated to the JVM by your system, Composer will not start. If this occurs, edit the .ini/.orig file for a smaller size until Composer starts.

For Macintosh users, the .ini file is packaged with the application. Find the application file, it will be named “TopBraid Composer”, and right-click to choose ‘Choose Package Contents’. The ‘TopBraid Composer.ini’ is found in the Contents/MacOS folder.

The maximum size for the Java heap is highly dependent on the system setup, including JVM limitations (32- vs. 64-bit), and available memory. Java heap is allocated in contiguous memory. The effective maximum size for a 32-bit Windows machine tends to be about 1024m (but can be 1000m, etc.). 64-bit machines with larger amounts of RAM can set the maximum heap size (with the -Xmx setting) to larger sizes.

---

In any case, 900 MB sounds like a show stopper to me as you'd need a database to stream that into. I'd say you will likely be better off with some hand-written solution.

HTH
Holger

Monika Yadav

unread,
Jul 25, 2019, 3:56:59 AM7/25/19
to topbrai...@googlegroups.com
I have tried this  and again I am getting the below mentioned error
Operation failed.

On: Jul 25, 2019 11:33:14 AM

Reason:
java.lang.NullPointerException at org.topbraid.core.model.Classes.getMetaClasses(Classes.java:547) at org.topbraid.core.model.Classes.computeMetaClasses(Classes.java:44) at org.topbraidcomposer.core.session.AbstractSessionWithCache.getCachedMetaClasses(AbstractSessionWithCache.java:70) at org.topbraid.core.model.Classes.getMetaClasses(Classes.java:165) at org.topbraidcomposer.editors.ResourceEditorLauncher.checkVisibility(ResourceEditorLauncher.java:280) at org.topbraidcomposer.editors.ResourceEditorLauncher.access$4(ResourceEditorLauncher.java:279) at org.topbraidcomposer.editors.ResourceEditorLauncher$5.run(ResourceEditorLauncher.java:598) at org.topbraidcomposer.core.io.TBCIO$2.run(TBCIO.java:464) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Reply all
Reply to author
Forward
0 new messages