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

Commit 7096cca

Browse files
author
Sebastian Bader
authored
Merge pull request #156 from IndustrialDataSpace/feature/travis
add travis testing script for validating correct TURTLE
2 parents 73b7c81 + fa86291 commit 7096cca

28 files changed

+42
-21
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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" -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/comments-distinct.rdfunit.ttl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
33
@prefix rlog: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#> .
44
@prefix rutg: <http://rdfunit.aksw.org/data/generators#> .
5-
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
65
@prefix owl: <http://www.w3.org/2002/07/owl#> .
76
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
87
@prefix rut: <http://rdfunit.aksw.org/ns/core#> .

testing/communication/ApiDocumentTypeShape.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@prefix idsm: <https://w3id.org/idsa/metamodel/> .
66
@prefix sh: <http://www.w3.org/ns/shacl#> .
77
@prefix shapes: <https://github.com/IndustrialDataSpace/InformationModel/testing/> .
8+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
89

910
shapes:
1011
a owl:Ontology ;

testing/communication/ParameterGroupingOperatorShape.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@prefix idsm: <https://w3id.org/idsa/metamodel/> .
77
@prefix sh: <http://www.w3.org/ns/shacl#> .
88
@prefix shapes: <https://github.com/IndustrialDataSpace/InformationModel/testing/> .
9+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
910

1011
shapes:
1112
a owl:Ontology ;

testing/content/ConceptShape.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@prefix idsc_cat: <https://w3id.org/idsa/code/unit/> .
99
@prefix sh: <http://www.w3.org/ns/shacl#> .
1010
@prefix shapes: <https://github.com/IndustrialDataSpace/InformationModel/testing/> .
11+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1112

1213
shapes:
1314
a owl:Ontology ;

testing/content/LanguageShape.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@prefix idsm: <https://w3id.org/idsa/metamodel/> .
66
@prefix sh: <http://www.w3.org/ns/shacl#> .
77
@prefix shapes: <https://github.com/IndustrialDataSpace/InformationModel/testing/> .
8+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
89

910
shapes:
1011
a owl:Ontology ;

testing/context/NamedEventShape.ttl_deprecated

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@prefix time: <http://www.w3.org/2006/time#> .
66
@prefix sh: <http://www.w3.org/ns/shacl#> .
77
@prefix shapes: <https://w3id.org/idsa/metamodel/shapes/> .
8+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
89

910
shapes:
1011
a owl:Ontology ;

testing/context/WorldEntityShape.ttl_deprecated

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@prefix idsm: <https://w3id.org/idsa/metamodel/> .
55
@prefix sh: <http://www.w3.org/ns/shacl#> .
66
@prefix shapes: <https://w3id.org/idsa/metamodel/shapes/> .
7+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
78

89
shapes:
910
a owl:Ontology ;

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)