RE: RDF and xml:base

Graham Klyne [mailto:GK@NineByNine.org] wrote:

>This discussion seems to be getting hung-up on possibly side issues.

Quoting supporting material to put my point across is hardly a side issue
;-).

>Can I, or can I not do this:
>
>   <rdf:RDF xmlns:rdf='...' xmlns:ex='http://example.org/'
>            xml:base='http://example.org/Base/' >
>     <rdf:Description rdf:ID='localID'>
>       <ex:property>PropVal</ex:property>
>     </rdf:Description>
>   </rdf:RDF>
>
>?

Yes you can.

>And if I can, what is the full URI of the resource identified locally as 
>'localID'.
>
>I have encountered a requirement to use this general form, or something 
>like it, to assign a full URI to this resource.  My expectation was that 
>xml:base used as above would provide for it to be defined as 
>'http://example.org/Base/#localID'.

No, I believe this is not correct.  If the document's URI were, say,
'http://other.com/doc.html' then localID's absolute URI-reference would be
'http://other.com/doc.html#localID'.

To get the behaviour you want would it would have to be something like:

   <rdf:RDF xmlns:rdf='...' xmlns:ex='http://example.org/'
            xml:base='http://example.org/Base/' >
     <rdf:Description rdf:about='./#localID'>
       <ex:property>PropVal</ex:property>
     </rdf:Description>
   </rdf:RDF>

then the relative URI './' gets resolved to 'http://example.org/Base/' as
specified by the xml:base attribute.  This is not quite what you are trying
to specify, but if you think it through, it makes sense: you cannot define
local RDFResources for other documents, they are local to the current
document.  

However, in your favour RDF does not require there to be a resource at
http://example.org/Base/ in order to talk about parts of it and assume there
are RDFResources defined within it - so using 'rdf:about' should be ok.

In summary, xml:base would only be useful in RDF for resolving any relative
URIs specified within attributes like 'rdf:about', 'rdf:resource', etc (not
rdf:ID).

regards

Lee

begin 600 winmail.dat
M>)\^(AP.`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<`
M&````$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`06``P`.````T0<%`!X`
M#P`%`!H``P`L`0$@@`,`#@```-$'!0`>``\`!0`:``,`+`$!"8`!`"$```!"
M-T,Q13(W,S!$-#E$-3$Q04(P0C`P,3`U031#1#=!-P`@!P$$@`$`%0```%)%
M.B!21$8@86YD('AM;#IB87-E`&8&`0V`!``"`````@`"``$#D`8`P`H``#,`
M```#``E9`0````,`WC^O;P```P`V```````#`!F`""`&``````#`````````
M1@````!2A0``)VH!`!X`&H`((`8``````,````````!&`````%2%```!````
M!````#DN,``+`!N`""`&``````#`````````1@`````&A0````````,`"(`(
M(`8``````,````````!&``````&%````````"P``@`@@!@``````P```````
M`$8``````X4````````+`!^`""`&``````#`````````1@`````.A0``````
M``,``H`((`8``````,````````!&`````!"%`````````P`@@`@@!@``````
MP````````$8`````$84````````#`"*`""`&``````#`````````1@`````8
MA0```````!X`,8`((`8``````,````````!&`````#:%```!`````0``````
M```>`#*`""`&``````#`````````1@`````WA0```0````$`````````'@`S
M@`@@!@``````P````````$8`````.(4```$````!``````````(!"1`!````
M0@4``#X%``#0"0``3%I&=6GT5XX#``H`<F-P9S$R->(R`T-T97@%00$#`??_
M"H`"I`/D!Q,"@`_S`%`$5C\(50>R$24.40,!`@!C:.$*P'-E=#(&``;#$27V
M,P1&$[<P$BP1,PCO"?>V.Q@?#C`U$2(,8&,`4#,+"0%D,S864`NF($<$<F$3
MX&T@2VQY,&YE(%L`P`,0=&\@.D=+0$X+@&5""GD><BX%L&==('<[`V`.L#H*
MH@J$"H`^5))H!``@9`0`8W4$$,II`B`@%!!E;00@'A!4(&(=H&<4('0+@&<(
M(&AU(K`M=7`@62%Q<&\A00)@>2&0:4T!`"`$`0I0<RX?VE'N=1^0(J(DD'`C
MD``@(J)/`,`.L`<B(?)P=05`;?\D`".0"X`%0`#0`V`$$2#!%1/A9"/Q8209
M(#LMDBDDVSY#`Y%)+"-0Y07`8RMB(&X?D"#@(A!6=""Q'\4^(#4@+?`\`0L@
M9CI21$8@>!1M;`"`.BXQ/2<N72]@)RZE#L`O0&@"0'!X.B\O#L`=,`M0'P,O
MCB<MB#('+K$Z8F$4$-LP/S%"0C,1,7`@+7DN!9Y$!Y`%`R%B+C))1"]`ZQ>P
M*_!L-R`G-0LN`0[`%#IP`V!P!)!T>3[J4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z%*`2*B)W+W26O`<VAA=F]K)-M)_R&!
M6]``P(00*Z!1QU,T`B#_(_$B,4H10O&/<FJB5!)]%/\BH@!P)`![JG^:F<6!
M5P0@?TS#FQE=(6IB0_:E(10@8[P@*)$#-O,J;!@@9PL16G,?VDP)X!_4?:GP
M```>`'```0```!$```!21$8@86YD('AM;#IB87-E``````(!<0`!````&P``
M``'`Z0WPMG/BP;%)#1'5JPL`$%I,UZ<``"D90``#`"8```````,`+@``````
M"P`"``$````>`$(0`0```#4````\-2XP+C(N,2XR+C(P,#$P-3,P,30R,#4W
M+C`S93DQ-C<P0&IO>2YS;VYG8FER9"YC;VT^``````,`_3_D!```0``Y`'`8
MKI,1Z<`!`P#Q/PD$```>`#%``0````0```!,144``P`:0``````>`#!``0``
M``0```!,144``P`90``````#`(`0_____PL`\A`!`````@%'``$````W````
M8SU'0CMA/2`[<#U4:&4@0V%K92!(;W5S93ML/5I)3D=)0D52+3`Q,#4S,#$T
M,#4R-EHM,C<T```"`?D_`0```$T`````````W*=`R,!"$!JTN0@`*R_A@@$`
M````````+T\]5$A%($-!2T4@2$]54T4O3U4]3$].1$].+T-./5)%0TE0245.
M5%,O0TX]3$5%`````!X`^#\!````"@```$QE92!*;VYA<P```!X`.$`!````
M!````$Q%10`"`?L_`0```$T`````````W*=`R,!"$!JTN0@`*R_A@@$`````
M````+T\]5$A%($-!2T4@2$]54T4O3U4]3$].1$].+T-./5)%0TE0245.5%,O
M0TX]3$5%`````!X`^C\!````"@```$QE92!*;VYA<P```!X`.4`!````!```
M`$Q%10!```<P(!*KDQ'IP`%```@PX*')DQ'IP`$>`#T``0````4```!213H@
M`````!X`'0X!````$0```%)$1B!A;F0@>&UL.F)A<V4`````'@`U$`$````P
M````/#4Q140R.48S,44R,$0T,3%!049$,#`Q,#5!-$-$-T$W-S$R0D!:24Y'
M24)%4CX`"P`I```````+`",```````,`!A#Q2-)2`P`'$!H&```#`!`0````
M``,`$1``````'@`($`$```!E````1U)!2$%-2TQ93D5-04E,5$\Z1TM`3DE.
M14)93DE.14]21U=23U1%.E1(25-$25-#55-324].4T5%35-43T)%1T545$E.
M1TA53D<M55!/3E!/4U-)0DQ94TE$14E34U5%4U%53P`````"`7\``0```#``
M```\-3%%1#(Y1C,Q13(P1#0Q,4%!1D0P,#$P-4$T0T0W03<W,3)"0%I)3D=)
'0D52/@!LJP==
`
end

Received on Wednesday, 30 May 2001 10:05:08 UTC