-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Alessio,

You can create any RDF with rdflib. Creating ontologies is just a matter
of creating the right triples using your ontology languages vocabulary.

I.e. for RDFS:

from rdflib import Graph, RDF, RDFS, URIRef

g=Graph()

animals=URIRef("http://example.org/Animals";)

g.add(( animals, RDF.type, RDFS.Class) )
g.add(( animals, RDFS.label, Literal("Animals"))

etc.

This is not very convenient though. Maybe you mean creating a vocabulary
file like the RDF and RDFS files I used a above? I dont know if rdflib
ships with a utility for creating these from the RDF files of an
ontology, it should :)

If you could specify a bit more what you would like to do I can help you
more!

- - Gunnar

[EMAIL PROTECTED] wrote:
> Hello everyone, my name is Alessio and a developer Italian Zope / Plone.
> I wanted to ask if you can create ontologies with rdflib?
> If you like I do? Could you give me some examples?
> Thanks  
>  --
>  Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>  
>  Sponsor:
>  Cioccolato Venchi: promozione sul cioccolato da ordinare online
> 
> 
>  Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7107&d=20071030
> 
> 
> _______________________________________________
> Dev mailing list
> Dev@rdflib.net
> http://rdflib.net/mailman/listinfo/dev

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHKhNXfD15aMgAOfcRAmhBAKDGEL3SDjJ1D1ZgP8z5ZTmNI5oeJQCfQJ7p
CPtDiofLvR13FPGKggXy33w=
=vPXR
-----END PGP SIGNATURE-----
_______________________________________________
Dev mailing list
Dev@rdflib.net
http://rdflib.net/mailman/listinfo/dev

Reply via email to