Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 15e6d2f

Browse files
authored
Merge pull request #578 from International-Data-Spaces-Association/refactoring
Refactoring
2 parents c86d878 + 014f75c commit 15e6d2f

37 files changed

+97
-97
lines changed

.github/PULL_REQUEST_TEMPLATES/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
- [ ] Rerun ontology creation script (`create-ontology-ttl.sh`) with the version number of the release. E.g., `create-ontology-ttl.sh 4.2.0`
1818
- [ ] Update and validate the examples against the latest ontology version and SHACL shapes
1919
- [ ] Make sure that the manually authored parts of the documentation are in sync with the rest of the implementation and documentation
20-
- [ ] Check whether the [IDS-G-pre](https://github.com/International-Data-Spaces-Association/IDS-G-pre/tree/main/Infomodel) documentation is up to date
21-
- [ ] Check whether the [IDS Information Model Readme.md](https://github.com/International-Data-Spaces-Association/InformationModel/#readme) is up to date
20+
- [ ] Check whether the [IDS-G-pre](https://github.com/International-Data-Spaces-Association/IDS-G-pre/tree/main/Infomodel) documentation is up-to-date
21+
- [ ] Check whether the [IDS Information Model Readme.md](https://github.com/International-Data-Spaces-Association/InformationModel/#readme) is up-to-date
2222

2323
### After a release:
2424
- [ ] Generate human-readable documentation and single-file serializations using Widoco

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Version 4.1.0 of the IDS Information Model
4545

4646

4747
### Removed
48-
* `idsm:` metamodel annotations, which were used to annotate cardinalities of properties. The property cardinalities and restrictions are now exclusively represented via the corresponding SHACL shapes found in the [testing subdirectory](testing/)
48+
* `idsm:` metamodel annotations, which were used to annotate cardinalities of properties. The property cardinalities and restrictions are now exclusively represented via the corresponding SHACL shapes found in the [testing subdirectory](testing)
4949

5050

5151
## [4.0.0] 2020-08-04
@@ -159,7 +159,7 @@ Version 3.0.0 of the IDS Information Model
159159

160160
* Redesign of the DynamicAttributeToken (DAT) based on the new Dynamic Attribute Provisioning Service (DAPS) version. Check the corresponding [Token](model/security/Token.ttl) class as well as the [DAT payload example](examples/DAT_PAYLOAD.jsonld) for more information.
161161

162-
* `ids:RequestMessage`, `ids:ResponseMessage`, `ids:NotificationMessage` not _abstract_ any more. These messages can now be used directly for non-core IDS communication.
162+
* `ids:RequestMessage`, `ids:ResponseMessage`, `ids:NotificationMessage` not _abstract_ anymore. These messages can now be used directly for non-core IDS communication.
163163

164164
* `ids:DescriptionRequestMessage`(previously called `ids:SelfDescriptionRequest`) now accepts an optional URI. This can be used to either retrieve a component's self-description (by providing its own URI or nothing) or to retrieve metadata about a specific element by providing the element's URI.
165165

@@ -197,7 +197,7 @@ Version 2.0.1 of the IDS Information Model
197197
* Removed property *ids:baseContractOffer* from class *ids:ContractRequestMessage* due to redundancy. By definition *ids:ContractRequestMessage* already requires a contract in its payload. The property is therefore not needed.
198198

199199
### Fixed
200-
* Changed *ids:referingConnector* (class *ids:Token*) from *owl:ObjectProperty* to *owl:DatatypeProperty* with *rdfs:range* *xsd:anyURI*. Allows to reference the connector via an URI.
200+
* Changed *ids:referingConnector* (class *ids:Token*) from *owl:ObjectProperty* to *owl:DatatypeProperty* with *rdfs:range* *xsd:anyURI*. Allows to reference the connector via a URI.
201201

202202
* Removed *idsm:abstract true* property from *ids:variant* (class *ids:Resource*). Property is invalid, since it is intended to be used by classes only.
203203

@@ -233,4 +233,4 @@ Version 2.0 of the IDS Information Model
233233

234234
### Removed
235235

236-
- Removing plural forms for properties: A catalog can have can have several “ids:offer” triples but must not have any with “ids:offer*s*”
236+
- Removing plural forms for properties: A catalog can have several “ids:offer” triples but must not have any with “ids:offer*s*”

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ maintained according to the rules documented on http://keepachangelog.com.
1111

1212
- strip whitespace at the end of lines
1313
- do not use tabs (use 4 spaces instead)
14-
- end each file with a newline (its easier to concat them then)
14+
- end each file with a newline (it is easier to concat them then)
1515

1616
## Commits
1717

@@ -26,7 +26,7 @@ Good commits serve at least these important purposes:
2626

2727
### Meta Data
2828

29-
Please create commits with valid meta data only. This means, you have to configure your name and mail address like this:
29+
Please create commits with valid metadata only. This means, you have to configure your name and mail address like this:
3030

3131
```
3232
git config --global user.name "$name"
@@ -92,8 +92,8 @@ For example:
9292

9393
Notice how this doesn't work for the other non-imperative forms:
9494

95-
- If applied, this commit will fixed bug with Y
96-
- If applied, this commit will changing behavior of X
95+
- If applied, this commit will fix bug with Y
96+
- If applied, this commit will change behavior of X
9797
- If applied, this commit will more fixes for broken stuff
9898
- If applied, this commit will sweet new class
9999

@@ -110,7 +110,7 @@ The branching model defines the basic workflow for different activities in the r
110110
- prepare and release a version
111111

112112
Our used branching model is an enhanced version of the model by [Vincent Driessen](http://nvie.com/posts/a-successful-git-branching-model/).
113-
The important variation is the back-merge from the the tagged master onto the develop branch.
113+
The important variation is the back-merge from the tagged master onto the develop branch.
114114
This enables the power of the `git describe --always --dirty` command, which outputs an ID for the whole process.
115115

116116
#### Requirements
@@ -124,7 +124,7 @@ This enables the power of the `git describe --always --dirty` command, which out
124124
- Every new feature will be developed in its own feature branch off from develop
125125
- Each feature will follow this naming: feature/featureName (where feature name is some descriptive feature name, 2 words most, camel case)
126126
- Regularly push your work to the same named feature branch on the server
127-
- If you need newest changes from develop merge it into your feature branch using git merge --no-ff
127+
- If you need the newest changes from develop merge it into your feature branch using git merge --no-ff
128128
- Avoid cross-merging of other feature branches
129129
- CONVENTION: merge your feature branch into develop by opening a pull request
130130
- Always merge your feature branch into develop using git merge --no-ff

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ with significant contributions, comments and support by (in alphabetical order):
2727
- Andreas W. Müller, [Schaeffler](https://www.schaeffler.de/content.schaeffler.de/en/)
2828
- Dr. Michael Theß, [Signal Cruncher GmbH](https://signal-cruncher.com/)
2929

30-
Likewise the authors would like to thank numerous colleagues at Fraunhofer, active participants of the [International Data Spaces Association](https://www.internationaldataspaces.org/en/), the members of the W3C [Dataset Exchange Group](https://www.w3.org/2017/dxwg/wiki/Main_Page) and [Data Market Austria](https://datamarket.at/en/) for illuminating conversations and support in shaping the Information Model.
30+
Likewise, the authors would like to thank numerous colleagues at Fraunhofer, active participants of the [International Data Spaces Association](https://www.internationaldataspaces.org/en/), the members of the W3C [Dataset Exchange Group](https://www.w3.org/2017/dxwg/wiki/Main_Page) and [Data Market Austria](https://datamarket.at/en/) for illuminating conversations and support in shaping the Information Model.
3131

3232
## Directory layout
3333

Shacl.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
shapes:
2020
a voaf:Vocabulary, owl:Ontology ;
21-
rdfs:isDefinedBy <https://w3id.org/idsa/core/> ;
21+
rdfs:isDefinedBy ids: ;
2222
rdfs:label "IDS Information Model"@en ;
2323
dct:title "The International Data Spaces Information Model"@en ;
2424
rdfs:comment "This ontology defines classes and properties for describing participants, infrastructure, data and services of the International Data Spaces (formerly known as Industrial Data Space)." ;

codes/Action.ttl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ idsc:ANONYMIZE
1515
a odrl:Action ;
1616
rdfs:comment "To anonymize all, parts or certain attributes of the resource."@en ;
1717
rdfs:label "anonymize"@en ;
18-
skos:broader <http://www.w3.org/ns/odrl/2/anonymize> ;
18+
skos:broader odrl:anonymize ;
1919
odrl:includedIn idsc:USE ;
2020
skos:note "This action is always evaluated at the provider side."@en ;
2121
.
@@ -24,7 +24,7 @@ idsc:AGGREGATE_BY_CONSUMER
2424
a odrl:Action ;
2525
rdfs:comment "Data will be part of another piece of data so that it is not distinguishable anymore."@en ;
2626
rdfs:label "aggregate by consumer"@en ;
27-
skos:broader <http://www.w3.org/ns/odrl/2/aggregate> ;
27+
skos:broader odrl:aggregate ;
2828
odrl:includedIn idsc:USE ;
2929
skos:note "This action is always evaluated at the consumer side."@en ;
3030
.
@@ -33,7 +33,7 @@ idsc:AGGREGATE_BY_PROVIDER
3333
a odrl:Action ;
3434
rdfs:comment "Data will be part of another piece of data so that it is not distinguishable anymore."@en ;
3535
rdfs:label "aggregate by provider"@en ;
36-
skos:broader <http://www.w3.org/ns/odrl/2/aggregate> ;
36+
skos:broader odrl:aggregate ;
3737
odrl:includedIn idsc:AGGREGATE_BY_CONSUMER ;
3838
skos:note "This action is always evaluated at the provider side."@en ;
3939
.
@@ -49,7 +49,7 @@ idsc:COMPENSATE
4949
a odrl:Action;
5050
rdfs:label "compensate"@en ;
5151
rdfs:comment "To pay a certain amount of money in order to use a resource."@en ;
52-
skos:broader <http://www.w3.org/ns/odrl/2/compensate> ;
52+
skos:broader odrl:compensate ;
5353
odrl:includedIn idsc:USE ;
5454
skos:note "This action must be evaluated both at the consumer and provider side. A compensation might be required before access is granted (provider-side), or each time the usage action is performed (consumer-side)."@en ;
5555
.
@@ -65,7 +65,7 @@ idsc:DELETE
6565
a odrl:Action;
6666
rdfs:label "delete"@en ;
6767
rdfs:comment "To remove a resource or inhibit any further access with reasonable measures."@en ;
68-
skos:broader <http://www.w3.org/ns/odrl/2/delete> ;
68+
skos:broader odrl:delete ;
6969
odrl:includedIn idsc:WRITE ;
7070
skos:note "This action is evaluated at the consumer side if used in a duty clause. A provider cannot be forced to delete its data resources. If used in a permission clause, it is effecting the data provider as it allows the consumer to delete the provider's resource remotely."@en ;
7171
.
@@ -74,7 +74,7 @@ idsc:DISTRIBUTE
7474
a odrl:Action;
7575
rdfs:label "distribute"@en;
7676
rdfs:comment "To forward or supply a resource to a third-party."@en ;
77-
skos:broader <http://www.w3.org/ns/odrl/2/distribute> ;
77+
skos:broader odrl:distribute ;
7878
odrl:includedIn idsc:USE ;
7979
skos:note "This action is always evaluated at the consumer side and allows it to become a data provider of this resource."@en ;
8080
.
@@ -83,7 +83,7 @@ idsc:GRANT_USE
8383
a odrl:Action;
8484
rdfs:label "grant use"@en;
8585
rdfs:comment "To grant use of a resource to another party. Does *not* imply any other usage rights."@en ;
86-
skos:broader <http://www.w3.org/ns/odrl/2/grantUse> ;
86+
skos:broader odrl:grantUse ;
8787
odrl:includedIn idsc:USE ;
8888
skos:note "This action is always evaluated at the consumer side, at the moment a third party intends to access the resource as received by the original consumer."@en ;
8989
.
@@ -121,7 +121,7 @@ idsc:MODIFY
121121
a odrl:Action ;
122122
rdfs:comment "To change a resource locally."@en ;
123123
rdfs:label "modify"@en ;
124-
skos:broader <http://www.w3.org/ns/odrl/2/modify>;
124+
skos:broader odrl:modify;
125125
odrl:includedIn idsc:WRITE ;
126126
skos:note "This action is always evaluated at the consumer side. It corresponds to 'allow changes of the copied resource'."@en ;
127127
.
@@ -137,7 +137,7 @@ idsc:NEXT_POLICY
137137
a odrl:Action ;
138138
rdfs:comment "To forward the resource under the same policy. Implies a permission to distribute."@en ;
139139
rdfs:label "next policy"@en ;
140-
skos:broader <http://www.w3.org/ns/odrl/2/nextPolicy> ;
140+
skos:broader odrl:nextPolicy ;
141141
odrl:includedIn idsc:DISTRIBUTE ;
142142
skos:note "This action is always evaluated at the consumer side."@en ;
143143
.
@@ -146,7 +146,7 @@ idsc:NOTIFY
146146
a odrl:Action ;
147147
rdfs:comment "To log information or notify an instance about incidents. Can be used to define Clearing House interactions."@en ;
148148
rdfs:label "notify"@en ;
149-
skos:broader <http://www.w3.org/ns/odrl/2/inform> ;
149+
skos:broader odrl:inform ;
150150
odrl:includedIn idsc:LOG ;
151151
skos:note "This action can target the consumer and the data provider of the resource."@en ;
152152
.
@@ -155,7 +155,7 @@ idsc:READ
155155
a odrl:Action ;
156156
rdfs:comment "To obtain data from the resource."@en ;
157157
rdfs:label "read"@en ;
158-
skos:broader <http://www.w3.org/ns/odrl/2/read>;
158+
skos:broader odrl:read;
159159
odrl:includedIn idsc:MODIFY ;
160160
skos:note "This action is always evaluated at the provider side. It corresponds to 'give access to a resource'."@en ;
161161
.
@@ -187,7 +187,7 @@ idsc:USE
187187
a odrl:Action;
188188
rdfs:label "use"@en;
189189
rdfs:comment "To use a resource in any possible way. Includes all other actions."@en ;
190-
skos:broader <http://www.w3.org/ns/odrl/2/use> ;
190+
skos:broader odrl:use ;
191191
skos:note "This action is always evaluated at the consumer side."@en ;
192192
.
193193

docs/config/widoco.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_jive_information(jive_credentials):
148148
subsection_id += 1
149149
description_text += '<div class="jive-rendered-content">' + useful_text
150150

151-
# Fix a enumeration mistake in the current version of the jive documents (last checked: 08/19)
151+
# Fix an enumeration mistake in the current version of the jive documents (last checked: 08/19)
152152
description_text = re.sub(r'Figure\s3\s20:', 'Figure 3.24:', description_text)
153153
description_text = re.sub(r'Figure\s3\s21:', 'Figure 3.25:', description_text)
154154

@@ -390,7 +390,7 @@ def clean_up_webvowl_ontology():
390390

391391

392392
# Some local references are included to the generated serializations.
393-
# This starts the clean up for all formats.
393+
# This starts the cleanup for all formats.
394394
def clean_up_ontology_serialization_owl_imports():
395395
clean_up_json_ontology_owl_imports()
396396
clean_up_nt_ontology_owl_imports()
@@ -400,7 +400,7 @@ def clean_up_ontology_serialization_owl_imports():
400400

401401

402402
# Renames widoco output file "index-en.html" to "index.html".
403-
# Only "index.html" gets displayed correctly with github pages.
403+
# Only "index.html" gets displayed correctly with GitHub pages.
404404
def rename_index_file():
405405
# Replace reference in index-en.html itself
406406
with open('../index-en.html') as fp:
@@ -448,7 +448,7 @@ def rename_namespace(old_ns, uri, new_ns):
448448

449449
# Define all namespaces which are not wanted to be added to the namespaces.
450450
# Most of them come from "rdfs:seeAlso"-links or the additional references.
451-
# Additionally defines some incorrectly named namespaces and starts the
451+
# Additionally, defines some incorrectly named namespaces and starts the
452452
# substitution process.
453453
def adjust_namespaces():
454454
# Entry format for the list:

docs/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ password for the IndustrialDataSpace Jiveon (https://industrialdataspace.jiveon.
1313
About Widoco output
1414
===================
1515
The purpose of Widoco is to reuse and integrate existing tools for documentation, plus the set of features listed below:
16-
* Separation of the sections of your html page so you can write them independently and replace only those needed.
16+
* Separation of the sections of your html page, so you can write them independently and replace only those needed.
1717
* Automatic annotation in RDF-a of the html produced.
1818
* Association of a provenance page which includes the history of your vocabulary (W3C PROV-O compliant).
1919
* Metadata extraction from the ontology plus the means to complete it on the fly when generating your ontology.
2020
* Guidelines on the main sections that your document should have and how to complete them.
2121

2222
Widoco will create 3 different folders:
2323
|
24-
|-provenance (a folder including an html and RDF serialization of how the documentation page was created)
24+
|-provenance (a folder including a html and RDF serialization of how the documentation page was created)
2525
|-resources (folder with the different resources)
2626
|-sections (folder with the different sections of the documentation, separated for easy editing. Just edit one and the main page will be updated)
2727

@@ -31,7 +31,7 @@ Widoco uses the ontology metadata to update a configuration file. If you complet
3131

3232
Browser issues
3333
==========
34-
The result of executing Widoco is an html file. We have tested it in Mozilla, IE and Chrome, and when the page is stored in a server all the browsers work correctly. If you view the file locally, we recommend you to use Mozilla Firefox (or Internet Explorer, if you must). Google Chrome will not show the contents correctly, as it doesn't allow XMLHttpRequest without HTTP. If you want to view the page locally with Google Chrome you have two possibilities:
34+
The result of executing Widoco is a html file. We have tested it in Mozilla, IE and Chrome, and when the page is stored in a server all the browsers work correctly. If you view the file locally, we recommend you to use Mozilla Firefox (or Internet Explorer, if you must). Google Chrome will not show the contents correctly, as it doesn't allow XMLHttpRequest without HTTP. If you want to view the page locally with Google Chrome you have two possibilities:
3535

3636
a) Place the file in a server and access it via its URL (for example, put it in dropbox and access through its public url).
3737

0 commit comments

Comments
 (0)