Properties shapes in ReadOnly (instances) and not displayed on classes.

12 views
Skip to first unread message

bostoM

unread,
Nov 24, 2021, 12:05:10 PM11/24/21
to TopBraid Suite Users
Hi folks,

   I have two questions : 
  1. I defined Node shapes with some properties shapes. When I try to use this NodeShape in an external ontologies (instances) I have my constraints applied correctly on my owl:Class but not displayed.
  2. I create instances, now, the properties are displayed but "read-only" and I can't edit the values of these properties.
Thanks for your help and explanation.

Best,
onto_pic.png

Holger Knublauch

unread,
Nov 24, 2021, 7:16:21 PM11/24/21
to topbrai...@googlegroups.com

Sorry I don't think I understand your exact scenario. Could you elaborate a bit? Are you using Ontologies or some instance asset collection such as Data Graphs/Taxonomies? That impacts which properties are editable. And on your first question, what do you mean they are not displayed?

Some concrete example snippets would help.

Thanks,
Holger

--
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/8270ef30-e3ed-4192-b09c-ef1a154cdee2n%40googlegroups.com.

Irene Polikoff

unread,
Nov 24, 2021, 8:57:03 PM11/24/21
to topbrai...@googlegroups.com
We recommend putting instances into a graph different from an ontology e.g., into a taxonomy, reference dataset, data graph and many other asset collection types available in EDG.

If you create instances in an ontology, by default, only label and comment will be editable. This can be changed on the Manage tab by checking the box shown below:



bostoM

unread,
Nov 25, 2021, 4:26:50 AM11/25/21
to TopBraid Suite Users
Thanks,

  Nevertheless, I have just three kinds of asset collections in my version : 

     - Taxonomies, Ontologies and Crosswalks. 

For the second option I haven't this option also in my topBraid.

But why we can not edit instances by default please ?

Best,

Holger Knublauch

unread,
Nov 25, 2021, 5:54:02 PM11/25/21
to topbrai...@googlegroups.com


On 2021-11-25 7:26 pm, bostoM wrote:
Thanks,

  Nevertheless, I have just three kinds of asset collections in my version : 

     - Taxonomies, Ontologies and Crosswalks. 

For the second option I haven't this option also in my topBraid.

But why we can not edit instances by default please ?

There are various reasons for our recommendation that

- Ontologies should only contain classes, properties and shapes

- Instances should go into all other graphs

One technical reason is that changes to ontologies may cause internal overhead, e.g. rebuilding of GraphQL schema and other optimized data structures. In a typical project, changes to ontologies are much less frequent than changes to instances, so it's usually a good assumption that the ontology will be stable so that these other data structures can be kept stable too.

But also from a design perspective it is quite natural to keep ontologies/schemas and instances separate, because schemas are typically reused across multiple instance graphs. Exceptions are instances that represent enumerated instances, e.g. the colors of traffic lights, or the 12 months of a calendar.

Mixing schema and instances may be convenient for quick prototyping but keeping them separate is in our experience a good long term investment.

Holger


Rob Atkinson

unread,
Nov 25, 2021, 7:35:46 PM11/25/21
to topbrai...@googlegroups.com
A related perspective

following a test-driven design philosophy, ontology development requires instance data for testing, and best practices for documentation require illustrative examples.

Thus while editing example instances in a separate graph we want to be able to attach these to the Classes. Which means some editing of statements about the classes and properties, and navigation from classes and properties to related examples  _in the data graph_ is desirable - but AFAIK not supported.

(maybe this can best be done with inverse paths from the instances to the classes - but we want to be able to navigate the classes to find the instances.)



Holger Knublauch

unread,
Nov 25, 2021, 7:43:18 PM11/25/21
to topbrai...@googlegroups.com


On 2021-11-26 10:35 am, Rob Atkinson wrote:
A related perspective

following a test-driven design philosophy, ontology development requires instance data for testing, and best practices for documentation require illustrative examples.

Thus while editing example instances in a separate graph we want to be able to attach these to the Classes. Which means some editing of statements about the classes and properties, and navigation from classes and properties to related examples  _in the data graph_ is desirable - but AFAIK not supported.
Just use file mode (EDG Studio) for test cases etc. There are no instance/class limits there.


(maybe this can best be done with inverse paths from the instances to the classes - but we want to be able to navigate the classes to find the instances.)

Yet I wonder why would you ever want test data in production files? It is common practice for test files and sample data to be in separate files.

Holger


Irene Polikoff

unread,
Nov 26, 2021, 5:10:55 AM11/26/21
to topbrai...@googlegroups.com
You can select the class, then use Explore -> Find Usages in Other Asset Collections
Reply all
Reply to author
Forward
0 new messages