On 25 Jul 2013, at 09:51, bocai <jian...@clas.ac.cn> wrote:

> Hello,
> I have two questions about D2R Mapping
> The first question is how I can visit the content published by D2R with real 
> IP http://1.2.3.4:2020/... but not by http://localhost:2020/... ? 
> where can I configure this issue?

Are you running D2R Server on your laptop/desktop, or on a server? You need to 
run it on a server. You may need to talk to your organisation's IT staff about 
this. If you have a server, then just decide what port to run it on (you can 
keep it on 2020 if that is open in the firewall, but may want to consider 80). 
Then specify -b and -p when starting D2R.

>  The second is about how to combine a URI using a column in the mapping file. 
> The information is below:
> There is a column named documentid which I want to use to combine a 
> URL(http://server/DocumentServerlet?key=showDocument&docuid=@@dbo.T_page.documentid@@
>  ) to visit detailed information in another Web Site. I configured in mapping 
> file,but failed
>  
> map:T_page_docuid a d2rq:PropertyBridge;
> d2rq:belongsToClassMap <file:/D:/d2r-server-0.7/conf.n3#dbo.T_page>;
> d2rq:property vocab:documentid;
> d2rq:propertyDefinitionLabel "T_page documentid";
> d2rq:uriColumn 
> "http://server/DocumentServerlet?key=showDocument&docuid=@@dbo.T_page.documentid@@";;
>  
> How can I configure this issue?

See http://d2rq.org/d2rq-language#resource-identity

You're looking for d2rq:uriTemplate

Best,
Richard


>  
> Thanks very much!
>  
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> d2rq-map-devel mailing list
> d2rq-map-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
d2rq-map-devel mailing list
d2rq-map-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to