Hi Florent Andre,
Here is the server side code for the functionality you want to use…
and this is the method signature
@RequestMapping(value = { "/{collectionId}/{recordId}.jsonld", "/{collectionId}/{recordId}.json-ld" }, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) |
public ModelAndView recordJSONLD( |
@PathVariable String collectionId, |
@PathVariable String recordId, |
@RequestParam(value = "wskey", required = true) String wskey, |
@RequestParam(value = "format", required = false, defaultValue="compacted") String format, |
@RequestParam(value = "callback", required = false) String callback, |
HttpServletRequest request, HttpServletResponse response) |
The search API (https://github.com/europeana/api2/blob/master/api2-war/src/main/java/eu/europeana/api2/v2/web/controller/SearchController.java)
returns only object “previews” in JSON format, the object access API supports JSON-LD.
BR,
Sergiu
--
You received this message because you are subscribed to the Google Groups "Europeana API forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
europeanaAPI...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
James Morley
Creative Industries Community Developer
T:
M: +44 (0)77 1336 0563
E: James....@europeana.eu
Skype: jamesinealing
If you’re interested in Europe’s cultural heritage, sign up for our newsletter at http://eepurl.com/SAaC5 and start receiving our monthly eNews, in English or French!
Europeana makes Europe’s culture available for all, across borders and generations and for creative re-use – follow how at #AllezCulture
Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. If you are not the named addressee you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.
James Morley
Creative Industries Community Developer
T:
M: +44 (0)77 1336 0563
E: James....@europeana.eu
Skype: jamesinealing
If you’re interested in Europe’s cultural heritage, sign up for our newsletter at http://eepurl.com/SAaC5 and start receiving our monthly eNews, in English or French!
Europeana makes Europe’s culture available for all, across borders and generations and for creative re-use – follow how at #AllezCulture
Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. If you are not the named addressee you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.
As we are talking about the object access here, I notices that we have the statsDuration field in this API response..
but this field is not present in the search API result:
Any plans to add it to this API Response, too?
BR,
Sergiu
From: europe...@googlegroups.com [mailto:europe...@googlegroups.com]
On Behalf Of David Haskiya
Sent: Mittwoch, 10. Dezember 2014 16:49
To: europe...@googlegroups.com
Subject: Re: {Europeana API forum} Search and Request Europeana resources as Json-ld
Hi all,
--