Seeking a quick way to copy and paste the base uri of a file

39 views
Skip to first unread message

Simon Opper

unread,
Sep 9, 2020, 9:20:27 PM9/9/20
to TopBraid Suite Users
Hi folks

When using top braid composer does anyone have any tips for easily copying the base uri of a turtle file for pasting into another file.

e.g. if I want to the add the uri of a file as an imports uri to in another file.

it's always been a pain that you can see the base uri of  a file in the explorer panel but you can't just select that text and copy it......

Annotation 2020-09-10 111922.png

currently I'm only aware of the method of opening the file that I want to import -  generally I open it in the text editor as it's quickest. Then I copy the uri from the text file.

This works fine, but I'm just looking for a quicker way :)

e.g. like in windows when you can hold shift and right click to copy the path.

Cheers all

Simon

Tim Smith

unread,
Sep 9, 2020, 9:28:02 PM9/9/20
to topbrai...@googlegroups.com
I would like to second the motion to enable a quick way to copy a base URI.  I also frequently open a graph in a text editor in order to copy the base URI.  A more convenient method would be much appreciated. 

--
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/346050d8-e1b5-4dd1-b513-29fe0ab5a568n%40googlegroups.com.

Holger Knublauch

unread,
Sep 10, 2020, 6:58:23 PM9/10/20
to topbrai...@googlegroups.com

I agree and usually would jump on an opportunity to do a quick fix. The complication here is that this is not "our" component, but part of the Eclipse environment. Adding something like a keyboard short-cut would be tricky or even impossible. I am afraid the cheapest way to get the base URI is to right-click and open the file as text, then copy the base URI from the first row.

Holger

Simon Opper

unread,
Sep 15, 2020, 7:38:44 PM9/15/20
to TopBraid Suite Users
Thanks for the advice as always Holger

Regards

Simon

Tim Smith

unread,
Sep 15, 2020, 8:36:23 PM9/15/20
to topbrai...@googlegroups.com
I was thinking about this earlier.  Would it be possible to add a "Copy Base URI" option to the right-click menu in the Project Explorer tab or is that menu part of Eclipse?  I know, it's not really much different than right-clicking and opening the file in the text editor, other than it might avoid setting the default editor for the selected TB file to the text editor.  Eclipse seems to remember what editor I last used for a given file.  Just a thought.  Obviously not worth much effort :)

Tim

Holger Knublauch

unread,
Sep 15, 2020, 8:45:53 PM9/15/20
to topbrai...@googlegroups.com

The Project Explorer is part of Eclipse, and getting something into there may be possible through Eclipse extension points, but would be a lot of fiddling. I am afraid it won't make it to the top of our current priorities given that a work-around exists that isn't too bad IMHO.

Holger

Tim Smith

unread,
Sep 15, 2020, 8:50:43 PM9/15/20
to topbrai...@googlegroups.com
Gotcha.  Yes, opening the file is an easy work-around and will continue to work just fine.  I used it twice in the last 15 minutes, lol.

Simon Opper

unread,
Sep 15, 2020, 9:19:22 PM9/15/20
to topbrai...@googlegroups.com
Tim or others

On a sort of related aspect, I've wanted to find a way to set a hot key to open a file in the text editor and another for the turtle viewer. The eclipse documentation hasn't  given me any leads though. 

Just checking if anyone else has a solution for this? 

I find the fact that it remembers the last editor choice a bit annoying when I'm editing a lot of files as I frequently switch between editors.

Cheers

S

Reply all
Reply to author
Forward
0 new messages