Project

General

Profile

« Previous | Next » 

Revision 54986

deletion of contexts associated to zenodo communities (id contains "https://zenodo.org/communities/") and new example test resource added

View differences:

modules/dnet-directindex-api/trunk/src/test/java/eu/dnetlib/msro/openaireplus/api/objects/ResultEntryTest.java
245 245
	private void testAsIndexRecord_json(final String filename) throws Exception {
246 246
		final ResultEntry pub =
247 247
				new Gson().fromJson(new InputStreamReader(getClass().getResourceAsStream(filename)), ResultEntry.class);
248

  
248
		pub.filterContexts();
249 249
		final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd");
250 250
		System.out.println(xml);
251 251

  
......
272 272
		System.out.println(StringEscapeUtils.escapeXml11(unicodeTxt));
273 273
	}
274 274

  
275

  
276
	@Test
277
	public void testAsIndexRecord_json_zenodocommunities()throws Exception{
278
		testAsIndexRecord_json("test_zenodo_community.json");
279
	}
280

  
275 281
}
modules/dnet-directindex-api/trunk/src/test/resources/eu/dnetlib/msro/openaireplus/api/objects/test_zenodo_community.json
1
{"authors": ["Dag Haug", "Marius J\xf8hndal"],
2
  "collectedFromId": "re3data_____::r3d100010468",
3
  "contexts": ["https://zenodo.org/communities/zenodo"],
4
  "description": "<p>Official releases of the PROIEL treebank of ancient Indo-European languages</p>",
5
  "hostedById": "re3data_____::r3d100010468",
6
  "licenseCode": "OPEN",
7
  "originalId": "10.5281/zenodo.11003",
8
  "pids": [{"type": "oai", "value": "oai:zenodo.org:11003"},
9
  {"type": "doi", "value": "10.5281/zenodo.11003"}],
10
  "publisher": "Zenodo",
11
  "resourceType": "0021",
12
  "title": "proiel-treebank: 20140723 version",
13
  "type": "dataset",
14
  "url": "https://zenodo.org/record/11003"}

Also available in: Unified diff