This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

1. Volumes

1.1. List all volumes

SELECT ?v tracker:isMounted(?v)
WHERE {
  ?v a tracker:Volume
}

1.2. List all volumes with mount point

SELECT ?v nie:url(?m) tracker:isMounted(?v)
WHERE {
  ?v a tracker:Volume ;
     tracker:mountPoint ?m
}

1.3. List all removable non-optical volumes

SELECT ?v nie:url(?m) tracker:isMounted(?v)
WHERE {
  ?v a tracker:Volume ;
     tracker:mountPoint ?m ;
     tracker:isRemovable true ;
     tracker:isOptical false
}

1.4. List all removable+optical volumes

SELECT ?v nie:url(?m) tracker:isMounted(?v)
WHERE {
  ?v a tracker:Volume ;
     tracker:mountPoint ?m ;
     tracker:isOptical true
}

1.5. List all non-removable non-optical volumes

SELECT ?v nie:url(?m) tracker:isMounted(?v)
WHERE {
  ?v a tracker:Volume ;
     tracker:mountPoint ?m ;
     tracker:isRemovable false
}

1.6. List currently mounted volumes

SELECT ?v nie:url(?m)
WHERE {
  ?v a tracker:Volume ;
     tracker:mountPoint ?m ;
     tracker:isMounted true
}

1.7. List volumes unmounted BEFORE a date

SELECT ?o nie:url(?m) ?z
WHERE {
  ?o a tracker:Volume ;
     tracker:mountPoint ?m ;
     tracker:isMounted false ;
     tracker:unmountDate ?z .
  FILTER (?z < "%Y-%m-%dT%H:%M:%S%z")
}

1.8. List all files and directories inside the volume mounted in a given path

SELECT nie:url(?u)
WHERE {
  ?v a tracker:Volume ;
     tracker:mountPoint ?m .
  ?m a nfo:Folder ;
     nie:url 'file:///media/volume' .
  ?u a nfo:FileDataObject ;
     nie:dataSource ?v .
}

2024-10-23 10:59