Skip to content

Commit

Permalink
remove "url" from output #4371
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Nov 5, 2018
1 parent 3a95edf commit 50bc8ca
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,6 @@ public String getJsonLd() {
job.add("@type", "Dataset");
job.add("@id", this.getDataset().getPersistentURL());
job.add("identifier", this.getDataset().getPersistentURL());
job.add("url", this.getDataset().getPersistentURL());
job.add("name", this.getTitle());
JsonArrayBuilder authors = Json.createArrayBuilder();
for (DatasetAuthor datasetAuthor : this.getDatasetAuthors()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ public void testGetJsonLd() throws ParseException {
assertEquals("Dataset", obj.getString("@type"));
assertEquals("https://doi.org/10.5072/FK2/LK0D1H", obj.getString("@id"));
assertEquals("https://doi.org/10.5072/FK2/LK0D1H", obj.getString("identifier"));
assertEquals("https://doi.org/10.5072/FK2/LK0D1H", obj.getString("url"));
assertEquals(null, obj.getString("schemaVersion", null));
assertEquals("Dataset", obj.getJsonObject("license").getString("@type"));
assertEquals("CC0", obj.getJsonObject("license").getString("text"));
Expand Down Expand Up @@ -188,7 +187,6 @@ public void testGetJsonLdNonCC0License() throws ParseException {
assertEquals("Dataset", obj.getString("@type"));
assertEquals("https://doi.org/10.5072/FK2/LK0D1H", obj.getString("@id"));
assertEquals("https://doi.org/10.5072/FK2/LK0D1H", obj.getString("identifier"));
assertEquals("https://doi.org/10.5072/FK2/LK0D1H", obj.getString("url"));
assertEquals(null, obj.getString("schemaVersion", null));
assertEquals("Dataset", obj.getJsonObject("license").getString("@type"));
assertEquals("Call me maybe", obj.getJsonObject("license").getString("text"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ public void testExportDataset() throws Exception {
assertEquals("Dataset", json2.getString("@type"));
assertEquals("https://doi.org/10.5072/FK2/IMK5A4", json2.getString("@id"));
assertEquals("https://doi.org/10.5072/FK2/IMK5A4", json2.getString("identifier"));
assertEquals("https://doi.org/10.5072/FK2/IMK5A4", json2.getString("url"));
assertEquals("Darwin's Finches", json2.getString("name"));
assertEquals("Finch, Fiona", json2.getJsonArray("creator").getJsonObject(0).getString("name"));
assertEquals("Birds Inc.", json2.getJsonArray("creator").getJsonObject(0).getString("affiliation"));
Expand Down

0 comments on commit 50bc8ca

Please sign in to comment.