forked from zazuko/gitpod-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBooks.xrm
50 lines (38 loc) · 1.05 KB
/
Books.xrm
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
output r2rml
map Book from wikibus.books {
subject template bookId with Id;
graphs
template bookId with Id;
properties
rdf.^type template "api/Book" ;
bibo.pages from Pages;
dcterms.date from Year with datatype xsd.gYear;
dcterms.description from Notes;
dcterms.title from BookTitle;
schema.isbn from BookISBN;
dcterms.language template languageId with Language;
schema.image template imageId with SourceType LegacyImage;
}
map BookGenerated from wikibus.books {
subject template bookId with Id;
graphs
template bookGenerated with Id;
properties
dcterms.created from DateCreated;
dcterms.modified from DateUpdated;
wbo.migrated constant "true";
}
map BookAuthors from wikibus.bookAuthors {
subject template bookId with Id;
graphs
template bookId with Id;
properties
schema.author template "book-{0}-author" with AuthorId as BlankNode;
}
map BookAuthorNames from wikibus.bookAuthors {
subject template "book-{0}-author" with AuthorId as BlankNode;
graphs
template bookId with Id;
properties
schema.name from Author;
}