Ok, I thought the shacl generation was for the current file only, not its 
imports.

When I delete the import, ie having the file attached, I still get an error:
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".

But now the shacl code seems generated…

Using latest window version.

Gr michel





Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl>

Location<http://www.tno.nl/locations/DTS>



[cid:image001.gif@01D7D0CC.B77A9990]<http://www.tno.nl/>

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.




From: topbraid-users@googlegroups.com <topbraid-users@googlegroups.com> On 
Behalf Of David Price
Sent: Wednesday, November 3, 2021 11:56 AM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] error for shaclgeneration

Hi Michel,

I removed the import of sml

  owl:imports <https://w3id.org/sml/rdfs/def> ;

did a bit of cleanup and ran the rest of the attached TTL in OWL2SHACL Composer 
6.4 (old one I had opened) and it worked fine.

Suggestion clearing your workspace, etc to see if it’s from that or figure out 
what’s “odd” in the imported graph.

Also, when reporting this kind of thing please be specific about version of TBC 
being used.

FWIW I agree that the error reporting in Java apps is just terrible - it’s 
NullPointerException all the way down :-(

Cheers,
David


On 3 Nov 2021, at 10:15, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
<topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>> wrote:

Dear TQ

When I convert my fairly simple RDFS ontology (attached) to shacl (in TBC-ME) I 
get:

<image002.png>
Resulting in an near-empty shacl file (only prefixes and ontology header).

Any idea? rdfs ontology loads fine in TBC.

Ps error stack:

java.lang.NullPointerException
              at 
org.topbraidcomposer.core.session.TBCSession.updateDeletableGraphs(TBCSession.java:432)
              at 
org.topbraidcomposer.core.session.TBCSession.isDeletable(TBCSession.java:250)
              at 
org.topbraidcomposer.core.session.TBCSession.isDeletable(TBCSession.java:245)
              at 
org.topbraid.core.model.Statements.isDeletable(Statements.java:325)
              at 
org.topbraidcomposer.widgets.row.editors.AbstractEditorText.updateState(AbstractEditorText.java:637)
              at 
org.topbraidcomposer.widgets.row.editors.AbstractEditorText.<init>(AbstractEditorText.java:154)
              at 
org.topbraidcomposer.widgets.row.editors.AbstractLiteralEditorText.<init>(AbstractLiteralEditorText.java:26)
              at 
org.topbraidcomposer.widgets.row.editors.LiteralEditorText.<init>(LiteralEditorText.java:28)
              at 
org.topbraidcomposer.widgets.row.editors.LiteralEditor.createEditorText(LiteralEditor.java:27)
              at 
org.topbraidcomposer.widgets.row.editors.AbstractTextRowEditor.<init>(AbstractTextRowEditor.java:28)
              at 
org.topbraidcomposer.widgets.row.editors.LiteralEditor.<init>(LiteralEditor.java:21)
              at 
org.topbraidcomposer.widgets.row.RowEditorFactory.createRowEditor(RowEditorFactory.java:85)
              at 
org.topbraidcomposer.widgets.row.RowWidgetRow.<init>(RowWidgetRow.java:163)
              at 
org.topbraidcomposer.widgets.row.ObjectRowWidgetRow.<init>(ObjectRowWidgetRow.java:26)
              at 
org.topbraidcomposer.widgets.row.ObjectRowWidget.createRowWidgetRow(ObjectRowWidget.java:226)
              at 
org.topbraidcomposer.widgets.row.RowWidget.addRow(RowWidget.java:212)
              at 
org.topbraidcomposer.widgets.row.RowWidget.initialize(RowWidget.java:378)
              at org.eclipse.ui.forms.ManagedForm.addPart(ManagedForm.java:83)
              at 
org.topbraidcomposer.editors.forms.page.ResourceFormPage.createWidget(ResourceFormPage.java:659)
              at 
org.topbraidcomposer.editors.forms.page.ResourceFormPage.addAll(ResourceFormPage.java:273)
              at 
org.topbraidcomposer.editors.forms.page.ResourceFormPage.addAll(ResourceFormPage.java:339)
              at 
org.topbraidcomposer.editors.forms.page.ResourceFormPage.addAll(ResourceFormPage.java:339)
              at 
org.topbraidcomposer.editors.forms.page.ResourceFormPage.addAll(ResourceFormPage.java:207)
              at 
org.topbraidcomposer.editors.forms.page.ResourceFormPage.createFormContent(ResourceFormPage.java:618)
              at 
org.eclipse.ui.forms.editor.FormPage.lambda$0(FormPage.java:166)
              at 
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
              at 
org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:166)
              at 
org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:480)
              at 
org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1032)
              at 
org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:612)
              at 
org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:518)
              at 
org.topbraidcomposer.editors.ResourceEditor.updateAllPages(ResourceEditor.java:1383)
              at 
org.topbraidcomposer.editors.ResourceEditor$2.partActivated(ResourceEditor.java:232)
              at 
org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:4894)
              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
              at 
org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4891)
              at 
org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:219)
              at 
org.eclipse.e4.ui.internal.workbench.PartServiceImpl$2.run(PartServiceImpl.java:249)
              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
              at 
org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:246)
              at 
org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:770)
              at 
org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:679)
              at 
org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:674)
              at 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3203)
              at 
org.eclipse.ui.internal.WorkbenchPage.lambda$9(WorkbenchPage.java:3100)
              at 
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
              at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3098)
              at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3068)
              at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3051)
              at 
org.topbraidcomposer.editors.utils.OpenInComposerTBC$1.run(OpenInComposerTBC.java:47)
              at 
org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
              at 
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
              at org.eclipse.swt.widgets.Display.syncExec(Display.java:4742)
              at 
org.topbraidcomposer.editors.utils.OpenInComposerTBC.ensureEditorOpen(OpenInComposerTBC.java:38)
              at 
org.topbraidcomposer.editors.utils.OpenInComposerTBC.openInComposerHelper(OpenInComposerTBC.java:87)
              at 
org.topbraidcomposer.editors.utils.OpenInComposerTBC.openAndSetSession(OpenInComposerTBC.java:60)
              at 
org.topbraidcomposer.editors.utils.OpenInComposerTBC.openInComposer(OpenInComposerTBC.java:33)
              at 
org.topbraidcomposer.shacl.converter.ConvertToSHACLWizard.performFinish(ConvertToSHACLWizard.java:157)
              at 
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:832)
              at 
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:472)
              at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
              at 
org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
              at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
              at 
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4209)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
              at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4026)
              at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3626)
              at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
              at org.eclipse.jface.window.Window.open(Window.java:799)
              at 
org.topbraidcomposer.shacl.converter.ConvertToSHACLAction.run(ConvertToSHACLAction.java:18)
              at 
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:239)
              at 
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:218)
              at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
              at 
org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:414)
              at 
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4209)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
              at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4026)
              at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3626)
              at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
              at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
              at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
              at 
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
              at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
              at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
              at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
              at 
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
              at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
              at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
              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:401)
              at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
              at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)
              at java.base/java.lang.reflect.Method.invoke(Unknown Source)
              at 
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
              at org.eclipse.equinox.launcher.Main.main(Main.java:1434)



Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl>

Location<http://www.tno.nl/locations/DTS>



<image005.gif><http://www.tno.nl/>

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.





--
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-users+unsubscr...@googlegroups.com<mailto:topbraid-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/c10576e97bb046cab34fc6a946a30220%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/c10576e97bb046cab34fc6a946a30220%40tno.nl?utm_medium=email&utm_source=footer>.
<bsdd-rdfs.ttl>

UK +44 (0) 7788 561308
US +1 (336) 283-0808

--
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-users+unsubscr...@googlegroups.com<mailto:topbraid-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/148C0D5F-E73F-48D8-A2E2-D1BE27E0B5D3%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/148C0D5F-E73F-48D8-A2E2-D1BE27E0B5D3%40topquadrant.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 topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/5d3e108ac63f4236b79dd6c93d0a5e98%40tno.nl.

Attachment: noimport-bsdd-rdfs.ttl
Description: noimport-bsdd-rdfs.ttl

Attachment: noimport-bsdd-rdfs.shapes.ttl
Description: noimport-bsdd-rdfs.shapes.ttl

Reply via email to