- From: Souripriya Das <SOURIPRIYA.DAS@oracle.com>
- Date: Thu, 9 Feb 2012 19:16:45 -0800 (PST)
- To: <juanfederico@gmail.com>
- Cc: <public-rdb2rdf-wg@w3.org>
- Message-ID: <8cb5a8da-47b8-411d-97ba-93a71e00bdc2@default>
Whether the following mapping will fail or not will depend upon the data:
<TriplesMap1>
a rr:TriplesMap;
rr:logicalTable [ rr:tableName "Employees" ];
rr:subjectMap [ rr:column "FirstName" ];
rr:predicateObjectMap
[
rr:predicate foaf:name;
rr:objectMap [ rr:column "FirstName" ]
]
For example, it will not fail for the following data (with uncommon first names) in the EMPLOYEES table:
FirstName
-----------
http://example.com/ns#John
http://example.com/ns#Mary
Thanks,
- Souri.
----- Original Message -----
From: bvillazon@fi.upm.es
To: juanfederico@gmail.com
Cc: richard@cyganiak.de, public-rdb2rdf-wg@w3.org
Sent: Thursday, February 9, 2012 9:17:46 PM GMT -05:00 US/Canada Eastern
Subject: Re: negative test case question
Hi Juan
Thanks for this
On Feb 10, 2012, at 1:56 AM, Juan Sequeda wrote:
Let me clarify
The following mapping is correct:
<TriplesMap1>
a rr:TriplesMap;
rr:logicalTable [ rr:tableName "Employees" ];
rr:subjectMap [ rr:column "FirstName"; rr:termType rr:BlankNode ];
rr:predicateObjectMap
[
rr:predicate foaf:name;
rr:objectMap [ rr:column "FirstName" ]
]
.
The following mapping should fail:
<TriplesMap1>
a rr:TriplesMap;
rr:logicalTable [ rr:tableName "Employees" ];
rr:subjectMap [ rr:column "FirstName" ];
rr:predicateObjectMap
[
rr:predicate foaf:name;
rr:objectMap [ rr:column "FirstName" ]
]
.
right?
According to the spec
<<
If the term map does not have a rr:termType property, then its term type is:
• rr:Literal , if it is an object map and at least one of the following conditions is true:
• It is a column-based term map .
• It has a rr:language property (and thus a specified language tag ).
• It has a rr:datatype property (and thus a specified datatype ).
• rr:IRI , otherwise.
>>
So, if the FirstName column has "normal" first names … I think yes, it would fail
Richard?
Boris
Juan Sequeda
+1-575-SEQ-UEDA
www.juansequeda.com
On Thu, Feb 9, 2012 at 6:33 PM, Richard Cyganiak < richard@cyganiak.de > wrote:
Juan,
On 9 Feb 2012, at 23:51, Juan Sequeda wrote:
> I'm coming up with r2rml mappings that should fail.
>
> The following is correct:
>
> <TriplesMap1>
> a rr:TriplesMap;
> rr:logicalTable [ rr:tableName "Employees" ];
> rr:subjectMap [ rr:column "FirstName"; rr:termType rr:BlankNode ];
> rr:predicateObjectMap
> [
> rr:predicate foaf:name;
> rr:objectMap [ rr:column "FirstName" ]
> ]
> .
>
>
> If I take the rr:TermType rr:BlankNode, that should fail, right?
I'm not sure what you mean. Do you mean, if you add “rr:termType rr:BlankNode” to the object map, then it should fail?
Why do you think so?
Richard
Received on Friday, 10 February 2012 03:17:17 UTC