Class InternalGraphQLParser
java.lang.Object
com.semedy.reasoner.parser.graphql.InternalGraphQLParser
Parser for rules.
- Author:
- angele
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTypes()
void
parseQuery
(InputStream input, Map<String, Object> variables) parse rules and facts in input stream to the containers parsedRules and parsedFactsvoid
parseQuery
(Reader input, Map<String, Object> variables) parse rules and facts from reader to the containers parsedRules and parsedFactsvoid
parseQuery
(StringReader input, Map<String, Object> variables) parse rules and facts from string reader to the containers parsedRules and parsedFactsvoid
parseQuery
(String input, Map<String, Object> variables) parse rules and facts from string to the containers parsedRules and parsedFacts
-
Constructor Details
-
InternalGraphQLParser
public InternalGraphQLParser()
-
-
Method Details
-
getPattern
-
getTopAliases
-
getVariables
-
getTypes
-
getOperation
-
parseQuery
public void parseQuery(InputStream input, Map<String, Object> variables) throws IOException, SemReasonerExceptionparse rules and facts in input stream to the containers parsedRules and parsedFacts- Parameters:
input
- , input streamvariables
- , variables to be subsitutedparsedRules
- , container to parse rules intoparsedFacts
- , container to parse facts into- Throws:
IOException
SemReasonerException
-
parseQuery
public void parseQuery(StringReader input, Map<String, Object> variables) throws IOException, SemReasonerExceptionparse rules and facts from string reader to the containers parsedRules and parsedFacts- Parameters:
input
- , input string readervariables
- , variables to be subsitutedparsedRules
- , container to parse rules intoparsedFacts
- , container to parse facts into- Throws:
IOException
SemReasonerException
-
parseQuery
public void parseQuery(Reader input, Map<String, Object> variables) throws IOException, SemReasonerExceptionparse rules and facts from reader to the containers parsedRules and parsedFacts- Parameters:
input
- , input readervariables
- , variables to be substitutedparsedRules
- , container to parse rules intoparsedFacts
- , container to parse facts into- Throws:
IOException
SemReasonerException
-
parseQuery
public void parseQuery(String input, Map<String, Object> variables) throws SemReasonerException, IOExceptionparse rules and facts from string to the containers parsedRules and parsedFacts- Parameters:
input
- , input stringvariables
- , variables to be substitutedparsedRules
- , container to parse rules intoparsedFacts
- , container to parse facts into- Throws:
IOException
SemReasonerException
-