Skip to content

Commit 3e73a48

Browse files
committed
Fix an issue that was introduced when releasing OSF 3.4 which had an API change that affected the DMT.
1 parent 3f8765c commit 3e73a48

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

converters/default/defaultConverter.php

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,15 @@ function defaultConverter($file, $dataset, $setup = array())
7777

7878
case 'odbc':
7979
default:
80-
$sparql = new SparqlQueryOdbc($osf_ini["triplestore"]["username"],
81-
$osf_ini["triplestore"]["password"],
82-
$osf_ini["triplestore"]["dsn"],
83-
$osf_ini["triplestore"]["host"]);
80+
81+
$wsf = new stdClass();
82+
83+
$wsf->triplestore_username = $osf_ini["triplestore"]["username"];
84+
$wsf->triplestore_password = $osf_ini["triplestore"]["password"];
85+
$wsf->triplestore_dsn = $osf_ini["triplestore"]["dsn"];
86+
$wsf->triplestore_host = $osf_ini["triplestore"]["host"];
87+
88+
$sparql = new SparqlQueryOdbc($wsf);
8489
break;
8590
}
8691

@@ -387,16 +392,8 @@ function defaultConverter($file, $dataset, $setup = array())
387392
select distinct ?s
388393
from <".$importDataset.">
389394
where
390-
{
391-
{
392-
select distinct ?s
393-
from <".$importDataset.">
394-
where
395-
{
396-
?s a ?type.
397-
}
398-
order by ?s
399-
}
395+
{
396+
?s a ?type.
400397
}
401398
402399
limit ".$setup["sliceSize"]."
@@ -405,7 +402,8 @@ function defaultConverter($file, $dataset, $setup = array())
405402
406403
?s ?p ?o
407404
}");
408-
405+
406+
409407
$crudCreates = '';
410408
$crudUpdates = '';
411409
$crudDeletes = array();

dmt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'config-id::',
4747
'mime::',
4848
'file::',
49-
'exclude-reifications'));
49+
'exclude-reifications::'));
5050

5151
// Displaying DSF's help screen if required
5252
if(isset($arguments['h']) || isset($arguments['help']) || count($arguments) == 0)

0 commit comments

Comments
 (0)