Skip to content

Commit 86a19ab

Browse files
authored
refactor: remove PR2255 plugin and revert project IRIs (DEV-1571) (#2350)
1 parent ed34df1 commit 86a19ab

327 files changed

Lines changed: 6847 additions & 7130 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/03-endpoints/api-admin/groups.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{"value": "NewGroupDescription", "language": "en"},
4242
{"value": "NeueGruppenBeschreibung", "language": "de"}
4343
],
44-
"project": "http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA",
44+
"project": "http://rdfh.ch/projects/00FF",
4545
"status": true,
4646
"selfjoin": false
4747
}
@@ -55,7 +55,7 @@ specified by the `id` in the request body as below:
5555
"id": "http://rdfh.ch/groups/00FF/a95UWs71KUklnFOe1rcw1w",
5656
"name": "GroupWithCustomIRI",
5757
"descriptions": [{"value": "A new group with a custom IRI", "language": "en"}],
58-
"project": "http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA",
58+
"project": "http://rdfh.ch/projects/00FF",
5959
"status": true,
6060
"selfjoin": false
6161
}

‎docs/03-endpoints/api-admin/lists.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Additionally, each list can have an optional custom IRI (of [Knora IRI](../api-v
9999
```json
100100
{
101101
"id": "http://rdfh.ch/lists/0001/yWQEGXl53Z4C4DYJ-S2c5A",
102-
"projectIri": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
102+
"projectIri": "http://rdfh.ch/projects/0001",
103103
"name": "a new list",
104104
"labels": [{ "value": "New list with IRI", "language": "en"}],
105105
"comments": [{ "value": "New comment", "language": "en"}]
@@ -122,7 +122,7 @@ The response will contain the basic information of the list, `listinfo` and an e
122122
}
123123
],
124124
"name": "a new list",
125-
"projectIri": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
125+
"projectIri": "http://rdfh.ch/projects/0001"
126126
}
127127
}
128128
}
@@ -142,7 +142,7 @@ The response will contain the basic information of the list, `listinfo` and an e
142142
```json
143143
{
144144
"parentNodeIri": "http://rdfh.ch/lists/0001/yWQEGXl53Z4C4DYJ-S2c5A",
145-
"projectIri": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
145+
"projectIri": "http://rdfh.ch/projects/0001",
146146
"name": "a child",
147147
"labels": [{ "value": "New List Node", "language": "en"}]
148148
}
@@ -153,7 +153,7 @@ Additionally, each child node can have an optional custom IRI (of [Knora IRI](..
153153
```json
154154
{ "id": "http://rdfh.ch/lists/0001/8u37MxBVMbX3XQ8-d31x6w",
155155
"parentNodeIri": "http://rdfh.ch/lists/0001/yWQEGXl53Z4C4DYJ-S2c5A",
156-
"projectIri": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
156+
"projectIri": "http://rdfh.ch/projects/0001",
157157
"name": "a child",
158158
"labels": [{ "value": "New List Node", "language": "en"}]
159159
}
@@ -183,7 +183,7 @@ number of existing children.
183183

184184
```json
185185
{ "parentNodeIri": "http://rdfh.ch/lists/0001/yWQEGXl53Z4C4DYJ-S2c5A",
186-
"projectIri": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
186+
"projectIri": "http://rdfh.ch/projects/0001",
187187
"name": "Inserted new child",
188188
"position": 0,
189189
"labels": [{ "value": "New List Node", "language": "en"}]
@@ -206,7 +206,7 @@ list and the IRI of the project it belongs to.
206206

207207
```json
208208
{ "listIri": "http://rdfh.ch/lists/0001/yWQEGXl53Z4C4DYJ-S2c5A",
209-
"projectIri": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
209+
"projectIri": "http://rdfh.ch/projects/0001",
210210
"name": "new name for the list",
211211
"labels": [{ "value": "a new label for the list", "language": "en"}],
212212
"comments": [{ "value": "a new comment for the list", "language": "en"}]
@@ -232,7 +232,7 @@ The response will contain the basic information of the list, `listinfo` (or `nod
232232
}
233233
],
234234
"name": "new name for the list",
235-
"projectIri": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
235+
"projectIri": "http://rdfh.ch/projects/0001"
236236
}
237237
}
238238
```

‎docs/03-endpoints/api-admin/permissions.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ included in the request body, for example:
5151
```json
5252
{
5353
"forGroup":"http://rdfh.ch/groups/0001/thing-searcher",
54-
"forProject":"http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
54+
"forProject":"http://rdfh.ch/projects/0001",
5555
"hasPermissions":[
5656
{
5757
"additionalInformation":null,
@@ -78,7 +78,7 @@ As a response, the created administrative permission and its IRI are returned as
7878
{
7979
"administrative_permission": {
8080
"forGroup": "http://rdfh.ch/groups/0001/thing-searcher",
81-
"forProject": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
81+
"forProject": "http://rdfh.ch/projects/0001",
8282
"hasPermissions": [
8383
{
8484
"additionalInformation": null,
@@ -136,7 +136,7 @@ default object access permission for a group of a project the request body would
136136
```json
137137
{
138138
"forGroup":"http://rdfh.ch/groups/0001/thing-searcher",
139-
"forProject":"http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ",
139+
"forProject":"http://rdfh.ch/projects/0001",
140140
"forProperty":null,
141141
"forResourceClass":null,
142142
"hasPermissions":[
@@ -178,7 +178,7 @@ a resource class of a specific project:
178178
{
179179
"id": "http://rdfh.ch/permissions/00FF/fSw7w1sI5IwDjEfFi1jOeQ",
180180
"forGroup":null,
181-
"forProject":"http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA",
181+
"forProject":"http://rdfh.ch/projects/00FF",
182182
"forProperty":null,
183183
"forResourceClass":"http://www.knora.org/ontology/00FF/images#bild",
184184
"hasPermissions":[
@@ -197,7 +197,7 @@ The response contains the newly created permission and its IRI, as:
197197
{
198198
"default_object_access_permission": {
199199
"forGroup": null,
200-
"forProject": "http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA",
200+
"forProject": "http://rdfh.ch/projects/00FF",
201201
"forProperty": null,
202202
"forResourceClass": "http://www.knora.org/ontology/00FF/images#bild",
203203
"hasPermissions": [

‎docs/03-endpoints/api-admin/projects.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
- `POST: /admin/projects` : create a new project
1515

16-
- `GET: /admin/projects/[iri | shortname | shortcode | uuid]/<identifier>` : returns a single project identified either through iri, shortname, shortcode or UUID
16+
- `GET: /admin/projects/[iri | shortname | shortcode]/<identifier>` : returns a single project identified either through iri, shortname or shortcode
1717

1818
- `PUT: /admin/projects/iri/<identifier>` : update a project identified by iri
1919

@@ -23,7 +23,7 @@
2323

2424
**Project Member Operations:**
2525

26-
- `GET: /admin/projects/[iri | shortname | shortcode | uuid]/<identifier>/members` : returns all members part of a project identified through iri, shortname, shortcode or UUID
26+
- `GET: /admin/projects/[iri | shortname | shortcode]/<identifier>/members` : returns all members part of a project identified through iri, shortname or shortcode
2727

2828
**Project Admin Member Operations:**
2929

@@ -187,7 +187,7 @@ Operates on the following properties:
187187
The following is an example for project information stored in the `admin` named graph:
188188

189189
```
190-
<http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA>
190+
<http://rdfh.ch/projects/00FF>
191191
rdf:type knora-admin:knoraProject ;
192192
knora-admin:projectShortname "images"^^xsd:string ;
193193
knora-admin:projectShortcode "00FF"^^xsd:string ;

‎docs/03-endpoints/api-admin/users.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ The following is an example for user information stored in the `admin` named gra
223223
knora-admin:password "$e0801$FGl9FDIWw+D83OeNPGmD9u2VTqIkJopIQECgmb2DSWQLS0TeKSvYoWAkbEv6KxePPlCI3CP9MmVHuvnWv8/kag==$mlegCYdGXt+ghuo8i0rLjgOiNnGDW604Q5g/v7zwBPU="^^xsd:string ;
224224
knora-admin:preferredLanguage "de"^^xsd:string ;
225225
knora-admin:status "true"^^xsd:boolean ;
226-
knora-admin:isInProject <http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA> ;
226+
knora-admin:isInProject <http://rdfh.ch/projects/00FF> ;
227227
knora-admin:isInSystemAdminGroup "false"^^xsd:boolean ;
228-
knora-admin:isInProjectAdminGroup <http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA> .
228+
knora-admin:isInProjectAdminGroup <http://rdfh.ch/projects/00FF> .
229229
```

‎docs/03-endpoints/api-v2/editing-resources.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ For example, here is a request to create a resource with various value types:
107107
}
108108
},
109109
"knora-api:attachedToProject" : {
110-
"@id" : "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
110+
"@id" : "http://rdfh.ch/projects/0001"
111111
},
112112
"rdfs:label" : "test thing",
113113
"@context" : {
@@ -133,7 +133,7 @@ by adding `knora-api:attachedToUser`. For example:
133133
"knora-api:booleanValueAsBoolean" : true
134134
},
135135
"knora-api:attachedToProject" : {
136-
"@id" : "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
136+
"@id" : "http://rdfh.ch/projects/0001"
137137
},
138138
"knora-api:attachedToUser" : {
139139
"@id" : "http://rdfh.ch/users/9XBCrDV3SRa7kS1WwynB4Q"
@@ -189,7 +189,7 @@ can also have a custom creation date specified by adding `knora-api:creationDate
189189
"@id" : "http://rdfh.ch/0001/oveR1dQltEUwNrls9Lu5Rw",
190190
"@type" : "anything:Thing",
191191
"knora-api:attachedToProject" : {
192-
"@id" : "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
192+
"@id" : "http://rdfh.ch/projects/0001"
193193
},
194194
"anything:hasInteger" : {
195195
"@id" : "http://rdfh.ch/0001/oveR1dQltEUwNrls9Lu5Rw/values/IN4R19yYR0ygi3K2VEHpUQ",
@@ -352,7 +352,7 @@ The response to requesting a deleted resource will look as the following example
352352
"@type": "xsd:anyURI"
353353
},
354354
"knora-api:attachedToProject": {
355-
"@id": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
355+
"@id": "http://rdfh.ch/projects/0001"
356356
},
357357
"knora-api:userHasPermission": "CR",
358358
"knora-api:attachedToUser": {

‎docs/03-endpoints/api-v2/editing-values.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Sipi. Here is an example of a request to create a resource of class `anything:Th
311311
"knora-api:fileValueHasFilename": "3UIsXH9bP0j-BV0D4sN51Xz.jp2"
312312
},
313313
"knora-api:attachedToProject": {
314-
"@id": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
314+
"@id": "http://rdfh.ch/projects/0001"
315315
},
316316
"rdfs:label": "test thing",
317317
"@context": {

‎docs/03-endpoints/api-v2/knora-iris.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Knora project regardless of where it is hosted. The IRIs of ontologies that
1616
are built into Knora do not contain shortcodes; these ontologies implicitly
1717
belong to the Knora system project.
1818

19+
A user-created ontology IRI must always include its project shortcode.
20+
1921
Project ID `0000` is reserved for shared ontologies
2022
(see [Shared Ontologies](../../02-dsp-ontologies/introduction.md#shared-ontologies)).
2123

@@ -209,7 +211,7 @@ follows:
209211
`http://rdfh.ch/projects/PROJECT_SHORTCODE/mappings/MAPPING_NAME`
210212
- XML-to-standoff mapping element:
211213
`http://rdfh.ch/projects/PROJECT_SHORTCODE/mappings/MAPPING_NAME/elements/MAPPING_ELEMENT_UUID`
212-
- Project: `http://rdfh.ch/projects/PROJECT_UUID`
214+
- Project: `http://rdfh.ch/projects/PROJECT_SHORTCODE` (or `http://rdfh.ch/projects/PROJECT_UUID`)
213215
- Group: `http://rdfh.ch/groups/PROJECT_SHORTCODE/GROUP_UUID`
214216
- Permission:
215217
`http://rdfh.ch/permissions/PROJECT_SHORTCODE/PERMISSION_UUID`

‎docs/03-endpoints/api-v2/ontology-information.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The response is in the complex API v2 schema. Sample response:
4848
},
4949
"rdfs:label": "The anything ontology",
5050
"knora-api:attachedToProject": {
51-
"@id": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
51+
"@id": "http://rdfh.ch/projects/0001"
5252
},
5353
"@type": "owl:Ontology",
5454
"@id": "http://0.0.0.0:3333/ontology/0001/anything/v2"
@@ -60,7 +60,7 @@ The response is in the complex API v2 schema. Sample response:
6060
},
6161
"rdfs:label": "The something ontology",
6262
"knora-api:attachedToProject": {
63-
"@id": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
63+
"@id": "http://rdfh.ch/projects/0001"
6464
},
6565
"@type": "owl:Ontology",
6666
"@id": "http://0.0.0.0:3333/ontology/0001/something/v2"
@@ -72,7 +72,7 @@ The response is in the complex API v2 schema. Sample response:
7272
},
7373
"rdfs:label": "The images demo ontology",
7474
"knora-api:attachedToProject": {
75-
"@id": "http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA"
75+
"@id": "http://rdfh.ch/projects/00FF"
7676
},
7777
"@type": "owl:Ontology",
7878
"@id": "http://0.0.0.0:3333/ontology/00FF/images/v2"
@@ -84,7 +84,7 @@ The response is in the complex API v2 schema. Sample response:
8484
},
8585
"rdfs:label": "The BEOL ontology",
8686
"knora-api:attachedToProject": {
87-
"@id": "http://rdfh.ch/projects/bL0y8GRuTUiFmvF1oXbeFQ"
87+
"@id": "http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"
8888
},
8989
"@type": "owl:Ontology",
9090
"@id": "http://0.0.0.0:3333/ontology/0801/beol/v2"
@@ -96,7 +96,7 @@ The response is in the complex API v2 schema. Sample response:
9696
},
9797
"rdfs:label": "The Biblio ontology",
9898
"knora-api:attachedToProject": {
99-
"@id": "http://rdfh.ch/projects/bL0y8GRuTUiFmvF1oXbeFQ"
99+
"@id": "http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"
100100
},
101101
"@type": "owl:Ontology",
102102
"@id": "http://0.0.0.0:3333/ontology/0801/biblio/v2"
@@ -108,7 +108,7 @@ The response is in the complex API v2 schema. Sample response:
108108
},
109109
"rdfs:label": "The Newton-Project ontology",
110110
"knora-api:attachedToProject": {
111-
"@id": "http://rdfh.ch/projects/bL0y8GRuTUiFmvF1oXbeFQ"
111+
"@id": "http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"
112112
},
113113
"@type": "owl:Ontology",
114114
"@id": "http://0.0.0.0:3333/ontology/0801/newton/v2"
@@ -120,7 +120,7 @@ The response is in the complex API v2 schema. Sample response:
120120
},
121121
"rdfs:label": "The incunabula ontology",
122122
"knora-api:attachedToProject": {
123-
"@id": "http://rdfh.ch/projects/yISnUYe6SYmoyuqeMdW39w"
123+
"@id": "http://rdfh.ch/projects/0803"
124124
},
125125
"@type": "owl:Ontology",
126126
"@id": "http://0.0.0.0:3333/ontology/0803/incunabula/v2"
@@ -132,7 +132,7 @@ The response is in the complex API v2 schema. Sample response:
132132
},
133133
"rdfs:label": "The dokubib ontology",
134134
"knora-api:attachedToProject": {
135-
"@id": "http://rdfh.ch/projects/oIjhUsZmQLuJ0VMGvJ2pfg"
135+
"@id": "http://rdfh.ch/projects/0804"
136136
},
137137
"@type": "owl:Ontology",
138138
"@id": "http://0.0.0.0:3333/ontology/0804/dokubib/v2"
@@ -144,7 +144,7 @@ The response is in the complex API v2 schema. Sample response:
144144
},
145145
"rdfs:label": "The Anton Webern project ontology",
146146
"knora-api:attachedToProject": {
147-
"@id": "http://rdfh.ch/projects/NeWmPqGNQ5KVMAG6L8AjNA"
147+
"@id": "http://rdfh.ch/projects/08AE"
148148
},
149149
"@type": "owl:Ontology",
150150
"@id": "http://0.0.0.0:3333/ontology/08AE/webern/v2"
@@ -205,14 +205,14 @@ HTTP GET to http://host/v2/ontologies/metadata/PROJECT_IRI[/PROJECT_IRI...]
205205
The project IRIs must be URL-encoded.
206206

207207
Example response for the `anything` test project
208-
(project IRI `http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ`):
208+
(project IRI `http://rdfh.ch/projects/0001`):
209209

210210
```json
211211
{
212212
"@id" : "http://0.0.0.0:3333/ontology/0001/anything/v2",
213213
"@type" : "owl:Ontology",
214214
"knora-api:attachedToProject" : {
215-
"@id" : "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ"
215+
"@id" : "http://rdfh.ch/projects/0001"
216216
},
217217
"knora-api:lastModificationDate": "2017-12-19T15:23:42.166Z",
218218
"rdfs:label" : "The anything ontology",
@@ -601,7 +601,7 @@ sample ontology in the complex schema, `http://0.0.0.0:3333/ontology/00FF/images
601601
"@id" : "http://0.0.0.0:3333/ontology/00FF/images/v2",
602602
"@type" : "owl:Ontology",
603603
"knora-api:attachedToProject" : {
604-
"@id" : "http://rdfh.ch/projects/MTvoB0EJRrqovzRkWXqfkA"
604+
"@id" : "http://rdfh.ch/projects/00FF"
605605
},
606606
"rdfs:label" : "The images demo ontology",
607607
"@graph" : [ {

‎docs/03-endpoints/api-v2/permalinks.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ For example:
5454
"@value" : "http://ark.dasch.swiss/ark:/72163/1/0803/2a6221216701W.20160302T150521Z"
5555
},
5656
"knora-api:attachedToProject" : {
57-
"@id" : "http://rdfh.ch/projects/yISnUYe6SYmoyuqeMdW39w"
57+
"@id" : "http://rdfh.ch/projects/0803"
5858
},
5959
"knora-api:attachedToUser" : {
6060
"@id" : "http://rdfh.ch/users/91e19f1e01"

0 commit comments

Comments
 (0)