Yes, within EDG you should be able to use teamwork:editorLink with relative 
URLs. Parts of EDG use that function internally.

Holger


> On 2 Apr 2023, at 3:59 pm, Tim Smith <smith.ts...@gmail.com> wrote:
> 
> Hi Holger,
> 
> This is very helpful!  Thank you.  
> 
> An additional use case I am working against is to build HTML strings that 
> become contents of a table cell.  These strings will contain raw text and 
> multiple links to resources.  The table is displayed in EDG.  Will 
> teamwork:editorLink create a suitable link for this use?  
> 
> Tim
> On Thursday, March 30, 2023 at 5:01:25 AM UTC-4 Holger Knublauch wrote:
>> TopBraid doesn't know at which URL its server can be accessed from the 
>> outside. You would need to tell this to the application that creates the 
>> links, or store such a URL as a property in EDG which your external app 
>> could then query. There is for example a field "Explorer Configuration > 
>> Editor Server" where you could enter the absolute base URL and query it as 
>> value of cfg:editorServer using
>> 
>>      BIND (smf:configParam('editorServer') AS ?url)
>> 
>> The relative URL of the resource in its surrounding editor can be produced 
>> using
>> 
>>      BIND (teamwork:editorLink(<urn:x-evn-master:northwind>, ?resource) AS 
>> ?link) 
>> 
>> Concat both and you'd have a suitable URL for deep links.
>> 
>> HTH
>> Holger
>> 
>> 
>> 
>>> On 29 Mar 2023, at 10:34 pm, Tim Smith <smith...@gmail.com <>> wrote:
>>> 
>> 
>>> Hi,
>>> I am using the EDG SPARQL endpoint to provide data to a graph visualization 
>>> engine.  Within that application, I would like for a user to be able to 
>>> select a node or edge of the graph and click a link that will open the 
>>> corresponding instance, etc... in EDG.  Thus, part of the data I need to 
>>> pull via the SPARQL endpoint is a "deep link" to the specific object.  I 
>>> want to be able to generate this link at runtime for everything in EDG.  I 
>>> cannot assert the link because EDG and Explorer run on different servers so 
>>> there can be no hard-coding of server names, ports, etc...
>>> 
>>> Is there a function in EDG that will create such a deep link?  If not, what 
>>> is the best way to get access to the server name, the port and graph for 
>>> all classes, properties and intances?  Here is an example deep link from 
>>> the Northwind Data Asset example running in EDG Studio.
>>> 
>>> http://localhost:8084/tbl/northwind.editor?resourceType=http%3A%2F%2Fedg.topbraid.solutions%2Fmodel%2FDataAsset#urn:x-evn-master:northwind%2FCOL_NORTHWIND.DBO%252EALPHABETICAL%2520LIST%2520OF%2520PRODUCTS.CATEGORYNAME
>>>  
>>> <http://localhost:8084/tbl/northwind.editor?resourceType=http%3A%2F%2Fedg.topbraid.solutions%2Fmodel%2FDataAsset#urn:x-evn-master:northwind/COL_NORTHWIND.DBO%252EALPHABETICAL%2520LIST%2520OF%2520PRODUCTS.CATEGORYNAME>
>>> 
>>> Thanks in advance for your help,
>>> 
>>> Tim
>>> 
>> 
>>> -- 
>>> 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 on the web visit 
>>> https://groups.google.com/d/msgid/topbraid-users/fe56d6f4-09e9-420c-9192-f49db96dfa2en%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/topbraid-users/fe56d6f4-09e9-420c-9192-f49db96dfa2en%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 topbraid-users@googlegroups.com 
> <mailto:topbraid-users@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-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/8b935dbb-6302-49e7-b909-2e87add4028en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/8b935dbb-6302-49e7-b909-2e87add4028en%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 topbraid-users@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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/E9730813-4EBF-40AC-BCE3-9600C807F496%40topquadrant.com.

Reply via email to