public static HashMap<String,List<String>> parseTriples(
			HashMap<String,List<String>> pDictionary, Resource subj, Property pred, RDFNode obj) {
		
		if (obj.isLiteral()) {
			//System.out.println(obj.asLiteral().getLexicalForm().toString());
			if (!(pDictionary.containsKey(pred.toString()))) {
				ArrayList<String> objList = new ArrayList<String>();
				objList.add(obj.asLiteral().getLexicalForm().toString());
				pDictionary.put(pred.toString(), objList);
			} else {pDictionary.get(pred.toString()).add(obj.asLiteral().getLexicalForm().toString());}
		} 
		else if (obj.isURIResource()) {
			if (!(pDictionary.containsKey(pred.toString()))) {
				ArrayList<String> aL = new ArrayList<String>();
				aL.add(obj.toString());
				pDictionary.put(pred.toString(), aL);
			} else {pDictionary.get(pred.toString()).add(obj.toString());}
			
		} else {
			System.out.println("Not a URI or a literal!!");
			System.out.println(obj.toString());
			throw new EmptyStackException();
		}
		return null;	
	}