Hi,

The one with typeLabel was just an example. The extra brackets were 
probably from previous trials. 

Unfortunately this :

    uri.add('http://edg.topbraid.solutions/model/BusinessTerm', 'LALA'); 
doesn't work.

I thought wit rdfs.label would work  as this is the result we have after 
adding the bt manually:


<urn:x-evn-master:bbglossary/test2>
  a edg:BusinessTerm ;
  rdfs:label "test2" ;
.

Br,

Kasia

On Tuesday, February 27, 2024 at 3:44:47 PM UTC+1 Holger Knublauch wrote:

>
> On 27 Feb 2024, at 2:36 pm, Kasia Kryczka <[email protected]> wrote:
>
> Hi, 
>
> I would like to use ads to add business terms and I have done :
> let id = tbs.createAssetCollection({
>  typeLabel: "",
>     name: "",
>     description: ""
> });
>
>
> typeLabel and name cannot be empty. But I guess that was just an example?
>
>
> let uri = graph.namedNode(tbs.assetCollectionURI(id));
>
>
>
> graph.transaction(uri, 'Initializing asset collection ' + id, () => {
>     
>      uri.add(('http://edg.topbraid.solutions/model/BusinessTerm', 
> ('LALA')));
>
>
> Why are there extra ( here? Should this be
>
>     uri.add('http://edg.topbraid.solutions/model/BusinessTerm', 'LALA');
>
> ?
>
> Holger
>
>
>
>
> OR   
>      uri.add(('http://edg.topbraid.solutions/model/BusinessTerm', 
> rdfs.label('test')));
> });
> but they don't work. Could you give me a hint how to do that? 
>
> Thanks,
>
> Kasia
>
> -- 
> 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/7088b089-0527-42f3-af3c-67afcebf8a93n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/7088b089-0527-42f3-af3c-67afcebf8a93n%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/5f378e0f-5b0a-44d3-b3e6-8dd64db6d343n%40googlegroups.com.

Reply via email to