Ok, to fix this:
1. Make sure the Imports view is visible (in TBC)
2. Find the file TopBraid/SHACL/dash.ttl in the Project Explorer
3. Drag that file dash.ttl into the Imports view to add it as an owl:import
Holger
On 17/06/2020 15:24, Emily Zhang wrote:
Yes! Attached below.
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
[email protected] and ideally include an export of the
Error Log View (Window > Show View > Error Log).
On: Jun 17, 2020 12:22:59 AM
Reason:
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:398)
at
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:481)
at
org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:242)
at
org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:895)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:930)
at
org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:905)
at
org.topbraidcomposer.shacl.views.constraints.AbstractCheckAction.run(AbstractCheckAction.java:55)
at
org.topbraidcomposer.ui.views.AbstractViewAction.run(AbstractViewAction.java:69)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:247)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at
org.eclipse.jface.action.ActionContributionItem.lambda$5(ActionContributionItem.java:436)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1313)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3706)
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)
Caused by: java.lang.IllegalArgumentException: Shapes graph does not
include tosh:http://datashapes.org/dash#DefaultValueTypeRule
at
org.topbraid.shacl.util.SHACLUtil.createDefaultValueTypesModel(SHACLUtil.java:763)
at
org.topbraid.shacl.util.SHACLUtil.withDefaultValueTypeInferences(SHACLUtil.java:691)
at
org.topbraidcomposer.shacl.views.constraints.AbstractCheckAction$1.run(AbstractCheckAction.java:72)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
在 2020年6月17日星期三 UTC-5上午12:05:06,Holger Knublauch写道:
Were there any more details in the error message? Usually there is
a full stack trace, e.g in the Error Log of TBC (try to double
click on an error there).
Holger
On 17/06/2020 14:56, Emily Zhang wrote:
Hi Irene,
Thanks for being so patient with me! When I was trying to run the
instance validation in composer, I got the error message "Could
not run constraint checker
java.lang.reflect.InvocationTargetException." How can I solve
this problem?
Best,
Emily
在 2020年6月16日星期二 UTC-5下午2:31:38,Irene Polikoff写道:
Please see below
On Jun 16, 2020, at 3:12 PM, Emily Zhang
<[email protected]> wrote:
Thanks, Holger. I guess all the questions I am having is due
to the lack of document explanation for "data graph" and
"shapes graph”.
SHACL is a standard. Data graph and shapes graph are standard
terms. In terms of documentation, it is provided in the
specification: https://www.w3.org/TR/shacl/#validation
<https://www.w3.org/TR/shacl/#validation>
I don't know what's the parameters/keywords that validation
need to take in in order to produce results.
I am guessing that I have to link the "data graph" with
hundreds of examples to the name of "class" which I defined
in the "shapes graph”?
Data graph is a graph that contains data that you need to
validate. There is no limit on the number of resources in the
graph.
And for the "shape graph", can I just upload the entire
"ttl" file that I created in Topbraid ME using SHACL where I
defined the constrains for property?
Shapes graph needs to contain some SHACL Shapes. It can
contain other information as well.
Appreciate a lot!
Still, not sure what is unclear. I answered this already in
the previous e-mail, so I am not providing any new info.
Emily
在 2020年6月15日星期一 UTC-5下午8:03:23,Holger Knublauch写道:
Yes, if you have an external program that produces the
TTL then (of course) you can upload that directly.
Holger
On 16/06/2020 10:58, Emily Zhang wrote:
Thanks a lot! If I have hundreds of instance to
validate, would it be possible if I transferred all the
instance into ttl format and upload it to the
validation webpage? So that I could skip the process to
manually create all the instances in Topbraid software.
在 2020年6月10日星期三 UTC-5下午5:18:31,Irene
Polikoff写道:
Yes. Shape graph and data graph are roles. The same
graph can play both roles.
On Jun 10, 2020, at 5:43 PM, Emily Zhang
<[email protected]> wrote:
Thanks Irene! I guess I was confused because there
are two ttl files we need to upload, one for the
data graph, one for the shape graph. If I
understood it correctly, data graph is the example
you want to validate, and shape graph is for the
constraint of your example. I am not sure how that
work if I provide the entire file for my ontology,
do I upload the same file for data graph and shape
graph, and the algorithm will detect what's
example to validate and what's the constraint by
itself?
在 2020年6月10日星期三 UTC-5上午2:44:52,Irene
Polikoff写道:
It does not matter. You can use the file you
already have. You do not need to “export”
anything. Just provide the entire file as
input. Alternatively, you could copy and paste
Turtle serialization of the file e.g., open it
in the text editor and copy and paste everything.
On Jun 9, 2020, at 5:34 PM, Emily Zhang
<[email protected]> wrote:
Thank you, Irene! If I've defined the
constraint using SHACL in topbraid ME, would
it be easier to export the constraint in the
formal of turtle or just create a stand-alone
file to upload to the validation page?
在 2020年6月8日星期一 UTC-5下午6:57:04,Irene
Polikoff写道:
Source code = text serialization of the
RDF graph in Turtle, RDF/XML or JSON-LD.
Shapes graph = a graph that contains
SHACL Shapes your data should be
validated against.
Data graph = a graph that contains data
to be validated
These could be the same graphs
I would suggest experimenting first using
this page
http://localhost:8083/tbl/swp?_viewClass=tblshacl%3AValidationPage
<http://localhost:8083/tbl/swp?_viewClass=tblshacl:ValidationPage>
On Jun 8, 2020, at 6:45 PM, Emily Zhang
<[email protected]> wrote:
I've opened the
http://localhost:8083/tbl/swp?_viewClass=tblshacl:ValidationPage
<http://localhost:8083/tbl/swp?_viewClass=tblshacl:ValidationPage> successfully.
Thank you again!
However, I am a newbie in this field.
Would it be possible to point me to some
examples of what "source code of
data/shapes graph" should look like?
在 2020年6月8日星期一
UTC-5下午4:19:27,Emily Zhang写道:
Thanks Irene. Just wanted to
confirm, does it mean I can hold the
local service with the same HTML
interface in the article using my
Masetro application. The only
difference is that this web service
can't be shared with others like EDG
does?
在 2020年6月4日星期四
UTC-5下午8:00:31,Irene Polikoff写道:
Emily,
For the development and testing
purposes you can try the web
service locally at that URL -
http://localhost:8083/tbl/shaclValidation
<http://localhost:8083/tbl/shaclValidation>
This blog
https://www.topquadrant.com/topbraid-as-a-data-validation-server/
<https://www.topquadrant.com/topbraid-as-a-data-validation-server/> describes
the parameters accepted by the
service. The syntax is
http://localhost:8083/tbl/shaclValidation¶m1=value1¶m2=value2
<http://localhost:8083/tbl/shaclValidation¶m1=value1¶m2=value2> ...
You could also try the same
parameters through the HTML page
at
http://localhost:8083/tbl/swp?_viewClass=tblshacl%3AValidationPage
<http://localhost:8083/tbl/swp?_viewClass=tblshacl:ValidationPage>
Servlet in TBC is for
development purposes only
because TBC is not intended to
be used “in production”.
Requests over the network will
not be accepted. For that, you
need EDG server which is
deployed on Tomcat.
On Jun 4, 2020, at 6:23 PM,
Emily Zhang
<[email protected]> wrote:
Thanks Irene! The link works
now. I do have an additional
question, the article said
"TopBraid Composer Maestro
Edition includes a simpler web
service for programmatic access
to the SHACL validation
engine." Do we have any
tutorial of how to use that
engine in Maestro Version?
在 2020年6月2日星期二
UTC-5下午11:18:13,Irene
Polikoff写道:
Hi Emily,
Thanks for reporting the
problem. We have fixed the
broken links.
On Jun 2, 2020, at 11:26 PM,
Emily Zhang
<[email protected]
<http://gmail.com/>> wrote:
Dear Topquandrant Training
Team members,
I am a customer for
Topquandrant Maester version.
We mainly purchased it because
we want to use its validation
function.
And I’ve found this article
which give an overview of what
the validation tool looks
like, and it was fascinating!
https://www
<https://www/>.topquadrant.com/topbraid-as-a-
<http://topquadrant.com/topbraid-as-a->data-validation-server/
However, when I tried to find
more articles regarding the
details such as "post on Using
SHACL Data Constraints in the
TopBraid Web products EVN and
EDG” and the article titled
“How to use top braid EDG as a
data validation server” they
all showed “Page not found”. I
am just wondering if there is
any new links for the related
materials or there is any
other resources?
Many thanks!
Emily
--
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/62c10795-8371-49fe-bf72-a59b73044b74%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/62c10795-8371-49fe-bf72-a59b73044b74%40googlegroups.com>.
--
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/d8db0255-2f75-4a5c-bd86-1585bafd49b4o%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/d8db0255-2f75-4a5c-bd86-1585bafd49b4o%40googlegroups.com>.
--
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/142a1400-94df-4484-89be-b8e2e78478bfo%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/142a1400-94df-4484-89be-b8e2e78478bfo%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/99ac4d52-e7b5-497f-bc4c-9dd01b9cca22o%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/99ac4d52-e7b5-497f-bc4c-9dd01b9cca22o%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/abeedf63-1d4e-4417-bccb-2c3e02d2e9b5o%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/abeedf63-1d4e-4417-bccb-2c3e02d2e9b5o%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/d2aadc9e-e29f-426e-8e50-fb69effde63eo%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/d2aadc9e-e29f-426e-8e50-fb69effde63eo%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/0c9560f5-559a-4cc8-801d-ce7ee620aa7ao%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/0c9560f5-559a-4cc8-801d-ce7ee620aa7ao%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] <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/3ea3f467-a065-4591-be29-627113ca6631o%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/3ea3f467-a065-4591-be29-627113ca6631o%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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/5d58519a-e070-4138-9105-c7f001a6c37co%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/5d58519a-e070-4138-9105-c7f001a6c37co%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/49f442dd-fa7d-8396-5f07-d342a4642814%40topquadrant.com.