Skip to content
Snippets Groups Projects
Commit 565c1a3a authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Sprint/2020-12' into 'master'

Sprint/2020 12

See merge request coscine/cs/database!88
parents 873acad2 e3869d8c
No related branches found
No related tags found
1 merge request!88Sprint/2020 12
......@@ -43,12 +43,12 @@ namespace Coscine.Database.Models
return resource;
}
public string GenerateId(string resourceId, string filename, string version)
public string GenerateId(string resourceId, string filename)
{
// Double UrlEncode since converting it to Uri executes one UrlDecode and Virtuoso
// graph names don't support special characters
var encodedFileName = HttpUtility.UrlEncode(HttpUtility.UrlEncode(filename));
return $"https://purl.org/coscine/md/{resourceId}/{encodedFileName}/{version}/";
return $"https://purl.org/coscine/md/{resourceId}/{encodedFileName}/";
}
public Uri CreateUri(string graphName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment