public interface OValue
Developer note: ideally this would be implemented as a superinteface of the Literal and OResource interfaces, but Literal is implemented as a class and has to remain a class for backwards compatibility.löschnaz
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Literal |
getLiteral()
Get the
Literal object if this object represents a literal. |
OResource |
getOResource()
Get the
OResource object if this object represents a resource. |
int |
hashCode() |
boolean |
isLiteral()
Check if the object represents a literal.
|
boolean |
isOResource()
Check if the object represents a OResource
|
String |
toString() |
String |
toTurtle()
Create a String representation that conforms to Turtle language syntax.
|
boolean isLiteral()
boolean isOResource()
OResource getOResource()
OResource
object if this object represents a resource. Throws a
GateOntologyException
if this object represents a literal.Literal getLiteral()
Literal
object if this object represents a literal.
Throws a GateOntologyException
if this object represents a
node ID.String toTurtle()
Copyright © 2024 GATE. All rights reserved.