Add edg:subjectArea via API

40 views
Skip to first unread message

Vaisakh Babu

unread,
Sep 11, 2025, 7:29:16 AM (14 days ago) Sep 11
to TopBraid Suite Users
I am creating a new asset using API ("{base_url}/createAssetCollection") and importing the RDF data ("{base_url}/tbs/importRDFFile"). 
Is it possible to add edg:subjectArea also via API? I tried keeping it in the RDF data, but topBraid EDG removed this.

Holger Knublauch

unread,
Sep 11, 2025, 7:46:15 AM (14 days ago) Sep 11
to topbrai...@googlegroups.com
You can add any triple, including edg:subjectArea, either using ADS JavaScript or through SPARQL INSERT.

In ADS it would be graph.add(masterGraph, edg.subjectArea, area)

Holger


On Sep 11, 2025, at 13:29, Vaisakh Babu <vaishakhba...@gmail.com> wrote:

I am creating a new asset using API ("{base_url}/createAssetCollection") and importing the RDF data ("{base_url}/tbs/importRDFFile"). 
Is it possible to add edg:subjectArea also via API? I tried keeping it in the RDF data, but topBraid EDG removed this.

--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
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 visit https://groups.google.com/d/msgid/topbraid-users/edb31da0-d382-410e-9700-4f38eb2af929n%40googlegroups.com.

Vaisakh Babu

unread,
Sep 15, 2025, 8:39:33 AM (10 days ago) Sep 15
to TopBraid Suite Users
SPARQL INSERT via API throws error "Invalid SPARQL query string: Encountered " "insert""

here is the sparql for ref: 
INSERT {
?s <http://edg.topbraid.solutions/model/subjectArea> <urn:x-tb-governance:test_subArea> .
}
WHERE { ?s <http://www.w3.org/2000/01/rdf-schema#label> "Test 4". }

Holger Knublauch

unread,
Sep 15, 2025, 9:03:37 AM (9 days ago) Sep 15
to topbrai...@googlegroups.com
Maybe you have passed in the query like with the query protocol, but it should look like

Vaisakh Babu

unread,
Sep 15, 2025, 10:10:39 AM (9 days ago) Sep 15
to TopBraid Suite Users
Oh yes. Thanks Holger. I was using 'query' parameter instead of 'update'. My bad.
Reply all
Reply to author
Forward
0 new messages