Skip to content
Snippets Groups Projects
Commit b1c67d7f authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

New: removed version from GenerateId coscine/issues#802

parent bd37684e
Branches
Tags
3 merge requests!89Product/801 refactor file metadata,!88Sprint/2020 12,!85New: Removed version from GenerateId
...@@ -43,12 +43,12 @@ namespace Coscine.Database.Models ...@@ -43,12 +43,12 @@ namespace Coscine.Database.Models
return resource; 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 // Double UrlEncode since converting it to Uri executes one UrlDecode and Virtuoso
// graph names don't support special characters // graph names don't support special characters
var encodedFileName = HttpUtility.UrlEncode(HttpUtility.UrlEncode(filename)); 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) 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