forked from D-Net/dnet-hadoop
changed the XQUERY to mirror the change in the code
This commit is contained in:
parent
37ad2f28e9
commit
7e81a17068
|
@ -21,13 +21,15 @@ import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
|
||||||
public class QueryInformationSystemTest {
|
public class QueryInformationSystemTest {
|
||||||
|
|
||||||
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
|
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
|
||||||
+
|
+
|
||||||
" where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " +
|
" where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " +
|
||||||
" return " +
|
" and ($x//context/param[./@name = 'status']/text() = 'manager' or $x//context/param[./@name = 'status']/text() = 'all') "
|
||||||
"<community> " +
|
+
|
||||||
"{$x//CONFIGURATION/context/@id}" +
|
" return " +
|
||||||
"{$x//CONFIGURATION/context/@label}" +
|
"<community> " +
|
||||||
"</community>";
|
"{$x//CONFIGURATION/context/@id}" +
|
||||||
|
"{$x//CONFIGURATION/context/@label}" +
|
||||||
|
"</community>";
|
||||||
|
|
||||||
List<String> communityMap = Arrays
|
List<String> communityMap = Arrays
|
||||||
.asList(
|
.asList(
|
||||||
|
|
Loading…
Reference in New Issue