C# Class Chronozoom.Entities.Storage

Storage implementation for ChronoZoom based on Entity Framework.
Inheritance: DbContext
Afficher le fichier Open project: JayBeavers/ChronoZoom Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetTimelineImageUrl ( Timeline timeline ) : string

Method Details

DeletePrefix() public méthode

Delete prefix and associated namespace with it.
public DeletePrefix ( string prefixStr, string fullStr ) : bool
prefixStr string Prefix
fullStr string Namespace
Résultat bool

DeleteTriplet() public méthode

Delete triple with specified parameters.
public DeleteTriplet ( TripleName subjectName, TripleName predicateName, TripleName objectName ) : bool
subjectName TripleName Subject
predicateName TripleName Predicate
objectName TripleName Object
Résultat bool

EnsurePrefix() public méthode

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
Résultat TripleName

GetIncomingTriplets() public méthode

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
Résultat List

GetTimelineShortcut() public méthode

Get TimelineShortctu from Timeline
public GetTimelineShortcut ( Timeline timeline ) : TimelineShortcut
timeline Timeline Timeline object
Résultat TimelineShortcut

GetTriplet() public méthode

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.
Résultat List

PutTriplet() public méthode

Add triple with specified parameters.
public PutTriplet ( TripleName subjectName, TripleName predicateName, TripleName objectName ) : bool
subjectName TripleName
predicateName TripleName
objectName TripleName
Résultat bool

SetPrefix() public méthode

Add new prefix and associated namespace with it.
public SetPrefix ( string prefixStr, string fullStr ) : bool
prefixStr string Prefix
fullStr string Namespace
Résultat bool

TryEnsureNamespace() public méthode

public TryEnsureNamespace ( TripleName name ) : TripleName
name TripleName
Résultat TripleName