lib/edit.js
function noctua_node(in_id, in_label, in_types, in_inferred_types){
    bbop_node.call(this, in_id, in_label);
    this._is_a = 'bbop-graph-noctua.node';
    var anchor = this;

    // Let's make this an OWL-like world.
    this._types = [];
    this._inferred_types = [];
    this._id2type = {}; // contains map to both types and inferred types
    this._annotations = [];
    this._referenced_subgraphs = [];
    this._embedded_subgraph = null;

    // Incoming ID or generate ourselves.
    if( typeof(in_id) === 'undefined' ){
	this._id = bbop.uuid();
    }else{
	this._id = in_id;
    }

    // Roll in any types that we may have coming in.
    if( us.isArray(in_types) ){
	each(in_types, function(in_type){
	    var new_type = new class_expression(in_type);
	    anchor._id2type[new_type.id()] = new_type;
	    anchor._types.push(new class_expression(in_type));
	});
    }    
    // Same with inferred types.
    if( us.isArray(in_inferred_types) ){
	each(in_inferred_types, function(in_inferred_type){
	    var new_type = new class_expression(in_inferred_type);
	    anchor._id2type[new_type.id()] = new_type;
	    anchor._inferred_types.push(new class_expression(in_inferred_type));
	});
    }
}
function noctua_node(in_id, in_label, in_types, in_inferred_types){
    bbop_node.call(this, in_id, in_label);
    this._is_a = 'bbop-graph-noctua.node';
    var anchor = this;

    // Let's make this an OWL-like world.
    this._types = [];
    this._inferred_types = [];
    this._id2type = {}; // contains map to both types and inferred types
    this._annotations = [];
    this._referenced_subgraphs = [];
    this._embedded_subgraph = null;

    // Incoming ID or generate ourselves.
    if( typeof(in_id) === 'undefined' ){
	this._id = bbop.uuid();
    }else{
	this._id = in_id;
    }

    // Roll in any types that we may have coming in.
    if( us.isArray(in_types) ){
	each(in_types, function(in_type){
	    var new_type = new class_expression(in_type);
	    anchor._id2type[new_type.id()] = new_type;
	    anchor._types.push(new class_expression(in_type));
	});
    }    
    // Same with inferred types.
    if( us.isArray(in_inferred_types) ){
	each(in_inferred_types, function(in_inferred_type){
	    var new_type = new class_expression(in_inferred_type);
	    anchor._id2type[new_type.id()] = new_type;
	    anchor._inferred_types.push(new class_expression(in_inferred_type));
	});
    }
}
function noctua_node ( in_id , in_label , in_types , in_inferred_types ) { bbop_node . call ( this , in_id , in_label ) ; this . _is_a = 'bbop-graph-noctua.node' ; var anchor = this ; // Let's make this an OWL-like world. this . _types = [ ] ; this . _inferred_types = [ ] ; this . _id2type = { } ; // contains map to both types and inferred types this . _annotations = [ ] ; this . _referenced_subgraphs = [ ] ; this . _embedded_subgraph = null ; // Incoming ID or generate ourselves. if ( typeof ( in_id ) === 'undefined' ) { this . _id = bbop . uuid ( ) ; } else { this . _id = in_id ; } // Roll in any types that we may have coming in. if ( us . isArray ( in_types ) ) { each ( in_types , function ( in_type ) { var new_type = new class_expression ( in_type ) ; anchor . _id2type [ new_type . id ( ) ] = new_type ; anchor . _types . push ( new class_expression ( in_type ) ) ; } ) ; } // Same with inferred types. if ( us . isArray ( in_inferred_types ) ) { each ( in_inferred_types , function ( in_inferred_type ) { var new_type = new class_expression ( in_inferred_type ) ; anchor . _id2type [ new_type . id ( ) ] = new_type ; anchor . _inferred_types . push ( new class_expression ( in_inferred_type ) ) ; } ) ; } }
Sublcass of bbop-graph.node for use with Noctua ideas and concepts.

@constructor
@see module:bbop-graph
@alias node
@param {String} [in_id] - new id; otherwise new unique generated
@param {String} [in_label] - node "label"
@param {Array} [in_types] - list of Objects or strings--anything that can be parsed by class_expression
@param {Array} [in_inferred_types] - list of Objects or strings--anything that can be parsed by class_expression
@returns {this}
Sublcass of bbop - graph . node for use with Noctua ideas and concepts .