/** Return all WasDerivedFrom edges with entity a as a cause. */ public Collection<WasDerivedFrom> getWasDerivedFromWithCause(Entity a) { return entityCauseWasDerivedFromMap.get(a.getId()); }
/** Return all WasDerivedFrom edges with entity a as an effect . */ public Collection<WasDerivedFrom> getWasDerivedFromWithEffect(Entity a) { return entityEffectWasDerivedFromMap.get(a.getId()); }
public Entity add(Entity entity) { return add(entity.getId(),entity); } public Entity add(QualifiedName name, Entity entity) {
public String entityLabel(Entity p) { if (displayEntityValue) { return convertEntityName(""+pf.getLabel(p)); } else { return localnameToString(p.getId()); } } public String entityColor(Entity p) {
public String entityLabel(Entity p) { if (displayEntityValue) { return convertEntityName(""+pf.getLabel(p)); } else { return localnameToString(p.getId()); } } public String entityColor(Entity p) {
/** * Creates a copy of an entity. The copy is shallow in the sense that the new Entity shares the same attributes as the original Entity. * @param e an {@link Entity} to copy * @return a copy of the input {@link Entity} */ public Entity newEntity(Entity e) { Entity res = newEntity(e.getId()); res.getOther().addAll(e.getOther()); res.getType().addAll(e.getType()); res.getLabel().addAll(e.getLabel()); res.getLocation().addAll(e.getLocation()); return res; }
public Entity doAction(Entity e) { List<Attribute> attrs=new LinkedList<Attribute>(); convertTypeAttributes(e,attrs); convertLabelAttributes(e,attrs); convertLocationAttributes(e,attrs); convertValueAttributes(e,attrs); convertAttributes(e,attrs); return c.newEntity(e.getId(), attrs); }
public Entity doAction(Entity e) { List<Attribute> attrs=new LinkedList<Attribute>(); convertTypeAttributes(e,attrs); convertLabelAttributes(e,attrs); convertLocationAttributes(e,attrs); convertValueAttributes(e,attrs); convertAttributes(e,attrs); return c.newEntity(e.getId(), attrs); }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, Entity a, String role, Activity p) { WasGeneratedBy res=newWasGeneratedBy(id, a.getId(), p.getId()); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); return res; }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, Entity a, String role, Activity p) { WasGeneratedBy res=newWasGeneratedBy(id, a.getId(), p.getId()); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); return res; }
public Document makeDoc600() { Entity e1=pFactory.newEntity(q("e1")); Entity e2=pFactory.newEntity(q("e2")); //Activity a1=pFactory.newActivity(q("a1")); WasDerivedFrom wdf1=pFactory.newWasDerivedFrom(null,e2.getId(),e1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(wdf1); doc.getStatementOrBundle().add(wdf1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc1001() { Entity e1=pFactory.newEntity(q("e1")); Entity e2=pFactory.newEntity(q("e2")); AlternateOf alt=pFactory.newAlternateOf(e1.getId(),e2.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(alt); doc.getStatementOrBundle().add(alt); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc1000() { Entity e1=pFactory.newEntity(q("e1")); Entity e2=pFactory.newEntity(q("e2")); SpecializationOf spec=pFactory.newSpecializationOf(e1.getId(),e2.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(spec); doc.getStatementOrBundle().add(spec); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc1301() { Entity e1=pFactory.newEntity(q("e1")); Entity e2=pFactory.newEntity(q("e2")); HadMember mem=pFactory.newHadMember(e1.getId(),e2.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(mem); doc.getStatementOrBundle().add(mem); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
@Override public void doAction(Entity e) { register(e.getId()); registerLocation(e.getLocation()); registerType(e.getType()); registerValue(e.getValue()); registerOther(e.getOther()); }
@Override public void doAction(Entity e) { register(e.getId()); registerLocation(e.getLocation()); registerType(e.getType()); registerValue(e.getValue()); registerOther(e.getOther()); }
public Document makeDoc500() { Entity e1=pFactory.newEntity(q("e1")); Activity a1=pFactory.newActivity(q("a1")); WasGeneratedBy wgb1=pFactory.newWasGeneratedBy(null,e1.getId(),a1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(wgb1); doc.getStatementOrBundle().add(wgb1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc800() { Agent ag1=pFactory.newAgent(q("ag1")); Entity e1=pFactory.newEntity(q("e1")); WasAttributedTo wat1=pFactory.newWasAttributedTo(null,e1.getId(),ag1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(wat1); doc.getStatementOrBundle().add(wat1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }