def compare(referenceOnto, somegraph):
	"""
	Desc
	"""

	spy1 = Ontology(referenceOnto)
	spy2 = Ontology(somegraph)

	class_comparison = {}
	for x in spy2.allclasses:
		if x not in spy1.allclasses:
			class_comparison[x] = False
		else:
			class_comparison[x] = True

	prop_comparison = {}
	for x in spy2.allinferredproperties:
		if x not in spy1.allinferredproperties:
			prop_comparison[x] = False
		else:
			prop_comparison[x] = True


	return {'stats' : {	'classes': len(spy2.allclasses),
						'properties' : len(spy2.allinferredproperties),
						'triples' : len(spy2.rdflib_graph)},
			'class_comparison' : class_comparison ,
			'prop_comparison' : prop_comparison}
Desc