wiki:DespoinaLog/2010/12/20

Version 10 (modified by antonak, 14 years ago) (diff)

--

latest version of d2rq

http://d2rqupdate.cs.technion.ac.il/tutorial

also needed: jsqlparser (http://jsqlparser.sourceforge.net/home.php)

and JGraphT from http://www.jgrapht.org/

http://sw.cs.technion.ac.il/d2rq/tutorial

  1. create test d2r DB
  1. download mapping from : http://www4.wiwiss.fu-berlin.de/bizer/D2RQ/example/mapping-iswc.n3
  2. 3.$ d2r-server -p 8080 mapping-iswc.n3
  • 13:25:50 WARN log :: failed SocketConnector@0.0.0.0:8080
  1. try different port : ...$ d2r-server -p 8090 mapping-iswc.n3
  2. http://localhost:8090/snorql/?query=SELECT+DISTINCT+*+WHERE+{%0D%0A++%3Fs+%3Fp+%3Fo%0D%0A}%0D%0ALIMIT+10
  3. generate a new mapping : generate-mapping -u root -p root -d com.mysql.jdbc.Driver -o molgenis-rdf-mapping-GCC.n3 jdbc:mysql://127.0.0.1/bbmri
  4. * d2r-server -p 8091 molgenis-rdf-mapping-GCC.n3 *

problems with d2r-update version .

In previous version :$ d2r-server -p 8070 mapping-iswc.n3 -

SELEct ?phone where {

?person !foaf:name 'Yolanda Gil';

!iswc:phone ?phone

}

D2R on gcc molgenis n3

$ d2r-server -p 8070 molgenis-rdf-mapping-GCC.n3 

de.fuberlin.wiwiss.d2rq.D2RQException: Name map:WorkflowElement_Workflow cannot be both a d2rq:PropertyBridge and a d2rq:ClassMap (E58)