Class ProfileRegistry


  • public class ProfileRegistry
    extends java.lang.Object

    Provides a means to map between the URI's that represent ontology languages and their language profiles.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String OWL_DL_LANG
      The URI that maps to the language profile for OWL-DL
      static java.lang.String OWL_LANG
      The URI that maps to the language profile for OWL-Full
      static java.lang.String OWL_LITE_LANG
      The URI that maps to the language profile for OWL-Lite
      static java.lang.String RDFS_LANG
      The URI that maps to the language profile for RDFS
    • Field Detail

      • OWL_LANG

        public static final java.lang.String OWL_LANG
        The URI that maps to the language profile for OWL-Full
      • OWL_DL_LANG

        public static final java.lang.String OWL_DL_LANG
        The URI that maps to the language profile for OWL-DL
      • OWL_LITE_LANG

        public static final java.lang.String OWL_LITE_LANG
        The URI that maps to the language profile for OWL-Lite
      • RDFS_LANG

        public static final java.lang.String RDFS_LANG
        The URI that maps to the language profile for RDFS
    • Method Detail

      • getInstance

        public static ProfileRegistry getInstance()

        Answer the singleton instance

        Returns:
        The singleton registry
      • registerProfile

        public void registerProfile​(java.lang.String uri,
                                    Profile profile)

        Add a language profile with the given URI key

        Parameters:
        uri - The URI denoting the language
        profile - The language profile for the language
      • getProfile

        public Profile getProfile​(java.lang.String uri)

        Answer the language profile for the given language URI, or null if not known.

        Parameters:
        uri - A URI denoting an ontology language
        Returns:
        An ontology language profile for that language