Version 12, last updated by Robert Isele at 06 Feb 13:43 UTC
Overview
An output represents a destination where the generated links are written to. Outputs can have an acceptance windows (defined by minConfidence and maxConfidence) e.g. for separating accepted links and links with a lower confidence which need to be verified before being accepted.
Examples
XML
<Outputs>
<Output type="output type" minConfidence="lower threshold" maxConfidence="upper threshold">
<Param name="parameter name" value="parameter value" />
...
</Output>
</Outputs>API
Output(
id = "MyOutput",
writer = FileWriter(file = "output.nt", format = "ntriples")
)Available Output Types
File Output
| Parameter | Description |
|---|---|
| file | Writes the links to a file. Links are written to {user.dir}/.silk/output/ by default (i.e. if a relative path is provided). |
| format | The output format. Available formats are “ntriples” (N-Triples format) and “alignment” (Alignment format) |
Example:
<Outputs>
<Output type="file" minConfidence="0.1">
<Param name="file" value="accept_links.nt"/>
<Param name="format" value="ntriples"/>
</Output>
</Outputs>Formats
N-Triples
Writes the links as N-Triples statements.
Alignment
Writes the links in the OAEI Alignment Format. This includes not only the uris of the source and target entities, but also the confidence of each link.
SPARQL/Update Output
| Parameter | Description |
|---|---|
| uri | The URI of the SPARQL/Update endpoint e.g. http://localhost:8090/virtuoso/sparql |
| parameter (optional) | The HTTP parameter used to submit queries. Defaults to “query” which works for most endpoints. Some endpoints require different parameters e.g. Sesame expects “update” and Joseki expects “request”. |
| graphUri (optional) | The URI of the graph to put the links |
Example:
<Outputs>
<Output type="sparul" >
<Param name="uri" value="http://localhost:8080/query"/>
</Output>
</Outputs>Detailed Alignment (Work in Progress)
Writes the links in a detailed alignment format.
Example:
<DetailedAlignment>
<Cell>
<Entity1 rdf:resource="http://dbpedia.org/resource/Hydroflumethiazide"/>
<Entity2 rdf:resource="http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugs/DB00774"/>
<Aggregate similarity="1.0">
<Compare similarity="1.0">
<Input path="?a/rdfs:label">
<Value>Idroflumetiazide</Value>
<Value>Hydroflumethiazide</Value>
</Input>
<Input path="?b/rdfs:label"/>
<Value>Hydroflumethiazide</Value>
</Input>
</Compare>
<Compare similarity="1.0">
<Input path="?a/rdfs:label">
<Value>Idroflumetiazide</Value>
<Value>Hydroflumethiazide</Value>
</Input>
<Input path="?b/drugbank:synonym"/>
<Value>Idroflumetiazide</Value>
</Input>
</Compare>
</Aggregate>
</Cell>
...
<DetailedAlignment>
Alternative (as RDF/XML):
<?xml version='1.0' encoding='utf-8' standalone='no'?>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<DetailedAlignment>
<map>
<Cell>
<entity1 rdf:resource="http://dbpedia.org/resource/Hydroflumethiazide"/>
<entity2 rdf:resource="http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugs/DB00774"/>
<aggregate>
<similiarity>1.0</similarity>
<compare>
<similiarity>1.0</similarity>
<input>
<path>?a/rdfs:label</path>
<value>Idroflumetiazide</value>
<value>Hydroflumethiazide</value>
</input>
<input>
<path>?b/rdfs:label</path>
<value>Hydroflumethiazide</value>
</input>
</compare>
<compare>
<similiarity>1.0</similarity>
<input>
<path>?a/rdfs:label</path>
<value>Idroflumetiazide</value>
<value>Hydroflumethiazide</value>
</input>
<input>
<path>?b/drugbank:synonym</path
<value>Idroflumetiazide</value>
</input>
</compare>
</aggregate>
</Cell>
</map>
...
</DetailedAlignment>
</rdf:RDF>