Changes for page 3 Try it yourself!

Last modified by maaike on 2022/07/06 10:08

From version 2.2
edited by maaike
on 2022/06/28 09:44
Change comment: There is no comment for this version
To version 2.3
edited by maaike
on 2022/06/28 10:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -114,4 +114,55 @@
114 114  
115 115  **Query Builder**
116 116  
117 -
117 +{{code language="python"}}
118 +query = {
119 + "@context": {
120 + "@vocab": "https://core.kg.ebrains.eu/vocab/query/",
121 + "query": "https://schema.hbp.eu/myQuery/",
122 + "propertyName": {
123 + "@id": "propertyName",
124 + "@type": "@id"
125 + },
126 + "path": {
127 + "@id": "path",
128 + "@type": "@id"
129 + }
130 + },
131 + "meta": {
132 + "type": "https://openminds.ebrains.eu/core/DatasetVersion",
133 + "responseVocab": "https://schema.hbp.eu/myQuery/"
134 + },
135 + "structure": [
136 + {
137 + "propertyName": "query:shortName",
138 + "path": "https://openminds.ebrains.eu/vocab/shortName"
139 + },
140 + {
141 + "propertyName": "query:id",
142 + "path": "@id"
143 + },
144 + {
145 + "propertyName": "query:repository",
146 + "path": "https://openminds.ebrains.eu/vocab/repository",
147 + "required": true,
148 + "structure": {
149 + "propertyName": "query:fileRepository",
150 + "path": {
151 + "@id": "https://openminds.ebrains.eu/vocab/fileRepository",
152 + "reverse": true
153 + },
154 + "required": true,
155 + "structure": {
156 + "propertyName": "query:name",
157 + "path": "https://openminds.ebrains.eu/vocab/name",
158 + "required": true,
159 + "filter": {
160 + "op": "ENDS_WITH",
161 + "value": ".nii.gz"
162 + }
163 + }
164 + }
165 + }
166 + ]
167 +}
168 +{{/code}}