TIntArrayList externalParents = new TIntArrayList();
ArrayList<String> externalNames = new ArrayList<String>();
+ TreeMap<String,String> downloads = new TreeMap<String,String>();
public ModelTransferableGraphSource(final ReadGraph graph, TransferableGraphConfiguration2 configuration, final DomainProcessorState state, File ... fs) throws DatabaseException {
this.resourceCount = state.id;
+ state.extensions.put(ExternalDownloadBean.EXTENSION_KEY, new Variant(ExternalDownloadBean.BINDING, new ExternalDownloadBean(downloads)));
+
}
int indent = 0;
state.ids.put(r, state.id);
// Ensure that this resource is included into the set of externals to maintain the total number of externals
state.externals.add(r);
+ String download = graph.getPossibleRelatedValue(res, L0.Ontology_download, Bindings.STRING);
+ if(download != null) {
+ String uri = graph.getURI(res);
+ downloads.put(uri, download);
+ }
return state.id++;
}
}