netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
sparql_map.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2012 Frank Lahm <franklahm@gmail.com>
3
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.
8
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.
13*/
14
15#ifdef HAVE_CONFIG_H
16#include "config.h"
17#endif /* HAVE_CONFIG_H */
18
19#ifndef SPOTLIGHT_SPARQL_MAP_H
20#define SPOTLIGHT_SPARQL_MAP_H
21
22 enum ssm_type {
23 ssmt_bool,
24 ssmt_num,
25 ssmt_str,
26 ssmt_fname,
27 ssmt_fts,
28 ssmt_date,
29 ssmt_type
30};
31
32 enum kMDTypeMap {
33 kMDTypeMapNotSup,
34 kMDTypeMapRDF,
35 kMDTypeMapMime
36};
37
38 struct spotlight_sparql_map {
39 const char *ssm_spotlight_attr;
40 bool ssm_enabled;
41 enum ssm_type ssm_type;
42 const char *ssm_sparql_attr;
43};
44
45 struct MDTypeMap {
46 const char *mdtm_value;
48 enum kMDTypeMap mdtm_type;
50 const char *mdtm_sparql;
51};
52
53 extern struct spotlight_sparql_map spotlight_sparql_map[];
54 extern struct spotlight_sparql_map spotlight_sparql_date_map[];
55 extern struct MDTypeMap MDTypeMap[];
56#endif
config.h
spotlight_sparql_date_map
struct spotlight_sparql_map spotlight_sparql_date_map[]
kMDTypeMap
kMDTypeMap
Definition sparql_map.h:32
kMDTypeMapRDF
@ kMDTypeMapRDF
Definition sparql_map.h:34
kMDTypeMapMime
@ kMDTypeMapMime
Definition sparql_map.h:35
kMDTypeMapNotSup
@ kMDTypeMapNotSup
Definition sparql_map.h:33
ssm_type
ssm_type
Definition sparql_map.h:22
ssmt_fname
@ ssmt_fname
Definition sparql_map.h:26
ssmt_type
@ ssmt_type
Definition sparql_map.h:29
ssmt_str
@ ssmt_str
Definition sparql_map.h:25
ssmt_num
@ ssmt_num
Definition sparql_map.h:24
ssmt_fts
@ ssmt_fts
Definition sparql_map.h:27
ssmt_date
@ ssmt_date
Definition sparql_map.h:28
ssmt_bool
@ ssmt_bool
Definition sparql_map.h:23
MDTypeMap
Definition sparql_map.h:45
MDTypeMap::mdtm_value
const char * mdtm_value
Definition sparql_map.h:46
MDTypeMap::mdtm_sparql
const char * mdtm_sparql
Definition sparql_map.h:50
MDTypeMap::mdtm_type
enum kMDTypeMap mdtm_type
Definition sparql_map.h:48
spotlight_sparql_map
Definition sparql_map.h:38
spotlight_sparql_map::ssm_type
enum ssm_type ssm_type
Definition sparql_map.h:41
spotlight_sparql_map::ssm_spotlight_attr
const char * ssm_spotlight_attr
Definition sparql_map.h:39
spotlight_sparql_map::ssm_enabled
bool ssm_enabled
Definition sparql_map.h:40
spotlight_sparql_map::ssm_sparql_attr
const char * ssm_sparql_attr
Definition sparql_map.h:42