Querying my own MP3, image, and other file metadata with SPARQL by Bob DuCharme.
From the post:
Ubuntu has a utility called Tracker that makes it easy to search your hard disk, a bit like the old Google Desktop with a few extra features. One extra feature ranks among the coolest SPARQL applications I’ve ever seen: the ability to execute SPARQL queries against data extracted from files on your hard disk.
To install it, I did a
sudo apt-get install of tracker-gui
to get the base parts of tracker and then did a similar installation oftracker-utils
to get the SPARQL query utility. Next, I added the Ubuntu applications “Desktop search” and “search and indexing” as applications and used the latter to search and index 94 GB of MP3s and some image files. The indexing took a few hours. (tracker-control -S was a handy command for checking on the indexing progress.) The worldofgnome.org page Indexing preferences in GNOME 3.8 was helpful for understanding the indexing options.Once the file metadata is indexed, the tracker-sparql command-line utility lets you query it. For example, the following runs the query stored in bea.spq against the metadata:
…
Interesting.
If you search for tracker with Aptitude, you may want to try: tracker-explorer
, or at least that is how it was listed for Ubuntu 12.04.
Now you have an incentive to attach metadata to those image files on your hard drive. 😉