-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmappingeCommerceGold.csv.yml
39 lines (37 loc) · 1.14 KB
/
mappingeCommerceGold.csv.yml
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
prefixes:
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
xsd: http://www.w3.org/2001/XMLSchema#
void: http://rdfs.org/ns/void#
dc: http://purl.org/dc/elements/1.1/
dcterms: http://purl.org/dc/terms/
schema: https://schema.org/
mt: https://purl.org/ontologies/MT/
purl: https://purl.org/
vocab: https://vocab.um.es/
um: https://data.um.es/
ecddt: https://vocab.um.es/data/ecd/
ecd: https://vocab.um.es/ontology/ecd/
sources:
materialsCsv : ['processed_Materials_hive_20K.csv~csv']
mappings:
product:
sources: materialsCsv
s: ecddt:product_$(PRD_NO_BRANDNAME_BAS_NO_pro)
po:
- [a, ecd:Product]
- [ecd:productNo, $(PRD_NO), xsd:string]
- [ecd:descriptionProduct, $(PRD_NAME), xsd:string]
salesArticle:
sources: materialsCsv
s: ecddt:salesArticle_$(ART_NO)
po:
- [a, ecd:salesArticle]
- p: ecd:hasProduct
o:
mapping: product
condition:
function: equal
parameters:
- [str1, $(PRD_NO_BRANDNAME_BAS_NO_pro), s]
- [str2, $(PRD_NO_BRANDNAME_BAS_NO_pro), o]