@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/#> .

<d004> a rdb2rdftest:DataBase;
	dcterms:title "One table, two columns, one row, projection, no primary key" ;
	dcterms:identifier "D004-1table2columns1row" ;
	rdb2rdftest:sqlScriptFile "create.sql";
	rdb2rdftest:relatedTestCase <dg0004>, <tc0004a>, <tc0004b>  ;
.

<dg0004> a rdb2rdftest:DirectMapping ;	
	dcterms:title "Two column mapping, generation of a BlankNode subject"; 
	dcterms:identifier "DirectGraphTC0004" ;
	test:purpose "Tests: (1) two column mapping (2) generation of a \"BlankNode\" subject" ;
	test:specificationReference "#no-pk" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d004> ;
	rdb2rdftest:hasExpectedOutput true ;
	rdb2rdftest:output "directGraph.ttl" ;
.

<tc0004a> a rdb2rdftest:R2RML ;	
	dcterms:title "Two column mapping, from one row table to two different triples" ; 
	dcterms:identifier "R2RMLTC0004a" ;
	test:purpose "Tests: (1) two column mapping, (2) subject URI generated by a column value; (3) from one row table to two different triples (4) typing by using rr:class" ;
	test:specificationReference "#typing" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d004> ;
	rdb2rdftest:output "mappeda.nq" ;
	rdb2rdftest:hasExpectedOutput true ;
	rdb2rdftest:mappingDocument "r2rmla.ttl" ;
.

<tc0004b> a rdb2rdftest:R2RML ;	
	dcterms:title "Two column mapping, presence of rr:termType rr:Literal on rr:subjectMap" ; 
	dcterms:identifier "R2RMLTC0004b" ;
	test:purpose "Tests: (1) two column mapping (2) the presence of rr:termType rr:Literal on rr:subjectMap, which is invalid" ;
	test:specificationReference "#termtype" ;
	test:reviewStatus test:unreviewed ;
	rdb2rdftest:database <d004> ;
	rdb2rdftest:failMessage "non-conforming R2RML mapping";
	rdb2rdftest:hasExpectedOutput false ;
	rdb2rdftest:mappingDocument "r2rmlb.ttl" ;
.