You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The related code was not implemented after the migration to Elasticsearch. Use CSW GetRecords with dcat output schema to retrieve the metadata in DCAT/RDF format
summary = "Get catalog content as RDF. This endpoint supports the same Lucene query parameters as for the GUI search.",
686
-
description = ".")
687
-
@GetMapping(
688
-
consumes = {
689
-
MediaType.ALL_VALUE
690
-
},
691
-
produces = {
692
-
"application/rdf+xml", "*"
693
-
})
694
-
@Parameters({
695
-
@Parameter(name = "from", description = "Indicates the start position in a sorted list of matches that the client wants to use as the beginning of a page result.", required = false,
696
-
in = ParameterIn.QUERY, schema = @Schema(type = "integer", format = "int32", defaultValue = "1")),
697
-
@Parameter(name = HITS_PER_PAGE_PARAM, description = "Indicates the number of hits per page.", required = false,
698
-
in = ParameterIn.QUERY, schema = @Schema(type = "integer", format = "int32")),
699
-
//@Parameter(name="to", value = "Indicates the end position in a sorted list of matches that the client wants to use as the ending of a page result", required = false, defaultValue ="10", dataType = "int", paramType = "query"),
in = ParameterIn.QUERY, schema = @Schema(type = "string")),
702
-
@Parameter(name = "title", description = "A search key for the title.", required = false,
703
-
in = ParameterIn.QUERY, schema = @Schema(type = "string")),
704
-
@Parameter(name = "facet.q", description = "A search facet in the Lucene index. Use the GeoNetwork GUI search to generate the suitable filter values. Example: standard/dcat-ap&createDateYear/2018&sourceCatalog/6d93613e-2b76-4e26-94af-4b4c420a1758 (filter by creation year and source catalog).", required = false,
705
-
in = ParameterIn.QUERY, schema = @Schema(type = "string")),
in = ParameterIn.QUERY, schema = @Schema(type = "string")),
710
-
@Parameter(name = "similarity", description = "Use the Lucene FuzzyQuery. Values range from 0.0 to 1.0 and defaults to 0.8.", required = false,
711
-
in = ParameterIn.QUERY, schema = @Schema(type = "number", format = "float", defaultValue = "0.8"))
712
-
})
713
-
@ApiResponses(value = {
714
-
@ApiResponse(responseCode = "200", description = "Return the catalog content as RDF."
715
-
// responseHeaders = {
716
-
// @ResponseHeader(name = "Link", description = " This response header parameter is used to indicate any of the links defined by LDP Paging: first page links, next page links, last page links, previous page links. " +
717
-
// "First page link: " +
718
-
// "a link to the first in-sequence page resource P1 (first) of a page sequence. The first page is the one that a LDP Paging server redirects to (303 response) in response to a retrieval request for the paged resource's URI. Syntactically, a HTTP Link <P1>; rel=\"first\" header [RFC5988]. " +
719
-
// "Next page link: " +
720
-
// "a link to the next in-sequence page resource of a page sequence. Syntactically, a HTTP Link <Pi>; rel=\"next\" header [RFC5988] where the context URI identifies some Pi=1 (first)...n-1 (next to last) and the target URI identifies Pi+1. " +
721
-
// "Last page link: " +
722
-
// "a link to the last in-sequence page resource Pn (last) of a page sequence. The last page is the page that terminates a forward traversal, because it contains no next page link. Syntactically, a HTTP Link <Pn>; rel=\"last\" header [RFC5988]. " +
723
-
// "Previous page link: " +
724
-
// "a link to the previous in-sequence page resource of a page sequence Syntactically, a HTTP Link <Pi>; rel=\"prev\" header [RFC5988] where the context URI identifies some Pi=2...n (last) and the target URI identifies Pi-1. "
725
-
// , response = String.class),
726
-
// @ResponseHeader(name = "ETag", description = "The ETag HTTP response header is an identifier for a specific version of a resource. If the resource at a given URL changes, a new Etag value must be generated. On this API, the ETag value is the version token of the Lucene index. ")
727
-
// }
728
-
),
729
-
@ApiResponse(responseCode = "303", description = "Redirect the client to the first in-sequence page resource. This happens when the paging parameters (from, hitsPerPage) are not included in the request.")
730
-
})
731
-
public
732
-
@ResponseBody
733
-
voidgetAsRdf(
734
-
@Parameter(hidden = true)
735
-
@RequestParam
736
-
Map<String, String> allRequestParams,
737
-
HttpServletResponseresponse,
738
-
HttpServletRequestrequest
739
-
) throwsException {
740
-
//Retrieve the host URL from the GeoNetwork settings
741
-
StringhostURL = getHostURL();
742
-
743
-
//Retrieve the paging parameter values (if present)
//If the paging parameters (from, hitsPerPage) are not included in the request, redirect the client to the first in-sequence page resource. Use default paging parameter values.
//Include the response header "link" parameters as suggested by the W3C Linked Data Platform paging specification (see also: https://www.w3.org/2012/ldp/hg/ldp-paging.html).
0 commit comments