sparqlGraphLibrary/src/main/java/com/ge/research/semtk/load/utility/ImportSpec.java
public JSONObject addNode(String sparqlId, String typeUri, String lookupMode) {
		
		JSONArray nodeArr = (JSONArray) json.get(JKEY_IS_NODES);
		JSONObject node = new JSONObject();
		node.put(JKEY_IS_NODE_SPARQL_ID, sparqlId);
		node.put(JKEY_IS_NODE_TYPE, typeUri);
		if (lookupMode != null) {
			node.put(JKEY_IS_NODE_LOOKUP_MODE, lookupMode);
		}
		node.put(JKEY_IS_MAPPING, new JSONArray());
		node.put(JKEY_IS_PROPS, new JSONArray());
		nodeArr.add(node);
		return node;
	}
/**
	 * Add node to the importspec.
	 * Importspec must have all the nodes in a nodegroup
	 * @param sparqlId
	 * @param typeUri
	 * @param lookupMode
	 */
Add node to the importspec.
Importspec must have all the nodes in a nodegroup
@param sparqlId
@param typeUri
@param lookupMode
Add node to the importspec . Importspec must have all the nodes in a nodegroup @param sparqlId @param typeUri @param lookupMode
public JSONObject addNode(String sparqlId, String typeUri, String lookupMode) {
		JSONArray nodeArr = (JSONArray) json.get(JKEY_IS_NODES);
		JSONObject node = new JSONObject();
		node.put(JKEY_IS_NODE_SPARQL_ID, sparqlId);
		node.put(JKEY_IS_NODE_TYPE, typeUri);
		if (lookupMode != null) {
			node.put(JKEY_IS_NODE_LOOKUP_MODE, lookupMode);
		}
		node.put(JKEY_IS_MAPPING, new JSONArray());
		node.put(JKEY_IS_PROPS, new JSONArray());
		nodeArr.add(node);
		return node;
	}
public JSONObject addNode ( String sparqlId , String typeUri , String lookupMode ) { JSONArray nodeArr = ( JSONArray ) json . get ( JKEY_IS_NODES ) ; JSONObject node = new JSONObject ( ) ; node . put ( JKEY_IS_NODE_SPARQL_ID , sparqlId ) ; node . put ( JKEY_IS_NODE_TYPE , typeUri ) ; if ( lookupMode != null ) { node . put ( JKEY_IS_NODE_LOOKUP_MODE , lookupMode ) ; } node . put ( JKEY_IS_MAPPING , new JSONArray ( ) ) ; node . put ( JKEY_IS_PROPS , new JSONArray ( ) ) ; nodeArr . add ( node ) ; return node ; }
Add node to the importspec.
Add node to the importspec .