de.jwg.dbis.rdf.rdfs3.storage.insert
Class StreamBasedInsert

java.lang.Object
  |
  +--de.jwg.dbis.rdf.rdfs3.storage.insert.RDFInsert
        |
        +--de.jwg.dbis.rdf.rdfs3.storage.insert.StreamBasedInsert

public class StreamBasedInsert
extends RDFInsert

Description: For a stream based insertion of the triples. This methode can be used for very big RDF/XML files to avoid the parser to create an internal model first (which might cause an out of memory exception). But note that in this way no validation will/can be performed before inserting the triples.

Version:
1.7
Author:
KarstenTolle

Constructor Summary
StreamBasedInsert()
           
 
Method Summary
 void enter_triple(gr.forth.ics.vrp.corevrp.model.Triple t)
           
 int getTriple_counter()
           
 boolean insert(java.lang.String url)
           
 boolean insert(java.lang.String url, boolean init, java.lang.String content)
          This methode will start the insertion process.
 
Methods inherited from class de.jwg.dbis.rdf.rdfs3.storage.insert.RDFInsert
enter_namespace_cache, enter_resource_cache, get_max_ns_id, get_max_res_id, get_max_source_id, getDBID, getDBID, getMax_namespace_cache_size, getMax_resource_cache_size, getNS_id, getSimple_sql, initTest, insertP, setMax_namespace_cache_size, setMax_resource_cache_size, setSource, storeNamespace, storeSource_usage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamBasedInsert

public StreamBasedInsert()
Method Detail

insert

public boolean insert(java.lang.String url)
Overrides:
insert in class RDFInsert

insert

public boolean insert(java.lang.String url,
                      boolean init,
                      java.lang.String content)
Description copied from class: RDFInsert
This methode will start the insertion process.

Overrides:
insert in class RDFInsert
Parameters:
url - The URL of the file to be inserted. (Might contain wildcards!)
init - For the initialization the RDF and RDFS namespaces are entered as an string representation contained in the content variable. Therefore this boolean needs to be set to true.
content - The RDF/XML string representation in case the variable init is set to true.

enter_triple

public void enter_triple(gr.forth.ics.vrp.corevrp.model.Triple t)

getTriple_counter

public int getTriple_counter()
Returns:
Returns the number of inserted triples.