-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiologicals.ttl
94 lines (81 loc) · 2.11 KB
/
biologicals.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
@prefix xrr: <http://i3s.unice.fr/xr2rml#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ppeo: <http://purl.org/ppeo/PPEO.owl#> .
<#BM>
a rr:TripleMap;
xrr:logicalSource [
xrr:query """db.Biologicals.find()""";
];
rr:subjectMap [
rr:template "http://www.urgi.versailles.inrae.fr/biological_material/{$.accession_name}";
rr:class ppeo:biological_material;
];
rr:predicateObjectMap [
rr:predicate ppeo:hasMaterialSource;
rr:objectMap [
rr:template "http://www.urgi.versailles.inrae.fr/material_source/sha1({$.genus}_{$.species}_{$.accession_name})";
];
];
rr:predicateObjectMap [
rr:predicate ppeo:hasLotName;
rr:objectMap [
xrr:reference "$.biological_id";
rr:datatype xsd:string;
];
];
rr:predicateObjectMap [
rr:predicate ppeo:hasAccessionNumber;
rr:objectMap [
xrr:reference "$.accession_number";
rr:datatype xsd:string;
];
];
rr:predicateObjectMap [
rr:predicate ppeo:hasAccessionName;
rr:objectMap [
xrr:reference "$.accession_name";
rr:datatype xsd:string;
];
].
<#MS>
a rr:TripleMap;
xrr:logicalSource [
xrr:query """db.Biologicals.find()""";
];
rr:subjectMap [
rr:template "http://www.urgi.versailles.inrae.fr/material_source/sha1({$.genus}_{$.species}_{$.accession_name})";
rr:class ppeo:material_source;
];
rr:predicateObjectMap [
rr:predicate ppeo:hasGenus;
rr:objectMap [
xrr:reference "$.genus";
rr:datatype xsd:string;
];
];
rr:predicateObjectMap [
rr:predicate ppeo:hasDOI;
rr:objectMap [
xrr:reference "$.material_source_doi";
rr:datatype xsd:string;
];
];
rr:predicateObjectMap [
rr:predicate ppeo:hasSubtaxon;
rr:objectMap [
xrr:reference "$.subspecies";
rr:datatype xsd:string;
];
];
rr:predicateObjectMap [
rr:predicate ppeo:hasSpecies;
rr:objectMap [
xrr:reference "$.species";
rr:datatype xsd:string;
];
].