|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mulgara.util.Trio<SubjectNode,PredicateNode,ObjectNode>
org.mulgara.mrg.Triple
public class Triple
An RDF triple
| Field Summary |
|---|
| Fields inherited from class org.mulgara.util.Trio |
|---|
_1, _2, _3 |
| Constructor Summary | |
|---|---|
Triple(Node[] t)
Create a new triple. |
|
Triple(Node s,
Node p,
Node o)
Create a new triple. |
|
Triple(String s,
PredicateNode p,
ObjectNode o)
Create a new triple. |
|
Triple(String s,
PredicateNode p,
String o)
Create a new triple. |
|
Triple(String s,
PredicateNode p,
URI o)
Create a new triple. |
|
Triple(String s,
String p,
ObjectNode o)
Create a new triple. |
|
Triple(String s,
String p,
String o)
Create a new triple. |
|
Triple(String s,
String p,
URI o)
Create a new triple. |
|
Triple(String s,
URI p,
ObjectNode o)
Create a new triple. |
|
Triple(String s,
URI p,
String o)
Create a new triple. |
|
Triple(String s,
URI p,
URI o)
Create a new triple. |
|
Triple(SubjectNode s,
PredicateNode p,
ObjectNode o)
Create a new triple. |
|
Triple(SubjectNode s,
PredicateNode p,
String o)
Create a new triple with a string literal. |
|
Triple(SubjectNode s,
PredicateNode p,
URI o)
Create a new triple. |
|
Triple(SubjectNode s,
String p,
ObjectNode o)
Create a new triple. |
|
Triple(SubjectNode s,
String p,
String o)
Create a new triple. |
|
Triple(SubjectNode s,
String p,
URI o)
Create a new triple. |
|
Triple(SubjectNode s,
URI p,
ObjectNode o)
Create a new triple. |
|
Triple(SubjectNode s,
URI p,
String o)
Create a new triple. |
|
Triple(SubjectNode s,
URI p,
URI o)
Create a new triple. |
|
Triple(Trio<SubjectNode,PredicateNode,ObjectNode> t)
Create a new triple. |
|
Triple(URI s,
PredicateNode p,
ObjectNode o)
Create a new triple. |
|
Triple(URI s,
PredicateNode p,
String o)
Create a new triple. |
|
Triple(URI s,
PredicateNode p,
URI o)
Create a new triple. |
|
Triple(URI s,
String p,
ObjectNode o)
Create a new triple. |
|
Triple(URI s,
String p,
String o)
Create a new triple. |
|
Triple(URI s,
String p,
URI o)
Create a new triple. |
|
Triple(URI s,
URI p,
ObjectNode o)
Create a new triple. |
|
Triple(URI s,
URI p,
String o)
Create a new triple. |
|
Triple(URI s,
URI p,
URI o)
Create a new triple. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Equality method. |
ObjectNode |
getObject()
Gets the object |
PredicateNode |
getPredicate()
Gets the predicate |
SubjectNode |
getSubject()
Gets the subject |
String |
toString()
Prints a simple representation of the triple. |
| Methods inherited from class org.mulgara.util.Trio |
|---|
getFirst, getSecond, getThird, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Triple(SubjectNode s,
PredicateNode p,
ObjectNode o)
s - The subject.p - The predicate.o - The object.
public Triple(Node s,
Node p,
Node o)
s - The subject.p - The predicate.o - The object.
ClassCastException - If an incompatible type is provided in s, p or o.public Triple(Trio<SubjectNode,PredicateNode,ObjectNode> t)
t - The generalized Triple.public Triple(Node[] t)
t - An array of the triple elements. The parameters must be of the correct types.
ClassCastException - If the array contains Nodes of the wrong types for their position.
public Triple(SubjectNode s,
PredicateNode p,
String o)
s - The subject.p - The predicate.o - The object.
public Triple(URI s,
PredicateNode p,
ObjectNode o)
s - The subject.p - The predicate.o - The object.
public Triple(SubjectNode s,
URI p,
ObjectNode o)
s - The subject.p - The predicate.o - The object.
public Triple(SubjectNode s,
PredicateNode p,
URI o)
s - The subject.p - The predicate.o - The object.
public Triple(URI s,
URI p,
ObjectNode o)
s - The subject.p - The predicate.o - The object.
public Triple(SubjectNode s,
URI p,
URI o)
s - The subject.p - The predicate.o - The object.
public Triple(URI s,
PredicateNode p,
URI o)
s - The subject.p - The predicate.o - The object.
public Triple(URI s,
URI p,
URI o)
s - The subject.p - The predicate.o - The object.
public Triple(String s,
PredicateNode p,
ObjectNode o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(SubjectNode s,
String p,
ObjectNode o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(String s,
String p,
ObjectNode o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(String s,
URI p,
ObjectNode o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(URI s,
String p,
ObjectNode o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(SubjectNode s,
String p,
String o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(SubjectNode s,
URI p,
String o)
s - The subject.p - The predicate.o - The object.
public Triple(SubjectNode s,
String p,
URI o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(String s,
PredicateNode p,
String o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(URI s,
PredicateNode p,
String o)
s - The subject.p - The predicate.o - The object.
public Triple(String s,
PredicateNode p,
URI o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(String s,
String p,
String o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(URI s,
String p,
String o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(URI s,
URI p,
String o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(URI s,
String p,
URI o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(String s,
URI p,
String o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(String s,
URI p,
URI o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.
public Triple(String s,
String p,
URI o)
throws URISyntaxException
s - The subject.p - The predicate.o - The object.
URISyntaxException - A string could not be converted to a Uri.| Method Detail |
|---|
public SubjectNode getSubject()
public PredicateNode getPredicate()
public ObjectNode getObject()
public boolean equals(Object o)
equals in class Trio<SubjectNode,PredicateNode,ObjectNode>public String toString()
toString in class Trio<SubjectNode,PredicateNode,ObjectNode>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||