On 14/10/2018 1:13 AM, MSV wrote:
Hi all,
Do we have any swp command to send an email?if so how can we configure it.
Yes. You can use the SPARQLMotion module sml:SendEMails. You can find
examples (as used by TopBraid EDG) when you open teamwork.ui.ttlx in
TBC, navigate to sml:SendEMails and do "Find references". It requires
that you construct the emails that you want to send in an RDF graph,
typically ui:tempGraph. The pattern is like
<ui:setContext ui:queryGraph="{= ui:tempGraph }">
<ui:update ui:updateQuery="{!
INSERT {
?message a email:Message .
?message email:subject ?title .
?message email:body ?body .
?message email:from ?from .
?message email:to ?to .
?from a email:Address .
?from email:address ?sender .
?to a email:Address .
?to email:address ?email .
}
WHERE {
BIND (BNODE() AS ?message) .
BIND (BNODE() AS ?from) .
BIND (BNODE() AS ?to) .
...
} }"/>
<sml:SendEMails/>
</ui:setContext>
And any command to create a graph using swp ?
You can create temporary graphs by just accessing ui:tempGraph,
ui:tempGraph1 etc. But these only last for the duration of the request.
To produce other graphs, you need to give them a persistent location
(file, or at least connector file for databases). For creating graphs as
used by TopBraid EDG, use teamwork:createProject. For other types, use
SPARQLMotion modules like sml:ExportToRDFFile.
Regards & feel free to send follow-up questions on the details that I
may be missing above.
Holger
--
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].
For more options, visit https://groups.google.com/d/optout.