Changes for page 2 Application Programming Interface (API)
Last modified by maaike on 2022/07/06 10:10
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -35,145 +35,18 @@ 35 35 36 36 [[image:QBstep3.png||alt="Step 3: Select species" height="543" width="700"]] 37 37 38 - 39 39 ==== Access detailed metadata ==== 40 40 41 -(% class="wikigeneratedid" id="H" %) 42 -Following 40 +==== Or code ==== 43 43 44 - ====[[image:QB4.png||alt="Step4: Accessdetailedmetadata"height="432"width="700"]]====42 +Code blocks can be added by using the code macro: 45 45 46 -==== ==== 47 - 48 -The above query in the Query Builder is written below: 49 - 50 50 {{code language="python"}} 51 -{ 52 - "@context": { 53 - "@vocab": "https://core.kg.ebrains.eu/vocab/query/", 54 - "query": "https://schema.hbp.eu/myQuery/", 55 - "propertyName": { 56 - "@id": "propertyName", 57 - "@type": "@id" 58 - }, 59 - "path": { 60 - "@id": "path", 61 - "@type": "@id" 62 - } 63 - }, 64 - "meta": { 65 - "type": "https://openminds.ebrains.eu/core/DatasetVersion", 66 - "responseVocab": "https://schema.hbp.eu/myQuery/" 67 - }, 68 - "structure": [ 69 - { 70 - "propertyName": "query:experimentalApproach", 71 - "path": "https://openminds.ebrains.eu/vocab/experimentalApproach", 72 - "required": true, 73 - "structure": { 74 - "propertyName": "query:name", 75 - "path": "https://openminds.ebrains.eu/vocab/name", 76 - "required": true, 77 - "filter": { 78 - "op": "CONTAINS", 79 - "value": "electrophysiology" 80 - } 81 - } 82 - }, 83 - { 84 - "propertyName": "query:studiedSpecimen", 85 - "path": "https://openminds.ebrains.eu/vocab/studiedSpecimen", 86 - "structure": [ 87 - { 88 - "propertyName": "query:species", 89 - "path": "https://openminds.ebrains.eu/vocab/species", 90 - "required": true, 91 - "structure": [ 92 - { 93 - "propertyName": "query:name", 94 - "path": "https://openminds.ebrains.eu/vocab/name" 95 - }, 96 - { 97 - "propertyName": "query:species", 98 - "path": "https://openminds.ebrains.eu/vocab/species", 99 - "required": true, 100 - "structure": { 101 - "propertyName": "query:name", 102 - "path": "https://openminds.ebrains.eu/vocab/name", 103 - "required": true, 104 - "filter": { 105 - "op": "CONTAINS", 106 - "value": "mus musculus" 107 - } 108 - } 109 - } 110 - ] 111 - }, 112 - { 113 - "propertyName": "query:lookupLabel", 114 - "path": "https://openminds.ebrains.eu/vocab/lookupLabel" 115 - }, 116 - { 117 - "propertyName": "query:biologicalSex", 118 - "path": "https://openminds.ebrains.eu/vocab/biologicalSex", 119 - "structure": { 120 - "propertyName": "query:name", 121 - "path": "https://openminds.ebrains.eu/vocab/name", 122 - "required": true, 123 - "filter": { 124 - "op": "CONTAINS", 125 - "value": "male" 126 - } 127 - } 128 - }, 129 - { 130 - "propertyName": "query:studiedState", 131 - "path": "https://openminds.ebrains.eu/vocab/studiedState", 132 - "structure": [ 133 - { 134 - "propertyName": "query:lookupLabel", 135 - "path": "https://openminds.ebrains.eu/vocab/lookupLabel" 136 - }, 137 - { 138 - "propertyName": "query:age", 139 - "path": "https://openminds.ebrains.eu/vocab/age", 140 - "structure": [ 141 - { 142 - "propertyName": "query:value", 143 - "path": "https://openminds.ebrains.eu/vocab/value" 144 - }, 145 - { 146 - "propertyName": "query:unit", 147 - "path": "https://openminds.ebrains.eu/vocab/unit", 148 - "structure": { 149 - "propertyName": "query:name", 150 - "path": "https://openminds.ebrains.eu/vocab/name" 151 - } 152 - } 153 - ] 154 - }, 155 - { 156 - "propertyName": "query:ageCategory", 157 - "path": "https://openminds.ebrains.eu/vocab/ageCategory", 158 - "structure": { 159 - "propertyName": "query:name", 160 - "path": "https://openminds.ebrains.eu/vocab/name" 161 - } 162 - }, 163 - { 164 - "propertyName": "query:attribute", 165 - "path": "https://openminds.ebrains.eu/vocab/attribute", 166 - "structure": { 167 - "propertyName": "query:name", 168 - "path": "https://openminds.ebrains.eu/vocab/name" 169 - } 170 - } 171 - ] 172 - } 173 - ] 174 - } 175 - ] 176 -} 45 +x = 1 46 +if x == 1: 47 + # indented four spaces 48 + print("x is 1.") 177 177 {{/code}} 178 178 51 +(% class="wikigeneratedid" id="HH4Won27tAppearinToC" %) 179 179