Class MCRLodClassification

java.lang.Object
org.mycore.lod.controller.MCRLodClassification

@Path("/classification") public class MCRLodClassification extends Object
Linked Open Data: Classification End point
Author:
Robert Stephan
  • Field Details

    • ERROR_MCRCLASS_NOT_FOUND

      public static final String ERROR_MCRCLASS_NOT_FOUND
      error code for error response
      See Also:
    • ERROR_MCRCLASS_ID_MISMATCH

      public static final String ERROR_MCRCLASS_ID_MISMATCH
      error code for error response
      See Also:
    • ERROR_MCRCLASS_TRANSFORMATION

      public static final String ERROR_MCRCLASS_TRANSFORMATION
      error code for error response
      See Also:
  • Constructor Details

    • MCRLodClassification

      public MCRLodClassification()
  • Method Details

    • outputLODClassificationRoot

      @GET public jakarta.ws.rs.core.Response outputLODClassificationRoot()
      return the list of available classifications as Linked Open Data TODO Is there a reasonable response on the base path of an LOD URI, or remove this endpoint completely?
      Returns:
      a jersey response with the list of classifications
    • getClassification

      @GET @Path("/{classid}") public jakarta.ws.rs.core.Response getClassification(@PathParam("classid") String classId)
      return a classification (with its categories on the first hierarchy level as linked open data)
      Parameters:
      classId - - the classification ID
      Returns:
      the Response with the classification as linked open data
    • getClassification

      @GET @Path("/{classid}/{categid}") public jakarta.ws.rs.core.Response getClassification(@PathParam("classid") String classId, @PathParam("categid") String categId)
      return a category and its children on the first hierarchy level as linked open data
      Parameters:
      classId - - the class ID
      categId - - the category ID
      Returns:
      the Response with the category as linked open data