Training Resources for Validation Tool not Valid

76 views
Skip to first unread message

Emily Zhang

unread,
Jun 2, 2020, 11:28:35 PM6/2/20
to TopBraid Suite Users

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.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

Irene Polikoff

unread,
Jun 3, 2020, 12:18:13 AM6/3/20
to topbrai...@googlegroups.com
Hi Emily,

Thanks for reporting the problem. We have fixed the broken links.

--
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/62c10795-8371-49fe-bf72-a59b73044b74%40googlegroups.com.

Emily Zhang

unread,
Jun 4, 2020, 6:23:23 PM6/4/20
to TopBraid Suite Users
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 <zxy10...@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.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 topbrai...@googlegroups.com.

Irene Polikoff

unread,
Jun 4, 2020, 9:00:31 PM6/4/20
to topbrai...@googlegroups.com
Emily,

For the development and testing purposes you can try the web service locally at that URL - http://localhost:8083/tbl/shaclValidation

This blog 
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&param1=value1&param2=value2 ...

You could also try the same parameters through the HTML page at http://localhost:8083/tbl/swp?_viewClass=tblshacl%3AValidationPage

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. 



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/d8db0255-2f75-4a5c-bd86-1585bafd49b4o%40googlegroups.com.

Emily Zhang

unread,
Jun 8, 2020, 5:19:27 PM6/8/20
to TopBraid Suite Users
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写道:
Message has been deleted

Irene Polikoff

unread,
Jun 8, 2020, 6:24:49 PM6/8/20
to topbrai...@googlegroups.com
1. When you start TBC, you get a message about accepting local connections, make sure to say ‘yes’

2. The service requires parameters. If you do not provide them, you would get a message:

HTTP ERROR: 400

Problem accessing /tbl/shaclValidation. Reason:

    Service requires either dataGraphURL or dataGraph as parameters
3. TBC is a desktop tool that has a built-in Jetty web server. This server can only be accessed from the same machine TBC is installed on.

On Jun 8, 2020, at 5:49 PM, Emily Zhang <zxy10...@gmail.com> wrote:

Also, when I was trying to open the web service:  http://localhost:8083/tbl/shaclValidation it said this site can't be reached. Do I have to open it from topbraid composer?
Thanks,
Emily

在 2020年6月8日星期一 UTC-5下午4:19:27,Emily Zhang写道:
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/b5b3fb2d-24af-4425-b53b-f9224c0510f2o%40googlegroups.com.

Emily Zhang

unread,
Jun 8, 2020, 6:45:24 PM6/8/20
to TopBraid Suite Users
I've opened the 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?

Irene Polikoff

unread,
Jun 8, 2020, 7:57:04 PM6/8/20
to topbrai...@googlegroups.com
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

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/142a1400-94df-4484-89be-b8e2e78478bfo%40googlegroups.com.

Emily Zhang

unread,
Jun 9, 2020, 5:34:31 PM6/9/20
to TopBraid Suite Users
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写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/142a1400-94df-4484-89be-b8e2e78478bfo%40googlegroups.com.

Holger Knublauch

unread,
Jun 9, 2020, 7:10:36 PM6/9/20
to topbrai...@googlegroups.com

Hi Emily,

may I ask whether you could simply use the SHACL Validation button from within TBC-ME?

With the corresponding web UI you can simply open the same Turtle files that you're also editing from TBC, e.g.

which produces

HTH

Holger

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/99ac4d52-e7b5-497f-bc4c-9dd01b9cca22o%40googlegroups.com.

Irene Polikoff

unread,
Jun 10, 2020, 3:44:52 AM6/10/20
to topbrai...@googlegroups.com
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.

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/99ac4d52-e7b5-497f-bc4c-9dd01b9cca22o%40googlegroups.com.

Emily Zhang

unread,
Jun 10, 2020, 5:40:40 PM6/10/20
to TopBraid Suite Users
Thank you Holger! I was trying to use the HTML page because we may have hundreds of example to validate. According to my understanding of the SHACL validation embedded in TBC-ME, we have to created instance for the example we want to valid. I am thinking that for HTML page, we could transfer the example into ttl format and upload to verify. Please correct me if I am wrong.

在 2020年6月9日星期二 UTC-5下午6:10:36,Holger Knublauch写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/99ac4d52-e7b5-497f-bc4c-9dd01b9cca22o%40googlegroups.com.

Emily Zhang

unread,
Jun 10, 2020, 5:43:09 PM6/10/20
to TopBraid Suite Users
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写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/99ac4d52-e7b5-497f-bc4c-9dd01b9cca22o%40googlegroups.com.

Irene Polikoff

unread,
Jun 10, 2020, 6:18:31 PM6/10/20
to topbrai...@googlegroups.com
Yes. Shape graph and data graph are roles. The same graph can play both roles.

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/abeedf63-1d4e-4417-bccb-2c3e02d2e9b5o%40googlegroups.com.

Emily Zhang

unread,
Jun 15, 2020, 8:58:41 PM6/15/20
to TopBraid Suite Users
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写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/abeedf63-1d4e-4417-bccb-2c3e02d2e9b5o%40googlegroups.com.

Holger Knublauch

unread,
Jun 15, 2020, 9:03:23 PM6/15/20
to topbrai...@googlegroups.com

Yes, if you have an external program that produces the TTL then (of course) you can upload that directly.

Holger

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/d2aadc9e-e29f-426e-8e50-fb69effde63eo%40googlegroups.com.

Irene Polikoff

unread,
Jun 15, 2020, 9:08:51 PM6/15/20
to topbrai...@googlegroups.com
I am not sure I understand the question.

As we previously discussed, the page says that you can use files as input. And you could also use text serializations in the entry boxes on the page.

How exactly you create RDF - in TopBraid or elsewhere, does not change anything.

What is not clear?

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/d2aadc9e-e29f-426e-8e50-fb69effde63eo%40googlegroups.com.

Emily Zhang

unread,
Jun 16, 2020, 3:12:50 PM6/16/20
to TopBraid Suite Users
Thanks, Holger. I guess all the questions I am having is due to the lack of document explanation for "data graph" and "shapes graph". 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"? 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?
Appreciate a lot!
Emily
在 2020年6月15日星期一 UTC-5下午8:03:23,Holger Knublauch写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/d2aadc9e-e29f-426e-8e50-fb69effde63eo%40googlegroups.com.

Irene Polikoff

unread,
Jun 16, 2020, 3:31:38 PM6/16/20
to topbrai...@googlegroups.com
Please see below

On Jun 16, 2020, at 3:12 PM, Emily Zhang <zxy10...@gmail.com> 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

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.

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/0c9560f5-559a-4cc8-801d-ce7ee620aa7ao%40googlegroups.com.

Emily Zhang

unread,
Jun 16, 2020, 5:21:38 PM6/16/20
to TopBraid Suite Users
Thank you! The link is really helpful!

在 2020年6月16日星期二 UTC-5下午2:31:38,Irene Polikoff写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/0c9560f5-559a-4cc8-801d-ce7ee620aa7ao%40googlegroups.com.

Emily Zhang

unread,
Jun 17, 2020, 12:56:58 AM6/17/20
to TopBraid Suite Users
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
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/0c9560f5-559a-4cc8-801d-ce7ee620aa7ao%40googlegroups.com.

Holger Knublauch

unread,
Jun 17, 2020, 1:05:06 AM6/17/20
to topbrai...@googlegroups.com

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

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/3ea3f467-a065-4591-be29-627113ca6631o%40googlegroups.com.

Emily Zhang

unread,
Jun 17, 2020, 1:24:14 AM6/17/20
to TopBraid Suite Users
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 compose...@topquadrant.com 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写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/3ea3f467-a065-4591-be29-627113ca6631o%40googlegroups.com.

Holger Knublauch

unread,
Jun 17, 2020, 1:55:49 AM6/17/20
to topbrai...@googlegroups.com

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

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/5d58519a-e070-4138-9105-c7f001a6c37co%40googlegroups.com.

Emily Zhang

unread,
Jun 17, 2020, 2:15:01 AM6/17/20
to TopBraid Suite Users
Thank you so much! It works now!

在 2020年6月17日星期三 UTC-5上午12:55:49,Holger Knublauch写道:
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/5d58519a-e070-4138-9105-c7f001a6c37co%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages