> I think the red line around the box means that the resource is not recognized.
When entering a value into the form field for an object property (a property for which the value is supposed to be a resource) the red line means that the entered value is not valid syntax for a resource. If I enter <http://foo/bar>, the red line is there until I enter that final >, and then it goes away, even though no resource with this name is available to TBC, because that final character makes it valid syntax for identifying a resource. > If we are working with FOAF, do they care if the file is named foaf or dooes it matter? The presence or absence of "foaf" in the filename will not affect how it works. >1) Do I need to export? or is that only if I want it in a different >format for the rdf than the format that is created as I work? If so, >it seems that it is putting the foaf.rdf file in one folder above the >one where the working foaf.ttl file exists. Datasets are identified by their base URIs, so having two datasets with the same URI in the same workspace will confuse TBC, even if they're stored using different serializations (i.e. formats). If you have the same dataset stored in both an RDF/XML and a TTL version in the same workspace, they'll need different base URIs, but this could lead to confusion because theoretically each is storing the same set of triples. I would store each dataset in only one format--whichever you prefer--and if an application outside of TBC needs it in another format, export it outside of the workspace and deliver that. >2) Ok, now when I want to create Jean's foaf file, it doesn't let me >use the name foaf for the file. I see two possibilities here. You might have been trying to create a file in a workspace that already had one with the same base URI, or you were trying to create a file in a directory that already had one with that name. When you create a new dataset file, TBC asks you for a Base URI and to save you a little data entry it automatically enters something in the File name field based on the local name of the URI you entered, but you can change that. From TBC's perspective, you can't have two files in the same workspace with the same base URI, for the reason explained above. From your computer's perspective, you can't have two files in the same directory with the same name. Using subdirectories within a workspace lets you store multiple files with the same name in the same workspace, whether it's foaf.rdf or foo.rdf, as long as they're in separate directories, but they must still have different base URIs. Bob DuCharme TopQuadrant -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of brucewhealton Sent: Tuesday, July 26, 2011 2:55 PM To: TopBraid Suite Users Subject: [topbraid-users] Re: Using URL links I think the red line around the box means that the resource is not recognized. If I start adding files that are going to be linked together inside the project, some of those links will not exist until I create them. Let me give an example. Let's say that what I was creating was just foaf files for a number of people that will be linked together. I thought that the file would need to be foaf.rdf or foaf.n3 or foaf.ttl. Unfortunately, a project can only have one file with the same name. I don't think it will even let me create a project that uses the same name in it. For example, when I created the project with name PersonalProfiles, and then create a file inside that, it uses for a web uri, http://personalprofles.fwwebdev.com/filename. So, even if I tried to put each person into a different project, I'd have to name the project differently each time. Which I guess would work. Maybe I could create my foaf at http://BruceWhealtonJr.fwwebdev.com/foaf.rdf and my friends foaf in a project named JeanJones which will be inside http://JeanJones.fwwebdev.com/foaf.rdf That seems doable, or I can have each person's foaf file match their name. If we are working with FOAF, do they care if the file is named foaf or dooes it matter? I'm not sure which is the best practice. But in reference to thee earlier issue: 1) Do I need to export? or is that only if I want it in a different format for the rdf than the format that is created as I work? If so, it seems that it is putting the foaf.rdf file in one folder above the one where the working foaf.ttl file exists. I guess I can type in the full path during export. Yes, that worked. I put those both here: http://personalprofiles.fwwebdev.com/BruceWhealtonJr/foaf.rdf and the same with foaf.ttl instead of foaf.rdf 2) Ok, now when I want to create Jean's foaf file, it doesn't let me use the name foaf for the file. An ideal naming scheme is to have his profile here: http://personalprofiles.fwwebdev.com/JeanArthurJones/foaf.rdf because in my foaf file I refer to him by that uri http://personalprofiles.fwwebdev.com/JeanArthurJones/foaf.rdf#me as in http://personalprofiles.fwwebdev.com/BruceWhealtonJr/foaf.rdf#me foaf:knows http://personalprofiles.fwwebdev.com/JeanArthurJones/foaf.rdf#me I coudl work with a file that has a different name and export it to foaf in the proper location but the software will continue to tell me the resource doesn't exist. Or if I reference it with a different file name than the one I saved it with then the links won't work, will they? Thanks, Bruce On Jul 26, 2:54 am, Holger Knublauch <[email protected]> wrote: > On Jul 26, 2011, at 4:37 PM, brucewhealton wrote: > > > Why does it put the a red outline around the box when I enter a URL > > into the form. It says OK at the end but it has the red outline which > > suggested to me previously that there was a problem. > > The most recent instance of this was when I added to an instance of a > > foaf:Person inside my foaf file that I was editing in TBC. I added > > the property rdfs:seeAlso and put in a url and it outlined that in > > red, which had previously made me think something was wrong about what > > I did. Oh, I noticed in the bottom left that this means it is an > > unknown resource. > > The red line is there until you enter the closing > at the end. It simply states that the URL isn't complete yet - neither a full URI nor an abbreviated qname. > > > With regard to URLs, I noticed that when I Export it doesn't let me > > choose where to export the file. Maybe I don't need to even do that. > > I want to have several foaf files that reference one another. So, I > > setup a project named personalprofile and specified the URL for me to > > be > >http://personalprofiles.fwwebdev.com/BruceWhealton/foaf.ttl > > my friend's URL will be in this same project, > >http://personalprofiles.fwwebdev.com/JeanArthurJones/foaf.ttl > > However, it doesn't let me do that. It tells me foaf.ttl already > > exists. > > Are you sure this is the error or does it complain that a file with the same base URI already exists? Try entering a different base URI before saving. If this doesn't help, I am unclear how you Export - please clarify. > > Holger -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. 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-users?hl=en -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. 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-users?hl=en
