2007/5/17, Evgeny Egorochkin <<a href="mailto:phreedom.stdin@gmail.com">phreedom.stdin@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Just realized that I KISSed examples too much and didn't notice a mistake.<br>Need to sleep more :( and stop talking to myself...<br><br>Anyway, resource has to have a prefix: or has to be included in <> brackets.
<br><br>Also, I changed field naming to xesam:Audio.composer. This seems to be better<br>due to Jamie's wish to explicitly link DC and other external ontologies. I<br>don't object this either.<br><br>These two examples now look like this:
<br><br>========= #1 ======================<br>=====================================<br>@prefix DC: <<a href="http://freedesktop.org/standards/DC#">http://freedesktop.org/standards/DC#</a>><br>@prefix xesam: <
<a href="http://freedesktop.org/standards/xesam#">http://freedesktop.org/standards/xesam#</a>><br>@prefix : <<a href="http://freedesktop.org/standards/xesam_base#">http://freedesktop.org/standards/xesam_base#
</a>><br><br>xesam:Audio.Composer<br> a :field;<br> :of_type :string;<br> :has_parent DC:Creator;<br> :name "Composer"@EN;<br> :name "Композитор"@RU;
<br> :description "Audio composer".<br>=====================================<br><br>========= #2 =======================<br>You can map rdf:Property to something other like file:Property<br>not sure which is better. Any ideas for the prefix since xesam: is now used?
<br>I still strongly advise to use #2 an not #1.<br>=====================================<br>@prefix rdf: <<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>
>.<br>@prefix DC: <<a href="http://freedesktop.org/standards/DC#">http://freedesktop.org/standards/DC#</a>><br>@prefix type: <<a href="http://freedesktop.org/standards/xesam_base#">http://freedesktop.org/standards/xesam_base#
</a>><br>@prefix xesam: <<a href="http://freedesktop.org/standards/xesam#">http://freedesktop.org/standards/xesam#</a>><br>@prefix : <<a href="http://www.w3.org/2000/01/rdf-schema#">http://www.w3.org/2000/01/rdf-schema#
</a>><br><br>xesam:Audio.Composer<br> a rdf:Property;<br> :range type:string;<br> :subPropertyOf DC:Creator;<br> :label "Composer"@EN;
<br> :label "Композитор"@RU;<br> :comment "Audio composer".<br>=====================================<br><br>Will re-check this when I wake up once more :)<br>
<br>Sorry for confusion.</blockquote><div><br>Thanks the examples. I think it looks unintuitive that the "a" entry does not have a :-prefix while the others don't. Also this format clearly contain superfluous characters, like the leading :'s and trailing ;'s. If you write a .desktop file it is pretty hard getting syntax errors...
<br><br>I liked the first example in your first mail the best, but I'm a bit confused now... Was it valid or invalid? - And why did your prefer the one with redundant characters?<br><br>Cheers,<br>Mikkel<br></div><br>
</div><br>