-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test] Add blank node test, Adjust tests regarding new feature
- Loading branch information
1 parent
36a25a1
commit 354ad84
Showing
12 changed files
with
279 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
s-pipes-modules/module-tabular/src/test/resources/examples/blankNodes/expected-output.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
_:b0 a <http://www.w3.org/ns/csvw#Column> ; | ||
<http://www.w3.org/ns/csvw#name> | ||
"bookingno_i" ; | ||
<http://www.w3.org/ns/csvw#propertyUrl> | ||
<http://onto.fel.cvut.cz/data/bookingno_i_p> ; | ||
<http://www.w3.org/ns/csvw#title> | ||
"bookingno_i" . | ||
|
||
[ a <http://www.w3.org/ns/csvw#TableGroup> ; | ||
<http://www.w3.org/ns/csvw#table> | ||
[ a <http://www.w3.org/ns/csvw#Table> ; | ||
<http://www.w3.org/ns/csvw#row> | ||
[ a <http://www.w3.org/ns/csvw#Row> ; | ||
<http://www.w3.org/ns/csvw#describes> | ||
<http://onto.fel.cvut.cz/data/#row-3> ; | ||
<http://www.w3.org/ns/csvw#rownum> | ||
"2"^^<http://www.w3.org/2001/XMLSchema#int> ; | ||
<http://www.w3.org/ns/csvw#url> | ||
<http://onto.fel.cvut.cz/data/#row=3> | ||
] ; | ||
<http://www.w3.org/ns/csvw#row> | ||
[ a <http://www.w3.org/ns/csvw#Row> ; | ||
<http://www.w3.org/ns/csvw#describes> | ||
<http://onto.fel.cvut.cz/data/#row-2> ; | ||
<http://www.w3.org/ns/csvw#rownum> | ||
"1"^^<http://www.w3.org/2001/XMLSchema#int> ; | ||
<http://www.w3.org/ns/csvw#url> | ||
<http://onto.fel.cvut.cz/data/#row=2> | ||
] ; | ||
<http://www.w3.org/ns/csvw#tableSchema> | ||
[ a <http://www.w3.org/ns/csvw#TableSchema> ; | ||
<http://www.w3.org/ns/csvw#aboutUrl> | ||
"http://onto.fel.cvut.cz/data/#row-{_row}" ; | ||
<http://www.w3.org/ns/csvw#column> | ||
_:b1 , _:b2 , _:b3 , _:b4 , _:b5 , _:b0 ; | ||
<http://www.w3.org/ns/csvw#columns> | ||
( _:b0 | ||
_:b5 | ||
_:b4 | ||
_:b3 | ||
_:b2 | ||
_:b1 | ||
) | ||
] ; | ||
<http://www.w3.org/ns/csvw#url> | ||
<http://onto.fel.cvut.cz/data/> | ||
] | ||
] . | ||
|
||
_:b4 a <http://www.w3.org/ns/csvw#Column> ; | ||
<http://www.w3.org/ns/csvw#name> | ||
"user_sign" ; | ||
<http://www.w3.org/ns/csvw#propertyUrl> | ||
<http://onto.fel.cvut.cz/data/user_sign_p> ; | ||
<http://www.w3.org/ns/csvw#title> | ||
"user_sign" . | ||
|
||
_:b2 a <http://www.w3.org/ns/csvw#Column> ; | ||
<http://www.w3.org/ns/csvw#name> | ||
"Start_Time" ; | ||
<http://www.w3.org/ns/csvw#propertyUrl> | ||
<http://onto.fel.cvut.cz/data/Start_Time_p> ; | ||
<http://www.w3.org/ns/csvw#title> | ||
"Start Time" . | ||
|
||
<http://onto.fel.cvut.cz/data/#row-3> | ||
<http://onto.fel.cvut.cz/data/Employee_No_p> | ||
"59999" ; | ||
<http://onto.fel.cvut.cz/data/End_Date_p> | ||
"06.03.2022" ; | ||
<http://onto.fel.cvut.cz/data/Start_Date_p> | ||
"06.02.2022" ; | ||
<http://onto.fel.cvut.cz/data/Start_Time_p> | ||
"14:00" ; | ||
<http://onto.fel.cvut.cz/data/bookingno_i_p> | ||
"6797451" ; | ||
<http://onto.fel.cvut.cz/data/user_sign_p> | ||
"KULICMAT" . | ||
|
||
_:b3 a <http://www.w3.org/ns/csvw#Column> ; | ||
<http://www.w3.org/ns/csvw#name> | ||
"Start_Date" ; | ||
<http://www.w3.org/ns/csvw#propertyUrl> | ||
<http://onto.fel.cvut.cz/data/Start_Date_p> ; | ||
<http://www.w3.org/ns/csvw#title> | ||
"Start Date" . | ||
|
||
<http://onto.fel.cvut.cz/data/#row-2> | ||
<http://onto.fel.cvut.cz/data/Employee_No_p> | ||
"59999" ; | ||
<http://onto.fel.cvut.cz/data/End_Date_p> | ||
"09.04.2022" ; | ||
<http://onto.fel.cvut.cz/data/Start_Date_p> | ||
"08.04.2022" ; | ||
<http://onto.fel.cvut.cz/data/Start_Time_p> | ||
"16:00" ; | ||
<http://onto.fel.cvut.cz/data/bookingno_i_p> | ||
"6568520" ; | ||
<http://onto.fel.cvut.cz/data/user_sign_p> | ||
"KULICMAT" . | ||
|
||
_:b1 a <http://www.w3.org/ns/csvw#Column> ; | ||
<http://www.w3.org/ns/csvw#name> | ||
"End_Date" ; | ||
<http://www.w3.org/ns/csvw#propertyUrl> | ||
<http://onto.fel.cvut.cz/data/End_Date_p> ; | ||
<http://www.w3.org/ns/csvw#title> | ||
"End Date" . | ||
|
||
_:b5 a <http://www.w3.org/ns/csvw#Column> ; | ||
<http://www.w3.org/ns/csvw#name> | ||
"Employee_No" ; | ||
<http://www.w3.org/ns/csvw#propertyUrl> | ||
<http://onto.fel.cvut.cz/data/Employee_No_p> ; | ||
<http://www.w3.org/ns/csvw#title> | ||
"Employee No" . | ||
|
54 changes: 54 additions & 0 deletions
54
s-pipes-modules/module-tabular/src/test/resources/examples/blankNodes/input-data-schema.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@prefix : <http://onto.fel.cvut.cz/data/> . | ||
@prefix csvw: <http://www.w3.org/ns/csvw#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
|
||
|
||
:input-data-schema a owl:Ontology . | ||
|
||
:input-table-schema a csvw:TableSchema ; | ||
csvw:column _:bookingno_i_column , | ||
_:Employee_No_column , | ||
_:user_sign_column , | ||
_:Start_Date_column , | ||
_:Start_Time_column , | ||
_:End_Date_column | ||
. | ||
|
||
_:bookingno_i_column a csvw:Column; | ||
csvw:name "bookingno_i" ; | ||
csvw:propertyUrl :bookingno_i_p ; | ||
. | ||
_:Employee_No_column a csvw:Column; | ||
csvw:name "Employee_No" ; | ||
csvw:propertyUrl :Employee_No_p ; | ||
. | ||
_:user_sign_column a csvw:Column; | ||
csvw:name "user_sign" ; | ||
csvw:propertyUrl :user_sign_p ; | ||
. | ||
_:Start_Date_column a csvw:Column; | ||
csvw:name "Start_Date" ; | ||
csvw:propertyUrl :Start_Date_p ; | ||
. | ||
|
||
_:Start_Time_column a csvw:Column; | ||
csvw:name "Start_Time" ; | ||
csvw:propertyUrl :Start_Time_p ; | ||
. | ||
|
||
_:End_Date_column a csvw:Column; | ||
csvw:name "End_Date" ; | ||
csvw:propertyUrl :End_Date_p ; | ||
. | ||
|
||
csvw:propertyUrl a rdf:Property . | ||
csvw:propertyUrl rdfs:range rdf:Property . | ||
|
||
_:bookingno_i_p a rdf:Property . | ||
_:Employee_No_p a rdf:Property . | ||
_:user_sign_p a rdf:Property . | ||
_:Start_Date_p a rdf:Property . | ||
_:Start_Time_p a rdf:Property . | ||
_:End_Date_p a rdf:Property . |
3 changes: 3 additions & 0 deletions
3
s-pipes-modules/module-tabular/src/test/resources/examples/blankNodes/input.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bookingno_i Employee No user_sign Start Date Start Time End Date | ||
6568520 59999 KULICMAT 08.04.2022 16:00 09.04.2022 | ||
6797451 59999 KULICMAT 06.02.2022 14:00 06.03.2022 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.