C# 클래스 Chronozoom.Entities.Storage

Storage implementation for ChronoZoom based on Entity Framework.
상속: DbContext
파일 보기 프로젝트 열기: JayBeavers/ChronoZoom 1 사용 예제들

공개 메소드들

메소드 설명
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