Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hanke committed Jul 7, 2023
2 parents 1e687a8 + 568da70 commit 898ba67
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 32 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/TestExamples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,19 @@ jobs:
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://raw.githubusercontent.com/Mat-O-Lab/MSEO/main/methods/DIN_EN_ISO_527-3.ttl",
"url": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl",
"entity_classes": [
"http://www.ontologyrepository.com/CommonCoreOntologies/InformationContentEntity",
"https://spec.industrialontologies.org/ontology/core/Core/InformationContentEntity",
"http://purl.obolibrary.org/obo/BFO_0000008"
]}'| jq . > contententities.json
- name: delete yaml files
working-directory: ${{env.WORKING_DIR}}
run: rm *.yaml
continue-on-error: true
- name: create YARRRML mapping
working-directory: ${{env.WORKING_DIR}}
run: |
RESULT="$(curl -X 'POST' \
'http://localhost:${{env.APP_PORT}}/api/mapping' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d @request.json -v --connect-timeout 5)"
FILENAME=$(echo "$RESULT" | jq -r '.filename')
YAMLDATA="$(jq .filedata <<< "$RESULT")"
#remove quots
echo -e "${YAMLDATA:1:-1}" > $FILENAME
#docker logs maptomethod
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
- name: Commit files # commit the output folder
uses: EndBug/add-and-commit@v9
with:
Expand Down
40 changes: 20 additions & 20 deletions examples/bearingentities.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,34 +79,34 @@
"property": "label",
"text": "Datum"
},
"N66d1d39a795740d5b329d2d59446e1e8": {
"uri": "N66d1d39a795740d5b329d2d59446e1e8",
"property": "title",
"table-1-GID": {
"uri": "file:///src/table-1-GID",
"property": "name",
"text": "GID"
},
"Pruefzeit": {
"uri": "file:///src/Pruefzeit",
"property": "title",
"text": "Prüfzeit"
"table-1-Pruefzeit": {
"uri": "file:///src/table-1-Pruefzeit",
"property": "name",
"text": "Pruefzeit"
},
"Standardweg": {
"uri": "file:///src/Standardweg",
"property": "title",
"table-1-Standardweg": {
"uri": "file:///src/table-1-Standardweg",
"property": "name",
"text": "Standardweg"
},
"Standardkraft": {
"uri": "file:///src/Standardkraft",
"property": "title",
"table-1-Standardkraft": {
"uri": "file:///src/table-1-Standardkraft",
"property": "name",
"text": "Standardkraft"
},
"Dehnung": {
"uri": "file:///src/Dehnung",
"property": "title",
"table-1-Dehnung": {
"uri": "file:///src/table-1-Dehnung",
"property": "name",
"text": "Dehnung"
},
"TraverseAbs": {
"uri": "file:///src/TraverseAbs",
"property": "title",
"text": "Traverse abs."
"table-1-TraverseAbs": {
"uri": "file:///src/table-1-TraverseAbs",
"property": "name",
"text": "TraverseAbs"
}
}
60 changes: 60 additions & 0 deletions examples/contententities.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
{
"ExperimentTimeInterval": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ExperimentTimeInterval"
},
"TestPlan": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/TestPlan"
},
"CaliperID": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CaliperID"
},
"ForceMeasurementCapability": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ForceMeasurementCapability"
},
"LoadCellID": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/LoadCellID"
},
"OperatorID": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/OperatorID"
},
"SpecimenID": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/SpecimenID"
},
"TestPlanName": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/TestPlanName"
},
"TraverseID": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/TraverseID"
},
"DistanceMeasurementCapability": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/DistanceMeasurementCapability"
},
"CrossheadAccelerationSetPoint": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadAccelerationSetPoint"
},
"CrossheadSpeedSetPoint": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadSpeedSetPoint"
},
"CrossheadAccelerationSetPointValue": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadAccelerationSetPointValue"
},
"CrossheadSpeedSetPointValue": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/CrossheadSpeedSetPointValue"
},
"ForceMeasurement": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ForceMeasurement"
},
"LengthMeasurement": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/LengthMeasurement"
},
"PreLoadSetPointValue": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/PreLoadSetPointValue"
},
"ThicknessMeasurement": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ThicknessMeasurement"
},
"WidthMeasurement": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/WidthMeasurement"
},
"ProjectID": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/ProjectID"
},
"Measurements": {
"uri": "https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/Measurements"
}
}
88 changes: 88 additions & 0 deletions examples/example-map.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
prefixes: {bfo: 'http://purl.obolibrary.org/obo/', brick: 'https://brickschema.org/schema/Brick#',
csvw: 'http://www.w3.org/ns/csvw#', data: 'https://github.com/Mat-O-Lab/CSVToCSVW/raw/main/examples/example-metadata.json/',
dc: 'http://purl.org/dc/elements/1.1/', dcam: 'http://purl.org/dc/dcam/', dcat: 'http://www.w3.org/ns/dcat#',
dcmitype: 'http://purl.org/dc/dcmitype/', dcterms: 'http://purl.org/dc/terms/',
doap: 'http://usefulinc.com/ns/doap#', foaf: 'http://xmlns.com/foaf/0.1/', geo: 'http://www.opengis.net/ont/geosparql#',
method: 'https://github.com/Mat-O-Lab/MSEO/raw/main/methods/DIN_EN_ISO_527-3.drawio.ttl/',
odrl: 'http://www.w3.org/ns/odrl/2/', org: 'http://www.w3.org/ns/org#', owl: 'http://www.w3.org/2002/07/owl#',
prof: 'http://www.w3.org/ns/dx/prof/', prov: 'http://www.w3.org/ns/prov#', qb: 'http://purl.org/linked-data/cube#',
rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
schema: 'https://schema.org/', sh: 'http://www.w3.org/ns/shacl#', skos: 'http://www.w3.org/2004/02/skos/core#',
sosa: 'http://www.w3.org/ns/sosa/', ssn: 'http://www.w3.org/ns/ssn/', time: 'http://www.w3.org/2006/time#',
vann: 'http://purl.org/vocab/vann/', void: 'http://rdfs.org/ns/void#', wgs: 'https://www.w3.org/2003/01/geo/wgs84_pos#',
xml: 'http://www.w3.org/XML/1998/namespace', xsd: 'http://www.w3.org/2001/XMLSchema#'}
base: http://purl.matolab.org/mseo/mappings/
sources:
data_entities: {access: 'https://github.com/Mat-O-Lab/CSVToCSVW/raw/main/examples/example-metadata.json',
iterator: '$..[*]', referenceFormulation: jsonpath}
mappings:
SpecimenID:
sources: [data_entities]
s: data:$(@id)
condition:
function: equal
parameters:
- [str1, $(label)]
- [str2, aktuelle Probe]
po:
- ['bfo:RO_0010002', 'method:SpecimenID~iri']
WidthMeasurement:
sources: [data_entities]
s: data:$(@id)
condition:
function: equal
parameters:
- [str1, $(label)]
- [str2, Probenbreite b0]
po:
- ['bfo:RO_0010002', 'method:WidthMeasurement~iri']
ThicknessMeasurement:
sources: [data_entities]
s: data:$(@id)
condition:
function: equal
parameters:
- [str1, $(label)]
- [str2, Probendicke a0]
po:
- ['bfo:RO_0010002', 'method:ThicknessMeasurement~iri']
ForceMeasurement:
sources: [data_entities]
s: data:$(@id)
condition:
function: equal
parameters:
- [str1, $(name)]
- [str2, Standardkraft]
po:
- ['bfo:RO_0010002', 'method:ForceMeasurement~iri']
LengthMeasurement:
sources: [data_entities]
s: data:$(@id)
condition:
function: equal
parameters:
- [str1, $(name)]
- [str2, Standardweg]
po:
- ['bfo:RO_0010002', 'method:LengthMeasurement~iri']
CrossheadSpeedSetPointValue:
sources: [data_entities]
s: data:$(@id)
condition:
function: equal
parameters:
- [str1, $(label)]
- [str2, Prüfgeschwindigkeit]
po:
- ['bfo:RO_0010002', 'method:CrossheadSpeedSetPointValue~iri']
PreLoadSetPointValue:
sources: [data_entities]
s: data:$(@id)
condition:
function: equal
parameters:
- [str1, $(label)]
- [str2, Vorkraft]
po:
- ['bfo:RO_0010002', 'method:PreLoadSetPointValue~iri']

0 comments on commit 898ba67

Please sign in to comment.