Skip to content

Commit

Permalink
adding r2rml ts 11 for oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
fpriyatna committed May 8, 2015
1 parent f37353e commit a07de04
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ public void testR2RMLTC0010c() throws Exception {
@Test
public void testR2RMLTC0011a() throws Exception {
String testName = "R2RMLTC0011a";
this.run(testName, true);
this.runOracle(testName, true);
}

@Test
public void testR2RMLTC0011b() throws Exception {
String testName = "R2RMLTC0011b";
this.run(testName, true);
this.runOracle(testName, true);
}

@Test
Expand Down
20 changes: 10 additions & 10 deletions morph-examples/testcases-oracle/D011-M2MRelations/mappeda-morph.nq
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<http://example.com/110/Tennis> <http://example.com/description> "Tennis" .
<http://example.com/110/Tennis> <http://example.com/id> "110"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/110/Tennis> <http://example.com/id> "110"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/111/Football> <http://example.com/description> "Football" .
<http://example.com/111/Football> <http://example.com/id> "111"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/111/Football> <http://example.com/id> "111"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/112/Formula1> <http://example.com/description> "Formula1" .
<http://example.com/112/Formula1> <http://example.com/id> "112"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/112/Formula1> <http://example.com/id> "112"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/10/Venus;Williams> <http://example.com/plays> <http://example.com/110/Tennis> .
<http://example.com/10/Venus;Williams> <http://example.com/lastName> "Williams" .
<http://example.com/10/Venus;Williams> <http://example.com/firstName> "Venus" .
<http://example.com/10/Venus;Williams> <http://example.com/id> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/10/Venus;Williams> <http://example.com/id> "10"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/11/Fernando;Alonso> <http://example.com/plays> <http://example.com/111/Football> .
<http://example.com/11/Fernando;Alonso> <http://example.com/lastName> "Alonso" .
<http://example.com/11/Fernando;Alonso> <http://example.com/firstName> "Fernando" .
<http://example.com/11/Fernando;Alonso> <http://example.com/id> "11"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/12/David;Villa> <http://example.com/plays> <http://example.com/111/Football> .
<http://example.com/12/David;Villa> <http://example.com/lastName> "Villa" .
<http://example.com/12/David;Villa> <http://example.com/firstName> "David" .
<http://example.com/12/David;Villa> <http://example.com/id> "12"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/11/Fernando;Alonso> <http://example.com/id> "11"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/11/Fernando;Alonso> <http://example.com/plays> <http://example.com/112/Formula1> .
<http://example.com/11/Fernando;Alonso> <http://example.com/lastName> "Alonso" .
<http://example.com/11/Fernando;Alonso> <http://example.com/firstName> "Fernando" .
<http://example.com/11/Fernando;Alonso> <http://example.com/id> "11"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/11/Fernando;Alonso> <http://example.com/id> "11"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/12/David;Villa> <http://example.com/plays> <http://example.com/111/Football> .
<http://example.com/12/David;Villa> <http://example.com/lastName> "Villa" .
<http://example.com/12/David;Villa> <http://example.com/firstName> "David" .
<http://example.com/12/David;Villa> <http://example.com/id> "12"^^<http://www.w3.org/2001/XMLSchema#decimal> .
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<http://example.com/sport/110> <http://example.com/description> "Tennis" .
<http://example.com/sport/110> <http://example.com/id> "110"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/sport/110> <http://example.com/id> "110"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/sport/111> <http://example.com/description> "Football" .
<http://example.com/sport/111> <http://example.com/id> "111"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/sport/111> <http://example.com/id> "111"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/sport/112> <http://example.com/description> "Formula1" .
<http://example.com/sport/112> <http://example.com/id> "112"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.com/sport/112> <http://example.com/id> "112"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://example.com/student/10> <http://example.com/plays> <http://example.com/sport/110> .
<http://example.com/student/11> <http://example.com/plays> <http://example.com/sport/111> .
<http://example.com/student/12> <http://example.com/plays> <http://example.com/sport/111> .
<http://example.com/student/11> <http://example.com/plays> <http://example.com/sport/112> .
<http://example.com/student/12> <http://example.com/plays> <http://example.com/sport/111> .
<http://example.com/student/10> <http://example.com/lastName> "Williams" .
<http://example.com/student/10> <http://example.com/firstName> "Venus" .
<http://example.com/student/11> <http://example.com/lastName> "Alonso" .
Expand Down
10 changes: 5 additions & 5 deletions morph-examples/testcases-oracle/D011-M2MRelations/r2rmla.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@
AND "Sport"."ID" = "Student_Sport"."ID_Sport";
"""; ];

rr:subjectMap [ rr:template "http://example.com/{ID}/{FirstName};{LastName}" ];
rr:subjectMap [ rr:template "http://example.com/{\"ID\"}/{\"FirstName\"};{\"LastName\"}" ];

rr:predicateObjectMap
[
rr:predicate ex:id ;
rr:objectMap [ rr:column "ID"; ]
rr:objectMap [ rr:column "\"ID\""; ]
];

rr:predicateObjectMap
[
rr:predicate ex:firstName ;
rr:objectMap [ rr:column "FirstName" ]
rr:objectMap [ rr:column "\"FirstName\"" ]
];

rr:predicateObjectMap
[
rr:predicate ex:lastName ;
rr:objectMap [ rr:column "LastName" ]
rr:objectMap [ rr:column "\"LastName\"" ]
];

rr:predicateObjectMap
[
rr:predicate ex:plays ;
rr:objectMap [ rr:template "http://example.com/{Sport_ID}/{Description}" ]
rr:objectMap [ rr:template "http://example.com/{\"Sport_ID\"}/{\"Description\"}" ]
]
.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mappingdocument.file.path=D011-M2MRelations/r2rmla.ttl
output.file.path=D011-M2MRelations/mappeda-morph.nq

no_of_database=1
database.driver[0]=oracle.jdbc.OracleDriver
database.url[0]=jdbc:oracle:thin:@localhost:1521:xe
database.user[0]=d011
database.pwd[0]=tiger
database.type[0]=Oracle

uri.encode=(" "->"%20"),,("á"->"a"),,("é"->"e"),,("í"->"i"),,("ó"->"o"),,("ú"->"u"),,("ü"->"u"),,("ń"->"n")
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mappingdocument.file.path=D011-M2MRelations/r2rmlb.ttl
output.file.path=D011-M2MRelations/mappedb-morph.nq

no_of_database=1
database.driver[0]=oracle.jdbc.OracleDriver
database.url[0]=jdbc:oracle:thin:@localhost:1521:xe
database.user[0]=d011
database.pwd[0]=tiger
database.type[0]=Oracle

uri.encode=(" "->"%20"),,("á"->"a"),,("é"->"e"),,("í"->"i"),,("ó"->"o"),,("ú"->"u"),,("ü"->"u"),,("ń"->"n")

0 comments on commit a07de04

Please sign in to comment.