fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.interaction
Class RdfStore

java.lang.Object
  extended by fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.interaction.RdfStore

public class RdfStore
extends Object

provides the interaction with Rdf Store.


Field Summary
 gr.ntua.h2rdf.client.Store store
           
 
Constructor Summary
RdfStore()
          Sole constructor.
 
Method Summary
 void connectStore()
          Establish connection with RDF store.
 void deallocate()
          Disconnect from RDF store.
 void insertCrawlingAction(String baseurl, com.hp.hpl.jena.graph.Node resource, String[] crawlingAction)
          Insert set of crawling action with its metadata information.
 void insertObject(String baseurl, com.hp.hpl.jena.graph.Node resource, String[] object)
          Insert a Web object with it's metada value into Rdf Store.
 void insertResource(String baseurl, String timeStamp, ArrayList<String[]> setOfobjects, String type, ArrayList<String[]> outLinks)
          Insert a Web resource with its metadata information into RDF store.
 void Query(String query)
          Query the RDF store.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store

public gr.ntua.h2rdf.client.Store store
Constructor Detail

RdfStore

public RdfStore()
Sole constructor.

Method Detail

connectStore

public void connectStore()
Establish connection with RDF store.


deallocate

public void deallocate()
Disconnect from RDF store.


insertCrawlingAction

public void insertCrawlingAction(String baseurl,
                                 com.hp.hpl.jena.graph.Node resource,
                                 String[] crawlingAction)
                          throws gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
Insert set of crawling action with its metadata information.

Parameters:
baseurl - A url that will be used to uniquely identifying a object accross different resources
resource - A Web resource ID
crawlingAction - Array string that holds different mata data values of crawling action
Throws:
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException

insertObject

public void insertObject(String baseurl,
                         com.hp.hpl.jena.graph.Node resource,
                         String[] object)
                  throws gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
Insert a Web object with it's metada value into Rdf Store.

Parameters:
baseurl - A url that will be used to uniquely identifying a object accross different resources
resource - A Web resource ID
object - Array string that holds different mata data values for a object
Throws:
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException

insertResource

public void insertResource(String baseurl,
                           String timeStamp,
                           ArrayList<String[]> setOfobjects,
                           String type,
                           ArrayList<String[]> outLinks)
                    throws gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
Insert a Web resource with its metadata information into RDF store.

Parameters:
baseurl - A url that will uniquely identify a resource
timeStamp - Web resource creation time
setOfobjects - Web objects that are associated with this specific web resource
type - Helps in differentiating whether it holds semantic objects or just set of links
outLinks - set of out links with there score
Throws:
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException

Query

public void Query(String query)
Query the RDF store.

Parameters:
query - a given query