Hi Rebecca,

there is no "official" API for the OWL2SHACL converter, but you can invoke the 
same web service that also the manual feature is using from ADS scripts:

graph.swp('ontologyprojects:OWL2SHACLPage', {
    projectGraph: graph.namedNode('urn:x-evn-master:aaaaa'),
    graphs: 'urn:x-evn-master:aaaaa',
    replace: false,
})

(Replace the aaaaa with the Ontology that contains the OWL triples after RDF 
file import).

To fully automate this, you could probably wrap this into a dash:Service 
including the file upload, but this depends on your use case.

If I may ask, how many files do you need to convert and does this happen 
repeatedly?

HTH
Holger



> On 28 Nov 2023, at 2:58 pm, Rebecca Jackson <[email protected]> wrote:
> 
> Hello,
> 
> I am working on an automated process to import an ontology into EDG and I 
> would like this to be done entirely using the web service endpoints. So far, 
> I can do the following:
> 1. Import the TTL using service/{asset}/tbs/importRDFFile
> 2. Execute SHACL inferences using /service/{asset}/tbs/executeRules
> 
> I also need to automatically perform the transformation "Convert OWL Axioms 
> to SHACL Constraints", but I do not see an existing web service endpoint for 
> this action. Is this something that can be configured using ADS?
> 
> Thanks!
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/def2adcb-513f-4b56-b972-5fd7df4aa685n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/def2adcb-513f-4b56-b972-5fd7df4aa685n%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/C65604FB-169F-413D-80A7-351426465A74%40topquadrant.com.

Reply via email to