I will investigate further (I also had other problems having to do
with desktop and other files syncing (we're running w7 Enterprise)
that were solved yesterday),
Michel



Op 9 maart 2012 02:00 heeft Holger Knublauch <hol...@topquadrant.com>
het volgende geschreven:
> Thanks, Michel. While I cannot reproduce this either, I have made the
> corresponding code more robust in case it has to do something with timing of
> operations and corner cases.
>
> Holger
>
>
> On 3/8/2012 22:04, Bohms, H.M. (Michel) wrote:
>>
>> Do you also  get java error when opening this file (tbcme
>> 6beta/w7-64-bit)?
>>
>> I get:
>> Problems occurred when invoking code from plug-in:
>> "org.eclipse.ui.workbench".
>>
>> And then:
>> java.lang.NullPointerException
>>        at
>> org.topbraidcomposer.editors.ResourceEditor.warningsChanged(ResourceEditor.java:1355)
>>        at
>> org.topbraidcomposer.markers.warnings.DisplayWarnings.update(DisplayWarnings.java:118)
>>        at
>> org.topbraidcomposer.markers.warnings.DisplayWarnings.resourceSelected(DisplayWarnings.java:86)
>>        at
>> org.topbraidcomposer.editors.ResourceEditor.updateAllPages(ResourceEditor.java:1325)
>>        at
>> org.topbraidcomposer.editors.ResourceEditor.access$5(ResourceEditor.java:1304)
>>        at
>> org.topbraidcomposer.editors.ResourceEditor$1.partActivated(ResourceEditor.java:190)
>>        at
>> org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
>>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>        at org.eclipse.core.runtime.Platform.run(Platform.java:888)
>>        at
>> org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
>>        at
>> org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
>>        at
>> org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:187)
>>        at
>> org.eclipse.ui.internal.PartService.setActivePart(PartService.java:306)
>>        at
>> org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
>>        at
>> org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3636)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:691)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:663)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2957)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
>>        at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
>>        at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
>>        at
>> org.topbraidcomposer.editors.ResourceEditorLauncher.openResourceEditor(ResourceEditorLauncher.java:652)
>>        at
>> org.topbraidcomposer.editors.ResourceEditorLauncher.access$5(ResourceEditorLauncher.java:620)
>>        at
>> org.topbraidcomposer.editors.ResourceEditorLauncher$6.run(ResourceEditorLauncher.java:690)
>>        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>>        at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
>>        at
>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
>>        at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
>>        at
>> org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
>>        at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
>>        at
>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
>>        at
>> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
>>        at
>> org.eclipse.ui.internal.progress.ProgressManager$5.run(ProgressManager.java:960)
>>        at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>        at
>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
>>        at
>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
>>        at org.topbraidcomposer.core.io.TBCIO$3.run(TBCIO.java:390)
>>        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>>        at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
>>        at
>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
>>        at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
>>        at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
>>        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
>>        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
>>        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
>>        at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>        at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
>>        at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>        at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>>        at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>        at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>        at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>        at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
>>        at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>        at java.lang.reflect.Method.invoke(Unknown Source)
>>        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
>>        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>>        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>>        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>>
>>
>>
>> Dr. ir. H.M. (Michel) Bohms
>> Sr. Research Scientist
>> Structural Reliability
>> T +31 (0)88 866 31 07
>> M +31 (0)63 038 12 20
>> E michel.bo...@tno.nl
>>
>>
>> -----Original Message-----
>> From: topbraid-users@googlegroups.com
>> [mailto:topbraid-users@googlegroups.com] On Behalf Of Holger Knublauch
>> Sent: dinsdag 6 maart 2012 23:59
>> To: topbraid-users@googlegroups.com
>> Subject: Re: [topbraid-users] Re: Question on constraint import
>>
>> Michel,
>>
>> what you have is an untyped RDF literal, not an xsd:float. These are
>> represented by a blue box without letter on the TBC forms. Numeric
>> comparison does not work on such values. For example run
>>
>> SELECT (("24">  10) AS ?result)
>> WHERE {
>> }
>>
>> It will return "unbound", i.e. it cannot evaluate the expression.
>> However, if you change it to
>>
>> SELECT (("24"^^xsd:float>  10) AS ?result) WHERE { }
>>
>> then it works. So fixing the literal in your file should do the trick.
>> Maybe you had entered it before setting the range, and then the input
>> field did not know that you wanted an xsd:float (in the future).
>>
>> Regards,
>> Holger
>>
>>
>> On 3/7/2012 2:04, Bohms, H.M. (Michel) wrote:
>>>
>>> Its more complex than that I think.
>>>
>>> If you go to requirements.ttl and then to its LOCAL instance Square_1
>>> (not the imported one).
>>> And fill in say 14/14 the warning box is there complaining about length
>>> not beining equal to length!
>>>
>>> And you see there is no "F" in the purple xsd:float box....
>>>
>>>
>>>
>>>
>>>
>>> Dr. ir. H.M. (Michel) Bohms
>>> Sr. Research Scientist
>>> Structural Reliability
>>> T +31 (0)88 866 31 07
>>> M +31 (0)63 038 12 20
>>> E michel.bo...@tno.nl
>>>
>>>
>>> -----Original Message-----
>>> From: topbraid-users@googlegroups.com
>>> [mailto:topbraid-users@googlegroups.com] On Behalf Of Scott Henninger
>>> Sent: dinsdag 6 maart 2012 16:33
>>> To: TopBraid Suite Users
>>> Subject: [topbraid-users] Re: Question on constraint import
>>>
>>> Michel; The constraint violation you are seeing comes from the local
>>> restriction, solutions:width only xsd:float[>   "12"^^xsd:float ,<
>>> "18"^^xsd:float].  If you provide a value less than 18 and greater than 12
>>> for the width and length, there will be no constraint violation.
>>>
>>> One way to tell which rule causes the violation is to mouse over the
>>> warning triangle in Composer's Form view.  The rule will be displayed in a
>>> tool tip.  If you want to instead display a message, then add a comment to
>>> the beginning of the rule, such as "Length must be equal the width".  You
>>> can also create a constraint violation object that includes a label for
>>> displaying the warning.  A nice example is provided in the Person class of
>>> the kennedysSPIN example.
>>>
>>> -- Scott
>>>
>>> On Mar 6, 4:13 am, "Bohms, H.M. (Michel)"<michel.bo...@tno.nl>   wrote:
>>>>
>>>> In 6beta the behaviour is exactly the same.
>>>>
>>>> Hereby the files.
>>>>
>>>> 1. solutions.ttl
>>>>
>>>> The instance Square_1 with 25/25 width/length shows no constraint
>>>> warning. This is ok.
>>>>
>>>> 2.requirements.ttl
>>>>
>>>> Importing solutions.ttl DOES show a warning for the same instance!
>>>> Note also that  solutions:width has an an empty symbol when imported
>>>> (not the "F").
>>>>
>>>> (ignore the added constraints in the second file, they are not
>>>> relevant here)
>>>>
>>>> Thanks, Michel
>>>>
>>>> Dr. ir. H.M. (Michel) Bohms
>>>> Sr. Research Scientist
>>>> Structural Reliability
>>>> T +31 (0)88 866 31 07
>>>> M +31 (0)63 038 12 20
>>>> E michel.bo...@tno.nl
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: topbraid-users@googlegroups.com
>>>> [mailto:topbraid-users@googlegroups.com] On Behalf Of Scott Henninger
>>>> Sent: maandag 5 maart 2012 18:17
>>>> To: TopBraid Suite Users
>>>> Subject: [topbraid-users] Re: Question on constraint import
>>>>
>>>> Michel; We are not able to reproduce this problem, regardless of whether
>>>> the values are untyped or typed literals.  Can you give us some more
>>>> information, including what OS you are running on?
>>>>
>>>> -- Scott
>>>>
>>>> On Mar 5, 7:24 am, Michel Bohms<michel.bo...@gmail.com>   wrote:
>>>>>
>>>>> I have an ontology with:
>>>>> ASK WHERE {
>>>>>      ?this :length ?length .
>>>>>      ?this :width ?width .
>>>>>      FILTER (?length != ?width) .
>>>>> }
>>>>> instantiating gives the right warnings when not ok.
>>>>> But when I import this ontology in another one, the flag is always
>>>>> raised, also in case of say 10/10.
>>>>> Any idea?
>>>>> thx Michel
>>>>> ps running:
>>>>> TopBraid Composer Maestro Edition
>>>>>   from TopQuadrant.
>>>>>     Version: 3.5.2.v20110828-2200R
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Group
>>>> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
>>>> Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble,
>>>> SPARQLMotion and SPIN.
>>>> To post to this group, send email to
>>>> topbraid-users@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> topbraid-users+unsubscr...@googlegroups.com
>>>> For more options, visit this group
>>>> athttp://groups.google.com/group/topbraid-users?hl=en
>>>> This e-mail and its contents are subject to the DISCLAIMER
>>>> athttp://www.tno.nl/emaildisclaimer
>>>>
>>>>
>>>>
>>>>   solutions.ttl
>>>> 6KViewDownload
>>>>
>>>>   solutions.ttl.tbc
>>>> 1KViewDownload
>>>>
>>>>   requirements.ttl
>>>> 2KViewDownload
>>>>
>>>>   requirements.ttl.tbc
>>>> 1KViewDownload
>>>
>>> --
>>> You received this message because you are subscribed to the Google Group
>>> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
>>> Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble,
>>> SPARQLMotion and SPIN.
>>> To post to this group, send email to
>>> topbraid-users@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> topbraid-users+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/topbraid-users?hl=en
>>>
>> --
>> You received this message because you are subscribed to the Google Group
>> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
>> Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble,
>> SPARQLMotion and SPIN.
>> To post to this group, send email to
>> topbraid-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> topbraid-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/topbraid-users?hl=en
>>
>
> --
> You received this message because you are subscribed to the Google
> Group "TopBraid Suite Users", the topics of which include Enterprise
> Vocabulary Network (EVN), TopBraid Composer,
> TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> To post to this group, send email to
> topbraid-users@googlegroups.com
> To unsubscribe from this group, send email to
> topbraid-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/topbraid-users?hl=en

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to