public interface ModelFactory
Modifier and Type | Field and Description |
---|---|
static String |
REASONING
The Property key to indicate the Reasoning state in the properties.
|
static String |
STORAGE
The Property key to indicate where to store the model or modelset.
|
static String |
STORAGE_VALUE_MEMORY |
Modifier and Type | Method and Description |
---|---|
Model |
createModel()
Create a default in-memory ModelSet with no inferencing.
|
Model |
createModel(Properties properties)
Create a Model configured by the given properties.
|
Model |
createModel(Reasoning reasoning)
Create a new Model with inferencing.
|
Model |
createModel(URI contextURI)
Create a default in-memory ModelSet with no inferencing and the given
context URI.
|
ModelSet |
createModelSet()
create a default in-memory ModelSet with no inferencing.
|
ModelSet |
createModelSet(Properties p)
Create a ModelSet configured by the given properties.
|
ModelSet |
createModelSet(Reasoning reasoning)
Create a default in-memory ModelSet with given inferencing.
|
QueryResultTable |
sparqlSelect(String url,
String query) |
static final String REASONING
static final String STORAGE
static final String STORAGE_VALUE_MEMORY
Model createModel() throws ModelRuntimeException
ModelRuntimeException
- if the adapter could not create the modelModel createModel(URI contextURI) throws ModelRuntimeException
ModelRuntimeException
- if the adapter could not create the modelModel createModel(Reasoning reasoning) throws ReasoningNotSupportedException, ModelRuntimeException
reasoning
- the type of reasoning that is neededModelRuntimeException
- if the adapter could not create the ModelReasoningNotSupportedException
- if the passed kind of reasoning is
not supported.Model createModel(Properties properties) throws ModelRuntimeException
properties
- configures the to-be-created ModelModelRuntimeException
- if the adapter could not create the ModelReasoningNotSupportedException
- if the passed kind of reasoning is
not supported.ModelSet createModelSet() throws ModelRuntimeException
ModelRuntimeException
ModelSet createModelSet(Reasoning reasoning) throws ReasoningNotSupportedException, ModelRuntimeException
reasoning
- the type of reasoning that is neededModelRuntimeException
ReasoningNotSupportedException
- if the passed kind of reasoning is
not supported.ModelRuntimeException
- if the adapter could not create the modelModelSet createModelSet(Properties p) throws ModelRuntimeException
properties
- - configures the model creationModelRuntimeException
- if the adapter could not create the ModelReasoningNotSupportedException
- if the passed kind of reasoning is
not supported.QueryResultTable sparqlSelect(String url, String query)
url
- SPARQL endpoint URL, never nullquery
- SPARQL query, never nullUnsupportedOperationException
- if this underlying implemention
does not support asking remote SPARQL endpoiints.Copyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.