Package | Description |
---|---|
gate.creole.ontology |
The GATE ontology API.
|
Modifier and Type | Method and Description |
---|---|
Literal |
LiteralOrONodeID.getLiteral()
Get the
Literal object if this object represents a literal. |
Literal |
OValue.getLiteral()
Get the
Literal object if this object represents a literal. |
Modifier and Type | Method and Description |
---|---|
List<Literal> |
OResource.getAnnotationPropertyValues(AnnotationProperty theAnnotationProperty)
Gets the list of values for a given property name.
|
Set<Literal> |
OResource.getComments()
Deprecated.
|
List<Literal> |
OInstance.getDatatypePropertyValues(DatatypeProperty aProperty)
Gets a list of values for the given Property.
|
Set<Literal> |
OResource.getLabels()
This method returns a set of labels specified on this resource.
|
List<Literal> |
Ontology.getOntologyAnnotationValues(AnnotationProperty ann)
Get the values of an ontology annotation property.
|
Modifier and Type | Method and Description |
---|---|
void |
OResource.addAnnotationPropertyValue(AnnotationProperty theAnnotationProperty,
Literal literal)
Adds a new annotation property value and specifies the language.
|
void |
OInstance.addDatatypePropertyValue(DatatypeProperty aProperty,
Literal value)
Adds the value for the given Property.
|
void |
OntologyTripleStore.addTriple(ONodeID subject,
OURI predicate,
Literal object)
Add a triple with a literal triple object to the triple store.
|
List<OResource> |
Ontology.getOResourcesWith(RDFProperty aProperty,
Literal aValue)
This method given a property (either an annotation or datatype),
retrieves a list of resources which have the provided literal set
as a value.
|
boolean |
OResource.hasAnnotationPropertyWithValue(AnnotationProperty aProperty,
Literal aValue)
Checks if the resource has the provided annotation property set on
it with the specified value.
|
boolean |
OInstance.hasDatatypePropertyWithValue(DatatypeProperty aProperty,
Literal aValue)
Checks if the resource has the provided datatype property set on it with the specified value.
|
boolean |
OntologyTripleStore.hasTriple(ONodeID subject,
OURI predicate,
Literal object)
Check if a given triple with a literal object is part of the ontology.
|
void |
OResource.removeAnnotationPropertyValue(AnnotationProperty theAnnotationProperty,
Literal literal)
For the current resource, the method removes the given literal for
the given property.
|
void |
OInstance.removeDatatypePropertyValue(DatatypeProperty aProperty,
Literal value)
Remove the provided value for the given property.
|
void |
OntologyTripleStore.removeTriple(ONodeID subject,
OURI predicate,
Literal object)
Remove a statement(triple) with a literal triple object from the ontology triple
store.
|
void |
OntologyBooleanQuery.setBinding(String varName,
Literal value)
Re-assign a query variable to a new value.
|
void |
OntologyTupleQuery.setBinding(String varName,
Literal value)
Set the binding of a query variable to a new value.
|
void |
HasValueRestriction.setHasValue(Literal resource)
Sets the literal as a restricted value.
|
void |
Ontology.setOntologyAnnotation(AnnotationProperty ann,
Literal value)
Set an annotation property for the ontology to the specified literal
value.
|
void |
OntologyTripleStoreListener.tripleAdded(ONodeID subject,
OURI predicate,
Literal object) |
void |
OntologyTripleStoreListener.tripleRemoved(ONodeID subject,
OURI predicate,
Literal object) |
Copyright © 2024 GATE. All rights reserved.