[KinoSearch] Serialized Schema
Peter Karman
peter at peknet.com
Thu Oct 4 17:26:10 PDT 2007
Marvin Humphrey wrote on 9/29/07 5:32 PM:
>
> On Sep 6, 2007, at 5:40 PM, Peter Karman wrote:
>
>> (And re: the url thread above: for the record, I like the .yml format
>> better than .xml; if libswish3 weren't already possessed of a full XML
>> parser, I would probably use .yml in Swish3 too.)
>
> Have you considered JSON? :)
>
> I'm annoyed by the fact that there isn't a minimal "YAML level 1" spec.
> The complete YAML spec is grievously afflicted by featuritis.
>
> Here's the problem: right now, KS uses custom routines to read/write a
> small subset of YAML. But if other implementations start using the file
> format, it will be easy for them to produce something that's valid YAML
> but that KS isn't prepared to handle.
>
Sounds like what you want isn't an official subset of the language, but rather
something like a SGML document type definition (called (overload overload) a
schema in XML parlance). Just an official declaration of what constitutes a
legal KS header. When you write a sentence in English, you need a subject and a
predicate. Otherwise it isn't a sentence. You don't have to define a subset of
English to compose a sentence. But you do need to meet certain requirements.
Maybe the analogy is that the KS header supports the 'simple sentence'.
http://en.wikipedia.org/wiki/Sentence_%28linguistics%29
--
Peter Karman . http://peknet.com/ . peter at peknet.com
_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
More information about the kinosearch
mailing list