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 */
19 #ifndef SLMOD_RDF_MAP_H
20 #define SLMOD_RDF_MAP_H
22 /* Spotlight -> RDF mapping (srm) */
24 srmt_bool, /* a boolean value */
25 srmt_num, /* a numeric value */
26 srmt_str, /* a string value */
27 srmt_fts, /* a string value for full text search */
28 srmt_date, /* date values are handled in a special map function map_daterange() */
29 srmt_type /* kMDItemContentType, requires special mapping */
32 struct spotlight_rdf_map {
33 const char *srm_spotlight_attr;
34 enum srm_type srm_type;
35 const char *srm_rdf_attr;
39 const char *mdtm_value; /* Value of '_kMDItemGroupId' or 'kMDItemContentTypeTree' */
40 const char *mdtm_rdfop; /* RDF query operator */
41 const char *mdtm_type; /* MIME type */
44 extern struct spotlight_rdf_map spotlight_rdf_map[];
45 extern struct MDTypeMap MDTypeMap[];