Vertex pruebaJson = graph.addVertex("class:Person");JSONObject json = new JSONObject();
json.put("name","someone");json.put("address","somewhere");json.put("value","{'archetype_details':{'class':'ARCHETYPED','archetype_id':{'class':'ARCHETYPE_ID','value':'openEHR-EHR-COMPOSITION.report-mnd.v1'},'template_id':{'class':'TEMPLATE_ID','value':'Laboratory Report'},'rm_version':'1.0.1'}}");
pruebaJson.setProperty("data", json.toString());
OrientGraph g=new OrientGraph(yourPath);
ODocument pruebaJson = new ODocument("Person");
JSONObject json = new JSONObject();
json.put("name","someone");
json.put("address","somewhere");
json.put("value","{'archetype_details':{'class':'ARCHETYPED','archetype_id':{'class':'ARCHETYPE_ID','value':'openEHR-EHR-COMPOSITION.report-mnd.v1'},'template_id':{'class':'TEMPLATE_ID','value':'Laboratory Report'},'rm_version':'1.0.1'}}");
pruebaJson.fromJSON("{ 'data' : " + json.toString() + "}");
pruebaJson.save();
g.commit();
alter class yourclass superclasses v