-
Notifications
You must be signed in to change notification settings - Fork 0
/
reproduce-me.q
196 lines (178 loc) · 8.76 KB
/
reproduce-me.q
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
[QueryGroup="Experiment Dashboard Queries"] @collection [[
[QueryItem="The Plot"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
Select DISTINCT ?Experiment ?AgentName ?AgentRole ?startedAtTime ?generatedAtTime WHERE {
?exp a :Experiment ;
:name ?Experiment ; :status ?status ;
:datasetid ?datasetid ; prov:wasAttributedTo ?Agent .
{ ?Agent a :Project } UNION { ?Agent a :ResearchGroup } .
?Agent :name ?AgentName ; rdfs:label ?AgentRole .
OPTIONAL { ?exp prov:startedAtTime ?startedAtTime ; prov:generatedAtTime ?generatedAtTime }
}
[QueryItem="The Characters"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT ?Experiment ?PersonName ?PersonRole ?Plan WHERE {
?exp prov:wasAttributedTo ?person .
?person a prov:Agent ; rdfs:label ?PersonRole .
OPTIONAL { ?person :name ?PersonName } .
?exp p-plan:isOutputVarOf ?step .
?step p-plan:isStepOfPlan ?plan .
?plan rdfs:label ?Plan .
?plan p-plan:isSubPlanOfPlan ?MainPlan .
?MainPlan :name ?Experiment ; :status ?status ; :datasetid ?datasetid .
}
[QueryItem="Experiment Materials"]
Select DISTINCT ?Experiment ?Name ?UniqueName ?MaterialReferencesName ?ReferencesMaterialName ?StoredAt WHERE {
?exp a :Experiment ; :name ?Experiment ; :status ?status ; :datasetid ?datasetid .
?material a :ExperimentMaterial .
?exp p-plan:correspondsToVariable ?material .
?material :name ?Name .
OPTIONAL { ?material :reference ?MaterialReferences } .
OPTIONAL { ?MaterialReferences :status ?status FILTER(?status=1) } .
OPTIONAL { ?MaterialReferences :name ?MaterialReferencesName } .
OPTIONAL { ?ReferencesMaterial :reference ?material } .
OPTIONAL { ?ReferencesMaterial :status ?status FILTER(?status=1) } .
OPTIONAL { ?ReferencesMaterial :name ?ReferencesMaterialName } .
OPTIONAL { ?material :uniqueid ?UniqueName } .
OPTIONAL { ?material :storedAt ?storedAt } .
OPTIONAL { ?storedAt :description ?StoredAt } .
}
[QueryItem="External Resources"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
Select DISTINCT ?Experiment ?Step ?Plan ?ReferencePaper ?ReferencePaperDOI ?ReferencePaperPUBMedId WHERE {
?paper a :Publication ; p-plan:isInputVarOf ?step .
OPTIONAL { ?paper :referencepaper ?ReferencePaper ; :referencepaperdoi ?ReferencePaperDOI ; :referencepaperpubmedid ?ReferencePaperPUBMedId } .
?step rdfs:label ?Step ; p-plan:isStepOfPlan ?plan .
?plan rdfs:label ?Plan ; p-plan:isSubPlanOfPlan ?MainPlan .
?MainPlan :name ?Experiment ; :datasetid ?datasetid .
}
[QueryItem="Files Used"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
Select DISTINCT * WHERE {
?exp a :Experiment ; :name ?Experiment ; :status ?status FILTER(?status=1) .
?exp :datasetid ?datasetid .
?exp p-plan:correspondsToVariable ?material .
?material :name ?MaterialName .
?MaterialReferences a :File .
{ ?material :reference ?MaterialReferences } UNION { ?material a :File } .
?MaterialReferences :name ?FileName ; p-plan:isInputVarOf ?step ;
:status ?status FILTER(?status=1) .
OPTIONAL { ?step rdfs:label ?Step }
}
[QueryItem="Jupyter Notebooks"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
Select DISTINCT * WHERE {
?notebook a :Notebook ; :name ?NotebookName ; prov:generatedAtTime ?generatedAtTime ; :modifiedAtTime ?modifiedAtTime .
?NotebookStep p-plan:isStepOfPlan ?notebook ; p-plan:hasOutputVar ?output ; :type ?StepType .
?output prov:value ?OutputValue ; :type ?OutputType ; :name ?OutputName
}
[QueryItem="Instruments:Detector"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?Image ?instrument_part ?InstrumentType ?SettingName ?SettingValue WHERE {
?image a :Image ; :name ?Image .
?dataset a :Dataset ; :id ?datasetid ; prov:hadMember ?image .
?instrument p-plan:correspondsToVariable ?image .
?instrument_part a :Detector ; :isPartOf ?instrument .
?instrument_part :hasSetting ?setting .
?setting a :Setting .
?setting rdfs:label ?SettingName .
OPTIONAL { ?setting prov:value ?SettingValue } .
OPTIONAL { ?instrument_type prov:specializationOf ?instrument_part ;
prov:value ?InstrumentType } .
}
[QueryItem="Instrument Settings:Detector"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?Image ?instrument_part ?InstrumentType ?SettingName ?SettingValue WHERE {
?image a :Image ; :name ?Image .
?dataset a :Dataset ; :id ?datasetid ; prov:hadMember ?image .
?instrument p-plan:correspondsToVariable ?image .
?instrument_part a :Detector ; :isPartOf ?instrument .
?instrument_part :hasSetting ?setting .
?setting a :Setting .
?setting :hasSetting ?VariableSetting .
?VariableSetting rdfs:label ?SettingName .
OPTIONAL { ?VariableSetting prov:value ?SettingValue }
OPTIONAL { ?instrument_type prov:specializationOf ?instrument_part ;
prov:value ?InstrumentType } .
}
[QueryItem="Instruments:Objective"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?Image ?instrument_part ?InstrumentType ?SettingName ?SettingValue WHERE {
?image a :Image ; :name ?Image .
?dataset a :Dataset ; :id ?datasetid ; prov:hadMember ?image .
?instrument p-plan:correspondsToVariable ?image .
?instrument_part a :Objective ; :isPartOf ?instrument .
?instrument_part :hasSetting ?setting .
?setting a :Setting .
?setting rdfs:label ?SettingName .
OPTIONAL { ?setting prov:value ?SettingValue } .
OPTIONAL { ?instrument_type prov:specializationOf ?instrument_part ;
prov:value ?InstrumentType } .
}
[QueryItem="Instruments:Objective Settings"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?Image ?instrument_part ?InstrumentType ?SettingName ?SettingValue WHERE {
?image a :Image ; :name ?Image .
?dataset a :Dataset ; :id ?datasetid ; prov:hadMember ?image .
?instrument p-plan:correspondsToVariable ?image .
?instrument_part a :Objective ; :isPartOf ?instrument .
?instrument_part :hasSetting ?setting .
?setting a :Setting .
?setting :hasSetting ?VariableSetting .
?VariableSetting rdfs:label ?SettingName .
OPTIONAL { ?VariableSetting prov:value ?SettingValue }
OPTIONAL { ?instrument_type prov:specializationOf ?instrument_part ;
prov:value ?InstrumentType } .
}
[QueryItem="Instruments:Dichroic"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?Image ?instrument_part ?InstrumentType ?SettingName ?SettingValue WHERE {
?image a :Image ; :name ?Image .
?dataset a :Dataset ; :id ?datasetid ; prov:hadMember ?image .
?instrument p-plan:correspondsToVariable ?image .
?instrument_part a :Dichroic ; :isPartOf ?instrument .
?instrument_part :hasSetting ?setting .
?setting a :Setting .
?setting rdfs:label ?SettingName .
OPTIONAL { ?setting prov:value ?SettingValue } .
OPTIONAL { ?instrument_type prov:specializationOf ?instrument_part ;
prov:value ?InstrumentType } .
}
[QueryItem="Instruments:Filter"]
PREFIX : <http://fusion.cs.uni-jena.de/fusion/repr/#>
PREFIX p-plan: <http://purl.org/net/p-plan#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?Image ?instrument_part ?InstrumentType ?SettingName ?SettingValue WHERE {
?image a :Image ; :name ?Image .
?dataset a :Dataset ; :id ?datasetid ; prov:hadMember ?image .
?instrument p-plan:correspondsToVariable ?image .
?instrument_part a :Filter ; :isPartOf ?instrument .
?instrument_part :hasSetting ?setting .
?setting a :Setting .
?setting rdfs:label ?SettingName .
OPTIONAL { ?setting prov:value ?SettingValue } .
OPTIONAL { ?instrument_type prov:specializationOf ?instrument_part ;
prov:value ?InstrumentType } .
}
]]