public class EdgeImpl extends org.openrdf.model.impl.ContextStatementImpl implements Edge
| Constructor and Description |
|---|
EdgeImpl(Edge other) |
EdgeImpl(org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object) |
EdgeImpl(org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object,
org.openrdf.model.Resource context) |
| 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.
|
equals, getObject, getPredicate, getSubject, hashCodepublic EdgeImpl(org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
public EdgeImpl(org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object,
org.openrdf.model.Resource context)
public EdgeImpl(Edge other)
public org.openrdf.model.Value getAnnotation(org.openrdf.model.URI predicate)
EdgegetAnnotation in interface Edgepredicate - 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.public Edge setAnnotation(org.openrdf.model.URI predicate, org.openrdf.model.Value value)
EdgeValueSet, then the entire set
is replaced with the supplied value.setAnnotation in interface Edgepredicate - The predicate that identifies the annotation property to be setvalue - The value of the annotation property to be set.public org.openrdf.model.Value removeAnnotation(org.openrdf.model.URI predicate)
EdgeValueSet,
the entire set of values is removed.removeAnnotation in interface Edgepredicate - The predicate that names the annotation to be removedpublic void copyAnnotations(Edge edge)
EdgecopyAnnotations in interface Edgeedge - The edge from which annotations will be copiedpublic ValueSet getAnnotationSet(org.openrdf.model.URI predicate)
EdgeValueSet.getAnnotationSet in interface Edgepredicate - The predicate that names the annotation propertypublic Edge addAnnotation(org.openrdf.model.URI predicate, org.openrdf.model.Value value)
EdgeaddAnnotation in interface Edgepredicate - The predicate that names the annotation propertyvalue - The value of the annotation property.public boolean matches(org.openrdf.model.Value a,
org.openrdf.model.Value b)
EdgeCopyright © 2019. All rights reserved.