Import Debian Package descriptions into OWL/RDF ontology using PERL
I have a Protege (RDF/OWL) Ontology of a Debian Package Management System. The Ontology is structured as follows:
Class: Package Datatype Properties: Name architecture section version distribution
Object Properties: predepends enhances recommends suggests
How can I use Perl to execute an algorithm that will automatically import Package Descriptions from the Debian website as instances of my Ontology.
I a开发者_JAVA百科m totally new to Perl language and also Ontologies. Looking forward to some tips.
Thank You
If you have a simple enough ontology you may as well just work in pure RDF. I've heard good things about RDF::Trine. See RDF Primer as well. Looks like CPAN has quite a few modules relating to Debian packages http://search.cpan.org/search?mode=all&query=Debian
http://answers.semanticweb.com is another great resource for semantic web related questions.
Have you looked at ONTO-PERL? It uses its own format, OBO, for ontologies, but provides scripts to convert to and from OWL.
The other piece is parsing the debian package information; that's just a matter of doing it. Have you made a start at it and run into trouble? (It's not a bad project for a new-to-Perl programmer, but maybe not so good if you have a tight timeframe.)
精彩评论