|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEngine
This class encapsulate the Corese class, which manages the Corese RDF engine
Field Summary | |
---|---|
static java.lang.String |
ENGINE_DEBUG
If true, prints a maximum of information about the inferences it is making Values: true or false |
static java.lang.String |
ENGINE_GUI_NAMESPACE
Predefined prefix associated with a namespace Example: "a http://www.inria.fr/acacia# i http://www.inria.fr#" |
static java.lang.String |
ENGINE_PROJECTION_MAX
Maximum number of projections computed to answer a query Values: Integer |
static java.lang.String |
ENGINE_RESULT_JOIN
When this property is set to true, Corese groups projections that share the same first concept into one result. |
static java.lang.String |
ENGINE_RESULT_MAX
Maximum number of result returned after possibly grouping projections Values: Integer |
static java.lang.String |
ENGINE_SHOW_MAX
Maximum number of statements printed by the RDF pretty printer Values: Integer |
static java.lang.String |
ENGINE_SOURCE_REGEX
If a URL of a document that contains a graph matches a given pattern, this graph can be assigned a new source URI. |
Method Summary | |
---|---|
java.lang.String |
emptyResult(IResults res)
Print an empty result in the SPARQL result format |
java.lang.String |
getProperty(java.lang.String name)
Get the value of a corese property if it exists |
void |
load(java.lang.String path)
Load RDF (.rdf), RDFS (.rdfs), OWL (.owl) or RULE (.rul) files into Corese |
void |
loadDir(java.lang.String path)
Load a whole directory (that can contain RDF (.rdf), RDFS (.rdfs), OWL (.owl) or RULE (.rul) files) into Corese. |
void |
runRuleEngine()
Apply rule base on graph base It should be called only when rules have been previously loaded |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set the value of a corese property Examples: setProperty(ENGINE_DATA, "annot/data annot/data2 annot/testrdf.rdf") setProperty(ENGINE_DEBUG, "false") For more informations about corese properties, see http://www-sop.inria.fr/acacia/soft/corese/manual/#coreseproperties |
IResults |
SPARQLQuery(java.lang.String query)
Query Corese in the SPARQL syntax |
IResults |
SPARQLQuery(java.lang.String query,
IModel model)
Query Corese in the SPARQL syntax with a model |
boolean |
SPARQLValidate(java.lang.String query)
Validate the query. |
Field Detail |
---|
static final java.lang.String ENGINE_GUI_NAMESPACE
static final java.lang.String ENGINE_DEBUG
static final java.lang.String ENGINE_SOURCE_REGEX
engine.setProperty(ENGINE_SOURCE_REGEX, ".*data.Annotation_Added_The.* http://corese/data/Annotations.rdf/");
static final java.lang.String ENGINE_RESULT_MAX
static final java.lang.String ENGINE_PROJECTION_MAX
static final java.lang.String ENGINE_SHOW_MAX
static final java.lang.String ENGINE_RESULT_JOIN
Method Detail |
---|
void load(java.lang.String path) throws EngineException
path
- where to find the document to load
EngineException
EngineException
void loadDir(java.lang.String path) throws EngineException
path
- where to find the document to load
EngineException
EngineException
void runRuleEngine()
IResults SPARQLQuery(java.lang.String query) throws EngineException
query
- The query string to test
EngineException
IResults SPARQLQuery(java.lang.String query, IModel model) throws EngineException
query
- The query string to testmodel
- A model to give the answers to get:gui values
EngineException
boolean SPARQLValidate(java.lang.String query) throws EngineException
query
- The query string to test
EngineException
void setProperty(java.lang.String name, java.lang.String value)
setProperty(ENGINE_DATA, "annot/data annot/data2 annot/testrdf.rdf")
setProperty(ENGINE_DEBUG, "false")
name
- the name of the property we want to setvalue
- the value (String) that we want for this property in Coresejava.lang.String getProperty(java.lang.String name)
name
- the name of the property we want to get
java.lang.String emptyResult(IResults res)
res
- the result of the query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |