* Remote Graph Store protocol service
* @param authenticator
* HTTP Authenticator
*/
public static void copyToRemoteDataset(Dataset source, String service, HttpAuthenticator authenticator) {
DatasetAccessor target = DatasetAccessorFactory.createHTTP(service, authenticator);
target.putModel(source.getDefaultModel());
Iterator<String> uris = source.listNames();
while (uris.hasNext()) {
String uri = uris.next();
target.putModel(uri, source.getNamedModel(uri));
}
}