Oh, the "a" element is just a shortcut for rdf:type, because you end up typing it so often. You can of course use the full form instead... or you can make up a xesam subPropertyOf rdf:type which you use instead.
- Gunnar On 18/05/07, Gunnar Aastrand Grimnes <[EMAIL PROTECTED]> wrote: > The characters are not redudant, the format doesn't care about > whitespace, so you can't use the initial tab/spaces to know that all > the triples belong to the first subject. The . character is used to > terminate triple about a subject, ; is used introduce more (property, > values) with the same subject and ',' (comma) can be used to have more > values for the current subject and property. > > Of course you can come up with your own version where whitespace DOES > matter, and these characters are removed, but that feels quite > counter-productive to me. > > At the end of the day not so many people will write this format by > hand. It's not hard to write a simple ontology editor that can > serialize to proper N3 (I sent around some machine-generated examples > in the irc meeting that still look nice) > > - Gunnar > > On 18/05/07, Mikkel Kamstrup Erlandsen <[EMAIL PROTECTED]> wrote: > > 2007/5/17, Evgeny Egorochkin <[EMAIL PROTECTED]>: > > > > > Just realized that I KISSed examples too much and didn't notice a mistake. > > > Need to sleep more :( and stop talking to myself... > > > > > > Anyway, resource has to have a prefix: or has to be included in <> > > brackets. > > > > > > Also, I changed field naming to xesam:Audio.composer. This seems to be > > better > > > due to Jamie's wish to explicitly link DC and other external ontologies. I > > > don't object this either. > > > > > > These two examples now look like this: > > > > > > ========= #1 ====================== > > > ===================================== > > > @prefix DC: > > <http://freedesktop.org/standards/DC#> > > > @prefix xesam: < > > http://freedesktop.org/standards/xesam#> > > > @prefix : > > <http://freedesktop.org/standards/xesam_base# > > > > > > > xesam:Audio.Composer > > > a :field; > > > :of_type :string; > > > :has_parent DC:Creator; > > > :name "Composer"@EN; > > > :name "Композитор"@RU; > > > :description "Audio composer". > > > ===================================== > > > > > > ========= #2 ======================= > > > You can map rdf:Property to something other like file:Property > > > not sure which is better. Any ideas for the prefix since xesam: is now > > used? > > > I still strongly advise to use #2 an not #1. > > > ===================================== > > > @prefix rdf: > > <http://www.w3.org/1999/02/22-rdf-syntax-ns# >. > > > @prefix DC: > > <http://freedesktop.org/standards/DC#> > > > @prefix type: > > <http://freedesktop.org/standards/xesam_base# > > > > @prefix xesam: <http://freedesktop.org/standards/xesam#> > > > @prefix : > > <http://www.w3.org/2000/01/rdf-schema# > > > > > > > xesam:Audio.Composer > > > a rdf:Property; > > > :range type:string; > > > :subPropertyOf DC:Creator; > > > :label "Composer"@EN; > > > :label "Композитор"@RU; > > > :comment "Audio composer". > > > ===================================== > > > > > > Will re-check this when I wake up once more :) > > > > > > Sorry for confusion. > > > > 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... > > > > 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? > > > > Cheers, > > Mikkel > > > > > > > _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
