-
Notifications
You must be signed in to change notification settings - Fork 0
/
relation.ttl
43 lines (38 loc) · 1.3 KB
/
relation.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
@prefix xrr: <http://i3s.unice.fr/xr2rml#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix d2kab: <http://ns.inria.fr/d2kab/> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix dce: <http://purl.org/dc/elements/1.1/>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix fabio: <http://purl.org/spar/fabio/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix frbr: <http://purl.org/vocab/frbr/core#>.
@prefix oa: <http://www.w3.org/ns/oa#>.
@prefix prov: <http://www.w3.org/ns/prov#>.
@prefix schema: <http://schema.org/>.
@prefix ncbi: <http://identifiers.org/taxonomy/> .
<#Relation>
a rr:TripleMap;
xrr:logicalSource [
xrr:query """db.Relations.find()""";
];
rr:subjectMap [
rr:template "http://ns.inria.fr/d2kab/relation/{$.relation_id}" ;
rr:class d2kab:Relation;
];
rr:predicateObjectMap[
rr:predicate d2kab:hasVariety;
rr:objectMap[
rr:template "http://ns.inria.fr/d2kab/annotation/{$.left_id}";
];
];
rr:predicateObjectMap[
rr:predicate d2kab:hasPhenotype;
rr:objectMap[
rr:template "http://ns.inria.fr/d2kab/annotation/{$.right_id}";
];
].