Re: [topbraid-users] enum creation

2024-04-18 Thread Holger Knublauch
So what do you see in edit mode? Can you share a screenshot? Holger > On 18 Apr 2024, at 3:56 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > When I edit TrafficColor I do not see anything new, > > Luis > > El jue, 18 abr 2024 a las 15:46, Holger Knublauch (

Re: [topbraid-users] enum creation

2024-04-18 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
When I edit TrafficColor I do not see anything new, Luis El jue, 18 abr 2024 a las 15:46, Holger Knublauch () escribió: > > > On 18 Apr 2024, at 3:41 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > Holger, > > I think I did the recommended change: > > tesontologyramosenum:

Re: [topbraid-users] enum creation

2024-04-18 Thread Holger Knublauch
> On 18 Apr 2024, at 3:41 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > Holger, > > I think I did the recommended change: > > tesontologyramosenum:TrafficLight > a owl:Class ; > a sh:NodeShape ; > rdfs:label "TrafficLight" ; > rdfs:subClassOf owl:Thing ; > s

Re: [topbraid-users] enum creation

2024-04-17 Thread Holger Knublauch
> On 18 Apr 2024, at 7:52 AM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > Hi Holger, > > good morning, > > Unfortunately it is not the case, and I can not see the options in the editor. > > The code of the traffic light class and color property are: > > tesontologyram

Re: [topbraid-users] enum creation

2024-04-17 Thread Holger Knublauch
> On 17 Apr 2024, at 3:55 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > it works now in this ontology, > > now, if I want to add a color in any instance (for testing purpose), > it is only by modifying the code?, like this?: If you have properly declared the color pro

Re: [topbraid-users] enum creation

2024-04-17 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
it works now in this ontology, now, if I want to add a color in any instance (for testing purpose), it is only by modifying the code?, like this?: [image: image.png] That is moreless the expected result on my end. Thanks, Luis El mié, 17 abr 2024 a las 15:37, Holger Knublauch () escribió: >

Re: [topbraid-users] enum creation

2024-04-17 Thread Holger Knublauch
Yes that looks right. To use it in traffic lights, just declare a color property there which has sh:class :Color. Holger > On 17 Apr 2024, at 3:00 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > sure, > > I created a similar ontology for testing with same results, here

Re: [topbraid-users] enum creation

2024-04-17 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
David, With your recommendation, now at least I can see the following in the object property: [image: image.png] I created an instance of traffic light, and added the property Color-label to traffic light as domain, but when I create the instance of the class traffic light, what I expect is to h

Re: [topbraid-users] enum creation

2024-04-17 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
Thanks or your answer David, I did the following, but I do not see any change: tesontologyramosenum:Color a owl:Class ; a sh:NodeShape ; rdfs:label "Color" ; rdfs:subClassOf owl:Thing ; sh:property tesontologyramosenum:Color-label ; . tesontologyramosenum:Color-label a sh:PropertyShap

Re: [topbraid-users] enum creation

2024-04-17 Thread David Price
Need the sh:in do be defined in PropertyShaps, not NodeShape. Example from eariler: example_schema:ThingWithStatus-hasStatus a sh:PropertyShape ; sh:path example_schema:hasStatus ; sh:class example_schema:Status ; sh:description "only Active or Retired allowed" ; sh:in ( example_s

Re: [topbraid-users] enum creation

2024-04-17 Thread Holger Knublauch
Can you paste us the complete content of the source code panel, e.g. as a screenshot? It's hard to see otherwise and there are syntax errors below. Holger > On 17 Apr 2024, at 2:38 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > I need only 3 elements in the enum, > >

Re: [topbraid-users] enum creation

2024-04-17 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
I need only 3 elements in the enum, But, I tried at the first the source code edition, and told you the result I got: ** 1. I tried to add the code by myself, but it seems there is something w

Re: [topbraid-users] enum creation

2024-04-17 Thread Holger Knublauch
> On 17 Apr 2024, at 2:30 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > Thanks for your quick answer, > > But, dear, where should I add this code?. > > Because I tried to add it in the source code panel, and it didn't work, same > with the script panel, > where I exp

Re: [topbraid-users] enum creation

2024-04-17 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
Thanks for your quick answer, But, dear, where should I add this code?. Because I tried to add it in the source code panel, and it didn't work, same with the script panel, where I expected it should work, but it did not. So, I owner in which panel should I add this code?. I do not have any idea

Re: [topbraid-users] enum creation

2024-04-17 Thread Holger Knublauch
> On 17 Apr 2024, at 1:38 PM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > I am working with version Version: 7.5.1 (20230316-1531). Ok then the script may not work, assuming the RDFNodeUtil object was introduced later. In that case source code editing may be your best

Re: [topbraid-users] enum creation

2024-04-17 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
I am working with version Version: 7.5.1 (20230316-1531). I included an script panel, refreshed it, and I have this view: [image: image.png] When I run the script I can see my class, the one for which I want to create the enum, is the result of focusNode. But, when I click in "Declare enumeration

Re: [topbraid-users] enum creation

2024-04-17 Thread Holger Knublauch
> On 17 Apr 2024, at 11:29 AM, 'Luis Enrique Ramos García' via TopBraid Suite > Users wrote: > > I added the code at the end of the code of the target class, and got this > result: > > > When I click in "Declare enumeration from instances, I get this view: > > This looks unexpected. What

[topbraid-users] enum creation

2024-04-17 Thread 'Luis Enrique Ramos García' via TopBraid Suite Users
I need to model an enum, and found this non uptodate tutorial: https://topbraidcomposer.org/html/Create_an_enumeration.htm Thus, I wonder if there is an uptodate procedure to create an enum in EDG? Thanks Luis -- The topics of this mailing list include TopBraid EDG and related techn