45 lines
1.5 KiB
Gherkin
45 lines
1.5 KiB
Gherkin
Feature: Conversion Logic
|
|
As a developer
|
|
I want conversion logic to work correctly
|
|
So that datasets are converted properly
|
|
|
|
Scenario: Convert FB15k-237 dataset
|
|
Given args for conversion with base dir
|
|
And a mock RDF file for "fb15k-237"
|
|
When I convert "fb15k-237" using specialized converter
|
|
Then the conversion should use fb15k converter
|
|
|
|
Scenario: Convert NELL-995 dataset
|
|
Given args for conversion with base dir
|
|
And a mock RDF file for "nell-995"
|
|
When I convert "nell-995" using specialized converter
|
|
Then the conversion should use nell converter
|
|
|
|
Scenario: Convert ConceptNet dataset
|
|
Given args for conversion with base dir
|
|
And a mock CSV file for "conceptnet"
|
|
When I convert "conceptnet" using specialized converter
|
|
Then the conversion should use conceptnet converter
|
|
|
|
Scenario: Convert standard RDF dataset with unified converter
|
|
Given args for conversion with base dir
|
|
And a mock RDF file for "wordnet"
|
|
When I convert "wordnet" using unified converter
|
|
Then the conversion should use unified converter
|
|
|
|
Scenario: Handle conversion failure
|
|
Given args for conversion with base dir
|
|
And a mock RDF file for "wordnet"
|
|
When conversion subprocess fails
|
|
Then conversion should raise ValueError
|
|
|
|
Scenario: Skip conversion when flag is set
|
|
Given args for conversion with skip_convert flag
|
|
And a mock RDF file for "wordnet"
|
|
When I attempt to convert "wordnet"
|
|
Then conversion should be skipped
|
|
|
|
|
|
|
|
|