File: lrdf_types.h

package info (click to toggle)
liblrdf 0.6.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472 kB
  • sloc: ansic: 2,002; makefile: 33; sh: 28
file content (68 lines) | stat: -rw-r--r-- 1,119 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef LRDF_TYPES_H
#define LRDF_TYPES_H

#ifdef __cplusplus
extern "C" {
#endif

#include <sys/types.h>

enum lrdf_objtype {
	lrdf_uri,
	lrdf_literal
};

typedef int64_t lrdf_hash;

typedef struct _lrdf_statement {
	char *subject;
	char *predicate;
	char *object;
	enum lrdf_objtype object_type;
	struct _lrdf_statement *next;
	lrdf_hash shash;
	lrdf_hash phash;
	lrdf_hash ohash;
	lrdf_hash source;
} lrdf_statement;

typedef struct _lrdf_string_hash {
	lrdf_hash hash;
	char *str;
	struct _lrdf_string_hash *next;
} lrdf_string_hash;

typedef struct _lrdf_triple_hash {
	lrdf_hash hash;
	lrdf_statement *triple;
	struct _lrdf_triple_hash *next;
} lrdf_triple_hash;

typedef struct _lrdf_closure_hash {
	lrdf_hash subject;
	lrdf_hash object;
	struct _lrdf_closure_hash *next;
} lrdf_closure_hash;

typedef struct {
	unsigned long pid;
	char         *label;
	float         value;
} lrdf_portvalue;

typedef struct {
	unsigned int    count;
	lrdf_portvalue *items;
} lrdf_defaults;

typedef struct {
	unsigned int   size;
	unsigned int   count;
	char         **items;
} lrdf_uris;

#ifdef __cplusplus
}
#endif

#endif