org.ontobox.fast.box
Class FastBoxWriter
java.lang.Object
org.ontobox.box.base.BaseBoxWriter
org.ontobox.fast.box.FastBoxWriter
- All Implemented Interfaces:
- BoxWriter
public class FastBoxWriter
- extends BaseBoxWriter
- Author:
- Anton Malykh
Method Summary |
void |
addObject(int object,
int oprop,
int index,
int value)
Add OProperty value |
void |
addObjectClass(int object,
int cl)
|
void |
addString(int object,
int oprop,
int index,
java.lang.String value)
Add string TProperty value |
void |
addSubclass(int sup,
int sub)
|
protected void |
annotateForEntity(int id,
java.lang.String name,
java.lang.String value)
|
protected void |
deleteForClass(int id)
|
protected void |
deleteForObject(int id)
|
protected void |
deleteForOntology(int id)
|
protected void |
deleteForOProperty(int id)
|
protected void |
deleteForTProperty(int id)
|
protected void |
deleteForType(int id)
|
protected void |
domainForOProperty(int prop,
java.lang.Integer domain)
|
protected void |
domainForTProperty(int prop,
java.lang.Integer domain)
|
int |
newClass(java.lang.String name)
|
int |
newObject(java.lang.String name)
|
int |
newOntology(java.lang.String uri)
|
int |
newOProperty(java.lang.String fn)
|
int |
newTProperty(java.lang.String fn)
|
int |
newType(java.lang.String fn)
|
protected void |
rangeForOProperty(int prop,
java.lang.Integer range)
|
protected void |
rangeForTProperty(int prop,
java.lang.Integer range)
|
void |
removeObjectClass(int object,
int cl)
|
protected void |
removeValueForOProperty(int object,
int prop,
int index)
|
protected void |
removeValueForTProperty(int object,
int prop,
int index)
|
protected void |
renameNamedEntity(int id,
java.lang.String newFn)
|
protected void |
renameOntology(int id,
java.lang.String newFn)
|
Methods inherited from class org.ontobox.box.base.BaseBoxWriter |
addBoolean, addBoolean, addDateTime, addDateTime, addInt, addInt, addLong, addLong, addObject, addString, annotate, delete, newName, removeValue, removeValues, removeValues, rename, setDomain, setRange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastBoxWriter
public FastBoxWriter(FastBoxWorker worker)
newOntology
public int newOntology(java.lang.String uri)
newClass
public int newClass(java.lang.String name)
newObject
public int newObject(java.lang.String name)
newOProperty
public int newOProperty(java.lang.String fn)
newTProperty
public int newTProperty(java.lang.String fn)
newType
public int newType(java.lang.String fn)
domainForTProperty
protected void domainForTProperty(int prop,
java.lang.Integer domain)
- Specified by:
domainForTProperty
in class BaseBoxWriter
domainForOProperty
protected void domainForOProperty(int prop,
java.lang.Integer domain)
- Specified by:
domainForOProperty
in class BaseBoxWriter
rangeForTProperty
protected void rangeForTProperty(int prop,
java.lang.Integer range)
- Specified by:
rangeForTProperty
in class BaseBoxWriter
rangeForOProperty
protected void rangeForOProperty(int prop,
java.lang.Integer range)
- Specified by:
rangeForOProperty
in class BaseBoxWriter
addSubclass
public void addSubclass(int sup,
int sub)
addObjectClass
public void addObjectClass(int object,
int cl)
removeObjectClass
public void removeObjectClass(int object,
int cl)
addObject
public void addObject(int object,
int oprop,
int index,
int value)
- Description copied from interface:
BoxWriter
- Add OProperty value
- Parameters:
object
- object idoprop
- oproperty idindex
- index, or -1value
- value (object id)
addString
public void addString(int object,
int oprop,
int index,
java.lang.String value)
- Description copied from interface:
BoxWriter
- Add string TProperty value
- Parameters:
object
- object idoprop
- tproperty idindex
- index, or -1value
- string value
removeValueForTProperty
protected void removeValueForTProperty(int object,
int prop,
int index)
- Specified by:
removeValueForTProperty
in class BaseBoxWriter
removeValueForOProperty
protected void removeValueForOProperty(int object,
int prop,
int index)
- Specified by:
removeValueForOProperty
in class BaseBoxWriter
deleteForType
protected void deleteForType(int id)
- Specified by:
deleteForType
in class BaseBoxWriter
deleteForClass
protected void deleteForClass(int id)
- Specified by:
deleteForClass
in class BaseBoxWriter
deleteForObject
protected void deleteForObject(int id)
- Specified by:
deleteForObject
in class BaseBoxWriter
deleteForOntology
protected void deleteForOntology(int id)
- Specified by:
deleteForOntology
in class BaseBoxWriter
deleteForOProperty
protected void deleteForOProperty(int id)
- Specified by:
deleteForOProperty
in class BaseBoxWriter
deleteForTProperty
protected void deleteForTProperty(int id)
- Specified by:
deleteForTProperty
in class BaseBoxWriter
renameOntology
protected void renameOntology(int id,
java.lang.String newFn)
- Specified by:
renameOntology
in class BaseBoxWriter
renameNamedEntity
protected void renameNamedEntity(int id,
java.lang.String newFn)
- Specified by:
renameNamedEntity
in class BaseBoxWriter
annotateForEntity
protected void annotateForEntity(int id,
java.lang.String name,
java.lang.String value)
- Specified by:
annotateForEntity
in class BaseBoxWriter