java.lang.Object
org.apache.jena.riot.RDFParserRegistry
The registry of languages and parsers.
To register a new parser:
- Register the language with
RDFLanguages
- Register the parser factory with
RDFParserRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReaderRIOTFactory
getFactory
(Lang language) Return the parser factory for the language, or null if not registered.static void
init()
static boolean
return true if the language is registered with the quads parser factoriesstatic boolean
isRegistered
(Lang lang) return true if the language has a registered parser.static boolean
return true if the language is registered with the triples parser factoriesstatic Collection<Lang>
Return registered quad languages.static Collection<Lang>
Return registered triple languages.static void
registerLangQuads
(Lang lang, ReaderRIOTFactory factory) Register a language and its parser factory.static void
registerLangTriples
(Lang lang, ReaderRIOTFactory factory) Register a language and its parser factory.static void
removeRegistration
(Lang lang) Remove registration
-
Constructor Details
-
RDFParserRegistry
public RDFParserRegistry()
-
-
Method Details
-
init
public static void init() -
registerLangTriples
Register a language and its parser factory. To create aLang
object useLangBuilder
. -
registerLangQuads
Register a language and its parser factory. To create aLang
object useLangBuilder
. -
removeRegistration
Remove registration -
getFactory
Return the parser factory for the language, or null if not registered. UseRDFParser.create() ... .build()
-
isRegistered
return true if the language has a registered parser. -
isTriples
return true if the language is registered with the triples parser factories -
isQuads
return true if the language is registered with the quads parser factories -
registeredLangTriples
Return registered triple languages. -
registeredLangQuads
Return registered quad languages.
-