public interface Edge extends org.openrdf.model.Statement, Cloneable
| Modifier and Type | Method and Description |
|---|---|
Edge |
addAnnotation(org.openrdf.model.URI predicate,
org.openrdf.model.Value value)
Add an annotation value to the Edge.
|
void |
copyAnnotations(Edge edge)
Copy the annotation properties from another edge into this Edge.
|
org.openrdf.model.Value |
getAnnotation(org.openrdf.model.URI predicate)
Get an annotation property of this edge.
|
ValueSet |
getAnnotationSet(org.openrdf.model.URI predicate)
Get the values of a specific annotation property as a
ValueSet. |
boolean |
matches(org.openrdf.model.Value a,
org.openrdf.model.Value b)
A convenience function which tests whether two values are equal, or one
is contained in the other.
|
org.openrdf.model.Value |
removeAnnotation(org.openrdf.model.URI predicate)
Remove the specified annotation property from the Edge.
|
Edge |
setAnnotation(org.openrdf.model.URI predicate,
org.openrdf.model.Value value)
Set an annotation property of this edge.
|
org.openrdf.model.Value getAnnotation(org.openrdf.model.URI predicate)
predicate - The predicate that identifies the annotation whose value is to be returned.ValueSet that contains all of the values will be returned. Otherwise,
a single discrete value will be returned, or null if there is no value for the specified annotation.Edge setAnnotation(org.openrdf.model.URI predicate, org.openrdf.model.Value value)
ValueSet, then the entire set
is replaced with the supplied value.predicate - The predicate that identifies the annotation property to be setvalue - The value of the annotation property to be set.org.openrdf.model.Value removeAnnotation(org.openrdf.model.URI predicate)
ValueSet,
the entire set of values is removed.predicate - The predicate that names the annotation to be removedvoid copyAnnotations(Edge edge)
edge - The edge from which annotations will be copiedValueSet getAnnotationSet(org.openrdf.model.URI predicate)
ValueSet.predicate - The predicate that names the annotation propertyEdge addAnnotation(org.openrdf.model.URI predicate, org.openrdf.model.Value value)
predicate - The predicate that names the annotation propertyvalue - The value of the annotation property.boolean matches(org.openrdf.model.Value a,
org.openrdf.model.Value b)
a - A discrete Value (Resource or Literal) or a ValueSetb - Another discrete Value (Resource or Literal) or a ValueSeta and b are equal, or a
is contained in b, or b is contained in a.Copyright © 2019. All rights reserved.