public OPMGraph newOPMGraph(Collection<Account> accs, Collection<Overlaps> ops, Collection<Process> ps, Collection<Artifact> as, Collection<Agent> ags, Collection<Object> lks, Collection<Annotation> anns) { return newOPMGraph(null,accs,ops,ps,as,ags,lks,anns); }
public OPMGraph newOPMGraph(Collection<Account> accs, Overlaps [] ovs, Process [] ps, Artifact [] as, Agent [] ags, Object [] lks) { return newOPMGraph(accs, ((ovs==null) ? null : Arrays.asList(ovs)), ((ps==null) ? null : Arrays.asList(ps)), ((as==null) ? null : Arrays.asList(as)), ((ags==null) ? null : Arrays.asList(ags)), ((lks==null) ? null : Arrays.asList(lks))); } public OPMGraph newOPMGraph(Collection<Account> accs,
public OPMGraph newOPMGraph(String id, Collection<Account> accs, Overlaps [] ovs, Process [] ps, Artifact [] as, Agent [] ags, Object [] lks, Annotation [] anns) { return newOPMGraph(id, accs, ((ovs==null) ? null : Arrays.asList(ovs)), ((ps==null) ? null : Arrays.asList(ps)), ((as==null) ? null : Arrays.asList(as)), ((ags==null) ? null : Arrays.asList(ags)), ((lks==null) ? null : Arrays.asList(lks)), ((anns==null) ? null : Arrays.asList(anns))); }
OPMGraph res=super.newOPMGraph(qname.getLocalPart(), accs, new LinkedList(),
public OPMGraph newOPMGraph(OPMGraph graph) { return newOPMGraph(graph.getAccounts(), graph.getProcesses(), graph.getArtifacts(), graph.getAgents(), graph.getDependencies(), graph.getAnnotations()); }
/** Returns a graph with the same structure, in which the * effective membership of all nodes has been computed. The function returns an entirely new graph, without modifying the original. */ public OPMGraph effectiveMembership (OPMGraph g) { Accounts accs=g.getAccounts(); Processes ps=g.getProcesses(); Artifacts as=g.getArtifacts(); Agents ags=g.getAgents(); Dependencies lks=g.getDependencies(); OPMGraph g2=of.newOPMGraph(accs, ps, as, ags, lks); return g2; }
Collection<Object> edges=new LinkedList(); OPMGraph graph=pFactory.newOPMGraph(accounts, overlaps, processes,
OPMGraph res=super.newOPMGraph(gr.getId(), accs, new LinkedList(),
Collection<org.openprovenance.model.Annotation> anns) OPMGraph graph=super.newOPMGraph(id,accs,ops,ps,as,ags,lks,anns); HasFacade facade=(HasFacade) graph; org.openprovenance.rdf.OPMGraph rdfGraph=(org.openprovenance.rdf.OPMGraph) facade.findMyFacade();
Collection<Object> edges=new LinkedList(); OPMGraph graph=pFactory.newOPMGraph(accounts, overlaps, processes,
public OPMGraph union (OPMGraph g1, OPMGraph g2) { Accounts accs=union(g1.getAccounts(),g2.getAccounts()); Processes ps=union(g1.getProcesses(),g2.getProcesses()); Artifacts as=union(g1.getArtifacts(),g2.getArtifacts()); Agents ags=union(g1.getAgents(),g2.getAgents()); Dependencies lks=union(g1.getDependencies(), g2.getDependencies()); OPMGraph g=of.newOPMGraph(accs, ps, as, ags, lks); return g; }