public class Pattern extends Object
| Constructor and Description |
|---|
Pattern(String id,
String description,
String sparqlWherePattern,
String sparqlPatternPrevalence,
Collection<PatternParameter> parameters,
Collection<ResultAnnotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
Collection<ResultAnnotation> |
getBindedAnnotations(Collection<Binding> bindings)
Goes through all external annotations and if it finds a literal value with %%XX%%
it replaces it with the binding value
|
String |
getDescription() |
String |
getId() |
PatternParameter |
getParameter(String parameterURI)
Returns a parameter object from a parameter URI
|
Collection<PatternParameter> |
getParameters()
Returns the Pattern Parameters as an immutable Collection
|
String |
getSparqlPatternPrevalence() |
String |
getSparqlWherePattern() |
boolean |
isValid() |
public Pattern(String id, String description, String sparqlWherePattern, String sparqlPatternPrevalence, Collection<PatternParameter> parameters, Collection<ResultAnnotation> annotations)
public boolean isValid()
public Collection<ResultAnnotation> getBindedAnnotations(Collection<Binding> bindings)
public String getId()
public String getDescription()
public String getSparqlWherePattern()
public String getSparqlPatternPrevalence()
public Collection<PatternParameter> getParameters()
public PatternParameter getParameter(String parameterURI)
parameterURI - the parameter uRICopyright © 2014. All rights reserved.