Skip to content
Snippets Groups Projects
Commit edaf3fe1 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Merge branch 'Topic/802-refactorFileMetadata' into 'Product/801-refactorFileMetadata'

New: Removed version from GenerateId

See merge request coscine/cs/database!85
parents bd37684e b1c67d7f
No related branches found
No related tags found
3 merge requests!89Product/801 refactor file metadata,!88Sprint/2020 12,!85New: Removed version from GenerateId
......@@ -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