[Xesam] Validator

Ivan Frade ivan.frade at gmail.com
Mon Jul 27 06:56:24 PDT 2009


Hi Sebastian,

 (i couldn't check the wiki page but...)
 We can have the java tools in the repository in case somebody is interested
on it, but the main build (when you run "make distcheck" should use only C
or python or something "mobile friendly".

 Here we have two scenarios:

1) Release a tarball with the ontologies + HTML documentation so
distributions can build packages from it, and tracker, strigi, kde-nepomuk
depend on that package.
    For this we should use python/C and autotools. We have already a "soft
validator" in C, plus a basic HTML generation also in C.

This is the point we discuss on GCDS, and agree on the svn layout, use
autotools and write the HTML generation.

2) Ontology development. While we work in the ontology we can provide a
patch for the ontology and use the validation tools to check everything
looks fine. For this you can use Antoni validator, if you have java in your
development envieronment and get advantage of the "hard validator".

 I couldn't check the wiki page, but i guess antoni wrote down what is his
validator checking so i can cross-check what is missing in the C version.

 What is blocking me now to write a proper HTML generator is to decide what
language to use. I can complete the C code, or rewrite the things in python
(nicer HTML template engines, easier string handling...). Python looks nicer
but i am not sure there is a turtle parser...

 Regards,

Ivan


On Mon, Jul 27, 2009 at 4:22 PM, Sebastian Trüg <strueg at mandriva.com> wrote:

> so you agreed on using java tools then?
> And Ivan, you will not provide an alternative?
>
> Cheers,
> Sebastian
>
> On Monday 27 July 2009 00:29:15 Antoni Mylka wrote:
> > Xesamies,
> >
> > After the discussion with Ivan, I've uploaded a little specification of
> > the validator we used in Nepomuk:
> >
> > https://sourceforge.net/apps/trac/oscaf/wiki/Validator
> >
> > Now I updated the validator code and wrote an ant task that encapsulates
> > it. Basically what you need to do is put a following bit of xml inside
> > build.xml:
> >
> > <onttest>
> >       <ontologies dir="${oscaf.trunk.folder}">
> >               <exclude name="**/README"/>
> >               <exclude name="**/doc/**"/>
> >               <exclude name="**/pimo/**"/>
> >               <exclude name="**/tmo/**"/>
> >               <exclude name="**/base/**"/>
> >       </ontologies>
> >       <baseontologies dir="${oscaf.trunk.folder}">
> >               <include name="**/base/*"/>
> >               <exclude name="**/README"/>
> >       </baseontologies>
> >       <testcases dir="tests" />
> > </onttest>
> >
> > The ontologies, base ontologies and test cases are specified as ant
> > FileSets: http://ant.apache.org/manual/CoreTypes/fileset.html It allows
> > for pretty fancy file choosing schemes.
> >
> > I've uploaded a tarball with the sources of the ant task, all
> > dependencies and a build.xml script that compiles the java source,
> > validates all NIE ontologies and a single example file. It's here:
> >
> > http://www.dfki.uni-kl.de/~mylka/nie-ant.tar.bz2<http://www.dfki.uni-kl.de/%7Emylka/nie-ant.tar.bz2>
> >
> > Please
> > - download, untar
> > - edit the build.xml to point it at the oscaf ontologies trunk folder
> > - type 'ant'
> > - and see the validation report (or some other problem in which case
> > send me an email).
> >
> > Right now it detects 519 problems in NIE. All of them are due to missing
> > base ontologies:
> > - W3C Geo
> > - Masahide Kanzaki EXIF
> > - a little hack that states that all XSD datatypes are rdf datatypes
> >
> > The missing base ontologies are included in the tarball.
> >
> > I would like to create a tools/java folder in SVN and upload the
> > build.xml, the jars and the testcases there. I wouldn't change anything
> > in the 'ontologies' folder. If anyone is allergic to java he/she won't
> > have to check it out at all.
> >
> > More testcases will come in near future. Stay tuned.
> >
> > Any objections?
> >
> > Antoni Mylka
> > antoni.mylka at gmail.com
> >
> > _______________________________________________
> > Xesam mailing list
> > Xesam at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/xesam
> _______________________________________________
> Xesam mailing list
> Xesam at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xesam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/xesam/attachments/20090727/154bedfe/attachment.htm 


More information about the Xesam mailing list