C# Class AllegroGraphCSharpClient.Repository

Class to handle interacting with the repository WCF compatible, so if you use WCF, then you will always need to pass the url to every function Otherwise, you can set it using the constructor
Inheritance: IRepository
Datei anzeigen Open project: franzinc/agraph-csharp-client

Public Methods

Method Description
Repository ( ) : System
Repository ( string url ) : System
ReturnNumberOfTriples ( string context, string url ) : long

Returns the number of triples involved in a given context

StandardRequest ( string method, string url, List options, string contentType ) : List

StandardRequest allows you to submit a basic request to the server

addIndex ( string url, string type ) : bool

untested at this time

addNamespace ( string url, string prefix, string nameSpace ) : bool

untested at this time

addStatement ( string url, string subj, string pred, string obj, List contexts, string ContentType ) : bool

Adds a statement to the repository

addStatements ( string url, List quads ) : bool

untested at this time

createEnvironment ( string url, string name ) : bool

untested at this time

createRepository ( string name ) : Repository
deleteEnvironment ( string url, string name ) : bool

untested at this time

deleteIndex ( string url, string type ) : bool

untested at this time

deleteMatchingStatments ( string url, string subj, string pred, string obj, List contexts ) : bool

untested at this time

deleteNamespace ( string url, string prefix ) : bool

untested at this time

deleteStatements ( string url, List quads ) : bool

untested at this time

evalFreeTextSearch ( string pattern, bool infer, string url ) : List

untested at this time

evalPrologQuery ( string url, string query, bool infer, string AdditionalPrefixes ) : List

Returns a Prologo Query Result

evalSparqlQuery ( string url, string query, bool infer, List contexts, List namedContexts, List bindings, string AdditonalPrefixes ) : List

Takes a sparql string and returns the results in a list

formatToURLFormatAndContentType ( string format ) : List

untested at this time

getBlankNodes ( string url, int quantity ) : List

untested at this time

getIndexCoverage ( string url ) : string

untested at this time

getName ( ) : string
getSize ( string Context, string url ) : long

Function to return the size of the statement pairs

getStatements ( string url, string subj, string pred, string obj, List contexts, bool infer ) : List

Returns a list of all the statements that match the subj/pred/obj

indexStatements ( string url, bool all ) : List

untested at this time

isWritable ( string url ) : bool

Returns if the repository is writable

jsonRequest ( string method, string url ) : List
listContexts ( string url ) : List

List all the contexts in the catalog

listFreeTextPredicates ( string url ) : List

untested at this time

listIndicies ( string url ) : List

untested at this time

listNamespaces ( string url ) : List

untested at this time

loadData ( string url, string data, string format, string baseURI, string context ) : bool

untested at this time

loadFile ( string url, string fileURL, string format, string baseURI, string context, bool serverSide ) : bool

untested at this time

registerFreeTextPredicate ( string url, string predicate ) : bool

untested at this time

Method Details

Repository() public method

public Repository ( ) : System
return System

Repository() public method

public Repository ( string url ) : System
url string
return System

ReturnNumberOfTriples() public method

Returns the number of triples involved in a given context
public ReturnNumberOfTriples ( string context, string url ) : long
context string
url string
return long

StandardRequest() public method

StandardRequest allows you to submit a basic request to the server
public StandardRequest ( string method, string url, List options, string contentType ) : List
method string Needs to be the standard REST methods: PUT, GET, etc.
url string URL of the server
options List Options to be passed in the HTTP Request
contentType string ContentType parameter
return List

addIndex() public method

untested at this time
public addIndex ( string url, string type ) : bool
url string
type string
return bool

addNamespace() public method

untested at this time
public addNamespace ( string url, string prefix, string nameSpace ) : bool
url string
prefix string
nameSpace string
return bool

addStatement() public method

Adds a statement to the repository
public addStatement ( string url, string subj, string pred, string obj, List contexts, string ContentType ) : bool
url string
subj string
pred string
obj string
contexts List
ContentType string
return bool

addStatements() public method

untested at this time
public addStatements ( string url, List quads ) : bool
url string
quads List
return bool

createEnvironment() public method

untested at this time
public createEnvironment ( string url, string name ) : bool
url string
name string
return bool

createRepository() public method

public createRepository ( string name ) : Repository
name string
return Repository

deleteEnvironment() public method

untested at this time
public deleteEnvironment ( string url, string name ) : bool
url string
name string
return bool

deleteIndex() public method

untested at this time
public deleteIndex ( string url, string type ) : bool
url string
type string
return bool

deleteMatchingStatments() public method

untested at this time
public deleteMatchingStatments ( string url, string subj, string pred, string obj, List contexts ) : bool
url string
subj string
pred string
obj string
contexts List
return bool

deleteNamespace() public method

untested at this time
public deleteNamespace ( string url, string prefix ) : bool
url string
prefix string
return bool

deleteStatements() public method

untested at this time
public deleteStatements ( string url, List quads ) : bool
url string
quads List
return bool

evalFreeTextSearch() public method

untested at this time
public evalFreeTextSearch ( string pattern, bool infer, string url ) : List
pattern string
infer bool
url string
return List

evalPrologQuery() public method

Returns a Prologo Query Result
public evalPrologQuery ( string url, string query, bool infer, string AdditionalPrefixes ) : List
url string
query string
infer bool
AdditionalPrefixes string
return List

evalSparqlQuery() public method

Takes a sparql string and returns the results in a list
public evalSparqlQuery ( string url, string query, bool infer, List contexts, List namedContexts, List bindings, string AdditonalPrefixes ) : List
url string
query string
infer bool
contexts List
namedContexts List
bindings List
AdditonalPrefixes string
return List

formatToURLFormatAndContentType() public method

untested at this time
public formatToURLFormatAndContentType ( string format ) : List
format string
return List

getBlankNodes() public method

untested at this time
public getBlankNodes ( string url, int quantity ) : List
url string
quantity int
return List

getIndexCoverage() public method

untested at this time
public getIndexCoverage ( string url ) : string
url string
return string

getName() public method

public getName ( ) : string
return string

getSize() public method

Function to return the size of the statement pairs
public getSize ( string Context, string url ) : long
Context string
url string
return long

getStatements() public method

Returns a list of all the statements that match the subj/pred/obj
public getStatements ( string url, string subj, string pred, string obj, List contexts, bool infer ) : List
url string
subj string
pred string
obj string
contexts List
infer bool
return List

indexStatements() public method

untested at this time
public indexStatements ( string url, bool all ) : List
url string
all bool
return List

isWritable() public method

Returns if the repository is writable
public isWritable ( string url ) : bool
url string
return bool

jsonRequest() public method

public jsonRequest ( string method, string url ) : List
method string
url string
return List

listContexts() public method

List all the contexts in the catalog
public listContexts ( string url ) : List
url string
return List

listFreeTextPredicates() public method

untested at this time
public listFreeTextPredicates ( string url ) : List
url string
return List

listIndicies() public method

untested at this time
public listIndicies ( string url ) : List
url string
return List

listNamespaces() public method

untested at this time
public listNamespaces ( string url ) : List
url string
return List

loadData() public method

untested at this time
public loadData ( string url, string data, string format, string baseURI, string context ) : bool
url string
data string
format string
baseURI string
context string
return bool

loadFile() public method

untested at this time
public loadFile ( string url, string fileURL, string format, string baseURI, string context, bool serverSide ) : bool
url string
fileURL string
format string
baseURI string
context string
serverSide bool
return bool

registerFreeTextPredicate() public method

untested at this time
public registerFreeTextPredicate ( string url, string predicate ) : bool
url string
predicate string
return bool