Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
ELIXIR
tools-platform
elixibilitas
elixibilitas-rest
Commits
295c5c56
Commit
295c5c56
authored
Nov 11, 2020
by
redmitry@list.ru
Browse files
add "@nmsp" property
parent
7dec2be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/es/bsc/inb/elixir/elixibilitas/query/MongoQueries.java
View file @
295c5c56
...
...
@@ -227,6 +227,7 @@ public class MongoQueries {
Document
_id
=
(
Document
)
doc
.
remove
(
"_id"
);
doc
.
append
(
"@id"
,
toolsDAO
.
getURI
(
_id
));
doc
.
append
(
"@nmsp"
,
toolsDAO
.
getNamespace
(
_id
));
doc
.
append
(
"@type"
,
toolsDAO
.
getType
(
_id
));
doc
.
append
(
"@label"
,
toolsDAO
.
getLabel
(
_id
));
doc
.
append
(
"@version"
,
toolsDAO
.
getVersion
(
_id
));
...
...
@@ -439,6 +440,7 @@ public class MongoQueries {
for
(
Document
tool
:
tools
)
{
Document
_id
=
(
Document
)
tool
.
remove
(
"_id"
);
tool
.
append
(
"@id"
,
toolsDAO
.
getURI
(
_id
));
tool
.
append
(
"@nmsp"
,
toolsDAO
.
getNamespace
(
_id
));
tool
.
append
(
"@type"
,
toolsDAO
.
getType
(
_id
));
tool
.
append
(
"@label"
,
toolsDAO
.
getLabel
(
_id
));
tool
.
append
(
"@version"
,
toolsDAO
.
getVersion
(
_id
));
...
...
Write
Preview
Markdown
is supported
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