Package org.mycore.lod.controller
Class MCRLodClassification
java.lang.Object
org.mycore.lod.controller.MCRLodClassification
Linked Open Data: Classification End point
- Author:
- Robert Stephan
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
getClassification
(String classId) return a classification (with its categories on the first hierarchy level as linked open data)jakarta.ws.rs.core.Response
getClassification
(String classId, String categId) return a category and its children on the first hierarchy level as linked open datajakarta.ws.rs.core.Response
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?
-
Field Details
-
ERROR_MCRCLASS_NOT_FOUND
error code for error response- See Also:
-
ERROR_MCRCLASS_ID_MISMATCH
error code for error response- See Also:
-
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 IDcategId
- - the category ID- Returns:
- the Response with the category as linked open data
-