|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataAccessApi
access the local RDF data nicely through XML/RPC or via java. api-name is dataaccess. For a documentation of query languages, see:
| Field Summary | |
|---|---|
static String |
API_NAME
|
| Method Summary | |
|---|---|
void |
addTriple(String subject,
String predicate,
String object,
boolean isLiteral)
Add a triple to the default store, i.e. pimo |
void |
addTripleC(String subject,
String predicate,
String object,
boolean isLiteral,
String context)
Add a triple to the default store (pimo) in a particular context |
void |
addTripleS(String subject,
String predicate,
String object,
boolean isLiteral,
String store)
Add a triple to a particular store |
void |
addTriples(Vector<HashMap<String,Object>> triples,
String store)
|
void |
addTripleSC(String subject,
String predicate,
String object,
boolean isLiteral,
String store,
String context)
Add a triple to given store in a particular context |
String |
queryConstruct(String query,
String lang)
Query the default store |
String |
queryConstructF(String query,
String lang,
String format)
Query the default store |
String |
queryConstructS(String query,
String lang,
String store)
Query the given store |
String |
queryConstructSF(String query,
String lang,
String store,
String format)
Query the given store |
List<Map<String,String>> |
querySelect(String query,
String lang)
Query the default store |
List<Map<String,String>> |
querySelectS(String query,
String lang,
String store)
Query the given store. |
void |
removeTriple(String subject,
String predicate,
String object,
boolean isLiteral)
remove a triple from the default store, i.e. pimo |
void |
removeTripleC(String subject,
String predicate,
String object,
boolean isLiteral,
String context)
remove a triple from the default store (pimo) in a particular context |
void |
removeTripleS(String subject,
String predicate,
String object,
boolean isLiteral,
String store)
remove a triple from a particular store |
void |
removeTriples(Vector<HashMap<String,Object>> triples,
String store)
Remove a list of triples from the given store. |
void |
removeTripleSC(String subject,
String predicate,
String object,
boolean isLiteral,
String store,
String context)
remove a triple from given store in a particular context |
| Field Detail |
|---|
static final String API_NAME
| Method Detail |
|---|
void addTriple(String subject,
String predicate,
String object,
boolean isLiteral)
throws Exception
subject - predicate - object - isLiteral -
Exception
void addTripleS(String subject,
String predicate,
String object,
boolean isLiteral,
String store)
throws Exception
subject - predicate - object - isLiteral - store - - this has to be "resource", "pimo", or "service" (config?)
Exception
void addTripleC(String subject,
String predicate,
String object,
boolean isLiteral,
String context)
throws Exception
subject - predicate - object - isLiteral - context -
Exception
void addTripleSC(String subject,
String predicate,
String object,
boolean isLiteral,
String store,
String context)
throws Exception
subject - predicate - object - isLiteral - store - - this has to be "resource", "pimo", or "service" (config?)context -
Exception
void addTriples(Vector<HashMap<String,Object>> triples,
String store)
throws Exception
triples - - a list of HashMaps with subject, object, predicate, isLiteral and ?context keys.store - - the store to add to.
Exception
void removeTriple(String subject,
String predicate,
String object,
boolean isLiteral)
throws Exception
subject - predicate - object - isLiteral -
Exception
void removeTripleS(String subject,
String predicate,
String object,
boolean isLiteral,
String store)
throws Exception
subject - predicate - object - isLiteral - store - - this has to be "resource", "pimo", or "service" (config?)
Exception
void removeTripleC(String subject,
String predicate,
String object,
boolean isLiteral,
String context)
throws Exception
subject - predicate - object - isLiteral - context -
Exception
void removeTripleSC(String subject,
String predicate,
String object,
boolean isLiteral,
String store,
String context)
throws Exception
subject - predicate - object - isLiteral - store - - this has to be "resource", "pimo", or "service" (config?)context -
Exception
void removeTriples(Vector<HashMap<String,Object>> triples,
String store)
throws Exception
triples - - a list of HashMaps with subject, object, predicate, isLiteral and ?context keys.store - - the store to remove to.
Exception
List<Map<String,String>> querySelect(String query,
String lang)
throws Exception
query - lang - - must be sparql, serql or fulltext
Exception
List<Map<String,String>> querySelectS(String query,
String lang,
String store)
throws Exception
query - - the query in the language. for fulltext, this is the lucene query language (try "hello*")lang - - must be sparql, serql, rdql, or fulltextstore - - name the store to query. one of pimo, resource or service
Exception
String queryConstruct(String query,
String lang)
throws Exception
query - lang - serql or sparql
Exception
String queryConstructS(String query,
String lang,
String store)
throws Exception
query - lang - serql or sparqlstore - the store to query
Exception
String queryConstructF(String query,
String lang,
String format)
throws Exception
query - lang - serql or sparqlformat - rdfxml, n3, ntriples, trix or trig
Exception
String queryConstructSF(String query,
String lang,
String store,
String format)
throws Exception
query - lang - serql or sparqlstore - the store to queryformat - rdfxml, n3, ntriples, trix or trig
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||