dash:InstancesSelectEditor with included graphs

29 views
Skip to first unread message

Davide Sottara

unread,
Oct 20, 2023, 4:00:36 PM10/20/23
to TopBraid Suite Users
Hi
I have a system with 3 graphs - Schema, Values and Catalog

Schema is an Ontology that defines a NodeShape/Class "MyClass" with a PropertyShape "prop", which targets a NodeShape/Class "Target", also defined in Schema.

ex:MyClass-prop
  a sh:PropertyShape ;
  sh:path ex:prop ;
  dash:editor dash:InstancesSelectEditor ;
  dash:viewer dash:DetailsViewer ;
  sh:class ex:Target;
.

Values is Data Graph that contains a few instances of "Target"

foo:Value1
  a ex:Target ;
.
foo:Value2
  a ex:Target ;
.

and Catalog is a Data Graph that contains the instances of MyClass.
I need to assert, e.g.: 

my:Test001
  a ex:MyClass ;
  prop foo:Value1
.


In the Edit UI for MyClass, the Instance Selector does not seem to recognize the "Value" individuals coming from the included graph.
If I move them into the Catalog graph, instead, the selector works.

For maintainability purposes, I would prefer to keep the Values in a dedicated graph.
Topologically:
Values imports Schema
Catalog imports Values
Catalog imports Schema

Am I missing something?

Thank you in advance
Davide

Note: I do not currently have access to "Reference Dataset" assets

Holger Knublauch

unread,
Oct 21, 2023, 4:20:25 AM10/21/23
to topbrai...@googlegroups.com
Hi Davide,

I checked the source code and this component uses the auto-complete index to load the values. That index requires that all resources have an rdfs:label (or skos:prefLabel etc) and *the label needs to be in the same graph as the rdf:type triple*.

So could you please confirm that it works when you have something like

foo:Value1
    a ex:Target ;
    rdfs:label "Value 1" ;
.

in the imported graph.

Holger


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/a6971d4d-374e-42fa-8e41-051148b6202en%40googlegroups.com.

Davide Sottara

unread,
Oct 21, 2023, 3:19:35 PM10/21/23
to TopBraid Suite Users
That worked like a charm!
I checked the actual dataset, and we had a variety of labels, but not a rdfs:label

Thank you very much for the clarification
Davide

Reply all
Reply to author
Forward
0 new messages