@prefix test: <http://www.w3.org/2006/03/test-description#> .
@prefix dcterms: <http://purl.org/dc/elements/1.1/> .
@prefix rdb2rdftest: <http://purl.org/NET/rdb2rdf-test#> .
@base <http://www.w3.org/2001/sw/rdb2rdf/test-cases/#> .

<d002> a rdb2rdftest:DataBase;
	dcterms:title "One table, two columns, one row, no primary key" ;
	dcterms:identifier "D002-1table2columns1row" ;
	rdb2rdftest:sqlScriptFile "create.sql";
	rdb2rdftest:relatedTestCase <dg0002>, <tc0002a>, <tc0002b>, <tc0002c>, <tc0002d>, <tc0002e>, <tc0002f>, <tc0002g>, <tc0002h>, <tc0002i>, <tc0002j> ;
.

<dg0002> a rdb2rdftest:DirectMapping ;	
	dcterms:title "Two columns mapping, generation of a BlankNode subject" ; 
	dcterms:identifier "DirectGraphTC0002" ;
	test:purpose "Tests: (1) two columns mapping; (2) generation of a BlankNode subject; (3) one column to one property" ;
	test:specificationReference "#no-pk" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:hasExpectedOutput true ;	
	rdb2rdftest:output "directGraph.ttl" ;
.

<tc0002a> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, generation of a subject URI by the concatenation of two column values" ; 
	dcterms:identifier "R2RMLTC0002a" ;
	test:purpose "Tests: (1) two column mapping, no primary key; (2) subject URI generated by the concatenation of two column values; (3) one column to one property" ;
	test:specificationReference "#from-template" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:output "mappeda.nq" ;
	rdb2rdftest:hasExpectedOutput true ;	
	rdb2rdftest:mappingDocument "r2rmla.ttl" ;
.

<tc0002b> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, generation of a BlankNode subject by using rr:template and rr:termType" ; 
	dcterms:identifier "R2RMLTC0002b" ;
	test:purpose "Tests: (1) two column mapping, no primary key; (2) generation of a BlankNode subject by using rr:template; (3) one column to one property" ;
	test:specificationReference "#termtype" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:output "mappedb.nq" ;
	rdb2rdftest:hasExpectedOutput true ;
	rdb2rdftest:mappingDocument "r2rmlb.ttl" ;
.

<tc0002c> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, an undefined SQL identifier" ; 
	dcterms:identifier "R2RMLTC0002c" ;
	test:purpose "Tests the presence of an undefined SQL identifier" ;
	test:specificationReference "#dfn-sql-identifier" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:hasExpectedOutput false ;
	rdb2rdftest:failMessage "non-conforming R2RML mapping";
	rdb2rdftest:mappingDocument "r2rmlc.ttl" ;
.

<tc0002d> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, generation of a BlankNode subject by using a SQL Query that concatenates two columns" ; 
	dcterms:identifier "R2RMLTC0002d" ;
	test:purpose "Tests (1) two column mapping, no primary key; (2) generation of a BlankNode subject by using a SQL Query that concatenates two columns; (3) one column to one property" ;
	test:specificationReference "#dfn-sql-query" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:hasExpectedOutput true ;
	rdb2rdftest:output "mappedd.nq" ;
	rdb2rdftest:mappingDocument "r2rmld.ttl" ;
.

<tc0002e> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, an undefined rr:tableName" ; 
	dcterms:identifier "R2RMLTC0002e" ;
	test:purpose "Tests the presence of an undefined rr:tableName" ;
	test:specificationReference "#dfn-sql-identifier" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:hasExpectedOutput false ;
	rdb2rdftest:failMessage "non-conforming R2RML mapping";	
	rdb2rdftest:mappingDocument "r2rmle.ttl" ;
.

<tc0002f> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, delimited identifiers referenced as regular identifiers" ; 
	dcterms:identifier "R2RMLTC0002f" ;
	test:purpose "Tests the presence of delimited identifiers referenced as regular identifiers. Within rr:template ID is ok, but Name is not" ;
	test:specificationReference "#from-template" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:hasExpectedOutput false ;	
	rdb2rdftest:failMessage "non-conforming R2RML mapping";	
	rdb2rdftest:mappingDocument "r2rmlf.ttl" ;
.

<tc0002g> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, invalid SQL query" ; 
	dcterms:identifier "R2RMLTC0002g" ;
	test:purpose "Tests the presence of an invalid SQL query" ;
	test:specificationReference "#dfn-sql-identifier" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:hasExpectedOutput false ;
	rdb2rdftest:failMessage "non-conforming R2RML mapping";	
	rdb2rdftest:mappingDocument "r2rmlg.ttl" ;
.

<tc0002h> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, duplicate column name in SELECT" ; 
	dcterms:identifier "R2RMLTC0002h" ;
	test:purpose "Tests the presence of duplicate column names in the SELECT list of the SQL query" ;
	test:specificationReference "#dfn-sql-identifier" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:hasExpectedOutput false ;
	rdb2rdftest:failMessage "non-conforming R2RML mapping";		
	rdb2rdftest:mappingDocument "r2rmlh.ttl" ;
.

<tc0002i> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, SQL Version identifier" ; 
	dcterms:identifier "R2RMLTC0002i" ;
	test:purpose "Tests the presence of a SQL Version identifier " ;
	test:specificationReference "#dfn-sql-version-identifier" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:output "mappedi.nq" ;
	rdb2rdftest:hasExpectedOutput true ;
	rdb2rdftest:mappingDocument "r2rmli.ttl" ;
.

<tc0002j> a rdb2rdftest:R2RML ;	
	dcterms:title "Two columns mapping, qualified column names" ; 
	dcterms:identifier "R2RMLTC0002j" ;
	test:purpose "Tests the presence of qualified column names in the SELECT list of the SQL query" ;
	test:specificationReference "#dfn-schema-qualified-name" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d002> ;
	rdb2rdftest:output "mappedj.nq" ;
	rdb2rdftest:hasExpectedOutput true ;
	rdb2rdftest:mappingDocument "r2rmlj.ttl" ;
.
