Class RDFParserRegistry

java.lang.Object
org.apache.jena.riot.RDFParserRegistry

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

    • RDFParserRegistry

      public RDFParserRegistry()
  • Method Details

    • 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
    • registeredLangTriples

      public static Collection<Lang> registeredLangTriples()
      Return registered triple languages.
    • registeredLangQuads

      public static Collection<Lang> registeredLangQuads()
      Return registered quad languages.