You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -7,8 +7,7 @@ Below is an example YAML file which may require some changes for your project's
7
7
You can find examples in [GitHub](https://github.com/KnowledgeCaptureAndDiscovery/OBA/tree/master/examples)
8
8
9
9
!!! info
10
-
If you experience any issues when using OBA, or if you would like us to support additional exciting features, please open an issue on our [GitHub repository](https://github.com/KnowledgeCaptureAndDiscovery/OBA/issues).
11
-
10
+
If you experience any issues when using OBA, or if you would like us to support additional exciting features, please open an issue on our [GitHub repository](https://github.com/KnowledgeCaptureAndDiscovery/OBA/issues).
12
11
13
12
```yaml
14
13
#Name of the project
@@ -25,7 +24,7 @@ openapi:
25
24
version: v1.3.0
26
25
externalDocs:
27
26
description: DBpedia
28
-
url: http://dbpedia.org/
27
+
url: http://dbpedia.org/
29
28
servers:
30
29
- url: https://dbpedia.dbpedia.oba.isi.edu/v1.3.0
31
30
- url: http://localhost:8080/v1.3.0
@@ -50,54 +49,56 @@ enable_put_paths: false
50
49
classes:
51
50
- http://dbpedia.org/ontology/Genre
52
51
- http://dbpedia.org/ontology/Band
52
+
53
53
follow_references: false
54
-
```
55
54
55
+
## Enable/disable generation of a default description for each schema
56
+
default_descriptions: true
57
+
58
+
## Enable/disable generation of default properties (description, id, label, and type) for each schema
59
+
default_properties: true
60
+
```
56
61
57
62
## Supported settings
58
63
59
64
### name
60
65
61
66
The name of OpenAPI
62
67
63
-
| Field | Value |
64
-
|---|---|
65
-
| **Required:** | ``true`` |
68
+
| Field | Value |
69
+
|------------- | ------ |
70
+
| **Required:** | `true` |
66
71
67
72
Example:
68
73
69
74
```yaml
70
75
name: dbpedia_music
71
76
```
72
77
73
-
74
78
### output_dir
75
79
76
80
The output directory of the OpenApi specification files, relative to the root of the project.
77
81
78
-
| Field | Value |
79
-
|---|---|
80
-
| **Required:** | ``false`` |
81
-
| **Default:** | ``outputs`` |
82
-
82
+
| Field | Value |
83
+
| ------------- | --------- |
84
+
| **Required:** | `false` |
85
+
| **Default:** | `outputs` |
83
86
84
87
Example:
85
88
86
89
```yaml
87
90
output_dir: outputs
88
91
```
89
92
90
-
91
93
### OpenAPI
92
94
93
95
Basic information of API using OpenAPI Spec.
94
96
More info: [OpenAPI Base file](https://swagger.io/docs/specification/basic-structure/)
95
97
96
-
| Field | Value |
97
-
|---|---|
98
-
| **Required:** | ``true`` |
99
-
| **Type:** | ``OpenAPI`` |
100
-
98
+
| Field | Value |
99
+
| ------------- | --------- |
100
+
| **Required:** | `true` |
101
+
| **Type:** | `OpenAPI` |
101
102
102
103
Example:
103
104
@@ -110,56 +111,51 @@ openapi:
110
111
version: v1.3.0
111
112
externalDocs:
112
113
description: DBpedia
113
-
url: http://dbpedia.org/
114
+
url: http://dbpedia.org/
114
115
servers:
115
116
- url: https://dbpedia.dbpedia.oba.isi.edu/v1.3.0
116
117
- url: http://localhost:8080/v1.3.0
117
118
```
118
119
119
-
120
-
121
120
### enable_get_paths
122
121
123
122
Enable the GET method for the paths
124
123
125
-
| Field | Value |
126
-
|---|---|
127
-
| **Required:** | ``false`` |
128
-
| **Type:** | ``boolean`` |
129
-
| **Default:** | ``true`` |
124
+
| Field | Value |
125
+
|------------- | --------- |
126
+
| **Required:** | `false` |
127
+
| **Type:** | `boolean` |
128
+
| **Default:** | `true` |
130
129
131
-
### enable_post_paths:
130
+
### enable_post_paths:
132
131
133
132
Enable the POST method for the paths
134
133
135
-
| Field | Value |
136
-
|---|---|
137
-
| **Required:** | ``false`` |
138
-
| **Type:** | ``boolean`` |
139
-
| **Default:** | ``false`` |
140
-
134
+
| Field | Value |
135
+
| ------------- | --------- |
136
+
| **Required:** | `false` |
137
+
| **Type:** | `boolean` |
138
+
| **Default:** | `false` |
141
139
142
140
### enable_delete_paths
143
141
144
142
Enable the DELETE method for the paths
145
143
146
-
| Field | Value |
147
-
|---|---|
148
-
| **Required:** | ``false`` |
149
-
| **Type:** | ``boolean`` |
150
-
| **Default:** | ``false`` |
144
+
| Field | Value |
145
+
|------------- | --------- |
146
+
| **Required:** | `false` |
147
+
| **Type:** | `boolean` |
148
+
| **Default:** | `false` |
151
149
152
150
### enable_put_paths
153
151
154
152
Enable the PUT method for the paths
155
153
156
-
| Field | Value |
157
-
|---|---|
158
-
| **Required:** | ``false`` |
159
-
| **Type:** | ``boolean`` |
160
-
| **Default:** | ``false`` |
161
-
162
-
154
+
| Field | Value |
155
+
| ------------- | --------- |
156
+
| **Required:** | `false` |
157
+
| **Type:** | `boolean` |
158
+
| **Default:** | `false` |
163
159
164
160
### endpoint
165
161
@@ -170,64 +166,57 @@ endpoint:
170
166
url: http://dbpedia.org/sparql
171
167
prefix: http://dbpedia.org/resource
172
168
# Add the GRAPH clause. Enable it when you are using authentication.
173
-
# OBA uses a graph to store the user contents on a personal namespace.
169
+
# OBA uses a graph to store the user contents on a personal namespace.
0 commit comments