public void addProperty(Annotation ann, Property p) { super.addProperty(ann,p); Object o=((HasFacade) ann).findMyFacade(); org.openprovenance.rdf.Annotation ann2=(org.openprovenance.rdf.Annotation) o; org.openprovenance.rdf.Property p2=(org.openprovenance.rdf.Property) ((HasFacade)p).findMyFacade(); ann2.getProperties().add(p2); }
public void addProperty(EmbeddedAnnotation ann, Property p) { super.addProperty(ann,p); Object o=((HasFacade) ann).findMyFacade(); org.openprovenance.rdf.Annotation ann2=(org.openprovenance.rdf.Annotation) o; org.openprovenance.rdf.Property p2=(org.openprovenance.rdf.Property) ((HasFacade)p).findMyFacade(); ann2.getProperties().add(p2); }
public EmbeddedAnnotation newEmbeddedAnnotation(String id, List<Property> properties, Collection<AccountRef> accs, Object dummyParameterForAvoidingSameErasure) { EmbeddedAnnotation res=of.createEmbeddedAnnotation(); res.setId(id); if (properties!=null) { addProperty(res,properties); } addAccounts(res,accs); return res; }
public Annotation newAnnotation(String id, Object o, List<Property> properties, Collection<AccountRef> accs) { Annotation res=of.createAnnotation(); res.setId(id); res.setLocalSubject(o); for (Property property: properties) { addProperty(res,property); } addAccounts(res,accs); return res; }
public EmbeddedAnnotation newEmbeddedAnnotation(String id, String property, Object value, Collection<AccountRef> accs, Object dummyParameterForAvoidingSameErasure) { EmbeddedAnnotation res=of.createEmbeddedAnnotation(); res.setId(id); addProperty(res,newProperty(property,value)); addAccounts(res,accs); return res; } public EmbeddedAnnotation newEmbeddedAnnotation(String id,
public Annotation newAnnotation(String id, Ref ref, String property, Object value, Collection<AccountRef> accs) { Annotation res=of.createAnnotation(); res.setId(id); res.setLocalSubject(ref.getRef()); addProperty(res,newProperty(property,value)); addAccounts(res,accs); return res; }