public static void insertExtendedNetwork(ExtendedNetwork net, ExtendedNetworkData d){
		
		ExtendedNetworkData extData;
			
		if (net!=null) //call from the Rest Interface
			extData = net.getNetwork();		
		else //call from createMultiple
			extData=d;

		//Recover the network object (from the Rest Interface) attributes
		String name=extData.getName();
		String n=extData.getId();	
		String shared=extData.isShared();	
		String status=extData.getStatus();	
		String tenant=extData.getTenant_id();
		String type=extData.getNetwork_type();
		String physical=extData.getPhysical_network();
		
		//query- insert a network instance with the Extended attributes (extended attributes only if they are present)
		String queryString = 
				"PREFIX base: <http://www.semanticweb.org/spalazzi/ontologies/2014/1/FedCoT#> "+
				"PREFIX owl: <http://www.w3.org/2002/07/owl#/> "+
				"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#/> "+
				"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#/> "+
				"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#/> "+
				"INSERT DATA " +
				"{" +
				"      base:"+tenant+" rdf:type base:Tenant;" +
				"      }; ";
		if (physical!=null){
			queryString += 
				"INSERT DATA " +
				"{" +
				"      base:"+physical+" rdf:type base:PhysicalNetwork;" +
				"      }; ";
		}
		queryString += 
				"INSERT DATA " +
				"{" +			
				"      base:"+n+" rdf:type base:Network;" +			
				"      base:hasName '"+name+"';" +
				"      base:isShared "+shared+";" +
				"      base:hasStatus '"+status+"';";
		if (type!=null){
			queryString += 
				"      base:ofType '"+type+"';";
		}
		queryString += 
				"      base:hasOwner base:"+tenant+";";
		if (physical!=null){
			queryString += 
				"      base:hasPhysicalResource base:"+physical+";";
		}	
		queryString += 
				"      }";

		ParliamentModel.updateQuery(queryString);
		
	}