function buildNode(quads, nodeURI, nodeClass) {
	// The node's style in cytoscape
	let style = ndStyle(quads, nodeURI);
	let fixedLabel =
		util.findQuad(quads, nodeURI, ND.labelType).object.value === ND.Fixed;
	// Structure of the RDF representation
	let structure = buildStructure(quads, nodeURI);
	let typeQuad = util.findQuad(quads, nodeURI, ND.type);
	//TODO: What if type is undefined (e.g. for decorators?)
	let type = typeQuad ? typeQuad.object.value : "";

	// Properties fields for the details panel
	// Properties could be infered from the structure
	//let properties;
	//TODO: Also consider class(Composite, Decorator, Leaf) and name for the "Add node" panel
	//TODO: Rename type to class? (not nodeURI!!!!!)
	let title = util.findQuad(quads, nodeURI, ND.name).object.value;
	let nodeDef = {
		id: title.replace(/ /g, ""),
		title,
		class: nodeClass,
		type,
		structure,
		style,
		fixedLabel
	};

	// Store the Node Definition
	nodeDefs.push(nodeDef);
}
// For each node, build structure and style
For each node, build structure and style
For each node build structure and style
function buildNode(quads, nodeURI, nodeClass) {
	let style = ndStyle(quads, nodeURI);
	let fixedLabel =
		util.findQuad(quads, nodeURI, ND.labelType).object.value === ND.Fixed;
	let structure = buildStructure(quads, nodeURI);
	let typeQuad = util.findQuad(quads, nodeURI, ND.type);
	let type = typeQuad ? typeQuad.object.value : "";
	let title = util.findQuad(quads, nodeURI, ND.name).object.value;
	let nodeDef = {
		id: title.replace(/ /g, ""),
		title,
		class: nodeClass,
		type,
		structure,
		style,
		fixedLabel
	};
	nodeDefs.push(nodeDef);
}
function buildNode ( quads , nodeURI , nodeClass ) { let style = ndStyle ( quads , nodeURI ) ; let fixedLabel = util . findQuad ( quads , nodeURI , ND . labelType ) . object . value === ND . Fixed ; let structure = buildStructure ( quads , nodeURI ) ; let typeQuad = util . findQuad ( quads , nodeURI , ND . type ) ; let type = typeQuad ? typeQuad . object . value : "" ; let title = util . findQuad ( quads , nodeURI , ND . name ) . object . value ; let nodeDef = { id : title . replace ( / / g , "" ) , title , class : nodeClass , type , structure , style , fixedLabel } ; nodeDefs . push ( nodeDef ) ; }
For each node, build structure and style
For each node build structure and style
// The node's style in cytoscape // Structure of the RDF representation //TODO: What if type is undefined (e.g. for decorators?) // Properties fields for the details panel // Properties could be infered from the structure //let properties; //TODO: Also consider class(Composite, Decorator, Leaf) and name for the "Add node" panel //TODO: Rename type to class? (not nodeURI!!!!!) // Store the Node Definition