Skip to content

Commit ae1916b

Browse files
authored
Fetch owl from release asset
1 parent f1964cf commit ae1916b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/__tests__/unit/technique-getter.unit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ describe('GitHubOwlTechnique', () => {
262262
});
263263

264264
describe('composeURL', () => {
265-
const expectedURL = 'http://aurl/aCommit/aFile';
265+
const expectedURL = 'http://aurl/download/aCommit/aFile';
266266
const tests = [
267267
{
268268
args: new techniqueGetter.GitHubOwlTechnique({

src/misc/technique-getter.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ export class GitHubOwlTechnique extends OntologyTechnique {
128128
config = config ?? {};
129129
this.repoURL =
130130
config.url ??
131-
'https://raw.githubusercontent.com/ExPaNDS-eu/ExPaNDS-experimental-techniques-ontology';
132-
this.commit = config.commit ?? 'master';
133-
this.file = config.file ?? 'source/PaNET.owl';
131+
'https://github.com/ExPaNDS-eu/ExPaNDS-experimental-techniques-ontology/releases/';
132+
this.commit = config.commit
133+
? `download/${config.commit}`
134+
: 'latest/download';
135+
this.file = config.file ?? 'PaNET.owl';
134136
this.equivalentClasses = {};
135137
this.keys.push(...['prefLabel', 'synonym']);
136138
}

0 commit comments

Comments
 (0)