org.eaglei.datatools.etl.server
Class RdfMaker

java.lang.Object
  extended by org.eaglei.datatools.etl.server.RdfMaker

public class RdfMaker
extends java.lang.Object


Field Summary
static java.lang.String currentlyProcessingFile
           
static java.lang.String directory
           
static java.lang.String log
           
static java.lang.String mapDirectory
           
static java.lang.String maps
           
static java.lang.String oputputdirectory
           
 java.lang.String order
           
static java.lang.String promoteParameter
           
static java.lang.String repo
           
 
Constructor Summary
RdfMaker(org.eaglei.datatools.model.AnnotationFormModel anntModel)
           
 
Method Summary
 java.util.Map<java.lang.String,javax.swing.table.DefaultTableModel> ExcelToTableModel(java.io.InputStream excelInputStream)
          converts Excel into CSV TableModel
 java.util.Map<java.lang.String,com.hp.hpl.jena.rdf.model.Model> generateRDFGraph(java.util.Map<java.lang.String,javax.swing.table.DefaultTableModel> tableModelMap, java.util.Map<java.lang.String,java.io.InputStream> mapStreamMap)
          Generates RDGGraph by tableModel and mapStream and pushes into Repo
 int getCount()
           
 java.lang.String[] getLabelAndRootURI(com.hp.hpl.jena.rdf.model.Model tempModel, int row, Rdf123Expression rdf123Exp)
           
 java.lang.String getLabelBySubjectExpression(com.hp.hpl.jena.rdf.model.Model tempModel, int row, Rdf123Expression rdf123Exp, java.lang.String subjectExpression)
           
 java.lang.String getObjectFromModelBySubjectAndType(com.hp.hpl.jena.rdf.model.Model rdfModel, java.lang.String subjectExpression)
           
 org.eaglei.security.Session getSession()
           
 java.lang.String getTypeFromModelByObject(com.hp.hpl.jena.rdf.model.Model rdfModel, java.lang.String objectExpression)
           
static void main(java.lang.String[] args)
           
 boolean rdfToRepoByExcelStream(java.lang.String excelFolder, java.lang.String mapFolder)
          Get all files from the specified directory and call generateRDFGraph(which inturn generates the RDF and pushes into Repo)
 void setSession(org.eaglei.security.Session session)
           
 void updateInstanceIfAdditionalDatafound(java.lang.String instanceID, com.hp.hpl.jena.rdf.model.Model modelFromExcel, java.lang.String subjectExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repo

public static java.lang.String repo

log

public static java.lang.String log

directory

public static java.lang.String directory

oputputdirectory

public static java.lang.String oputputdirectory

mapDirectory

public static java.lang.String mapDirectory

promoteParameter

public static java.lang.String promoteParameter

currentlyProcessingFile

public static java.lang.String currentlyProcessingFile

order

public java.lang.String order

maps

public static java.lang.String maps
Constructor Detail

RdfMaker

public RdfMaker(org.eaglei.datatools.model.AnnotationFormModel anntModel)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getCount

public int getCount()

getSession

public org.eaglei.security.Session getSession()

setSession

public void setSession(org.eaglei.security.Session session)

rdfToRepoByExcelStream

public boolean rdfToRepoByExcelStream(java.lang.String excelFolder,
                                      java.lang.String mapFolder)
                               throws java.lang.Exception
Get all files from the specified directory and call generateRDFGraph(which inturn generates the RDF and pushes into Repo)

Throws:
java.lang.Exception

generateRDFGraph

public java.util.Map<java.lang.String,com.hp.hpl.jena.rdf.model.Model> generateRDFGraph(java.util.Map<java.lang.String,javax.swing.table.DefaultTableModel> tableModelMap,
                                                                                        java.util.Map<java.lang.String,java.io.InputStream> mapStreamMap)
                                                                                 throws java.lang.Exception
Generates RDGGraph by tableModel and mapStream and pushes into Repo

Throws:
java.lang.Exception

ExcelToTableModel

public java.util.Map<java.lang.String,javax.swing.table.DefaultTableModel> ExcelToTableModel(java.io.InputStream excelInputStream)
                                                                                      throws java.lang.Exception
converts Excel into CSV TableModel

Parameters:
excelInputStream -
Returns:
Throws:
java.lang.Exception

getLabelAndRootURI

public java.lang.String[] getLabelAndRootURI(com.hp.hpl.jena.rdf.model.Model tempModel,
                                             int row,
                                             Rdf123Expression rdf123Exp)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getLabelBySubjectExpression

public java.lang.String getLabelBySubjectExpression(com.hp.hpl.jena.rdf.model.Model tempModel,
                                                    int row,
                                                    Rdf123Expression rdf123Exp,
                                                    java.lang.String subjectExpression)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

getObjectFromModelBySubjectAndType

public java.lang.String getObjectFromModelBySubjectAndType(com.hp.hpl.jena.rdf.model.Model rdfModel,
                                                           java.lang.String subjectExpression)

getTypeFromModelByObject

public java.lang.String getTypeFromModelByObject(com.hp.hpl.jena.rdf.model.Model rdfModel,
                                                 java.lang.String objectExpression)

updateInstanceIfAdditionalDatafound

public void updateInstanceIfAdditionalDatafound(java.lang.String instanceID,
                                                com.hp.hpl.jena.rdf.model.Model modelFromExcel,
                                                java.lang.String subjectExpression)
                                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009-2010 Eagle-I. All Rights Reserved.