- From: Boris Villazon-Terrazas <bvillazon@fi.upm.es>
- Date: Fri, 10 Feb 2012 03:17:03 +0100
- To: Juan Sequeda <juanfederico@gmail.com>
- Cc: Richard Cyganiak <richard@cyganiak.de>, public-rdb2rdf-wg@w3.org
- Message-Id: <16C89435-AE90-4584-9967-E3A5219B4565@fi.upm.es>
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 02:17:27 UTC