public class Variable extends VariableOrIRI
| Modifier and Type | Class and Description |
|---|---|
static class |
Variable.FromProperties |
name| Constructor and Description |
|---|
Variable(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAsProperty(PrefixedName typeName,
Variable varRef,
PrefixedName propertyName)
Add a property for which this variable can be a representation.
|
Variable |
asVariable() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,Variable.FromProperties> |
fromProperties()
Return the properties for which this variable is a representation.
|
Variable.FromProperties |
fromProperties(java.lang.String typeName)
Return the properties for which this variable is a representation for a specified type.For example in the following sparql declaration
the "?
|
PrefixedName |
getFirstProperty()
Return the first associated property for this variable.
|
int |
hashCode() |
boolean |
isFromProperties()
Return true if this variable is a representation of a property.
|
boolean |
isFromProperties(java.lang.String typeName)
Return true if this variable is a representation of a property on a specified type.
|
boolean |
isVariable() |
java.lang.String |
toString() |
addAsType, compareTo, fromTypes, getFirstType, getName, hasType, isFromTypesclone, finalize, getClass, notify, notifyAll, wait, wait, waitasIRI, asProperty, asValue, createIRI, createPropertyDecl, createValue, isIRI, isProperty, isPropertyDecl, isValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic void addAsProperty(PrefixedName typeName, Variable varRef, PrefixedName propertyName)
SELECT ?group0 ?actorRole1
WHERE {
?group0 a orig:Actor .
?group0 orig:hasActorRole ?actorRole1 .
}
typeName - the prefixed name for the typevarRef - the variable reference on which the property is appliedpropertyName - the prefixed name for the propertypublic boolean isFromProperties()
public java.util.Map<java.lang.String,Variable.FromProperties> fromProperties()
SELECT ?group0 ?actorRole1
WHERE {
?group0 a orig:Actor .
?group0 orig:hasActorRole ?actorRole1 .
}
public boolean isFromProperties(java.lang.String typeName)
typeName - the prefixed name for the typepublic PrefixedName getFirstProperty()
isFromProperties() return false.public Variable.FromProperties fromProperties(java.lang.String typeName)
SELECT ?group0 ?actorRole1
WHERE {
?group0 a orig:Actor .
?group0 orig:hasActorRole ?actorRole1 .
}
typeName - the type namepublic int hashCode()
hashCode in class VariableOrIRIpublic boolean equals(java.lang.Object obj)
equals in class VariableOrIRIpublic boolean isVariable()
public Variable asVariable()
Copyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence