Package org.apache.jena.reasoner.rulesys
Class Rule.Parser
java.lang.Object
org.apache.jena.reasoner.rulesys.Rule.Parser
- Enclosing class:
- Rule
Inner class which provides minimalist parsing support based on
tokenisation with depth 1 lookahead. No sensible error reporting on offer.
No embedded spaces supported.
-
Method Summary
Modifier and TypeMethodDescriptionReturn a map of all the discovered prefixesReturn the complete set of preloaded rules;Parse a rule, terminated by a "]" or "." character.Return a trace of the recently seen tokens, for use in error reportingvoid
registerPrefix
(String prefix, String namespace) Register a new namespace prefix with the parservoid
registerPrefixMap
(Map<String, String> map) Register a set of prefix to namespace mappings with the parser
-
Method Details
-
registerPrefix
Register a new namespace prefix with the parser -
registerPrefixMap
Register a set of prefix to namespace mappings with the parser -
getPrefixMap
Return a map of all the discovered prefixes -
getRulesPreload
Return the complete set of preloaded rules; -
recentTokens
Return a trace of the recently seen tokens, for use in error reporting -
parseRule
Parse a rule, terminated by a "]" or "." character.
-