-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample2.conf
122 lines (122 loc) · 4.1 KB
/
sample2.conf
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# -*- mode: yaml -*-
live:
listen: localhost:10101
static:
targets:
"doriantaylor.com":
engine:
sites:
"doriantaylor.com":
aliases:
- "www.doriantaylor.com"
- "localhost:5000"
# home directory so we don't have to type it out over and over
home: ~/projects/active/doriantaylor.com
graph:
driver: RDF::LMDB::Repository
options:
dir: /var/lib/rdf-lmdb
mapsize: 128M
# turtle files for instantiating the knowledge graph
init:
- experimental/content-inventory.ttl
- experimental/concept-scheme.ttl
# these are source drivers for resource representations, in order of search
sources:
- driver: ContentAddressable
options:
dir: /var/lib/store-digest
mapsize: 128M
- driver: FileSystem
options:
dir: trunk
# these are rendering surfaces
surfaces:
# we need an identifier to be able to pick out the target
static:
driver: DocumentRoot
options:
dir: target
private: .private # note: this is relative to dir
# this is a sequence of stock transformation functions applied to
# representations of various content types.
transforms:
"application/xhtml+xml":
- name: strip-comments # what it says on the tin
- name: repair-rdfa # scan document for unmapped rdfa prefixes; add 'em
- name: rehydrate # link up terminology etc
- name: add-social-meta # this could be a composition of sdo/ogp/twitter
- name: rewrite-links # give non-dereferenceable URIs a web equivalent
- name: mangle-mailto # obfuscate mailto: URIs eg with javascript
- name: amazon-tag # normalize amazon links and add affiliate tag
params:
tag: doriantaylor-20
- name: normalize-prefixes # prune rdfa prefix mappings to subset used
- name: stylesheet-pi # prepend xml-stylesheet processing instruction
params:
type: text/xsl
href: /transform # this is a default argument
- name: reindent # eliminate funky indenting
params:
char: " " # this is the default
count: 2 # so is this
# All config that follows is global; it would be awfully nice if the
# site-specific config could just delta against it
#
# certain surfaces span multiple sites
surfaces:
rack:
driver: Rack
options:
listen: localhost:10101
# these are the prefix-namespace mappings, including the default vocabulary.
vocab: http://www.w3.org/1999/xhtml/vocab#
prefixes:
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
adms: http://www.w3.org/ns/adms#
awol: http://bblfish.net/work/atom-owl/2006-06-06/#
bibo: http://purl.org/ontology/bibo/
bs: http://purl.org/ontology/bibo/status/
ci: https://vocab.methodandstructure.com/content-inventory#
dcat: http://www.w3.org/ns/dcat#
dc: http://purl.org/dc/elements/1.1/
dct: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
http: http://www.w3.org/2011/http#
ibis: https://vocab.methodandstructure.com/ibis#
og: http://ogp.me/ns#
org: http://www.w3.org/ns/org#
owl: http://www.w3.org/2002/07/owl#
qb: http://purl.org/linked-data/cube#
rdfs: http://www.w3.org/2000/01/rdf-schema#
schema: https://schema.org/
sioc: http://rdfs.org/sioc/ns#
sioct: http://rdfs.org/sioc/types#
skos: http://www.w3.org/2004/02/skos/core#
xhv: http://www.w3.org/1999/xhtml/vocab#
xsd: http://www.w3.org/2001/XMLSchema#
# these are always treated as "documents"
documents:
- "foaf:Document"
- "bibo:Collection"
- "skos:Collection"
- "skos:ConceptScheme"
- "qb:DataSet"
- "sioc:Container"
- "dcat:Resource"
- "adms:Asset"
- "http:Response"
# these are fragments only if they can relate to a document
fragments:
"rdfs:Resource":
- "foaf:isPrimaryTopicOf"
- "^dct:hasPart"
- "dct:isPartOf"
"skos:Concept":
- "skos:topConceptOf"
- "skos:inScheme"
- "^skos:member"
- "^skos:memberList"
"qb:Observation":
- "qb:dataSet"
- "^qb:observation"