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

Commit fa86291

Browse files
author
Sebastian Bader
committed
hardening the travis bash validation command and fixing the thereby found syntax errors
1 parent 2996b62 commit fa86291

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

.travis.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1-
language: bash
2-
3-
addons:
4-
apt:
5-
packages:
6-
- raptor2-utils
7-
script:
8-
- echo "Starting build!"
9-
- find -type f -name "*.ttl" | xargs -n1 rapper -q -i turtle > /dev/null
10-
- echo "Finished build."
1+
language: bash
2+
3+
addons:
4+
apt:
5+
packages:
6+
- raptor2-utils
7+
script:
8+
- echo "Starting build!"
9+
- find -type f -name "*.ttl" -not -path "./.git/*" | sed 's/.*/"&"/' | xargs -n1 rapper -q -i turtle > /dev/null
10+
- echo "Finished build."
11+
12+
# What's going on?
13+
14+
# find -type f -name "*.ttl" -not -path "./.git/*":
15+
# Give me all Turtle files except the ones in the .git folder
16+
17+
# sed 's/.*/"&"/'
18+
# Surround the file names with quotation marks (we have spaces in some paths...)
19+
20+
# xargs -n1 rapper -q -i turtle
21+
# Let rapper parse each file in silent mode
22+
23+
# > /dev/null
24+
# I am not interested in stdout, only stderr
25+
26+
# contact: Sebastian Bader (2019)

docs/provenance/provenance-en.ttl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
44
<https://w3id.org/idsa/core> a prov:Entity;
55
dc:title "Industrial Data Space Information Model";
6-
prov:wasAttributedTo :agent0;
7-
prov:wasAttributedTo :agent1;
6+
prov:wasAttributedTo _:agent0;
7+
prov:wasAttributedTo _:agent1;
88
prov:wasAttributedTo <https://github.com/dgarijo/Widoco/>,<http://www.essepuntato.it/lode/>;
99
prov:specializationOf <https://w3id.org/idsa/core>;
1010
prov:wasGeneratedAt "2019-08-07";
1111
.
12-
:agent0 a prov:Agent; foaf:name "Christian Mader<sup>1</sup>, Jaroslav Pullmann<sup>2</sup>, Niklas Petersen<sup>1</sup>, Steffen Lohmann<sup>1</sup>, Christoph Lange-Bever<sup>2</sup>".
13-
:agent1 a prov:Agent; foaf:name "Christian Mader<sup>1</sup>, Jaroslav Pullmann<sup>2</sup>, Niklas Petersen<sup>1</sup>, Steffen Lohmann<sup>1</sup>, Christoph Lange-Bever<sup>2</sup> Anna Kasprzik<sup>3</sup>, Andreas Müller<sup>4</sup>, Eva Corsi<sup>5</sup>, Sandra Geisler<sup>2</sup>, Michael Theß<sup>6</sup>".
12+
_:agent0 a prov:Agent; foaf:name "Christian Mader<sup>1</sup>, Jaroslav Pullmann<sup>2</sup>, Niklas Petersen<sup>1</sup>, Steffen Lohmann<sup>1</sup>, Christoph Lange-Bever<sup>2</sup>".
13+
_:agent1 a prov:Agent; foaf:name "Christian Mader<sup>1</sup>, Jaroslav Pullmann<sup>2</sup>, Niklas Petersen<sup>1</sup>, Steffen Lohmann<sup>1</sup>, Christoph Lange-Bever<sup>2</sup> Anna Kasprzik<sup>3</sup>, Andreas Müller<sup>4</sup>, Eva Corsi<sup>5</sup>, Sandra Geisler<sup>2</sup>, Michael Theß<sup>6</sup>".

testing/contract/ContractShape.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ shapes:ContractShape
4343
sh:path ids:contractStart ;
4444
sh:datatype xsd:dateTime ;
4545
sh:severity sh:Violation ;
46-
sh:message "<https://raw.githubusercontent.com/IndustrialDataSpace/InformationModel/master/testing/contract/ContractShape.ttl> (ContractShape): An ids:contractStart property must point from an ids:Contract to an xsd:sh:message "<https://raw.githubusercontent.com/IndustrialDataSpace/InformationModel/master/testing/contract/contract/."@en ;
46+
sh:message "<https://raw.githubusercontent.com/IndustrialDataSpace/InformationModel/master/testing/contract/ContractShape.ttl> (ContractShape): An ids:contractStart property must point from an ids:Contract to an xsd:sh:message."@en ;
4747
] ;
4848

4949
sh:property [
5050
a sh:PropertyShape ;
5151
sh:path ids:contractEnd ;
5252
sh:datatype xsd:dateTime ;
5353
sh:severity sh:Violation ;
54-
sh:message "<https://raw.githubusercontent.com/IndustrialDataSpace/InformationModel/master/testing/contract/ContractShape.ttl> (ContractShape): An ids:contractEnd property must point from an ids:Contract to an xsd:sh:message "<https://raw.githubusercontent.com/IndustrialDataSpace/InformationModel/master/testing/contract/contract/."@en ;
54+
sh:message "<https://raw.githubusercontent.com/IndustrialDataSpace/InformationModel/master/testing/contract/ContractShape.ttl> (ContractShape): An ids:contractEnd property must point from an ids:Contract to an xsd:sh:message."@en ;
5555
] ;
5656

5757
sh:property [

0 commit comments

Comments
 (0)