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 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
           
static java.lang.String template
           
 
Constructor Summary
RdfMaker(org.eaglei.datatools.model.AnnotationFormModel anntModel)
           
 
Method Summary
 void createOrCheckModelsWhenSemicolon(com.hp.hpl.jena.rdf.model.Model mapModel, java.lang.String base, Rdf123Expression rdf123Exp, int row, com.hp.hpl.jena.rdf.model.RDFNode objectResource, java.lang.String label, java.lang.String subjectExpression, java.util.Map<java.lang.String,java.lang.String[]> mapInstanceExp)
           
 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()
           
static java.lang.String[] getInstanceURI(java.lang.String xmlString)
          get instance URI from the returned xml
 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)
           
 java.lang.String 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 pushed into Repo)
 void setSession(java.lang.String session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

public static java.lang.String template

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

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 java.lang.String getSession()

setSession

public void setSession(java.lang.String 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 pushed 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

createOrCheckModelsWhenSemicolon

public void createOrCheckModelsWhenSemicolon(com.hp.hpl.jena.rdf.model.Model mapModel,
                                             java.lang.String base,
                                             Rdf123Expression rdf123Exp,
                                             int row,
                                             com.hp.hpl.jena.rdf.model.RDFNode objectResource,
                                             java.lang.String label,
                                             java.lang.String subjectExpression,
                                             java.util.Map<java.lang.String,java.lang.String[]> mapInstanceExp)
                                      throws java.lang.Exception
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

getInstanceURI

public static java.lang.String[] getInstanceURI(java.lang.String xmlString)
get instance URI from the returned xml

Parameters:
xmlString -
Returns:

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)


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