Class SemanticMarkupFormatter


  • public final class SemanticMarkupFormatter
    extends java.lang.Object
    Class providing schema/bioschemas markups
    Author:
    Daniela Butano
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> formatBioEntity​(javax.servlet.http.HttpServletRequest request, int id)
      Returns bioschema.org markups to be added to the report page of bio entities
      static java.util.Map<java.lang.String,​java.lang.Object> formatInstance​(javax.servlet.http.HttpServletRequest request, Profile profile)
      Returns schema.org markups to be added to the home page
      static boolean isEnabled()
      Return true if markup are enabled (disabled by default)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • formatInstance

        public static java.util.Map<java.lang.String,​java.lang.Object> formatInstance​(javax.servlet.http.HttpServletRequest request,
                                                                                            Profile profile)
        Returns schema.org markups to be added to the home page
        Parameters:
        request - the HttpServletRequest
        profile - the profile
        Returns:
        the map containing the markups
      • formatBioEntity

        public static java.util.Map<java.lang.String,​java.lang.Object> formatBioEntity​(javax.servlet.http.HttpServletRequest request,
                                                                                             int id)
        Returns bioschema.org markups to be added to the report page of bio entities
        Parameters:
        request - the HttpServletRequest
        id - intermine internal id
        Returns:
        the map containing the markups
      • isEnabled

        public static boolean isEnabled()
        Return true if markup are enabled (disabled by default)
        Returns:
        true if markup are enabled