2 Copyright (c) 2012 Frank Lahm <franklahm@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
17 #endif /* HAVE_CONFIG_H */
21 #include "spotlight_SPARQL_map.h"
23 struct spotlight_sparql_map spotlight_sparql_map[] = {
24 {"*", "fts:match", "?x fts:match '%s'"},
25 {"kMDItemTextContent", "fts:match", "?x fts:match '%s'"},
26 {"kMDItemDisplayName", "nfo:fileName", "?x nfo:fileName ?name FILTER(regex(?name, '%s'))"},
27 {"kMDItemContentCreationDate", "nfo:fileCreated", "?x nfo:fileCreated '%s'"},
28 {"kMDItemFSContentChangeDate", "nfo:fileLastModified", "?x nfo:fileLastModified '%s'"},
29 {"kMDItemContentModificationDate", "nfo:fileLastModified", "?x nfo:fileLastModified '%s'"},