7 | | * How to connect multiple semantic systems, some using D2R and some purely semantic : |
8 | | * learn basics of D2RQ mapping language, modify the mapping file that you probably created using generate-[[BR]]mapping. This is probably the file that lives in molgenis_distro (generated by d2rq) : WebContent/WEB-INF/molgenis-rdf-mapping.n3 |
9 | | * |
| 7 | * How to connect multiple semantic systems, some using [http://www4.wiwiss.fu-berlin.de/bizer/D2RQ/spec/#specification D2R] and some purely semantic : |
| 8 | * learn basics of D2RQ mapping language, modify the mapping file that you probably created using generate-[[BR]]mapping. This is probably the file that lives in molgenis_distro (generated by d2rq) : WebContent/WEB-INF/molgenis-rdf-mapping.n3 |
| 9 | * For instance how to define mappings that explicitly say that a table column corresponds to an element of the FOAF ontology ? |
| 10 | * In the mapping file there is a class map corresponding to each table . Find the right class map . below the class map , |
| 11 | |
| 12 | there is a property bridge for each column . |
| 13 | |
| 14 | |
| 15 | |
| 16 | Find the right class map. Below the class map, there's a property[[BR]]bridge for each column. Find the right one. Change its !d2rq:property [[BR]]value to the FOAF term, e.g., !foaf:name. You also have to make sure[[BR]]that the FOAF namespace is declared in the @prefix section at the very[[BR]]beginning of the file.[[BR]][[BR]]> Or that I have a[[BR]]> table column whose values map elements from the !DailyMed D2R database?[[BR]]Instead of mapping the column to a literal with !d2rq:column, use a[[BR]]!d2rq:uriPattern that produces URIs that match the URIs in the other[[BR]]dataset. |