summaryrefslogtreecommitdiff
path: root/src/tracker
Commit message (Collapse)AuthorAgeFilesLines
* libtracker-sparql: Add TrackerSerializeFlags argument to serialization APICarlos Garnacho2022-02-041-0/+1
| | | | | This is currently unused, but might be used for future expansion points (e.g. hint the desire for pretty RDF)
* cli: Use serialize() method for "tracker3 export" commandCarlos Garnacho2022-02-041-52/+44
| | | | | Use this new TrackerSparqlConnection method to extract data from a SPARQL endpoint.
* cli: Filter out hidden files from usageJan Tojnar2022-01-031-2/+4
| | | | | | Nix replaces programs with shell scripts wrappers that execute the original files (renamed to .${original_program_name}-wrapped). We do not want those files to be listed in help page.
* tracker: Check the return value of g_filename_to_utf8()Carlos Garnacho2021-10-231-1/+2
| | | | | | | | | We were checking for the error here, but Coverity seems to insist that we are not freeing the possibly returned string. This is obviously not true, since NULL will be returned on error. Check on both things to appease Coverity. CID: #1501121
* tracker: Test return value of g_file_get_contents()Carlos Garnacho2021-10-231-2/+2
| | | | | | | | Check for the return value of this function, since coverity seems to like it checked (and does not understand the error is only filled in case of error). CID: #1501105
* tracker: Check return value of g_setenvCarlos Garnacho2021-10-231-1/+2
| | | | | | | This function might fail (says Coverity), so check the error value. CID: #1501106
* tracker: Check return value of g_file_get_contentsCarlos Garnacho2021-10-231-2/+2
| | | | CID: #1501126
* tracker-db-manager: add "first_time" fieldAbanoub Ghadban2021-08-061-2/+1
| | | | | | Adds "first_time" field to TrackerDBManager class. Removes "first_time" argument from tracker_db_manager_new() as we can access it through tracker_db_manager_is_first_time() Later, the first_time field will be checked before deleting the newly created db when error occures during the creation process
* libtracker-data: Make get_db_interface() return a GErrorCarlos Garnacho2021-07-131-3/+5
| | | | | This is a failable operation, so add a GError parameter and propagate errors happening inside instead of warning in place.
* Merge branch 'i18n-fix' into 'master'Carlos Garnacho2021-06-091-4/+1
|\ | | | | | | | | tracker: Fix i18n macros usage See merge request GNOME/tracker!429
| * tracker: Fix i18n macros usageDaniele Nicolodi2021-05-161-4/+1
| |
* | build: Avoid setting the regular library path in rpathCarlos Garnacho2021-06-081-1/+1
| | | | | | | | | | This is redundant, and Fedora has made it a requirement to drop unnecessary rpaths.
* | Removed warning: cast incompatiblenitinosiris2021-05-231-3/+11
|/
* treewide: Fix signed vs unsigned comparison in loop index variablesDaniele Nicolodi2021-05-081-2/+2
|
* tracker: Plug leak in "tracker help" subcommandCarlos Garnacho2021-03-261-2/+6
| | | | CID: #1501118
* tracker: Add --loopback option to "tracker3 endpoint"Carlos Garnacho2020-12-131-0/+30
| | | | | | | | | This combines with --http-port and HTTP endpoints. Allows running the endpoint in a way that only connections via the loopback device are allowed. This might be useful for testing, without maybe leaking undesired details on the outside.
* tracker: Add --http-port option to "tracker3 endpoint" commandCarlos Garnacho2020-12-131-1/+66
| | | | Let "tracker3 endpoint" expose HTTP endpoints as well as D-Bus ones.
* libtracker-data: Avoid varargs function where possiblewip/carlosg/insert-perfCarlos Garnacho2020-12-012-2/+2
| | | | | | | | | | We let tracker_db_interface_create_statement() take varargs, even though most often we have full SQL queries to give. Add a separate tracker_db_interface_create_vstatement() function taking varargs, and let this function go with the given SQL string as is. This avoids needless string copies in fast paths, like executing a TrackerSparqlStatement.
* tracker: Add --2to3 switch to "tracker3 export"Carlos Garnacho2020-09-021-4/+192
| | | | | | | | | | This special mode opens the old Tracker2 database, and tries to extract data, pretty much in the same fashion than "tracker export" command introduced recently in 2.3.x. So far, this submode only supports exporting of starred files. The --keyfile argument is also supported, to ease manipulation of this data on the consumer side.
* build: Remove outdated commentsSam Thursfield2020-09-011-2/+0
| | | | | | Meson issue https://github.com/mesonbuild/meson/issues/671 was fixed years ago and we can use tracker_common_dep anywhere we like without fear of combinatorial explosion.
* tracker: Use readonly connection if possible on "tracker3 sparql"Carlos Garnacho2020-08-251-1/+3
| | | | | | | Otherwise, the connection competes with whoever really owns the database, and goes through the rather slow file locking and busy handling methods. We should strive to keep the database writable by a single process, so make sure we use a readonly connection if we are only doing queries.
* tracker: Add missing \n after error outputCarlos Garnacho2020-08-251-1/+1
|
* tracker: Drop "tracker3 info" CLI tool from tracker repoCarlos Garnacho2020-08-194-512/+0
| | | | This is closer to tracker-miners, so was moved there.
* tracker: Add "tracker3 export" support to extract specific IRIsCarlos Garnacho2020-08-191-13/+36
| | | | This is similar to "tracker3 info", but without file and uri specific.
* tracker: Add pager support to "tracker3 sql" commandCarlos Garnacho2020-08-191-5/+11
|
* tracker: Add pager support to "tracker3 sparql" commandCarlos Garnacho2020-08-191-27/+36
|
* tracker: Add pager support to "tracker3 export"Carlos Garnacho2020-08-191-0/+5
|
* tracker: Update bash completion scriptCarlos Garnacho2020-08-191-4/+9
| | | | | | Make it use the right tracker3 tool for autocompletion, and add some more autocompletion sugar: Add more options that handle dirs or filenames, and add completion for DBus names implementing endpoints.
* tracker: Add --list argument to "tracker3 endpoint" commandCarlos Garnacho2020-08-191-1/+100
| | | | This lists all SPARQL endpoints that are visible on DBus.
* Add curly quotes around options to properly delimit itThibault Martin2020-08-114-4/+4
|
* tracker: Initialize variableCarlos Garnacho2020-07-171-1/+1
| | | | Autoptr variables must get initialized properly.
* cli: Fix potentially uninitialised variableSam Thursfield2020-06-231-1/+1
|
* Merge branch 'sam/tracker3-in-cli' into 'master'Sam Thursfield2020-06-211-5/+5
|\ | | | | | | | | cli: Use name `tracker3` consistently See merge request GNOME/tracker!277
| * cli: Use name `tracker3` consistentlySam Thursfield2020-06-171-5/+5
| | | | | | | | | | Previously the usage info would refer to the program as `tracker`, very confusing if it's installed as `tracker3`.
* | Merge branch 'wip/carlosg/last-api-changes' into 'master'Sam Thursfield2020-06-193-13/+13
|\ \ | | | | | | | | | | | | | | | | | | Last API changes (?) Closes #218 and #226 See merge request GNOME/tracker!274
| * | ontologies: Move tracker: ontology in 11-rdf.ontology to NRLCarlos Garnacho2020-06-192-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NRL is about defining the data structure, all our additional properties somehow belong in that same domain. This also moves all tracker:* properties and classes out of the base ontology (except for the tracker namespace itself, sadly, as it's needed for functions). All users have been updated to the new namespace for these properties and classes. Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/226
| * | libtracker-sparql: Drop priority argument from sync functionsCarlos Garnacho2020-06-192-2/+2
| |/ | | | | | | Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/218
* | build: Use `tracker3` as versioned name, not `tracker-3`Sam Thursfield2020-06-171-1/+1
|/ | | | | | This corresponds with the package name we expect distros to use. Fixes https://gitlab.gnome.org/GNOME/tracker/-/issues/228
* cli: Add `tracker export --show-graphs` optionSam Thursfield2020-05-111-12/+86
| | | | | | | | | This option includes graphs in the exported output. In this mode the output is no longer Turtle format but [TriG](https://www.w3.org/TR/trig/) format. This means `tracker export --show-graphs | tracker import` won't work, so this mode is disabled by default.
* cli: Add `tracker sparql --list-graphs` optionSam Thursfield2020-05-111-0/+30
|
* Merge branch 'wip/carlosg/data-update-cleanups' into 'master'Sam Thursfield2020-04-271-9/+13
|\ | | | | | | | | Various cleanups and improvements to tracker-data-update.c See merge request GNOME/tracker!230
| * tracker: Add missing newline in CLI outputCarlos Garnacho2020-04-271-0/+1
| |
| * tracker: Allow in-memory endpoints through the CLI commandCarlos Garnacho2020-04-271-9/+12
| | | | | | | | If no database path is passed, create an in-memory database.
* | build: Honour DESTDIR when creating subcommand linksSam Thursfield2020-04-271-4/+4
|/
* Merge branch 'sam/debug' into 'master'Sam Thursfield2020-04-231-7/+0
|\ | | | | | | | | | | | | Rework debug logging for 3.0 Closes #178 See merge request GNOME/tracker!219
| * Remove TRACKER_VERBOSITY and tracker-log moduleSam Thursfield2020-04-201-7/+0
| | | | | | | | | | | | | | | | | | Users should now use G_MESSAGES_DEBUG=Tracker to see debug messages on the console. The TRACKER_VERBOSITY only worked if tracker_log_init() had been called, which can't be done when libtracker-sparql is being used from an application outside of Tracker.
* | Update ontology URLs for 3.0Sam Thursfield2020-04-222-3/+3
|/ | | | | | | | | | | | | | | Our ontology URLs now use a namespace that we manage, at http://tracker.api.gnome.org/. This domain won't expire and can redirect anywhere we want, so that it can always link to the correct documentation for the ontologies. We are going to continue using the Nepomuk name in the ontologies that were developed by the Nepomuk project, despite changing the URL. This way we acknowledge that we have downstream changes to the Nepomuk ontologies but still provide a link to the original shared vocabularies. Fixes https://gitlab.gnome.org/GNOME/tracker/-/issues/162 and https://gitlab.gnome.org/GNOME/tracker/-/issues/104
* build: Fix issue when switching between tracker and tracker3 branchesSam Thursfield2020-04-081-1/+1
| | | | | | Fixes this kind of error at configure time: ln: failed to create symbolic link '/home/sam/src/tracker-miners/build/subprojects/tracker/src/tracker/subcommands/endpoint': File exists
* tracker: Fix symlinks for uninstalled CLI testsCarlos Garnacho2020-04-051-2/+2
|
* tracker: Reference new DBus name for miner-fs endpointCarlos Garnacho2020-04-051-1/+1
| | | | It is changing to Tracker3 version.