-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
47 lines (47 loc) · 1.07 KB
/
config.yaml
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
title: Example configuration
version: 1.0
prefixes:
rdfs: http://www.w3.org/2000/01/rdf-schema#
queries:
- title: create classes
query: >
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
insert {
graph <urn:output> {
?type a rdfs:Class
}
}
where {
graph <urn:input> {
?s a ?type
}
}
- title: add label to classes
query: >
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
insert {
graph <urn:output> {
?type rdfs:label ?label
}
}
where {
graph <urn:output> {
?type a rdfs:Class.
BIND (strafter(str(?type),"#") as ?label)
}
}
- title: add uuid5
query: >
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix f: <java:nl.architolk.rdf2rdf.>
insert {
graph <urn:output> {
?type rdfs:seeAlso ?uuid5
}
}
where {
graph <urn:output> {
?type rdfs:label ?label
BIND (f:uuid5(?label) as ?uuid5)
}
}