C# Класс Chronozoom.Entities.Storage

Storage implementation for ChronoZoom based on Entity Framework.
Наследование: DbContext
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DeletePrefix ( string prefixStr, string fullStr ) : bool

Delete prefix and associated namespace with it.

DeleteTriplet ( TripleName subjectName, TripleName predicateName, TripleName objectName ) : bool

Delete triple with specified parameters.

EnsurePrefix ( TripleName name ) : TripleName

Ensures that triple name has prefix. If triple name has namespace, it is converted to prefix

GetIncomingTriplets ( string predicate, string obj ) : List

Build list of triples that reference specified object

GetTimelineShortcut ( Timeline timeline ) : TimelineShortcut

Get TimelineShortctu from Timeline

GetTriplet ( string subject, string predicate = null, string obj = null, bool expandPrefixes = false ) : List

Get triple by specified parameters.

PutTriplet ( TripleName subjectName, TripleName predicateName, TripleName objectName ) : bool

Add triple with specified parameters.

SetPrefix ( string prefixStr, string fullStr ) : bool

Add new prefix and associated namespace with it.

TryEnsureNamespace ( TripleName name ) : TripleName

Приватные методы

Метод Описание
GetTimelineImageUrl ( Timeline timeline ) : string

Описание методов

DeletePrefix() публичный Метод

Delete prefix and associated namespace with it.
public DeletePrefix ( string prefixStr, string fullStr ) : bool
prefixStr string Prefix
fullStr string Namespace
Результат bool

DeleteTriplet() публичный Метод

Delete triple with specified parameters.
public DeleteTriplet ( TripleName subjectName, TripleName predicateName, TripleName objectName ) : bool
subjectName TripleName Subject
predicateName TripleName Predicate
objectName TripleName Object
Результат bool

EnsurePrefix() публичный Метод

Ensures that triple name has prefix. If triple name has namespace, it is converted to prefix
public EnsurePrefix ( TripleName name ) : TripleName
name TripleName Name of the triple
Результат TripleName

GetIncomingTriplets() публичный Метод

Build list of triples that reference specified object
public GetIncomingTriplets ( string predicate, string obj ) : List
predicate string Optional predicate name
obj string Object full name
Результат List

GetTimelineShortcut() публичный Метод

Get TimelineShortctu from Timeline
public GetTimelineShortcut ( Timeline timeline ) : TimelineShortcut
timeline Timeline Timeline object
Результат TimelineShortcut

GetTriplet() публичный Метод

Get triple by specified parameters.
public GetTriplet ( string subject, string predicate = null, string obj = null, bool expandPrefixes = false ) : List
subject string Subject name with prefix
predicate string Predicate name with prefix or null
obj string Object name with prefix or null
expandPrefixes bool If 'True' returns namespaces, else - prefixes.
Результат List

PutTriplet() публичный Метод

Add triple with specified parameters.
public PutTriplet ( TripleName subjectName, TripleName predicateName, TripleName objectName ) : bool
subjectName TripleName
predicateName TripleName
objectName TripleName
Результат bool

SetPrefix() публичный Метод

Add new prefix and associated namespace with it.
public SetPrefix ( string prefixStr, string fullStr ) : bool
prefixStr string Prefix
fullStr string Namespace
Результат bool

TryEnsureNamespace() публичный Метод

public TryEnsureNamespace ( TripleName name ) : TripleName
name TripleName
Результат TripleName