-
Notifications
You must be signed in to change notification settings - Fork 0
/
repository.pp
89 lines (86 loc) · 2.8 KB
/
repository.pp
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# == Define: graphdb::ee::worker::repository
#
# This define is able to manage GraphDB repository
#
# === Parameters
#
# [*ensure*]
# Whether the service should exist. Possible values are present and absent.
#
# [*endpoint*]
# GraphDB endpoint.
# example: http://localhost:8080
#
# [*repository_context*]
# The context of the repository.
# example: http://ontotext.com
#
# [*repository_template*]
# The template to use for repository creation
# example: http://ontotext.com
#
# [*timeout*]
# The max number of seconds that the repository create/delete/check process should wait before giving up.
# default: 60
#
# For other properties, please, check: {GraphDB documentation}[http://graphdb.ontotext.com/documentation/enterprise/configuring-a-repository.html?highlight=repository#configuration-parameters]
#
define graphdb::ee::worker::repository(
$endpoint,
$repository_context,
$ensure = $graphdb::ensure,
$repository_template = "${module_name}/repository/worker.ttl.erb",
$timeout = 60,
# Here start the repository parameters(note that those are generated from the template that graphdb provides)
# Repository ID
$repository_id = $title,
# Repository title
$repository_label = 'GraphDB EE worker repository',
# Default namespaces for imports(';' delimited)
$default_ns = '',
# Entity index size
$entity_index_size = '200000',
# Entity ID bit-size
$entity_id_size = '32',
# Imported RDF files(';' delimited)
$imports = '',
# Rule-set
$ruleset = 'owl-horst-optimized',
# Storage folder
$storage_folder = 'storage',
# Use context index
$enable_context_index = false,
# Use predicate indices
$enable_predicate_list = false,
# Cache literal language tags
$in_memory_literal_properties = false,
# Enable literal index
$enable_literal_index = true,
# Check for inconsistencies
$check_for_inconsistencies = false,
# Disable OWL sameAs optimisation
$disable_same_as = false,
# Transaction mode
$transaction_mode = 'safe',
# Transaction isolation
$transaction_isolation = true,
# Query time-out (seconds)
$query_timeout = '0',
# Limit query results
$query_limit_results = '0',
# Throw exception on query time-out
$throw_query_evaluation_exception_on_timeout = false,
# Non-interpretable predicates
$non_interpretable_predicates = 'http://www.w3.org/2000/01/rdf-schema#label;http://www.w3.org/1999/02/22-rdf-syntax-ns#type;http://www.ontotext.com/owlim/ces#gazetteerConfig;http://www.ontotext.com/owlim/ces#metadataConfig',
# Read-only
$read_only = false,
){
graphdb_repository { $title:
ensure => $ensure,
repository_id => $repository_id,
endpoint => $endpoint,
repository_template => template($repository_template),
repository_context => $repository_context,
timeout => $timeout,
}
}