Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNLOCK
kubernetes
Commits
3f15d7b6
Commit
3f15d7b6
authored
Jan 27, 2021
by
Koehorst, Jasper
Browse files
skip hidden files
parent
ecacd19c
Pipeline
#16989
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/nl/munlock/irods/Search.java
View file @
3f15d7b6
...
...
@@ -448,7 +448,10 @@ public class Search {
for
(
IRODSQueryResultRow
irodsQueryResultSetResult
:
irodsQueryResultSetResults
)
{
String
path
=
irodsQueryResultSetResult
.
getColumn
(
0
)
+
"/"
+
irodsQueryResultSetResult
.
getColumn
(
1
);
if
(!
new
File
(
"."
+
path
).
exists
())
{
if
(
new
File
(
path
).
getName
().
startsWith
(
"."
))
{
continue
;
}
else
if
(!
new
File
(
"."
+
path
).
exists
())
{
log
.
info
(
"Obtaining "
+
new
File
(
path
).
getName
());
IRODSFileInputStream
irodsFileInputStream
=
connection
.
fileFactory
.
instanceIRODSFileInputStream
(
path
);
new
File
(
"."
+
new
File
(
path
).
getParent
()).
mkdirs
();
FileOutputStream
fileOutputStream
=
new
FileOutputStream
(
new
File
(
"."
+
path
));
...
...
@@ -456,8 +459,11 @@ public class Search {
irodsFileInputStream
.
close
();
fileOutputStream
.
close
();
}
// Load...
Domain
domainTemp
=
new
Domain
(
"file://"
+
"."
+
path
);
String
config
=
"file://"
+
"."
+
path
;
log
.
info
(
"Config "
+
config
);
Domain
domainTemp
=
new
Domain
(
config
);
domain
.
getRDFSimpleCon
().
getModel
().
add
(
domainTemp
.
getRDFSimpleCon
().
getModel
());
log
.
info
(
"Triple size loaded "
+
domain
.
getRDFSimpleCon
().
getModel
().
size
()
+
" from "
+
path
);
domainTemp
.
close
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment