Re: [PATCH 2/5] tracker: add proper name to devices



On Tue, 2011-01-25 at 10:47 +0000, llandwerlin gmail com wrote:
> +#define TRACKER_MOUNTED_DATASOURCES_START                    \
> +  "SELECT nie:dataSource(?urn) AS ?datasource "              \
> +  "(SELECT nie:url(tracker:mountPoint(?ds)) "                \
> +  "WHERE { ?urn nie:dataSource ?ds  }) "                     \
> +  "(SELECT GROUP_CONCAT(tracker:isMounted(?ds), \",\") "     \
> +  "WHERE { ?urn nie:dataSource ?ds  }) "                     \
>    "WHERE { ?urn a nfo:FileDataObject . FILTER (?urn IN ("
>  
>  #define TRACKER_MOUNTED_DATASOURCES_END " ))} GROUP BY (?datasource)"
>  
> +#define TRACKER_DATASOURCES_REQUEST                                     \
> +  "SELECT ?urn nie:dataSource(?urn) AS ?source "                        \
> +  "(SELECT GROUP_CONCAT(nie:url(tracker:mountPoint(?ds)), \",\") "      \
> +  "WHERE { ?urn nie:dataSource ?ds  }) "                                \
> +  "WHERE { "                                                            \
> +  "?urn tracker:available ?tr . "                                       \
> +  "?source a tracker:Volume . "                                         \
> +  "FILTER (bound(nie:dataSource(?urn))) "                               \
> +  "} "                                                                  \
>    "GROUP BY (?source)"
>  

I find these queries far complicated to understand. 

What are you trying to get?

For the case of TRACKER_DATASOURCES_REQUEST seems you are trying to get
the list of tracker Volumens, but still not sure why getting the ?urn
and other fields.

Thank you.

	J.A.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]