code: def main():
  	
  
  	print("Ontospy " + ontospy.VERSION)
  	ontospy.get_or_create_home_repo()
  
  	opts, args = parse_options()
  
  	if len(args) < 2:
  		printDebug("Please provide two arguments, or use -h for more options.")
  		sys.exit(0)
  
  	var = input("Match classes or properties? [c|p, c=default]:")
  	if var == "c":
  		class_or_prop = "classes"
  	elif var == "p":
  		class_or_prop = "properties"
  	else:
  		class_or_prop = "classes"
  
  	print(class_or_prop)
  
  	var = input("Degree of confidence? [1-10, 5=default]: ")
  	try:
  		confidence = int(var)
  		if not (confidence <= 10 and confidence >= 1):
  			confidence = 5
  	except:
  		confidence = 5
  
  	print(confidence)
  	confidence = confidence / (10 * 1.0) #transform in decimal
  
  	sTime = time.time()
  
  	# automatically name the file unless a name is provided with -o option
  	if not opts.outputfile:
  		try:
  			opts.outputfile = "%s_%s_matching_%s.csv" % (os.path.splitext(args[0])[0].split("/")[-1],
  									os.path.splitext(args[1])[0].split("/")[-1], class_or_prop)
  
  		except:
  			opts.outputfile = "ontospy_matching_%s.csv" % (class_or_prop)
  
  	g1 = ontospy.Ontospy(args[0])
  	g2 = ontospy.Ontospy(args[1])
  
  	matcher(g1, g2, confidence, opts.outputfile, class_or_prop, opts.verbose)
  
  	# finally:
  	# print(some stats....)
  	eTime = time.time()
  	tTime = eTime - sTime
  	printDebug("-" * 10)
  	printDebug("Time:	   %0.2fs" %  tTime)
docs: command line script