Bruce,

Yes, other files in the same project will not know about the prefix that was
defined for that file, unless they import that file or they all import a
file with the same prefix definition. Prefixes are a convenience so that
each file can refer to each namespace URI its own way, in case there are
conflicts. Default namespaces are generally considered to be a convenience
so that you don't have to write out a prefix for your most-used namespace
over and over within a given file, but we find that instead of using the
default prefix, assigning prefixes to all namespaces used is useful because
it can lead to less confusion when some files get included with others. 

Regarding your second question

> so the base URI is fwweb:BruceWhealtonJr

Technically that's not really a URI, but a prefixed name, but it would be
treated the same as the URI it represents, which would be
http://personalprofiles.fwwebdev.com/BruceWheatonJr . This is a good idea,
making it an http:// URI instead of a file:/// one. TopBraid creates a
file:/// one as a default because if your project name is the same as an
existing domain name on the web that is out of your control, then it's not a
good idea to create an http:// domain name with that. 

Bob

-----Original Message-----
From: topbraid-users@googlegroups.com
[mailto:topbraid-users@googlegroups.com] On Behalf Of Bruce Whealton
Sent: Sunday, October 23, 2011 3:55 PM
To: TopBraid Suite Users
Subject: [topbraid-users] Help setting default namespace in TBC

Hello,
      I was working with a foaf file (which has more than foaf in it)
in TBC.
      I noticed when looking at the source rdf file that the xml:base
was set to file:///PersonalProfiles.fwwebdev.com/BruceWhealtonJr/foaf.rdf
So, then I looked at the namespace settings and the default was very
close to this... I since changed it but I'm not 100% sure I got it
right.  TBC doesn't always like it when you define something that it
doesn't know about yet.  For example, if you know where you are going
to publish something and the directory structure, it doesn't seem to
like that.  I guess you just enclose it with <> brackets and you are
fine.
       Anyway, setting the default namespace and base url...
If I know I am going to publish various foaf files at:
http://personalprofiles.fwwebdev.com/ and they will have this form:
http://personalprofiles.fwwebdev.com/BruceWhealtonJr/foaf.rdf
and http://personalprofiles.fwwebdev.com/JohnettaRuthAlston/foaf.rdf
         I guess the first question is with regard to setting a
namespace prefix.  If I setup fwweb as the prefix for
http://personalprofiles.fwwebdev.com/
other files that I open in the same project, will not know about that
prefix will they?  It will have to be defined in each and every file,
correct?
In my file: http://personalprofiles.fwwebdev.com/BruceWhealtonJr/foaf.rdf
well, that's where I will publish it.  If I define fwweb as equal to
http://personalprofiles.fwwebdev,com/
and so the base URI is fwweb:BruceWhealtonJr
and the default namespace is fwweb:BruceWhealtonJr#
Does that make sense to do it this way?  And the next foaf file would
be defined using the same prefix of fwweb:JohnettaRuthAlston
          I didn't like the idea of publishing something on the web
where the value of xml:base="file:///someurl"
Thanks,
Bruce

-- 
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
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
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
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to