public static interface RedLink.Data
Credentials
object which will be used for each service request| Modifier and Type | Field and Description |
|---|---|
static String |
LDPATH |
static String |
PATH |
static String |
QUERY |
static String |
RESOURCE |
static String |
SELECT |
static String |
SPARQL |
static String |
UPDATE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanDataset(String dataset)
Clean (delete all the data) user's dataset.
|
boolean |
deleteResource(String resource,
String dataset)
Delete a Resource identified by its URI in the user dataset passed by parameter.
|
org.openrdf.model.Model |
exportDataset(String dataset)
Export the user dataset at his RedLink application to a local RDF
Model. |
org.openrdf.model.Model |
getResource(String resource)
Get resource data by its URI as RDF
Model |
org.openrdf.model.Model |
getResource(String resource,
String dataset)
Get resource data by its URI as RDF
Model from the user dataset passed by parameter. |
boolean |
importDataset(File file,
String dataset)
Import the Model contained in the passed
File into the selected Dataset. |
boolean |
importDataset(File file,
String dataset,
boolean cleanBefore)
Import the Model contained in the passed
File into the selected Dataset. |
boolean |
importDataset(InputStream in,
org.openrdf.rio.RDFFormat format,
String Dataset)
Import the Model contained in the passed
InputStream into the selected Dataset. |
boolean |
importDataset(InputStream in,
org.openrdf.rio.RDFFormat format,
String Dataset,
boolean cleanBefore)
Import the Model contained in the passed
InputStream into the selected Dataset. |
boolean |
importDataset(org.openrdf.model.Model data,
String dataset)
Import an RDF
Model into the selected Dataset. |
boolean |
importDataset(org.openrdf.model.Model data,
String dataset,
boolean cleanBefore)
Import an RDF
Model into the selected Dataset. |
boolean |
importResource(String resource,
org.openrdf.model.Model data,
String dataset)
Import a resource represented by an RDF
Model into the selected Dataset. |
boolean |
importResource(String resource,
org.openrdf.model.Model data,
String dataset,
boolean cleanBefore)
Import a resource represented by an RDF
Model into the selected Dataset. |
LDPathResult |
ldpath(String uri,
String program)
Execute a LDPath program using as context all the configured datasets at user's RedLink application
|
LDPathResult |
ldpath(String uri,
String dataset,
String program)
Execute a LDPath program using the dataset passed by paramater as context.
|
org.openrdf.model.Model |
sparqlGraphQuery(String query)
Execute a SPARQL graph query using as context all the configured datasets at user's RedLink application
|
org.openrdf.model.Model |
sparqlGraphQuery(String query,
String dataset)
Execute a SPARQL graph query using the dataset passed by paramater as context.
|
org.apache.marmotta.client.model.sparql.SPARQLResult |
sparqlSelect(String query)
Deprecated.
|
org.apache.marmotta.client.model.sparql.SPARQLResult |
sparqlSelect(String query,
String dataset)
Deprecated.
|
org.apache.marmotta.client.model.sparql.SPARQLResult |
sparqlTupleQuery(String query)
Execute a SPARQL tuple query using as context all the configured datasets at user's RedLink application
|
org.apache.marmotta.client.model.sparql.SPARQLResult |
sparqlTupleQuery(String query,
String dataset)
Execute a SPARQL tuple query using the dataset passed by paramater as context.
|
boolean |
sparqlUpdate(String query,
String dataset)
Update dataset's resources using an SPARQL update query.
|
static final String PATH
static final String RESOURCE
static final String SPARQL
static final String SELECT
static final String QUERY
static final String UPDATE
static final String LDPATH
boolean importDataset(org.openrdf.model.Model data,
String dataset)
throws IOException,
org.openrdf.rio.RDFHandlerException
Model into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the request.data - RDF Model to be importeddataset - Name of the dataset where the data will be importedIOExceptionorg.openrdf.rio.RDFHandlerExceptionboolean importDataset(org.openrdf.model.Model data,
String dataset,
boolean cleanBefore)
throws org.openrdf.rio.RDFHandlerException,
IOException
Model into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the request. If cleanBefore value is true, current dataset at
user's RedLink application will be cleaned firstdata - RDF Model to be importeddataset - Name of the dataset where the data will be importedcleanBefore - Flag indicating if the dataset must be cleaned beforeorg.openrdf.rio.RDFHandlerExceptionIOExceptionboolean importDataset(File file, String dataset) throws FileNotFoundException
File into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the requestfile - File containing the RDF Model to be importeddataset - Name of the dataset where the data will be importedFileNotFoundExceptionboolean importDataset(File file, String dataset, boolean cleanBefore) throws FileNotFoundException
File into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the request. If cleanBefore value is true, current dataset at
user's RedLink application will be cleaned firstfile - File containing the RDF Model to be importeddataset - Name of the dataset where the data will be importedcleanBefore - Flag indicating if the dataset must be cleaned beforeFileNotFoundExceptionboolean importDataset(InputStream in, org.openrdf.rio.RDFFormat format, String Dataset)
InputStream into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the requestin - InputStream containing the RDF Model to be importedformat - RDFFormat indicating the format of the model contained in the InputStreamDataset - Name of the dataset where the data will be importedboolean importDataset(InputStream in, org.openrdf.rio.RDFFormat format, String Dataset, boolean cleanBefore)
InputStream into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the request. If cleanBefore value is true, current dataset at
user's RedLink application will be cleaned firstin - InputStream containing the RDF Model to be importedformat - RDFFormat indicating the format of the model contained in the InputStreamDataset - Name of the dataset where the data will be importedcleanBefore - Flag indicating if the dataset must be cleaned beforeorg.openrdf.model.Model exportDataset(String dataset)
Model. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the requestdataset - Name of the dataset at user's RedLink application to be exportedModel representing the datasetboolean cleanDataset(String dataset)
dataset - Name of the dataset at user's RedLink application to be cleanedorg.openrdf.model.Model getResource(String resource)
Modelresource - URI (identifier) of the resourceModel representing the resource and all its properties or null if the resource is not foundorg.openrdf.model.Model getResource(String resource, String dataset)
Model from the user dataset passed by parameter. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the requestresource - URI (identifier) of the resourcedataset - Name of the dataset at user's RedLink application where the resource will be lookupboolean importResource(String resource, org.openrdf.model.Model data, String dataset)
Model into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the request.resource - URI (identifier) of the resourcedata - Resource data as RDF Modeldataset - Name of the dataset at user's RedLink application where the resource will be importedboolean importResource(String resource, org.openrdf.model.Model data, String dataset, boolean cleanBefore)
Model into the selected Dataset. The Dataset must exist at the user RedLink account and
must be configured for the user's RedLink application used in the request. If cleanBefore value is true, current resource at
user's dataset will be deleted firstresource - URI (identifier) of the resourcedata - Resource data as RDF Modeldataset - Name of the dataset at user's RedLink application where the resource will be importedcleanBefore - Flag indicating if the resource must be deleted beforeboolean deleteResource(String resource, String dataset)
resource - URI (identifier) of the resourcedataset - Name of the dataset at user's RedLink application where the resource will be deletedorg.apache.marmotta.client.model.sparql.SPARQLResult sparqlTupleQuery(String query, String dataset)
query - SPARQL tuple query to be executeddataset - Name of the dataset at user's RedLink application where the query will be executedSPARQLResult object@Deprecated org.apache.marmotta.client.model.sparql.SPARQLResult sparqlSelect(String query, String dataset)
org.apache.marmotta.client.model.sparql.SPARQLResult sparqlTupleQuery(String query)
query - SPARQL tuple query to be executedSPARQLResult object@Deprecated org.apache.marmotta.client.model.sparql.SPARQLResult sparqlSelect(String query)
org.openrdf.model.Model sparqlGraphQuery(String query, String dataset)
query - SPARQL graph query to be executeddataset - ame of the dataset at user's RedLink application where the query will be executedModel objectorg.openrdf.model.Model sparqlGraphQuery(String query)
query - SPARQL graph query to be executedModel objectboolean sparqlUpdate(String query, String dataset)
query - SPARQL query to be executeddataset - Name of the dataset at user's RedLink application where the query will be executedLDPathResult ldpath(String uri, String dataset, String program)
uri - dataset - Name of the dataset at user's RedLink application where the query will be executedprogram - LDPath program to be executedLDPathResult objectLDPathResult ldpath(String uri, String program)
uri - program - LDPath program to be executedLDPathResult objectCopyright © 2014 Redlink GmbH. All rights reserved.