|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--de.jwg.dbis.rdf.rdfs3.storage.insert.RDFInsert
Description: The class for coordinating basic functions for inserting rdf into the database.
| Constructor Summary | |
RDFInsert()
|
|
| Method Summary | |
void |
enter_namespace_cache(java.lang.String uri,
int id)
|
void |
enter_resource_cache(java.lang.String uri,
int id)
|
int |
get_max_ns_id()
|
int |
get_max_res_id()
|
int |
get_max_source_id()
|
int |
getDBID(java.lang.String uri)
Returns the resource id for the given uri. |
int |
getDBID(java.lang.String uri,
java.lang.String id_name,
java.lang.String table,
java.lang.String col)
Returns the id for the resource with the given uri from the given table. |
int |
getMax_namespace_cache_size()
|
int |
getMax_resource_cache_size()
|
int |
getNS_id(java.lang.String url)
Returns the namespace id for the given url. |
boolean |
getSimple_sql()
|
boolean |
initTest()
|
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. |
void |
insertP(int s_id,
int o_id,
java.lang.String table)
A shortcut method to insert into a property table. |
void |
setMax_namespace_cache_size(int i)
|
void |
setMax_resource_cache_size(int i)
|
void |
setSource(java.lang.String url)
|
int |
storeNamespace(java.lang.String url)
Includes the namespace url into the namespaces table. |
void |
storeSource_usage(int res_id)
Stores that the given resource was used inside the given source. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RDFInsert()
| Method Detail |
public boolean getSimple_sql()
public int get_max_ns_id()
public int get_max_source_id()
public int get_max_res_id()
public void storeSource_usage(int res_id)
res_id - The id of the resource that is used in the given source.public int getDBID(java.lang.String uri)
uri - The uri of the resource.
public int getNS_id(java.lang.String url)
url - The url of the namespace.
public int getDBID(java.lang.String uri,
java.lang.String id_name,
java.lang.String table,
java.lang.String col)
uri - The uri or url for the resource or namespace/source.table - The table we request.col - The column we want to compare with.id_name - The name for the id column (id for resources, ns_id for namespaces and source_id for sources).
public void enter_resource_cache(java.lang.String uri,
int id)
public void enter_namespace_cache(java.lang.String uri,
int id)
public void setSource(java.lang.String url)
public int storeNamespace(java.lang.String url)
url - The url of the namespace.
public void insertP(int s_id,
int o_id,
java.lang.String table)
s_id - The subject id.o_id - The object id.table - The table that will be entered.
public boolean initTest()
public boolean insert(java.lang.String url)
public boolean insert(java.lang.String url,
boolean init,
java.lang.String content)
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.public void setMax_namespace_cache_size(int i)
i - public void setMax_resource_cache_size(int i)
i - public int getMax_namespace_cache_size()
public int getMax_resource_cache_size()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||