|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectubiware.core.SemanticStatement
public class SemanticStatement
Representation of a triple (subject, predicate, object).
| Field Summary | |
|---|---|
java.util.List<java.lang.String> |
memberOf
List of ID's of referencing Contexts if there are several. |
java.lang.String |
object
|
java.lang.String |
objectDatatype
for explicitly typed literals, the type of the object will be set. |
java.lang.String |
objectLanguage
for literals with language defined, the language will be set |
java.lang.String |
predicate
|
int |
referenced
The number of referencing contexts. |
java.lang.String |
subject
|
| Constructor Summary | |
|---|---|
SemanticStatement(SemanticStatement toCopy)
creates an identical semantic statement (deep copy) |
|
SemanticStatement(java.lang.String s,
java.lang.String p,
java.lang.String o)
|
|
SemanticStatement(java.lang.String s,
java.lang.String p,
java.lang.String o,
java.lang.String oD,
java.lang.String oL)
|
|
| Method Summary | |
|---|---|
boolean[] |
bindVars(java.util.HashMap<java.lang.String,java.lang.String> vars)
|
boolean |
equalsUniversal(SemanticStatement other)
returns true this statement is equal (taking universalities into account) to the 'obj' statement. |
java.lang.String |
getObjectVariableName()
Returns the name of the variable of the object if it is a variable. |
java.lang.String |
getPredicateVariableName()
Returns the name of the variable of the predicate if it is a variable. |
java.lang.String |
getSubjectVariableName()
Returns the name of the variable of the subject if it is a variable. |
int |
hashCode()
|
boolean |
hasVariables()
Does this statement have variables? |
boolean |
isObjectAny()
Is the object '*' or a variable? |
boolean |
isObjectContext()
Only true if the object of this semantic statement starts with the CONTEXT_PREFIX |
boolean |
isObjectVar()
Is the object a variable? |
boolean |
isPredicateAny()
Is the predicate '*' or a variable? |
boolean |
isPredicateVar()
Is the predicate a variable? |
boolean |
isSubjectAny()
Is the subject '*' or a variable? |
boolean |
isSubjectContext()
Only true if the subject of this semantic statement starts with the CONTEXT_PREFIX |
boolean |
isSubjectVar()
Is the subject a variable? |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String subject
public java.lang.String predicate
public java.lang.String object
public java.lang.String objectDatatype
public java.lang.String objectLanguage
public java.util.List<java.lang.String> memberOf
public int referenced
| Constructor Detail |
|---|
public SemanticStatement(java.lang.String s,
java.lang.String p,
java.lang.String o)
s - Subject of the statement.p - Predicate of the statement.o - Object of the statement.
public SemanticStatement(java.lang.String s,
java.lang.String p,
java.lang.String o,
java.lang.String oD,
java.lang.String oL)
s - Subject of the statement.p - Predicate of the statement.o - Object of the statement.oD - Datatype of the object.oL - Language of the objectpublic SemanticStatement(SemanticStatement toCopy)
toCopy - the semantic statement to copy from.| Method Detail |
|---|
public boolean isSubjectAny()
public boolean isPredicateAny()
public boolean isObjectAny()
public boolean isSubjectVar()
public boolean isPredicateVar()
public boolean isObjectVar()
public boolean hasVariables()
public java.lang.String getSubjectVariableName()
public java.lang.String getPredicateVariableName()
public java.lang.String getObjectVariableName()
public boolean equalsUniversal(SemanticStatement other)
public boolean[] bindVars(java.util.HashMap<java.lang.String,java.lang.String> vars)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isSubjectContext()
public boolean isObjectContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||