Class RDFParserRegistry


  • public class RDFParserRegistry
    extends java.lang.Object
    The registry of languages and parsers. To register a new parser:
    • Constructor Detail

      • RDFParserRegistry

        public RDFParserRegistry()
    • Method Detail

      • init

        public static void init()
      • registerLangTriples

        public static void registerLangTriples​(Lang lang,
                                               ReaderRIOTFactory factory)
        Register a language and its parser factory. To create a Lang object use LangBuilder.
      • registerLangQuads

        public static void registerLangQuads​(Lang lang,
                                             ReaderRIOTFactory factory)
        Register a language and its parser factory. To create a Lang object use LangBuilder.
      • removeRegistration

        public static void removeRegistration​(Lang lang)
        Remove registration
      • getFactory

        public static ReaderRIOTFactory getFactory​(Lang language)
        Return the parser factory for the language, or null if not registered. Use RDFParser.create() ... .build()
      • isRegistered

        public static boolean isRegistered​(Lang lang)
        return true if the language has a registered parser.
      • isTriples

        public static boolean isTriples​(Lang lang)
        return true if the language is registered with the triples parser factories
      • isQuads

        public static boolean isQuads​(Lang lang)
        return true if the language is registered with the quads parser factories