Re: Adding custom datatype

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Adding-custom-datatype-tp2494p2502.html

Hi,

You can add the triple manually as follows:

onto._add_obj_triple_spo(onto.world._abbreviate("http://myorg/myschema#jsonObject"), rdf_type, rdfs_datatype)


In the examples I tested, the datatype was actually already defined (i.e. in RDFS or XSD).

I'm going to add an option in declare_datatype() for adding the datatype definition triple.

Jiba