uri-resolver/src/main/java/org/gcube/datatransfer/resolver/applicationprofile/GcubeQuery.java

15 lines
440 B
Java

package org.gcube.datatransfer.resolver.applicationprofile;
public class GcubeQuery {
public static String getGcubeGenericQueryString(String secondaryType, String appId){
return "for $profile in collection('/db/Profiles/GenericResource')//Resource " +
"where $profile/Profile/SecondaryType/string() eq '"+secondaryType+"' and $profile/Profile/Body/AppId/string() " +
" eq '" + appId + "'" +
"return $profile";
}
}