Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Interlink's override eachother's output file #103

Open
frmichel opened this issue May 15, 2017 · 2 comments
Open

Multiple Interlink's override eachother's output file #103

frmichel opened this issue May 15, 2017 · 2 comments

Comments

@frmichel
Copy link

Hi all,

Here is a message I've posted on the Google group. Not where this should git best, so I copy it here too.

I'm using Silk single machine 2.7.1.
Here is my problem: I declare 2 Interlink elements, each having one dedicated output:

   <Interlinks>
        <Interlink id="1">
            <SourceDataset dataSource="..." var="a">...</SourceDataset>
            <TargetDataset dataSource="..." var="b">...</TargetDataset>
             
            <LinkageRule linkType="skos:closeMatch">...</LinkageRule>

            <Outputs>
                <Output id="reference-with-date" type="file" minConfidence="0.5" >
                    <Param name="file" value="reference-with-date-accept.nt"/>
                    <Param name="format" value="N-Triples"/>
                </Output>
            </Outputs>
        </Interlink>
       
        <Interlink id="2">
            <SourceDataset dataSource="..." var="a">...</SourceDataset>
            <TargetDataset dataSource="..." var="b">...</TargetDataset>
             
            <LinkageRule linkType="skos:relatedMatch">...</LinkageRule>
           
            <Outputs>
                <Output id="synonym-with-date" type="file" minConfidence="0.5" >
                    <Param name="file" value="synonym-with-date-accept.nt"/>
                    <Param name="format" value="N-Triples"/>
                </Output>
            </Outputs>
         </Interlink>
    </Interlinks>

The first Interlink executes and generates the appropriate file with closeMatch alignements.

The second Interlink executes, generates the appropriate file with relatedMatch alignements but it also overrides the file generated by the first Interlink.

I've tried this by defining the named output in the interlink, then put the details in the Outputs section at the end of the Silk file. That behaves the same.

Any trick?

Thx,
Franck.

@afeliachi
Copy link
Contributor

Hi Franck
I suggest to create a separate script for each Interlink element and run them separately.
It is a very odd behaviour though. Are sure there is one Output element in the second Interlink?
Cheers

@frmichel
Copy link
Author

Right, this is what I did as a workaround.

Yes, I've checked and rechecked quite a few times my config: there is one output element in each Interlink with two different ids and destination files. And yet the second gets overridden by the first one.

Cheers,
Franck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants