> On 17 Apr 2024, at 09:18, Holger Knublauch wrote:
>
> Hi Dan,
>
> yes this can be achieved through a dash:ChangeScript, see
> https://archive.topquadrant.com/doc/latest/ext/points.html#change-and-commit-scripts
>
> Basically, such scripts are triggered after every change and may perform
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
Hi Dan,
yes this can be achieved through a dash:ChangeScript, see
https://archive.topquadrant.com/doc/latest/ext/points.html#change-and-commit-scripts
Basically, such scripts are triggered after every change and may perform
additional changes. In this case, whenever a skos:hasTopConcept gets
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 (
> 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
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
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
> 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.
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
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,
>
>
> 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
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
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
Sure Steve, that’s exactly what I was talking about … I guess I did not word
my reply very weill if it was confusing to you or anyone else.
Cheers,
David
> On 17 Apr 2024, at 14:21, Steve Ray wrote:
>
> Actually, David, you don't need the explicit inverse even for cardinality
> constraints.
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,
OK, fair enough. I did think that you were saying that was a case where you
needed an explicit inverse relation.
Steve
On Wed, Apr 17, 2024 at 9:35 AM David Price wrote:
> Sure Steve, that’s exactly what I was talking about … I guess I did not
> word my reply very weill if it was confusing
Actually, David, you don't need the explicit inverse even for cardinality
constraints. Here's a snippet from a standard I'm working on:
sh:property [
sh:path [
sh:inversePath s223:observes ;
] ;
rdfs:comment "An instance of s223:Property must not be observed (set) by
more than one entity." ;
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ó:
> 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
Hello,
I need the asset collection samples for Top Braid Composer ME, does anyone
have them or have a link to download them because I am unable to find them
on topquadrant's page.
Thank you in advance!
--
The topics of this mailing list include TopBraid EDG and related technologies
such as
20 matches
Mail list logo