org.dllearner.utilities.datastructures
Class RDFNodeTuple

java.lang.Object
  extended by org.dllearner.utilities.datastructures.RDFNodeTuple
All Implemented Interfaces:
Comparable<RDFNodeTuple>

public class RDFNodeTuple
extends Object
implements Comparable<RDFNodeTuple>

A container which can hold two Strings, mainly used as a helper. Also used as pre form, if you want to create triple, that have the same subject

Author:
Sebastian Hellmann

Field Summary
 com.hp.hpl.jena.rdf.model.RDFNode a
           
 com.hp.hpl.jena.rdf.model.RDFNode b
           
 
Constructor Summary
RDFNodeTuple(com.hp.hpl.jena.rdf.model.RDFNode a, com.hp.hpl.jena.rdf.model.RDFNode b)
           
 
Method Summary
 boolean aPartContains(String partOf)
           
 boolean bPartContains(String partOf)
           
 int compareTo(RDFNodeTuple t)
           
 boolean equals(RDFNodeTuple t)
           
 String getNTriple(String subject)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a

public com.hp.hpl.jena.rdf.model.RDFNode a

b

public com.hp.hpl.jena.rdf.model.RDFNode b
Constructor Detail

RDFNodeTuple

public RDFNodeTuple(com.hp.hpl.jena.rdf.model.RDFNode a,
                    com.hp.hpl.jena.rdf.model.RDFNode b)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(RDFNodeTuple t)

compareTo

public int compareTo(RDFNodeTuple t)
Specified by:
compareTo in interface Comparable<RDFNodeTuple>

aPartContains

public boolean aPartContains(String partOf)

bPartContains

public boolean bPartContains(String partOf)

getNTriple

public String getNTriple(String subject)


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann