Tim; Just concentrating on "following a link" for now. The prerequisites are: - the property's type must be owl:ObjectProperty (more specifically, not owl:DatatypeProperty) - the format of the URI needs to use the angle brackets, i.e. "<xyz>", not "xyz"
Then a control-click follows the link (sorry, I neglected to mention the keystroke last time). Try this with a .jpg, specifically use the following: <http://www.topbraidcomposer.org/demos/kennedys/images/180px- JFKJr2.jpg> You should be able to access this file without needing to mess with Eclipse preferences. -- Scott On Feb 12, 11:41 am, "Smith, Tim" <[email protected]> wrote: > Hi Scott, > > Thanks for the tips. I tried what you suggested but I cannot seem to make > TBC follow the link. I can view the uri via the form for the instance or > using SPARQL. > > How do I tell TBC to attempt to follow the link? I've tried right-clicking, > crtl or alt or shift clicking, etc.. > > Thanks, > > Tim > > > -----Original Message----- > > From: [email protected] [mailto:topbraid- > > [email protected]] On Behalf Of Scott Henninger > > Sent: Wednesday, February 11, 2009 5:52 PM > > To: TopBraid Composer Users > > Subject: [tbc-users] Re: Following URIs from within Composer or TBE > > > Tim; As Jeremy suggests, the best way to get it to look like a browser > > is to use a browser, hence the reference to TBE 3.0/Ensemble. > > > In the meantime, this can be done directly in Composer with the help > > of Eclipse. Step 1 is to use an object property. > > > Step 2 is to configure the file types using Preferences > General > > > Editors > File Associations. Choose whatever internal (to Eclipse) or > > external application you want. For example, I have *.pdf set to be > > opened with Acrobat Reader. > > > Step three is to create the property. For example: > > :MyTaxes :associatedDoc <file:///D:/form1040.pdf> > > :associatedDoc a owl:ObjectProperty > > > The second triple emphasizing that the object property is used, not a > > datatype (Composer won't try to "follow" literals). > > > This opens Acrobat and displays the document in the middle pane. Note > > that this file is local on my D: drive. You can use any valid URL > > here. > > > -- Scott > > > On Feb 11, 3:47 pm, "Smith, Tim" <[email protected]> wrote: > > > Hi, > > > > This may be something very simple that I've overlooked or modeled > > > incorrectly, but here goes... > > > > I have many instances that have an associated URL. This URL may > > point > > > to a document on a server or webpage, whatever, doesn't really > > matter. > > > What I need is the ability to open those links from within Composer > > and > > > TBE. I don't want/need TBC/E to actually display the data at the > > URL. > > > I just need it to open it in the appropriate application just as a > > web > > > browser would do. > > > > For example, I run a SPARQL query that returns a collection of > > document > > > instances and their associated URLs. > > > > How can I "click" on the URL to open the document? > > > > I would like to do this from the SPARQL results view, the Form > > display > > > for the instance as well as from within the results view in TBE. > > > > For reference, the range of the "URL" property is xsd:anyURI so TBC > > can > > > determine that it is a URI resource. > > > > Note: I'm attempting this from TBC/ME 2.6.2. I have not tried it on > > > the new beta version. > > > > Thanks! > > > > Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
