In addition to what Irene said about GraphQL, note that our (class) tree
components only ever load one level at a time, so a "flat" query is
sufficient to return the immediate children of each parent node.
To produce a recursive JSON structure of arbitrary depth you need
something like SWP, creating a SWON-based element that calls itself.
However, this should be made solid against infinite recursion, i.e.
record which nodes have already been reached in something like
ui:tempGraph. I don't have an example of that pre-built but could
produce one if you are interested.
Holger
On 3/12/2019 11:28, MB MB wrote:
Hi Holger,
Thanks for your help so far. Even if there is a pure SPARQL version we
can work out a JSON tree from it, but we are also interested in the
SWP version as well. For this example we can use:
*Default namespace:* http://example.org/ontologies/mike_test_2#
*Top Class:* http://www.w3.org/2002/07/owl#Thing (I don't know if you
need this)
*SubClass:* http://similar2.com/ontology/landslideATmaterialVH#anyMaterial
This is how our EDG console looks like.
Capture.PNG
|
Entercode here...
|
By querying any of the available end points, we are looking to get
back a JSON object similar to what EDG displays on the console.
Capture.PNG
Regards,
Mike
--
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/5675bed8-ef0e-42f9-95b4-001f092aeb75%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/5675bed8-ef0e-42f9-95b4-001f092aeb75%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/2ff93add-a3f1-5472-1b46-dcf354cb95ec%40topquadrant.com.