Package org.eclipse.rdf4j.spin
Class SpinParser
- java.lang.Object
-
- org.eclipse.rdf4j.spin.SpinParser
-
public class SpinParser extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpinParser.Input
-
Constructor Summary
Constructors Constructor Description SpinParser()
SpinParser(SpinParser.Input input)
SpinParser(SpinParser.Input input, com.google.common.base.Function<IRI,String> wellKnownVarsMapper, com.google.common.base.Function<IRI,String> wellKnownFuncMapper)
-
Method Summary
-
-
-
Constructor Detail
-
SpinParser
public SpinParser()
-
SpinParser
public SpinParser(SpinParser.Input input)
-
SpinParser
public SpinParser(SpinParser.Input input, com.google.common.base.Function<IRI,String> wellKnownVarsMapper, com.google.common.base.Function<IRI,String> wellKnownFuncMapper)
-
-
Method Detail
-
getFunctionParsers
public List<FunctionParser> getFunctionParsers()
-
setFunctionParsers
public void setFunctionParsers(List<FunctionParser> functionParsers)
-
getTupleFunctionParsers
public List<TupleFunctionParser> getTupleFunctionParsers()
-
setTupleFunctionParsers
public void setTupleFunctionParsers(List<TupleFunctionParser> tupleFunctionParsers)
-
isStrictFunctionChecking
public boolean isStrictFunctionChecking()
-
setStrictFunctionChecking
public void setStrictFunctionChecking(boolean strictFunctionChecking)
-
parseRuleProperties
public Map<IRI,RuleProperty> parseRuleProperties(TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
isThisUnbound
public boolean isThisUnbound(Resource subj, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseConstraintViolation
public ConstraintViolation parseConstraintViolation(Resource subj, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parse
public ParsedOperation parse(Resource queryResource, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseQuery
public ParsedQuery parseQuery(Resource queryResource, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseConstructQuery
public ParsedGraphQuery parseConstructQuery(Resource queryResource, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseSelectQuery
public ParsedTupleQuery parseSelectQuery(Resource queryResource, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseAskQuery
public ParsedBooleanQuery parseAskQuery(Resource queryResource, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseDescribeQuery
public ParsedDescribeQuery parseDescribeQuery(Resource queryResource, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseUpdate
public ParsedUpdate parseUpdate(Resource queryResource, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parse
protected ParsedOperation parse(Resource queryResource, IRI queryClass, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseFunction
public Function parseFunction(IRI funcUri, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseMagicProperty
public TupleFunction parseMagicProperty(IRI propUri, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseArguments
public Map<IRI,Argument> parseArguments(IRI moduleUri, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
parseExpression
public ValueExpr parseExpression(Value expr, TripleSource store) throws RDF4JException
- Throws:
RDF4JException
-
reset
public void reset(IRI... uris)
Resets/clears any cached information about the given URIs.- Parameters:
uris
- if none are specified all cached information is cleared.
-
-