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
Afficher le fichier Open project: franzinc/agraph-csharp-client

Méthodes publiques

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

public Repository ( ) : System
Résultat System

Repository() public méthode

public Repository ( string url ) : System
url string
Résultat System

ReturnNumberOfTriples() public méthode

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

StandardRequest() public méthode

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

addIndex() public méthode

untested at this time
public addIndex ( string url, string type ) : bool
url string
type string
Résultat bool

addNamespace() public méthode

untested at this time
public addNamespace ( string url, string prefix, string nameSpace ) : bool
url string
prefix string
nameSpace string
Résultat bool

addStatement() public méthode

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

addStatements() public méthode

untested at this time
public addStatements ( string url, List quads ) : bool
url string
quads List
Résultat bool

createEnvironment() public méthode

untested at this time
public createEnvironment ( string url, string name ) : bool
url string
name string
Résultat bool

createRepository() public méthode

public createRepository ( string name ) : Repository
name string
Résultat Repository

deleteEnvironment() public méthode

untested at this time
public deleteEnvironment ( string url, string name ) : bool
url string
name string
Résultat bool

deleteIndex() public méthode

untested at this time
public deleteIndex ( string url, string type ) : bool
url string
type string
Résultat bool

deleteMatchingStatments() public méthode

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

deleteNamespace() public méthode

untested at this time
public deleteNamespace ( string url, string prefix ) : bool
url string
prefix string
Résultat bool

deleteStatements() public méthode

untested at this time
public deleteStatements ( string url, List quads ) : bool
url string
quads List
Résultat bool

evalFreeTextSearch() public méthode

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

evalPrologQuery() public méthode

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

evalSparqlQuery() public méthode

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

formatToURLFormatAndContentType() public méthode

untested at this time
public formatToURLFormatAndContentType ( string format ) : List
format string
Résultat List

getBlankNodes() public méthode

untested at this time
public getBlankNodes ( string url, int quantity ) : List
url string
quantity int
Résultat List

getIndexCoverage() public méthode

untested at this time
public getIndexCoverage ( string url ) : string
url string
Résultat string

getName() public méthode

public getName ( ) : string
Résultat string

getSize() public méthode

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

getStatements() public méthode

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

indexStatements() public méthode

untested at this time
public indexStatements ( string url, bool all ) : List
url string
all bool
Résultat List

isWritable() public méthode

Returns if the repository is writable
public isWritable ( string url ) : bool
url string
Résultat bool

jsonRequest() public méthode

public jsonRequest ( string method, string url ) : List
method string
url string
Résultat List

listContexts() public méthode

List all the contexts in the catalog
public listContexts ( string url ) : List
url string
Résultat List

listFreeTextPredicates() public méthode

untested at this time
public listFreeTextPredicates ( string url ) : List
url string
Résultat List

listIndicies() public méthode

untested at this time
public listIndicies ( string url ) : List
url string
Résultat List

listNamespaces() public méthode

untested at this time
public listNamespaces ( string url ) : List
url string
Résultat List

loadData() public méthode

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

loadFile() public méthode

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

registerFreeTextPredicate() public méthode

untested at this time
public registerFreeTextPredicate ( string url, string predicate ) : bool
url string
predicate string
Résultat bool