var BaseProperty = require("../elements/properties/BaseProperty");
var BaseNode = require("../elements/nodes/BaseNode");
var DatatypeNode = require("../elements/nodes/DatatypeNode");
var ObjectProperty = require("../elements/properties/implementations/OwlObjectProperty");
var DatatypeProperty = require("../elements/properties/implementations/OwlDatatypeProperty");
var RdfsSubClassOf = require("../elements/properties/implementations/RdfsSubClassOf");
var Label = require("../elements/links/Label");

module.exports = (function () {
	var tools = {};

	tools.isLabel = function (element) {
		return element instanceof Label;
	};

	tools.isNode = function (element) {
		return element instanceof BaseNode;
	};

	tools.isDatatype = function (node) {
		return node instanceof DatatypeNode;
	};

	tools.isProperty = function(element) {
		return element instanceof BaseProperty;
	};

	tools.isObjectProperty = function (element) {
		return element instanceof ObjectProperty;
	};

	tools.isDatatypeProperty = function (element) {
		return element instanceof DatatypeProperty;
	};

	tools.isRdfsSubClassOf = function (property) {
		return property instanceof RdfsSubClassOf;
	};

	return function () {
		return tools;
	};
})();

@@ -496,16 +496,33 @@
 bel%22);%0A%0A
+%0Avar tools = %7B%7D;%0A
 module.e
@@ -530,17 +530,16 @@
 ports = 
-(
 function
@@ -549,26 +549,26 @@
  %7B%0A%09
-var
+return
  tools
- = %7B
+;%0A
 %7D;%0A%0A
-%09
 tool
@@ -592,33 +592,32 @@
 ion (element) %7B%0A
-%09
 %09return element 
@@ -634,22 +634,20 @@
  Label;%0A
-%09
 %7D;%0A%0A
-%09
 tools.is
@@ -666,33 +666,32 @@
 ion (element) %7B%0A
-%09
 %09return element 
@@ -707,30 +707,28 @@
 f BaseNode;%0A
-%09
 %7D;%0A%0A
-%09
 tools.isData
@@ -748,25 +748,24 @@
 on (node) %7B%0A
-%09
 %09return node
@@ -790,22 +790,20 @@
 peNode;%0A
-%09
 %7D;%0A%0A
-%09
 tools.is
@@ -821,16 +821,17 @@
 function
+ 
 (element
@@ -826,33 +826,32 @@
 ion (element) %7B%0A
-%09
 %09return element 
@@ -867,38 +867,36 @@
 f BaseProperty;%0A
-%09
 %7D;%0A%0A
-%09
 tools.isObjectPr
@@ -917,33 +917,32 @@
 ion (element) %7B%0A
-%09
 %09return element 
@@ -960,38 +960,36 @@
 ObjectProperty;%0A
-%09
 %7D;%0A%0A
-%09
 tools.isDatatype
@@ -1016,25 +1016,24 @@
 (element) %7B%0A
-%09
 %09return elem
@@ -1065,22 +1065,20 @@
 operty;%0A
-%09
 %7D;%0A%0A
-%09
 tools.is
@@ -1112,25 +1112,24 @@
 property) %7B%0A
-%09
 %09return prop
@@ -1164,57 +1164,7 @@
 Of;%0A
-%09
 %7D;%0A
-%0A%09return function () %7B%0A%09%09return tools;%0A%09%7D;%0A%7D)();%0A

Simplify code