2953d6d92556beaa66cd13970901b0a8b435a613252241339f479380c3ba72b05320020539552509
 
 
1
<?xml version="1.0" encoding="utf-8" ?>
 
 
2
<Silk>
 
 
3
    <Prefixes>
 
 
4
        <Prefix id="rdf" namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
 
 
5
        <Prefix id="rdfs" namespace="http://www.w3.org/2000/01/rdf-schema#" />
 
 
6
        <Prefix id="owl" namespace="http://www.w3.org/2002/07/owl#" />
 
 
7
        <Prefix id="genes" namespace="http://wiking.vulcan.com/neurobase/kegg_genes/resource/vocab/" />
 
 
8
        <Prefix id="smwprop" namespace="http://mywiki/resource/property/" />
 
 
9
        <Prefix id="smwcat" namespace="http://mywiki/resource/category/" />
 
 
10
        <Prefix id="wiki" namespace="http://www.example.com/smw#" />
 
 
11
    </Prefixes>
 
 
12
 
 
 
13
    <DataSources>
 
 
14
        <DataSource id="Wiki" type="sparqlEndpoint">
 
 
15
            <Param name="endpointURI" value="http://localhost:2020/sparql/read" />
 
 
16
        </DataSource>
 
 
17
 
 
 
18
        <DataSource id="ABA" type="sparqlEndpoint">
 
 
19
            <Param name="endpointURI" value="http://localhost:2020/sparql/read" />
 
 
20
            <Param name="graph" value="REPLACED_BY_ENGINE" />
 
 
21
        </DataSource>
 
 
22
    </DataSources>
 
 
23
 
 
 
24
    <Interlinks>
 
 
25
        <Interlink id="genes">
 
 
26
            <LinkType>owl:sameAs</LinkType>
 
 
27
 
 
 
28
            <!-- a dummy dataset, the real dataset is defined at runtime -->
 
 
29
            <SourceDataset dataSource="ABA" var="b">
 
 
30
                <RestrictTo>?b rdf:type smwcat:Gene</RestrictTo>
 
 
31
            </SourceDataset>
 
 
32
 
 
 
33
            <TargetDataset dataSource="Wiki" var="a">
 
 
34
                <RestrictTo>?a rdf:type smwcat:Gene</RestrictTo>
 
 
35
            </TargetDataset>
 
 
36
 
 
 
37
            <LinkCondition>
 
 
38
            <Aggregate type="max">
 
 
39
                    <Compare metric="equality">
 
 
40
                        <Input path="?a/smwprop:EntrezGeneId" />
 
 
41
                        <Input path="?b/smwprop:EntrezGeneId" />
 
 
42
                    </Compare>
 
 
43
                    <Compare metric="equality">
 
 
44
                        <Input path="?a/smwprop:MgiMarkerAccessionId" />
 
 
45
                        <Input path="?b/smwprop:MgiMarkerAccessionId" />
 
 
46
                    </Compare>
 
 
47
            </Aggregate>
 
 
48
            </LinkCondition>
 
 
49
 
 
 
50
            <Filter threshold="1.0" />
 
 
51
 
 
 
52
        </Interlink>
 
 
53
 
 
 
54
    </Interlinks>
 
 
55
</Silk>