Previous topic

SPARQL utils

Next topic

Model-View-Control

This Page

JSON Utils

The jsonutils module contains tools to create JSON data from various ELTK objects.

class eltk.utils.jsonutils.ComplexEncoder(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, encoding='utf-8', default=None)

The ComplexEncoder class is an extension that creates JSON compatible with the javascript Extjs.TreePanel class.

makeInstance(inst)

makeInstance is necessary so that JSON doens’t turn everything into a string during a recursive dump.

Parameter:inst (OWLClass) – an instance of an OWLClass
Return type:dict