Dataspace
Dataspace#
Capability |
Support |
---|---|
Persistence |
✓ |
Files |
✓ |
Simulation |
✗ |
Cache |
✗ |
The Dataspace wrapper combines the functionality of the SQLite wrapper with support for files. Given a path on your computer, it creates an SQLite database file where the ontology individual data is stored, as well as a files
subfolder where raw files associated with “File” individuals are stored.
Tip
Head to the assertional knowledge section for an example on how to work with files.
The Dataspace wrapper is included with SimPhoNy and located under simphony_osp.wrappers.Dataspace
.
[1]:
from simphony_osp.wrappers import Dataspace
⠀
Configuration
The configuration string for the Dataspace wrapper is a path to a folder in your computer. To use the wrapper, just call it providing the two arguments that SimPhoNy wrappers require: the configuration string and the create
argument.
[4]:
dataspace = Dataspace('dataspace', True)