|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDeclarativeModuleRdf
Declarative modules that implement this interface can be used by LarCT-R modules and productions.
Field Summary | |
---|---|
static String |
BASE_URI
|
static String |
RDF_FORMAT
|
static String |
RDF_SOURCE
|
static String |
RDF_SOURCE_FILE
|
static String |
RDF_SOURCE_URL
|
Method Summary | |
---|---|
String |
addPrefix(String resource)
Returns the resource, but with the namespace replaced by the matching prefix. |
RdfStoreConnection |
createRdfStoreConnection()
Returns the RdfStoreConnection to the internal repository. |
Future<Collection<IChunk>> |
findSPARQLMatches(SPARQLQuery sparqlQuery)
Returns (the promise of) a collection of all the chunks that match the given SPARQL Query. |
String |
getBaseURI()
Returns the Base URI that was set for the knowledge base in the model. |
Map<String,String> |
getNamespaces()
Returns the namespaces that are used in this module's knowledgebase. |
String |
getRdfFormat()
Returns the RDF format that was set in the model. |
String |
getRdfSourceURL()
Returns the URL that was set as the Source of RDF in the model. |
String |
getSPARQLPrefixes()
Returns the namespaces (see getNamespaces()), but formats them like the PREFIX part of a sparql query. |
Methods inherited from interface org.jactr.core.module.declarative.IDeclarativeModule |
---|
addChunk, addChunkType, addListener, copyChunk, createChunk, createChunkType, dispose, findExactMatches, findPartialMatches, getAssociativeLinkageSystem, getBusyChunk, getChunk, getChunks, getChunkType, getChunkTypes, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getNewChunk, getNumberOfChunks, getRequestedChunk, getUnrequestedChunk, removeListener, setAssociativeLinkageSystem, willEncode |
Methods inherited from interface org.jactr.core.module.IModule |
---|
dispose, getModel, getName, initialize, install, reset |
Methods inherited from interface org.jactr.core.utils.IInstallable |
---|
uninstall |
Methods inherited from interface org.jactr.core.utils.IAdaptable |
---|
getAdapter |
Field Detail |
---|
static final String RDF_SOURCE_FILE
static final String RDF_SOURCE_URL
static final String RDF_SOURCE
static final String BASE_URI
static final String RDF_FORMAT
Method Detail |
---|
Map<String,String> getNamespaces()
String getSPARQLPrefixes()
String addPrefix(String resource)
resource
- the rdf resource URI.
Future<Collection<IChunk>> findSPARQLMatches(SPARQLQuery sparqlQuery)
sparqlQuery
- the SPARQL-Query object.
RdfStoreConnection createRdfStoreConnection()
String getRdfSourceURL()
String getRdfFormat()
String getBaseURI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |