Class InternalGraphQLParser
java.lang.Object
com.semedy.reasoner.parser.graphql.InternalGraphQLParser
Parser for rules.
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTypes()voidparseQuery(InputStream input, Map<String, Object> variables) parse rules and facts in input stream to the containers parsedRules and parsedFactsvoidparseQuery(Reader input, Map<String, Object> variables) parse rules and facts from reader to the containers parsedRules and parsedFactsvoidparseQuery(StringReader input, Map<String, Object> variables) parse rules and facts from string reader to the containers parsedRules and parsedFactsvoidparseQuery(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:
IOExceptionSemReasonerException
-
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:
IOExceptionSemReasonerException
-
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:
IOExceptionSemReasonerException
-
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:
IOExceptionSemReasonerException
-