@Override public void doAction(Bundle bun, ProvUtilities provUtilities) { if (flatten) { provUtilities.forAllStatement(bun.getStatement(), this); } else { IndexedDocument iDoc=bundleMap.get(bun.getId()); if (iDoc==null) { iDoc=new IndexedDocument(pFactory, null,flatten); bundleMap.put(bun.getId(),iDoc); } u.forAllStatement(bun.getStatement(), iDoc); } }
@Override public void doAction(Bundle bun, ProvUtilities provUtilities) { if (flatten) { provUtilities.forAllStatement(bun.getStatement(), this); } else { IndexedDocument iDoc=bundleMap.get(bun.getId()); if (iDoc==null) { iDoc=new IndexedDocument(pFactory, null,flatten); bundleMap.put(bun.getId(),iDoc); } u.forAllStatement(bun.getStatement(), iDoc); } }
@Override public void doAction(Bundle bun, ProvUtilities provUtilities) { bun.setId(uniquify(bun.getId())); provUtilities.forAllStatement(bun.getStatement(), this); }
static public Namespace gatherNamespaces(Bundle bundle) { NamespaceGatherer gatherer=new NamespaceGatherer(); u.forAllStatement(bundle.getStatement(), gatherer); gatherer.register(bundle.getId()); Namespace ns=gatherer.getNamespace(); return ns; }
static public Namespace gatherNamespaces(Bundle bundle) { NamespaceGatherer gatherer=new NamespaceGatherer(); u.forAllStatement(bundle.getStatement(), gatherer); gatherer.register(bundle.getId()); Namespace ns=gatherer.getNamespace(); return ns; }
static public Namespace gatherNamespaces(Bundle bundle, ProvFactory pFactory) { NamespaceGatherer gatherer=new NamespaceGatherer(); u.forAllStatement(bundle.getStatement(), gatherer); gatherer.register(bundle.getId()); Namespace ns=gatherer.getNamespace(); Namespace ns2=pFactory.newNamespace(ns); return ns2; }
static public Namespace gatherNamespaces(Bundle bundle, ProvFactory pFactory) { NamespaceGatherer gatherer=new NamespaceGatherer(); u.forAllStatement(bundle.getStatement(), gatherer); gatherer.register(bundle.getId()); Namespace ns=gatherer.getNamespace(); Namespace ns2=pFactory.newNamespace(ns); return ns2; }