Skip to content

Commit

Permalink
add relation hadPrimarySource to associated the source provenance log…
Browse files Browse the repository at this point in the history
… of a specific redirect; #199
  • Loading branch information
Jorrit Poelen committed Jan 3, 2024
1 parent ec13d29 commit 6041955
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected URI populateResponseHeader(HttpServletResponse response,
response.setHeader("X-DOI", doi);
influencedBy.add(doi);
}
response.setHeader("X-PROV", provInfo.get(PROVENANCE_ID));
response.setHeader("X-PROV-hadPrimarySource", provInfo.get(PROVENANCE_ID));
response.setHeader("X-PROV-wasInfluencedBy", StringUtils.join(influencedBy, " "));
response.setHeader("X-PROV-wasGeneratedBy", provInfo.get(ACTIVITY));
response.setHeader("X-PROV-generatedAtTime", provInfo.get(SEEN_AT));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import org.junit.Test;

import java.net.URI;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

Expand Down

0 comments on commit 6041955

Please sign in to comment.