Skip to content

Commit 898ba67

Browse files
author
Thomas Hanke
committed
merge
2 parents 1e687a8 + 568da70 commit 898ba67

4 files changed

Lines changed: 175 additions & 32 deletions

File tree

.github/workflows/TestExamples.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,19 @@ jobs:
4141
-H 'accept: application/json' \
4242
-H 'Content-Type: application/json' \
4343
-d '{
44-
"url": "https://raw.githubusercontent.com/Mat-O-Lab/MSEO/main/methods/DIN_EN_ISO_527-3.ttl",
44+
"url": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl",
4545
"entity_classes": [
46-
"http://www.ontologyrepository.com/CommonCoreOntologies/InformationContentEntity",
46+
"https://spec.industrialontologies.org/ontology/core/Core/InformationContentEntity",
4747
"http://purl.obolibrary.org/obo/BFO_0000008"
4848
]}'| jq . > contententities.json
49+
- name: delete yaml files
50+
working-directory: ${{env.WORKING_DIR}}
51+
run: rm *.yaml
52+
continue-on-error: true
4953
- name: create YARRRML mapping
5054
working-directory: ${{env.WORKING_DIR}}
5155
run: |
52-
RESULT="$(curl -X 'POST' \
53-
'http://localhost:${{env.APP_PORT}}/api/mapping' \
54-
-H 'accept: application/json' \
55-
-H 'Content-Type: application/json' \
56-
-d @request.json -v --connect-timeout 5)"
57-
FILENAME=$(echo "$RESULT" | jq -r '.filename')
58-
YAMLDATA="$(jq .filedata <<< "$RESULT")"
59-
#remove quots
60-
echo -e "${YAMLDATA:1:-1}" > $FILENAME
61-
#docker logs maptomethod
56+
curl -X POST "http://localhost:${{env.APP_PORT}}/api/mapping" -H "accept: application/json" -H "accept: application/json" -H "Content-Type: application/json" -d @request.json -v --connect-timeout 5 -O -J
6257
- name: Commit files # commit the output folder
6358
uses: EndBug/add-and-commit@v9
6459
with:

examples/bearingentities.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,34 +79,34 @@
7979
"property": "label",
8080
"text": "Datum"
8181
},
82-
"N66d1d39a795740d5b329d2d59446e1e8": {
83-
"uri": "N66d1d39a795740d5b329d2d59446e1e8",
84-
"property": "title",
82+
"table-1-GID": {
83+
"uri": "file:///src/table-1-GID",
84+
"property": "name",
8585
"text": "GID"
8686
},
87-
"Pruefzeit": {
88-
"uri": "file:///src/Pruefzeit",
89-
"property": "title",
90-
"text": "Prüfzeit"
87+
"table-1-Pruefzeit": {
88+
"uri": "file:///src/table-1-Pruefzeit",
89+
"property": "name",
90+
"text": "Pruefzeit"
9191
},
92-
"Standardweg": {
93-
"uri": "file:///src/Standardweg",
94-
"property": "title",
92+
"table-1-Standardweg": {
93+
"uri": "file:///src/table-1-Standardweg",
94+
"property": "name",
9595
"text": "Standardweg"
9696
},
97-
"Standardkraft": {
98-
"uri": "file:///src/Standardkraft",
99-
"property": "title",
97+
"table-1-Standardkraft": {
98+
"uri": "file:///src/table-1-Standardkraft",
99+
"property": "name",
100100
"text": "Standardkraft"
101101
},
102-
"Dehnung": {
103-
"uri": "file:///src/Dehnung",
104-
"property": "title",
102+
"table-1-Dehnung": {
103+
"uri": "file:///src/table-1-Dehnung",
104+
"property": "name",
105105
"text": "Dehnung"
106106
},
107-
"TraverseAbs": {
108-
"uri": "file:///src/TraverseAbs",
109-
"property": "title",
110-
"text": "Traverse abs."
107+
"table-1-TraverseAbs": {
108+
"uri": "file:///src/table-1-TraverseAbs",
109+
"property": "name",
110+
"text": "TraverseAbs"
111111
}
112112
}

examples/contententities.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
{
22
"ExperimentTimeInterval": {
33
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ExperimentTimeInterval"
4+
},
5+
"TestPlan": {
6+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/TestPlan"
7+
},
8+
"CaliperID": {
9+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CaliperID"
10+
},
11+
"ForceMeasurementCapability": {
12+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ForceMeasurementCapability"
13+
},
14+
"LoadCellID": {
15+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/LoadCellID"
16+
},
17+
"OperatorID": {
18+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/OperatorID"
19+
},
20+
"SpecimenID": {
21+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/SpecimenID"
22+
},
23+
"TestPlanName": {
24+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/TestPlanName"
25+
},
26+
"TraverseID": {
27+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/TraverseID"
28+
},
29+
"DistanceMeasurementCapability": {
30+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/DistanceMeasurementCapability"
31+
},
32+
"CrossheadAccelerationSetPoint": {
33+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadAccelerationSetPoint"
34+
},
35+
"CrossheadSpeedSetPoint": {
36+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadSpeedSetPoint"
37+
},
38+
"CrossheadAccelerationSetPointValue": {
39+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadAccelerationSetPointValue"
40+
},
41+
"CrossheadSpeedSetPointValue": {
42+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadSpeedSetPointValue"
43+
},
44+
"ForceMeasurement": {
45+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ForceMeasurement"
46+
},
47+
"LengthMeasurement": {
48+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/LengthMeasurement"
49+
},
50+
"PreLoadSetPointValue": {
51+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/PreLoadSetPointValue"
52+
},
53+
"ThicknessMeasurement": {
54+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ThicknessMeasurement"
55+
},
56+
"WidthMeasurement": {
57+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/WidthMeasurement"
58+
},
59+
"ProjectID": {
60+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ProjectID"
61+
},
62+
"Measurements": {
63+
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/Measurements"
464
}
565
}

examples/example-map.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
prefixes: {bfo: 'http://purl.obolibrary.org/obo/', brick: 'https://brickschema.org/schema/Brick#',
2+
csvw: 'http://www.w3.org/ns/csvw#', data: 'https://github.com/Mat-O-Lab/CSVToCSVW/raw/main/examples/example-metadata.json/',
3+
dc: 'http://purl.org/dc/elements/1.1/', dcam: 'http://purl.org/dc/dcam/', dcat: 'http://www.w3.org/ns/dcat#',
4+
dcmitype: 'http://purl.org/dc/dcmitype/', dcterms: 'http://purl.org/dc/terms/',
5+
doap: 'http://usefulinc.com/ns/doap#', foaf: 'http://xmlns.com/foaf/0.1/', geo: 'http://www.opengis.net/ont/geosparql#',
6+
method: 'https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/',
7+
odrl: 'http://www.w3.org/ns/odrl/2/', org: 'http://www.w3.org/ns/org#', owl: 'http://www.w3.org/2002/07/owl#',
8+
prof: 'http://www.w3.org/ns/dx/prof/', prov: 'http://www.w3.org/ns/prov#', qb: 'http://purl.org/linked-data/cube#',
9+
rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
10+
schema: 'https://schema.org/', sh: 'http://www.w3.org/ns/shacl#', skos: 'http://www.w3.org/2004/02/skos/core#',
11+
sosa: 'http://www.w3.org/ns/sosa/', ssn: 'http://www.w3.org/ns/ssn/', time: 'http://www.w3.org/2006/time#',
12+
vann: 'http://purl.org/vocab/vann/', void: 'http://rdfs.org/ns/void#', wgs: 'https://www.w3.org/2003/01/geo/wgs84_pos#',
13+
xml: 'http://www.w3.org/XML/1998/namespace', xsd: 'http://www.w3.org/2001/XMLSchema#'}
14+
base: http://purl.matolab.org/mseo/mappings/
15+
sources:
16+
data_entities: {access: 'https://github.com/Mat-O-Lab/CSVToCSVW/raw/main/examples/example-metadata.json',
17+
iterator: '$..[*]', referenceFormulation: jsonpath}
18+
mappings:
19+
SpecimenID:
20+
sources: [data_entities]
21+
s: data:$(@id)
22+
condition:
23+
function: equal
24+
parameters:
25+
- [str1, $(label)]
26+
- [str2, aktuelle Probe]
27+
po:
28+
- ['bfo:RO_0010002', 'method:SpecimenID~iri']
29+
WidthMeasurement:
30+
sources: [data_entities]
31+
s: data:$(@id)
32+
condition:
33+
function: equal
34+
parameters:
35+
- [str1, $(label)]
36+
- [str2, Probenbreite b0]
37+
po:
38+
- ['bfo:RO_0010002', 'method:WidthMeasurement~iri']
39+
ThicknessMeasurement:
40+
sources: [data_entities]
41+
s: data:$(@id)
42+
condition:
43+
function: equal
44+
parameters:
45+
- [str1, $(label)]
46+
- [str2, Probendicke a0]
47+
po:
48+
- ['bfo:RO_0010002', 'method:ThicknessMeasurement~iri']
49+
ForceMeasurement:
50+
sources: [data_entities]
51+
s: data:$(@id)
52+
condition:
53+
function: equal
54+
parameters:
55+
- [str1, $(name)]
56+
- [str2, Standardkraft]
57+
po:
58+
- ['bfo:RO_0010002', 'method:ForceMeasurement~iri']
59+
LengthMeasurement:
60+
sources: [data_entities]
61+
s: data:$(@id)
62+
condition:
63+
function: equal
64+
parameters:
65+
- [str1, $(name)]
66+
- [str2, Standardweg]
67+
po:
68+
- ['bfo:RO_0010002', 'method:LengthMeasurement~iri']
69+
CrossheadSpeedSetPointValue:
70+
sources: [data_entities]
71+
s: data:$(@id)
72+
condition:
73+
function: equal
74+
parameters:
75+
- [str1, $(label)]
76+
- [str2, Prüfgeschwindigkeit]
77+
po:
78+
- ['bfo:RO_0010002', 'method:CrossheadSpeedSetPointValue~iri']
79+
PreLoadSetPointValue:
80+
sources: [data_entities]
81+
s: data:$(@id)
82+
condition:
83+
function: equal
84+
parameters:
85+
- [str1, $(label)]
86+
- [str2, Vorkraft]
87+
po:
88+
- ['bfo:RO_0010002', 'method:PreLoadSetPointValue~iri']

0 commit comments

Comments
 (0)