C# Class RDFSharp.Store.RDFSQLServerStore

RDFSQLServerStore represents a RDFStore backed on SQL Server engine
Inheritance: RDFStore
Datei anzeigen Open project: mdesalvo/RDFSharp Class Usage Examples

Private Properties

Property Type Description
Diagnostics RDFStoreEnums.RDFStoreSQLErrors
PrepareStore void
SelectQuadruples RDFMemoryStore

Public Methods

Method Description
AddQuadruple ( RDFQuadruple quadruple ) : RDFStore

Adds the given quadruple to the store, avoiding duplicate insertions

ClearQuadruples ( ) : void

Clears the quadruples of the store

ContainsQuadruple ( RDFQuadruple quadruple ) : System.Boolean

Checks if the store contains the given quadruple

MergeGraph ( RDFGraph graph ) : RDFStore

Merges the given graph into the store within a single transaction, avoiding duplicate insertions

OptimizeStore ( ) : void

Executes a special command to optimize SQL Server store

RDFSQLServerStore ( String sqlServerInstance, String sqlServerDatabase ) : System

Default-ctor to build a SQL Server store instance with Windows Integrated Security authentication

RDFSQLServerStore ( String sqlServerInstance, String sqlServerDatabase, String sqlServerUserName, String sqlServerUserPwd ) : System

Default-ctor to build a SQL Server store instance with SQL Server authentication

RemoveQuadruple ( RDFQuadruple quadruple ) : RDFStore

Removes the given quadruples from the store

RemoveQuadruplesByContext ( RDFSharp.Store.RDFContext contextResource ) : RDFStore

Removes the quadruples with the given context

RemoveQuadruplesByLiteral ( RDFSharp.Model.RDFLiteral literalObject ) : RDFStore

Removes the quadruples with the given literal as object

RemoveQuadruplesByObject ( RDFResource objectResource ) : RDFStore

Removes the quadruples with the given resource as object

RemoveQuadruplesByPredicate ( RDFResource predicateResource ) : RDFStore

Removes the quadruples with the given predicate

RemoveQuadruplesBySubject ( RDFResource subjectResource ) : RDFStore

Removes the quadruples with the given subject

SelectAllQuadruples ( ) : RDFMemoryStore

Gets a store containing all quadruples

SelectQuadruplesByContext ( RDFSharp.Store.RDFContext contextResource ) : RDFMemoryStore

Gets a memory store containing quadruples with the specified context

SelectQuadruplesByLiteral ( RDFSharp.Model.RDFLiteral objectLiteral ) : RDFMemoryStore

Gets a memory store containing quadruples with the specified literal

SelectQuadruplesByObject ( RDFResource objectResource ) : RDFMemoryStore

Gets a memory store containing quadruples with the specified object

SelectQuadruplesByPredicate ( RDFResource predicateResource ) : RDFMemoryStore

Gets a memory store containing quadruples with the specified predicate

SelectQuadruplesBySubject ( RDFResource subjectResource ) : RDFMemoryStore

Gets a memory store containing quadruples with the specified subject

ToString ( ) : String

Gives the string representation of the SQL Server store

UnreifyQuadruples ( ) : void

Compacts the reified quadruples by removing their 4 standard statements

Private Methods

Method Description
Diagnostics ( ) : RDFStoreEnums.RDFStoreSQLErrors

Performs the preliminary diagnostics controls on the underlying SQL Server database

PrepareStore ( ) : void

Prepares the underlying SQL Server database

SelectQuadruples ( RDFSharp.Store.RDFContext ctx, RDFResource subj, RDFResource pred, RDFResource obj, RDFSharp.Model.RDFLiteral lit ) : RDFMemoryStore

Gets a memory store containing quadruples satisfying the given pattern

Method Details

AddQuadruple() public method

Adds the given quadruple to the store, avoiding duplicate insertions
public AddQuadruple ( RDFQuadruple quadruple ) : RDFStore
quadruple RDFQuadruple
return RDFStore

ClearQuadruples() public method

Clears the quadruples of the store
public ClearQuadruples ( ) : void
return void

ContainsQuadruple() public method

Checks if the store contains the given quadruple
public ContainsQuadruple ( RDFQuadruple quadruple ) : System.Boolean
quadruple RDFQuadruple
return System.Boolean

MergeGraph() public method

Merges the given graph into the store within a single transaction, avoiding duplicate insertions
public MergeGraph ( RDFGraph graph ) : RDFStore
graph RDFGraph
return RDFStore

OptimizeStore() public method

Executes a special command to optimize SQL Server store
public OptimizeStore ( ) : void
return void

RDFSQLServerStore() public method

Default-ctor to build a SQL Server store instance with Windows Integrated Security authentication
public RDFSQLServerStore ( String sqlServerInstance, String sqlServerDatabase ) : System
sqlServerInstance String
sqlServerDatabase String
return System

RDFSQLServerStore() public method

Default-ctor to build a SQL Server store instance with SQL Server authentication
public RDFSQLServerStore ( String sqlServerInstance, String sqlServerDatabase, String sqlServerUserName, String sqlServerUserPwd ) : System
sqlServerInstance String
sqlServerDatabase String
sqlServerUserName String
sqlServerUserPwd String
return System

RemoveQuadruple() public method

Removes the given quadruples from the store
public RemoveQuadruple ( RDFQuadruple quadruple ) : RDFStore
quadruple RDFQuadruple
return RDFStore

RemoveQuadruplesByContext() public method

Removes the quadruples with the given context
public RemoveQuadruplesByContext ( RDFSharp.Store.RDFContext contextResource ) : RDFStore
contextResource RDFSharp.Store.RDFContext
return RDFStore

RemoveQuadruplesByLiteral() public method

Removes the quadruples with the given literal as object
public RemoveQuadruplesByLiteral ( RDFSharp.Model.RDFLiteral literalObject ) : RDFStore
literalObject RDFSharp.Model.RDFLiteral
return RDFStore

RemoveQuadruplesByObject() public method

Removes the quadruples with the given resource as object
public RemoveQuadruplesByObject ( RDFResource objectResource ) : RDFStore
objectResource RDFSharp.Model.RDFResource
return RDFStore

RemoveQuadruplesByPredicate() public method

Removes the quadruples with the given predicate
public RemoveQuadruplesByPredicate ( RDFResource predicateResource ) : RDFStore
predicateResource RDFSharp.Model.RDFResource
return RDFStore

RemoveQuadruplesBySubject() public method

Removes the quadruples with the given subject
public RemoveQuadruplesBySubject ( RDFResource subjectResource ) : RDFStore
subjectResource RDFSharp.Model.RDFResource
return RDFStore

SelectAllQuadruples() public method

Gets a store containing all quadruples
public SelectAllQuadruples ( ) : RDFMemoryStore
return RDFMemoryStore

SelectQuadruplesByContext() public method

Gets a memory store containing quadruples with the specified context
public SelectQuadruplesByContext ( RDFSharp.Store.RDFContext contextResource ) : RDFMemoryStore
contextResource RDFSharp.Store.RDFContext
return RDFMemoryStore

SelectQuadruplesByLiteral() public method

Gets a memory store containing quadruples with the specified literal
public SelectQuadruplesByLiteral ( RDFSharp.Model.RDFLiteral objectLiteral ) : RDFMemoryStore
objectLiteral RDFSharp.Model.RDFLiteral
return RDFMemoryStore

SelectQuadruplesByObject() public method

Gets a memory store containing quadruples with the specified object
public SelectQuadruplesByObject ( RDFResource objectResource ) : RDFMemoryStore
objectResource RDFSharp.Model.RDFResource
return RDFMemoryStore

SelectQuadruplesByPredicate() public method

Gets a memory store containing quadruples with the specified predicate
public SelectQuadruplesByPredicate ( RDFResource predicateResource ) : RDFMemoryStore
predicateResource RDFSharp.Model.RDFResource
return RDFMemoryStore

SelectQuadruplesBySubject() public method

Gets a memory store containing quadruples with the specified subject
public SelectQuadruplesBySubject ( RDFResource subjectResource ) : RDFMemoryStore
subjectResource RDFSharp.Model.RDFResource
return RDFMemoryStore

ToString() public method

Gives the string representation of the SQL Server store
public ToString ( ) : String
return String

UnreifyQuadruples() public method

Compacts the reified quadruples by removing their 4 standard statements
public UnreifyQuadruples ( ) : void
return void