Thanks again for your help. I've got the constructor set up in an ontology 
asset (TTL attached, based on the example provided), and then I am 
including this in a Data Graph asset. When I try to create a new instance, 
I get the following error:
ReferenceError: lab is not defined

How does that prefix get generated for use in ADS? I thought it would be 
handled in the ontology header with 'dash:generatePrefixConstants "lab"' 
but it seems that it is still missing something.

When I import and tested the example, "ex" works just fine.
On Thursday, December 7, 2023 at 1:36:58 PM UTC-8 Holger Knublauch wrote:

> You can generate the URI yourself from whatever input parameter(s) you 
> define. For example use the default namespace of the asset collection and 
> append the number that was entered or whatever is shown in the example.
>
> Holger
>
>
> On 7 Dec 2023, at 10:33 pm, Rebecca Jackson <[email protected]> wrote:
>
> This is a great starting point - exactly what I needed. Is there a way to 
> access the auto-generated instance URI from this? It looks like the 
> 'focusNode' is for the class, is that correct?
>
> On Thursday, December 7, 2023 at 1:22:10 PM UTC-8 Holger Knublauch wrote:
>
>> Hi Rebecca,
>>
>> See if this meets your use case
>>
>> https://archive.topquadrant.com/doc/latest/ext/points.html#constructors
>>
>> I can elaborate when needed, tomorrow.
>>
>> Regards,
>> Holger
>>
>>
>> On 7 Dec 2023, at 9:59 pm, Rebecca Jackson <[email protected]> wrote:
>>
>> In EDG - is it possible to auto-populate required fields (rdfs:label, 
>> skos:notation) for a new instance based on the constructed URI?
>>
>> Specifically, when a user creates a new instance of class X, the URI is 
>> constructed using acronym + counter: http://example.com/FOO_1
>>
>> We would like to auto-populate the skos:notation with the value "1" and 
>> rdfs:label with "FOO_1", instead of having the user fill these values in 
>> when they create the new instance.
>>
>> I understand that we can create property value rules, but it does not 
>> seem that these are executed on instantiation.
>>
>> Thank you!
>> Rebecca
>>
>> -- 
>> The topics of this mailing list include TopBraid EDG and related 
>> technologies such as SHACL.
>> To post to this group, send email to [email protected]
>> --- 
>> 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/d4ae0274-0fb7-416d-960f-b786e5e2a7f4n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/d4ae0274-0fb7-416d-960f-b786e5e2a7f4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
> -- 
> The topics of this mailing list include TopBraid EDG and related 
> technologies such as SHACL.
> To post to this group, send email to [email protected]
> --- 
> 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/dcd18b4f-ee25-4e6b-a9da-392a6170a1een%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/dcd18b4f-ee25-4e6b-a9da-392a6170a1een%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to [email protected]
--- 
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/87d9ca00-04fc-4350-a2a9-9b18baf0d06fn%40googlegroups.com.

Attachment: lab.ttl
Description: Binary data

Reply via email to