Version 11, last updated by Robert Isele at November 21, 2011 17:08 UTC

Currently, Silk Workbench does not offer a public REST API. This page is intended to specify the initial API

General

The REST API is available under the path {deploymentURI}/api/. All paths given on this page are relative to this.

Data Sources

Data Sources are defined using the Silk Link Specification Language.

Resource Description
GET {projectID}/source Retrieves all data sources.
GET {projectID}/source/{taskID} Retrieves a data source.
PUT {projectID}/source/{taskID} Creates or updates a data source.
DELETE {projectID}/source/{taskID} Deletes a data source.

Example

Request:

GET my_project/source/dbpedia

Response:

<DataSource id="dbpedia" type="sparqlEndpoint">
  <Param name="endpointURI" value="http://dbpedia.org/sparql" />
  <Param name="retryCount" value="10" />
  <Param name="retryPause" value="1000" />
</DataSource>

Link Specifications

Link Specifications are defined using the Silk Link Specification Language.

Resource Description
GET {projectID}/linkSpec Retrieves all link specifications.
GET {projectID}/linkSpec/{taskID} Retrieves a link specification.
PUT {projectID}/linkSpec/{taskID} Creates or updates a link specification.
DELETE {projectID}/linkSpec/{taskID} Deletes a link specification.

Reference Links

Reference Links are defined using the Ontology Alignment Format specified at http://alignapi.gforge.inria.fr/format.html.

Resource Description
GET {projectID}/referenceLinks/{taskID} Retrieves a reference links set.
PUT {projectID}/referenceLinks/{taskID} Creates or updates a reference links set.
DELETE {projectID}/referenceLinks/{taskID} Deletes a reference links set.

Example

Request:

GET my_project/referenceLinks/movies

Response:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"      
         xmlns="http://knowledgeweb.semanticweb.org/heterogeneity/alignment#">
  <Alignment>
    <map>
      <Cell>
        <entity1 rdf:resource="http://dbpedia.org/resource/What%27s_Up,_Doc%3F_%281972_film%29"></entity1>
        <entity2 rdf:resource="http://data.linkedmdb.org/resource/film/1982"></entity2>
        <relation>=</relation>
        <measure rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.1</measure>
      </Cell>
    </map>
    ...
  </Alignment>
</rdf:RDF>