netatalk  4.4.0dev
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 <[email protected]>
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
23 ssmt_bool, /* a boolean value that doesn't requires a SPARQL FILTER */
24 ssmt_num, /* a numeric value that requires a SPARQL FILTER */
25 ssmt_str, /* a string value that requieres a SPARQL FILTER */
26 ssmt_fts, /* a string value that will be queried with SPARQL 'fts:match' */
27 ssmt_date, /* date values are handled in a special map function map_daterange() */
28 ssmt_type /* kMDItemContentType, requires special mapping */
29};
30
32 kMDTypeMapNotSup, /* not supported */
33 kMDTypeMapRDF, /* query with rdf:type */
34 kMDTypeMapMime /* query with nie:mimeType */
35};
36
43
44struct MDTypeMap {
45 /* MD query value of attributes '_kMDItemGroupId' and 'kMDItemContentTypeTree' */
46 const char *mdtm_value;
47 /* whether SPARQL query must search attribute rdf:type or nie:mime_Type */
49 /* the SPARQL query match string */
50 const char *mdtm_sparql;
51};
52
55extern struct MDTypeMap MDTypeMap[];
56#endif
struct spotlight_sparql_map spotlight_sparql_date_map[]
kMDTypeMap
Definition sparql_map.h:31
@ kMDTypeMapRDF
Definition sparql_map.h:33
@ kMDTypeMapMime
Definition sparql_map.h:34
@ kMDTypeMapNotSup
Definition sparql_map.h:32
ssm_type
Definition sparql_map.h:22
@ ssmt_type
Definition sparql_map.h:28
@ ssmt_str
Definition sparql_map.h:25
@ ssmt_num
Definition sparql_map.h:24
@ ssmt_fts
Definition sparql_map.h:26
@ ssmt_date
Definition sparql_map.h:27
@ ssmt_bool
Definition sparql_map.h:23
Definition sparql_map.h:44
const char * mdtm_value
Definition sparql_map.h:46
const char * mdtm_sparql
Definition sparql_map.h:50
enum kMDTypeMap mdtm_type
Definition sparql_map.h:48
Definition sparql_map.h:37
enum ssm_type ssm_type
Definition sparql_map.h:40
const char * ssm_spotlight_attr
Definition sparql_map.h:38
bool ssm_enabled
Definition sparql_map.h:39
const char * ssm_sparql_attr
Definition sparql_map.h:41