public class RDFPredicateMapping extends Object implements StackMapping
| Constructor and Description |
|---|
RDFPredicateMapping(StatementPatternQuery.Pattern type,
RDFValue pred,
RDFValue context) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(RippleList arg,
Sink<RippleList> solutions,
ModelConnection mc)
Applies the mapping to a single argument,
producing zero or more solutions and passing them into a downstream
Sink |
int |
arity() |
StackMapping |
getInverse() |
boolean |
isTransparent() |
String |
toString() |
public RDFPredicateMapping(StatementPatternQuery.Pattern type, RDFValue pred, RDFValue context)
public int arity()
arity in interface StackMappingpublic boolean isTransparent()
isTransparent in interface Mapping<RippleList,RippleList,ModelConnection>public void apply(RippleList arg, Sink<RippleList> solutions, ModelConnection mc) throws RippleException
MappingSinkapply in interface Mapping<RippleList,RippleList,ModelConnection>arg - the argument data itemsolutions - the solutions the argument is mapped tomc - a helper object providing context (may be null)RippleException - if a data handling error occurspublic StackMapping getInverse() throws RippleException
getInverse in interface StackMappingStackMapping exactly inverse to this mapping,
or a NullMapping if no such mapping can be defined.RippleException - if the inverse cannot be determinedCopyright © 2007-2012 fortytwo.net. All Rights Reserved.