edu.utdallas.paged.mem.util
Class PagedNTripleReader

java.lang.Object
  extended by edu.utdallas.paged.mem.util.PagedNTripleReader

public class PagedNTripleReader
extends java.lang.Object

A class that is used to convert the N-Triples stored in the Lucene indices into a Triple format

Author:
vaibhav

Method Summary
static java.lang.String createTypedLiteral(java.lang.String lex, java.lang.String typeURI)
          Method that creates a typed literal
static java.lang.String getURI(java.lang.String n)
          Method that gets the string representation of the URI
static java.lang.String readNodeForTriple(java.lang.String object)
          Method that converts a node object of a N-Triple into Triple format
static com.hp.hpl.jena.graph.Triple readNTriple(java.lang.String triple)
          Method to convert a N-Triple to the Triple format
static java.lang.String readResourceForTriple(java.lang.String subject)
          Method that converts the subject of the N-Triple into the representation for a Triple
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readNTriple

public static com.hp.hpl.jena.graph.Triple readNTriple(java.lang.String triple)
Method to convert a N-Triple to the Triple format

Parameters:
triple - - the given N-Triple as a string
Returns:
the converted Triple

getURI

public static java.lang.String getURI(java.lang.String n)
Method that gets the string representation of the URI

Parameters:
n - - the string whose URI is to be determined
Returns:
a string representing the URI

readResourceForTriple

public static java.lang.String readResourceForTriple(java.lang.String subject)
Method that converts the subject of the N-Triple into the representation for a Triple

Parameters:
subject - - the subject of the N-Triple
Returns:
a string representation of the subject

readNodeForTriple

public static java.lang.String readNodeForTriple(java.lang.String object)
Method that converts a node object of a N-Triple into Triple format

Parameters:
object - - the object of the N-Triple
Returns:
a string representation of the N-Triple in Triple format

createTypedLiteral

public static java.lang.String createTypedLiteral(java.lang.String lex,
                                                  java.lang.String typeURI)
Method that creates a typed literal

Parameters:
lex - - the lexical value
typeURI - - the URI
Returns:
a string representation