-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtutorial-configuration.trig
119 lines (109 loc) · 3.96 KB
/
tutorial-configuration.trig
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
#
# Copyright © 2019-2022 Heinz Nixdorf Chair for Distributed Information Systems,
# Friedrich Schiller University Jena (http://www.fusion.uni-jena.de/)
# Copyright © 2023-2024 Jan Martin Keil ([email protected])
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
@base <http://example.org/> .
@prefix av: <http://w3id.org/abecto/vocabulary#> .
@prefix p-plan: <http://purl.org/net/p-plan#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix abecto: <java:de.uni_jena.cs.fusion.abecto.processor.> .
<plan> a av:Plan ;
.
<source1> a av:Step ;
p-plan:isStepOfPlan <plan> ;
av:processorClass abecto:FileSourceProcessor ;
av:hasParameter [av:key "path" ; av:value "tutorial-source1part1.ttl", "tutorial-source1part2.ttl" ] ;
av:associatedDataset <dataset1> ;
.
<source2> a av:Step ;
p-plan:isStepOfPlan <plan> ;
av:processorClass abecto:FileSourceProcessor ;
av:hasParameter [av:key "path" ; av:value "tutorial-source2.ttl" ] ;
av:associatedDataset <dataset2> ;
.
<source3> a av:Step ;
p-plan:isStepOfPlan <plan> ;
av:processorClass abecto:FileSourceProcessor ;
av:hasParameter [av:key "path" ; av:value "tutorial-source3.ttl" ] ;
av:associatedDataset <dataset3> ;
.
<aspectPerson> a av:Aspect ;
av:keyVariableName "person" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectPerson> ;
av:associatedDataset <dataset1> ;
av:definingQuery """
SELECT ?person ?label ?pnr ?boss
WHERE {
?person <http://www.w3.org/2000/01/rdf-schema#label> ?label ;
<http://example.org/a/pnr> ?pnr ;
<http://example.org/a/boss>?boss .
}
""" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectPerson> ;
av:associatedDataset <dataset2> ;
av:definingQuery """
SELECT ?person ?label ?boss
WHERE {
?person <http://www.w3.org/2000/01/rdf-schema#label> ?label .
OPTIONAL { ?person <http://example.org/b/boss> ?boss }
}
""" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectPerson> ;
av:associatedDataset <dataset3> ;
av:definingQuery """
SELECT ?person ?label ?pnr
WHERE {
?person <http://www.w3.org/2000/01/rdf-schema#label> ?label ;
<http://example.org/c/pnr> ?pnr .
}
""" ;
.
GRAPH <manualMappings>
{
<http://example.org/b/william> av:correspondsNotToResource <http://example.org/c/P004> .
}
<jaroWinklerMapping> a av:Step ;
p-plan:isStepOfPlan <plan> ;
av:processorClass abecto:JaroWinklerMappingProcessor ;
p-plan:isPrecededBy <source1>, <source2>, <source3> ;
av:predefinedMetaDataGraph <manualMappings> ;
av:hasParameter
[av:key "threshold" ; av:value 9e-1 ] ,
[av:key "caseSensitive" ; av:value false ] ,
[av:key "aspect" ; av:value <aspectPerson> ] ,
[av:key "variables" ; av:value "label" ] ;
.
<propertyComparison> a av:Step ;
p-plan:isStepOfPlan <plan> ;
av:processorClass abecto:PropertyComparisonProcessor ;
p-plan:isPrecededBy <jaroWinklerMapping> ;
av:hasParameter
[av:key "aspect" ; av:value <aspectPerson> ] ,
[av:key "variables" ; av:value "boss", "label", "pnr" ] ;
.
<completeness> a av:Step ;
p-plan:isStepOfPlan <plan> ;
av:processorClass abecto:PopulationComparisonProcessor ;
p-plan:isPrecededBy <jaroWinklerMapping> ;
av:hasParameter
[av:key "aspects" ; av:value <aspectPerson> ] ;
.