Well, I can only think of a clumsier solution, that is to create a CFTitle
class.

Then, one instance of CFProject hasMany CFTitles, and two property bridges:

- CFTitle hasTitle "title of the project";
- CFTitle lang "lang";

it's not the same as assigning "lang" to the title property, but I don't
know D2R enough to tell if it's possible or not. is it?




--
diogo patrão





On Fri, Jul 29, 2011 at 8:43 AM, Christophe Debruyne <[email protected]>wrote:

> Hello Diogo,
>
> Yes, every title in a particular language for a project is stored in a
> different record. What you proposed didn't seem to have the desired effect.
>  It treats the whole "@@CFPROJTITLE.CFLANGCODE" as the language.
>
> Best,
>
> Christophe
>
>
> ------------------------------------------------------------------------------
> CHRISTOPHE DEBRUYNE
>
> Semantics Technology & Applications Research Lab
> Vrije Universiteit Brussel
>
> office +32 (0) 2 629 35 40
> fax +32 (0) 2 629 38 19
> mobile +32 (0) 472 38 71 98
>
> ------------------------------------------------------------------------------
>
> On 29-jul-2011, at 13:23, Diogo FC Patrao wrote:
>
> Hello Cristophe
>
> You mean, some projects may have two or more titles, in several languages?
>
> I don't know whether this work or not, but it's worth a shot:
>
>  d2rq:lang "*@@CFPROJ.CFLANGCODE@@*";
>
>
>
> --
> diogo patrão
>
>
>
>
>
> On Fri, Jul 29, 2011 at 7:29 AM, Christophe Debruyne 
> <[email protected]>wrote:
>
>> Hello,
>>
>> I didn't seem to find any information on this problem on the mailinglist
>> or the manual.
>>
>> We have got data concerning research project in Flanders that we intend to
>> publish. Several of those tables, however, contain lexical information (such
>> as titles and abstracts) for every project and one record for every title,
>> abstract, ... in a language of a particular project. I've been able to add
>> language codes using conditional statements like this
>>
>> map:CFPROJTITLE3 a d2rq:PropertyBridge;
>>  d2rq:belongsToClassMap map:CFPROJ;
>> d2rq:property ont:Project_has_Keyword;
>>  d2rq:column "CFPROJTITLE.CFTITLE";
>>  d2rq:condition "CFPROJTITLE.CFLANGCODE = 'fr   '";
>>  d2rq:lang "fr";
>> d2rq:join "CFPROJ.CFPROJID <= CFPROJTITLE.CFPROJID";
>>  .
>>
>> The three spaces behind the 'fr' is not an error, that's the kind of data
>> we received from the public administration, and I think it's a bit more
>> performant than a LIKE statement. Now here's my problem. I have currently
>> three such entries, one for each language, which is quite okay. The problem,
>> however, are the humanities (and others of course) department who output
>> papers, PhD theses, etc. with titles, abstracts and keywords in more than
>> those three languages :-) Now this - to my opinion - does not scale well
>> anymore. Is there a way to dynamically determine those languages?
>>
>> Best regards,
>>
>> Christophe Debruyne
>>
>>
>> ------------------------------------------------------------------------------
>> CHRISTOPHE DEBRUYNE
>>
>> Semantics Technology & Applications Research Lab
>> Vrije Universiteit Brussel
>>
>> office +32 (0) 2 629 35 40
>> fax +32 (0) 2 629 38 19
>> mobile +32 (0) 472 38 71 98
>>
>> ------------------------------------------------------------------------------
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Got Input?   Slashdot Needs You.
>> Take our quick survey online.  Come on, we don't ask for help often.
>> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
>> http://p.sf.net/sfu/slashdot-survey
>> _______________________________________________
>> d2rq-map-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>>
>>
>
>
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to