public final class Pattern extends Object
| Constructor and Description |
|---|
Pattern(String id,
String description,
String sparqlWherePattern,
String sparqlPatternPrevalence,
Collection<PatternParameter> parameters,
Collection<ResultAnnotation> annotations)
Constructor for Pattern.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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()
Getter for the field
description. |
String |
getId()
Getter for the field
id. |
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()
Getter for the field
sparqlPatternPrevalence. |
String |
getSparqlWherePattern()
Getter for the field
sparqlWherePattern. |
int |
hashCode() |
boolean |
isValid()
isValid.
|
public Pattern(String id, String description, String sparqlWherePattern, String sparqlPatternPrevalence, Collection<PatternParameter> parameters, Collection<ResultAnnotation> annotations)
Constructor for Pattern.
id - a String object.description - a String object.sparqlWherePattern - a String object.sparqlPatternPrevalence - a String object.parameters - a Collection object.annotations - a Collection object.public boolean isValid()
isValid.
public Collection<ResultAnnotation> getBindedAnnotations(Collection<Binding> bindings)
bindings - a Collection object.Collection object.public String getDescription()
Getter for the field description.
String object.public String getSparqlWherePattern()
Getter for the field sparqlWherePattern.
String object.public String getSparqlPatternPrevalence()
Getter for the field sparqlPatternPrevalence.
String object.public Collection<PatternParameter> getParameters()
public PatternParameter getParameter(String parameterURI)
parameterURI - the parameter uRICopyright © 2015. All rights reserved.