[Jslib] Re: Advice wanted about RDF / XML
Mike Potter
nospam@nothanks.com
Wed, 13 Mar 2002 18:19:56 -0500
The .zip file available from
http://jslib.mozdev.org/downloads/index.html doesn't contain an rdf
directory, it only has one rdf.js file in the io section.
I downloaded the rdf/ directory from CVS (luckily there's only a few
files :) ) but it would be good to update that .zip file.
Mike
Eric Plaster wrote:
> RDF will do what you are looking for. Take a look at the documentation
> for RDF on the jslib project. The documentation has some examples of
> how to use it.
>
> You can use different datasources in one true rather easily. I don't
> have an example handy, but you can mail me directly if you have any
> questions. Also, you can look at my project for examples.
>
> As far as scalability, I find that the larger the RDF the slower it
> gets. You can fix this in a number of ways. In your case, I would have
> a seperate RDF for each game, and load that rdf when the game is
> selected. This way the user doesn't have to wait for the whole thing to
> load.
>
> RDF also has the benefit of being loadable from an http url. So you can
> have a static, read-only datasource out on the net that can be merged
> into a tree.
>
> -eric
>
> Mike Potter wrote:
>
>> Hi all:
>> I'm about to start a new project, probably on mozdev, that will allow
>> people to manage results from their sporting events.
>> This program will allow you to enter in the opponent, game time,
>> scores etc...
>> The problem I'm having right now is that I don't know how to store
>> the data. I'd like to store it as XML files, but I can't find an easy
>> way to read and write XML files, and to manipulate them like they were
>> a tree.
>> Then I came across the RDF stuff, and it looks easier to do, but I'm
>> not sure really how it works, and how it will scale.
>> I was thinking that my XML data file would look like this:
>> <games>
>> <game id="game1" date="somedate" opponent="Some Opponent"
>> myscore="4" oppscore="3"/>
>> <game id="game2" date="somedate" opponent="Some Other Opponent"
>> myscore="5" oppscore="1"/>
>> </games>
>>
>> Any recommendations on how I should be looking to store my data? XML
>> or RDF? Can the RDF class of jslib do what I'm looking to do?
>> Also, its possible that there's going to be another data source with
>> game details, can I link one data source to another easily in RDF?
>> So many questions, so little time... :)
>> Please cc me at mikep@oeone.com, since I'm not really on this NG a lot.
>> Thanks!
>> Mike
>
>
>