C# Class RDFSharp.Store.RDFSQLServerStore

RDFSQLServerStore represents a RDFStore backed on SQL Server engine
Inheritance: RDFStore
Afficher le fichier Open project: mdesalvo/RDFSharp Class Usage Examples

Private Properties

Свойство Type Description
Diagnostics RDFStoreEnums.RDFStoreSQLErrors
PrepareStore void
SelectQuadruples RDFMemoryStore

Méthodes publiques

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

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

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

ClearQuadruples() public méthode

Clears the quadruples of the store
public ClearQuadruples ( ) : void
Résultat void

ContainsQuadruple() public méthode

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

MergeGraph() public méthode

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

OptimizeStore() public méthode

Executes a special command to optimize SQL Server store
public OptimizeStore ( ) : void
Résultat void

RDFSQLServerStore() public méthode

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

RDFSQLServerStore() public méthode

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

RemoveQuadruple() public méthode

Removes the given quadruples from the store
public RemoveQuadruple ( RDFQuadruple quadruple ) : RDFStore
quadruple RDFQuadruple
Résultat RDFStore

RemoveQuadruplesByContext() public méthode

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

RemoveQuadruplesByLiteral() public méthode

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

RemoveQuadruplesByObject() public méthode

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

RemoveQuadruplesByPredicate() public méthode

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

RemoveQuadruplesBySubject() public méthode

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

SelectAllQuadruples() public méthode

Gets a store containing all quadruples
public SelectAllQuadruples ( ) : RDFMemoryStore
Résultat RDFMemoryStore

SelectQuadruplesByContext() public méthode

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

SelectQuadruplesByLiteral() public méthode

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

SelectQuadruplesByObject() public méthode

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

SelectQuadruplesByPredicate() public méthode

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

SelectQuadruplesBySubject() public méthode

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

ToString() public méthode

Gives the string representation of the SQL Server store
public ToString ( ) : String
Résultat String

UnreifyQuadruples() public méthode

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