summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * libtracker-sparql: Allow non bracketted expressions in OrderClauseCarlos Garnacho2018-11-132-5/+12
| | | | | | | | This is a Tracker SPARQL extension present in the previous parser.
| * libtracker-data: Add back support for DELETE{}/INSERT{} with no WHERE clauseCarlos Garnacho2018-11-132-6/+20
| | | | | | | | This is a Tracker extension to SPARQL.
| * libtracker-data: Add INSERT/DELETE SILENT syntax backCarlos Garnacho2018-11-132-5/+22
| | | | | | | | This is a tracker extension to SPARQL.
| * libtracker-data: Add 'INSERT OR REPLACE' SPARQL extension backCarlos Garnacho2018-11-132-1/+19
| | | | | | | | This is syntax traditionally allowed by Tracker.
| * libtracker-data: Make ';' separator between updates optional againCarlos Garnacho2018-11-132-3/+11
| | | | | | | | This is a Tracker extension to the SPARQL1.1 syntax.
| * libtracker-data: Add back support for SPARQL updatesCarlos Garnacho2018-11-131-45/+437
| |
| * libtracker-data: Add method to fetch unused URNsCarlos Garnacho2018-11-132-0/+36
| |
| * libtracker-data: Add internal UUID generator SQL functionCarlos Garnacho2018-11-135-0/+123
| |
| * libtracker-data: Expose TrackerSparql API for updatesCarlos Garnacho2018-11-132-0/+60
| |
| * libtracker-data: Invert processing of Verb and ObjectList clausesCarlos Garnacho2018-11-131-4/+19
| | | | | | | | | | | | For sequential property paths it will be more convenient to have the ObjectList node available before processing the property path, so we can explode those properly into intermediate blank nodes.
| * libtracker-data: Implement MINUSCarlos Garnacho2018-11-131-1/+6
| | | | | | | | Use the equivalent EXCEPT sqlite syntax.
| * libtracker-data: Implement SHA384Carlos Garnacho2018-11-132-1/+10
| | | | | | | | If glib >= 2.51.0 is available, we can implement this.
| * libtracker-data: Accept Expression in BOUND()Carlos Garnacho2018-11-132-9/+6
| | | | | | | | This is a syntax extension we used to accept, so bring it back.
| * libtracker-data: Bring back custom sparql syntaxCarlos Garnacho2018-11-132-2/+25
| | | | | | | | | | Tracker used to accept SubSelect in BrackettedExpression, bring that back.
| * libtracker-data: Bring back custom sparql syntaxCarlos Garnacho2018-11-132-17/+50
| | | | | | | | | | Tracker used to accept plain Expression in SelectClause, i.e. no parentheses, and "AS ?var" being optional. Bring that back.
| * libtracker-data: Make SparqlRegex() SQL function take 2/3 argumentsCarlos Garnacho2018-11-131-4/+6
| | | | | | | | So the sparql parser can defer optional arguments to it.
| * libtracker-data: Add TrackerSparqlCarlos Garnacho2018-11-137-0/+7047
| |
| * libtracker-data: Add TrackerStringBuilderCarlos Garnacho2018-11-133-0/+352
| | | | | | | | | | | | | | | | This is somewhat similar to GString, except it allows for adding extension points at random places that allow for inserting stuff mid-string without relocating the whole thing. It is expected that SQL query construction will use this facility.
| * libtracker-data: Add TrackerSparqlParser and helpersCarlos Garnacho2018-11-133-0/+927
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This struct takes the query text and a root rule that will work as the starting point to generate the expression tree that represents the query. This expression tree has a virtually identical structure to the formed by the rules themselves, with the only difference that ?/+/* rules may have none or many nodes representing a single rule. The parser does not do anything beyond a syntactic interpretation of the query, the expression tree nodes contain a pointer to the rule that generated them, plus start/end points of the text in the query, so an upper layer can do the actual ontology validations, and generate the SQL. The two entry points are tracker_sparql_parse_query/update, that correspond to the QueryUnit/UpdateUnit entry points defined in the SPARQL grammar.
| * libtracker-data: Add SPARQL grammar definitionCarlos Garnacho2018-11-131-0/+2267
|/ | | | | | The grammar rules are based on https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#sparqlGrammar and reflect all of the Sparql 1.1 syntax, supported by Tracker or not.
* Merge branch 'heftig/tracker-fix-soversion'Carlos Garnacho2018-11-134-1/+5
|\
| * build: Restore right soversion to librariesJan Alexander Steffens (heftig)2018-11-124-1/+5
| | | | | | | | | | | | | | The previous change did not leave the expected .0 symlinks. 'soversion' is the actual version linked against. To match the scheme used by libtool, we need to give the libraries a 'version' as well.
* | build: Export store/ontology/domain ontology locations in .pc fileCarlos Garnacho2018-11-132-0/+8
|/ | | | | | | Export those in tracker-sparql.pc, so users may find out the install details. Related: https://gitlab.gnome.org/GNOME/tracker-miners/issues/19
* Merge branch 'sam/test-runner-fix'Carlos Garnacho2018-11-121-1/+1
|\
| * functional-tests: Fix failed tests being reported as successfulSam Thursfield2018-09-151-1/+1
| | | | | | | | | | Due to a mistake in the test runner, it was possible for tests to fail but appear to have succeeded.
* | Merge branch 'sam/warning-format-security'Carlos Garnacho2018-11-121-0/+3
|\ \
| * | meson: Enable -Wformat-securitySam Thursfield2018-09-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This warning is disabled by default at warning level 1. Multiple distros are building Tracker with -Werror=format-security and discovering regressions, we have had reports from Debian, Fedora and NixOS so far, so let's enable it by default.
* | | libtracker-direct: Fix shutdown after data manager errorCarlos Garnacho2018-11-121-1/+2
| | | | | | | | | | | | | | | If the data manager errors out, trying to free the connection afterwards will trigger warnings trying to shut it down.
* | | libtracker-miner: Silence PREUNMOUNT/UNMOUNTED eventsCarlos Garnacho2018-11-121-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Those may happen in certain circumstances on monitored dirs, but are safe to simply ignore. This leaves the warning for EVENT_MOVED which can only be a bug in GLib since we use G_FILE_MONITOR_WATCH_MOVES. Closes: https://gitlab.gnome.org/GNOME/tracker/issues/54
* | | libtracker-data: Add missing HAVE_TRACKER_FTS guardsCarlos Garnacho2018-11-092-0/+4
| | | | | | | | | | | | | | | Fixes build error with -Dfts=false, and a warning that must have been there forever.
* | | libtracker-common: Drop unused function and its testCarlos Garnacho2018-11-083-111/+0
| | | | | | | | | | | | | | | | | | This function is no longer used, so makes no sense to test for it. This test used to break on CI with the default docker images because of user permissions, so this obstacle is removed.
* | | tracker: Drop dead code in tracker reset --configCarlos Garnacho2018-11-081-65/+0
| | | | | | | | | | | | | | | We haven't used configuration keyfiles for a long long time, just stop trying to delete them.
* | | Merge branch 'wip/carlosg/issue-40'Carlos Garnacho2018-11-085-42/+107
|\ \ \
| * | | libtracker-data: Drop FTS table/view before ontology updateswip/carlosg/issue-40Carlos Garnacho2018-11-085-42/+107
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sqlite >= 3.25.0 got stricter 'alter table ... rename ...' behavior where the renaming affects all references to the table across the database. This is at odds with our fts_view view on schema updates due to ontology changes, as we first migrate (rename current table, create new one, insert previous content, drop old table) all resource tables before doing the FTS table/view updates. This causes rename failures due to the fts_view referencing the renamed and dropped tables. Change the ontology update code so we delete the FTS table/view before changing resource tables in case of FTS updates. This makes the behavior correct both before and after the Sqlite change. https://gitlab.gnome.org/GNOME/tracker/issues/40
* | | build: Fix build order with libtracker-sparql generated headersCarlos Garnacho2018-11-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both libtracker-fts and libtracker-data end up requiring includes from tracker-sparql.h, but we have to generate tracker-generated.h first. It's pretty terrible to add intermediate targets as a dependency outside the libtracker-sparql directory, but it doesn't seem we can do better. Closes: https://gitlab.gnome.org/GNOME/tracker/issues/52
* | | Revert "Revert "build: Do not link libtracker-data.so to libtracker-sparql.so""Carlos Garnacho2018-11-055-8/+12
| | | | | | | | | | | | | | | | | | | | | This reverts commit 20b9f3673d16d07070619cb0ff770d0dabbcc74c. Gnome infrastructures should already have meson >= 0.48.0, let's give it another try.
* | | Updated Slovenian translationMatej Urbančič2018-10-251-480/+497
| | |
* | | build: Fix dependency tree in libtracker_sparql_depCarlos Garnacho2018-10-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of explicitly linking to intermediate libraries in src/libtracker-sparql, have it depend on the dependency declared there. Should provide the right -L/-l arguments when using the libtracker_sparql_dep dependence. Failure seen in: https://gitlab.gnome.org/GNOME/gnome-build-meta/-/jobs/125673
* | | build: Bump version earlyCarlos Garnacho2018-10-131-1/+1
| | | | | | | | | | | | | | | | | | The scheme adopted for development releases is "alphaN" for unstable releases, and "betaN" for release candidates. major/minor/micro version stay fixed in the targeted version.
* | | build: Set proper soversion to librariesCarlos Garnacho2018-10-131-7/+8
| | | | | | | | | | | | | | | | | | Leaving to '0' is not enough if several versions of the library are installed (say, in different prefixes). Add back the library soversion, similarly to how it was done in autotools.
* | | build: Use install_data() to install libtracker-sparql .deps vapi fileCarlos Garnacho2018-10-131-6/+5
| | | | | | | | | | | | | | | | | | We generate that file ourselves, so configure_file() is unneeded as the file requires no substitutions. Fixes a warning on recent meson, as the configuration should not be empty.
* | | Revert "libtracker-control: Add missing soversion"Carlos Garnacho2018-10-131-1/+0
| | | | | | | | | | | | | | | | | | Just had to look a little bit above... This reverts commit f7e4ea51a9a62e0cddac1a9407b5a6f9a91545f4.
* | | docs: Add missing ontology to docsCarlos Garnacho2018-10-131-0/+1
| | | | | | | | | | | | This isn't even used, but that's no reason to leave it out of docs.
* | | docs: Fix some broken links in ontology introduction docsCarlos Garnacho2018-10-136-43/+42
| | | | | | | | | | | | | | | There were also some references to no longer existing ontology, that's been wiped out.
* | | docs: Do not add dead links to predefined ontology instancesCarlos Garnacho2018-10-131-3/+1
| | | | | | | | | | | | | | | That is as much as we say about them, gets rid of warnings during docs generation.
* | | build: Use build_by_default to generate ontology docsCarlos Garnacho2018-10-133-16/+8
| | | | | | | | | | | | The build_always option is deprecated since meson 0.38.0
* | | docs: Fix xrefs to glib docsCarlos Garnacho2018-10-138-19/+39
| | | | | | | | | | | | So we get proper links to glib types.
* | | build: Fixes to docs generationCarlos Garnacho2018-10-136-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | The docs were not going through gtkdoc-scangobj, and the libtracker-sparql docs were just looking in source dir while it should also look for gtk-doc comments in generated files from vala. Now that we're there, use include_directories() to get rid of relative paths.
* | | libtracker-common,data: Port libicu paths to unorm2_normalizewip/carlosg/compiler-warningsCarlos Garnacho2018-10-123-22/+35
| | | | | | | | | | | | | | | The old unorm_normalize() function has been deprecated. This replacement function is available on ICU >= 4.4, so we should be fine dependency-wise.
* | | functional-tests: Add GLib.Error on D-Bus methodsCarlos Garnacho2018-10-124-7/+7
| | | | | | | | | | | | Modern vala recommends this.