2using System.Collections.Generic;
3using System.Threading.Tasks;
15 [CollectionName(
"GraphStore")]
97 if (this.
NrFiles <= DatabaseMinFileCount)
103 this.InDatabase =
true;
123 this.InDatabase =
true;
128 if (!(Model is
null))
129 Models.AddLast(Model);
141 List<DatabaseTriple> ToSave =
new List<DatabaseTriple>();
144 foreach (IEnumerable<ISemanticTriple> Model
in Models)
Abstract base class for semantic elements.
Represents a case-insensitive string.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static async Task Update(object Object)
Updates an object in the database.
static async Task Insert(object Object)
Inserts an object into the default collection of the database.
Static class managing persistent counters.
static Task< long > IncrementCounter(CaseInsensitiveString Key)
Increments a counter.
Contains a reference to a graph in the graph store.
Contains a reference to a graph in the graph store.
async Task< IGraphSource > GetGraphSource()
Gets a Graph Source object corresponding to the graph referenced by the object.
CaseInsensitiveString GraphUri
Graph URI
GraphReference()
Contains a reference to a graph in the graph store.
async Task ModelsAdded(LinkedList< ISemanticModel > Models)
Method called when new semantic models have been added to the graph.
string[] Creators
Creators of graph
async Task AddTriplesToDatabase(IEnumerable< IEnumerable< ISemanticTriple > > Models)
Adds semantic triples to the database.
int NrFiles
Number of files used to define graph.
DateTime Created
When graph was created in graph store.
const int DatabaseMinFileCount
Number of files posted to a graph, before graph is converted to a database graph.
DateTime Updated
When graph was updated in graph store.
long DatabaseKey
Graph key in database.
bool InDatabase
If triples are persisted in database.
string Folder
Folder where graph(s) are stored.
CaseInsensitiveString GraphDigest
Graph Digest, used to create file names.
Graph source in the local graph store, based on triples persisted in the object database.
Graph source in the local graph store, based on files.
Task< ISemanticCube > LoadGraph(Uri Source, ScriptNode Node, bool NullIfNotFound, RequestOrigin Caller)
Loads the graph
Interface for semantic cubes.
Interface for semantic triples.
ISemanticElement Object
Object element
ISemanticElement Predicate
Predicate element
ISemanticElement Subject
Subject element
TypeNameSerialization
How the type name should be serialized.