-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb9aed1
commit 86c11e3
Showing
5 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
<achievement:architecture/DandP/ArchDesign> <http://dcm.org/achievement/path> "architecture/DandP/ArchDesign". | ||
<achievement:architecture/DandP/ArchDesign> <http://dcm.org/achievement/level> "2". | ||
<achievement:architecture/DandP/ArchDesign> <http://dcm.org/achievement/score> "75.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/DandP/ArchDesign> <http://dcm.org/achievement/dateAssessed> "2023-06-15"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/DandP/UrbanPlanning> <http://dcm.org/achievement/path> "architecture/DandP/UrbanPlanning". | ||
<achievement:architecture/DandP/UrbanPlanning> <http://dcm.org/achievement/level> "1". | ||
<achievement:architecture/DandP/UrbanPlanning> <http://dcm.org/achievement/score> "60.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/DandP/UrbanPlanning> <http://dcm.org/achievement/dateAssessed> "2023-06-12"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/DandP/BuildCodes> <http://dcm.org/achievement/path> "architecture/DandP/BuildCodes". | ||
<achievement:architecture/DandP/BuildCodes> <http://dcm.org/achievement/level> "1". | ||
<achievement:architecture/DandP/BuildCodes> <http://dcm.org/achievement/score> "50.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/DandP/BuildCodes> <http://dcm.org/achievement/dateAssessed> "2023-06-10"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/DandP/SustainDesign> <http://dcm.org/achievement/path> "architecture/DandP/SustainDesign". | ||
<achievement:architecture/DandP/SustainDesign> <http://dcm.org/achievement/level> "2". | ||
<achievement:architecture/DandP/SustainDesign> <http://dcm.org/achievement/score> "80.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/DandP/SustainDesign> <http://dcm.org/achievement/dateAssessed> "2023-06-18"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/TandC/StructEng> <http://dcm.org/achievement/path> "architecture/TandC/StructEng". | ||
<achievement:architecture/TandC/StructEng> <http://dcm.org/achievement/level> "1". | ||
<achievement:architecture/TandC/StructEng> <http://dcm.org/achievement/score> "65.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/TandC/StructEng> <http://dcm.org/achievement/dateAssessed> "2023-06-11"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/TandC/BuildTech> <http://dcm.org/achievement/path> "architecture/TandC/BuildTech". | ||
<achievement:architecture/TandC/BuildTech> <http://dcm.org/achievement/level> "2". | ||
<achievement:architecture/TandC/BuildTech> <http://dcm.org/achievement/score> "70.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/TandC/BuildTech> <http://dcm.org/achievement/dateAssessed> "2023-06-14"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/PMandA/ProjMan> <http://dcm.org/achievement/path> "architecture/PMandA/ProjMan". | ||
<achievement:architecture/PMandA/ProjMan> <http://dcm.org/achievement/level> "1". | ||
<achievement:architecture/PMandA/ProjMan> <http://dcm.org/achievement/score> "55.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/PMandA/ProjMan> <http://dcm.org/achievement/dateAssessed> "2023-06-09"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/PMandA/CostEst> <http://dcm.org/achievement/path> "architecture/PMandA/CostEst". | ||
<achievement:architecture/PMandA/CostEst> <http://dcm.org/achievement/level> "1". | ||
<achievement:architecture/PMandA/CostEst> <http://dcm.org/achievement/score> "50.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/PMandA/CostEst> <http://dcm.org/achievement/dateAssessed> "2023-06-09"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/PCandC/InterpSkills> <http://dcm.org/achievement/path> "architecture/PCandC/InterpSkills". | ||
<achievement:architecture/PCandC/InterpSkills> <http://dcm.org/achievement/level> "2". | ||
<achievement:architecture/PCandC/InterpSkills> <http://dcm.org/achievement/score> "85.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/PCandC/InterpSkills> <http://dcm.org/achievement/dateAssessed> "2023-06-20"^^<http://www.w3.org/2001/XMLSchema#date>. | ||
<achievement:architecture/PCandC/TeamCollab> <http://dcm.org/achievement/path> "architecture/PCandC/TeamCollab". | ||
<achievement:architecture/PCandC/TeamCollab> <http://dcm.org/achievement/level> "1". | ||
<achievement:architecture/PCandC/TeamCollab> <http://dcm.org/achievement/score> "70.0"^^<http://www.w3.org/2001/XMLSchema#float>. | ||
<achievement:architecture/PCandC/TeamCollab> <http://dcm.org/achievement/dateAssessed> "2023-06-17"^^<http://www.w3.org/2001/XMLSchema#date>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SDM-RDFizer example | ||
# WF 2024-01-19 | ||
# | ||
# to use this mapping file install RDFizer | ||
# | ||
# pip install rdfizer | ||
# | ||
# and then run | ||
# rdfizer -c config.ini | ||
# For more information on SDM-RDFizer and its usage, visit: https://pypi.org/project/rdfizer/ | ||
[default] | ||
main_directory: . | ||
|
||
[datasets] | ||
number_of_datasets: 1 | ||
output_folder: ${default:main_directory} | ||
remove_duplicate: yes | ||
all_in_one_file: no | ||
name: achievements | ||
enrichment: yes | ||
ordered: yes | ||
output_format: turtle | ||
|
||
[dataset1] | ||
name: achievements | ||
mapping: ${default:main_directory}/mapping.ttl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# SDM-RDFizer example | ||
# WF 2024-01-19 | ||
# | ||
# to use this mapping file install RDFizer | ||
# | ||
# pip install rdfizer | ||
# | ||
# and then run | ||
# rdfizer -c mapping.yml | ||
# For more information on SDM-RDFizer and its usage, visit: https://pypi.org/project/rdfizer/ | ||
# Prefixes declaration | ||
@prefix rr: <http://www.w3.org/ns/r2rml#>. | ||
@prefix rml: <http://semweb.mmlab.be/ns/rml#>. | ||
@prefix ql: <http://semweb.mmlab.be/ns/ql#>. | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | ||
@prefix learner: <http://dcm.org/learner/>. | ||
@prefix achievement: <http://dcm.org/achievement/>. | ||
|
||
<#LearnerMap> a rr:TriplesMap; | ||
rml:logicalSource [ | ||
rml:source "../dcm_examples/arch_student_123.json"; | ||
rml:referenceFormulation ql:JSONPath; | ||
]; | ||
|
||
rr:subjectMap [ | ||
rr:template "learner:{learner_id}" | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate learner:hasAchievement; | ||
rr:objectMap [ | ||
rr:parentTriplesMap <#AchievementMap>; | ||
rr:joinCondition [ | ||
rr:child "learner_id"; | ||
rr:parent "learner_id"; | ||
]; | ||
]; | ||
]. | ||
|
||
<#AchievementMap> a rr:TriplesMap; | ||
rml:logicalSource [ | ||
rml:source "../dcm_examples/arch_student_123.json"; | ||
rml:referenceFormulation ql:JSONPath; | ||
rml:iterator "$.achievements[*]" | ||
]; | ||
|
||
rr:subjectMap [ | ||
rr:template "achievement:{path}" | ||
]; | ||
|
||
# Mapping for 'path' attribute | ||
rr:predicateObjectMap [ | ||
rr:predicate achievement:path; | ||
rr:objectMap [ | ||
rml:reference "path" | ||
]; | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate achievement:level; | ||
rr:objectMap [ | ||
rml:reference "level" | ||
]; | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate achievement:score; | ||
rr:objectMap [ | ||
rml:reference "score"; | ||
rr:datatype xsd:float | ||
]; | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate achievement:dateAssessed; | ||
rr:objectMap [ | ||
rml:reference "date_assessed_iso"; | ||
rr:datatype xsd:date | ||
]; | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# SDM-RDFizer example | ||
# WF 2024-01-19 | ||
# | ||
# to use this mapping file install RDFizer | ||
# | ||
# pip install rdfizer | ||
# | ||
# and then run | ||
# rdfizer -c config.ini | ||
# For more information on SDM-RDFizer and its usage, visit: https://pypi.org/project/rdfizer/ | ||
# Prefixes declaration | ||
@prefix rr: <http://www.w3.org/ns/r2rml#> . | ||
@prefix rml: <http://semweb.mmlab.be/ns/rml#> . | ||
@prefix ql: <http://semweb.mmlab.be/ns/ql#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix learner: <http://dcm.org/learner/> . | ||
@prefix achievement: <http://dcm.org/achievement/> . | ||
|
||
# Mapping for the learner | ||
<LearnerMap> | ||
a rr:TriplesMap; | ||
rml:logicalSource [ | ||
rml:source "../dcm_examples/arch_student_123.json"; | ||
rml:referenceFormulation ql:JSONPath; | ||
rml:iterator "$" | ||
]; | ||
rr:subjectMap [ | ||
rr:template "learner:{learner_id}" | ||
]; | ||
rr:predicateObjectMap [ | ||
rr:predicate learner:hasAchievement; | ||
rr:objectMap [ | ||
rr:parentTriplesMap <AchievementMap>; | ||
rr:joinCondition [ | ||
rr:child "learner_id"; | ||
rr:parent "learner_id"; | ||
]; | ||
]; | ||
]. | ||
|
||
# Mapping for achievements | ||
<AchievementMap> | ||
a rr:TriplesMap; | ||
rml:logicalSource [ | ||
rml:source "../dcm_examples/arch_student_123.json"; | ||
rml:referenceFormulation ql:JSONPath; | ||
rml:iterator "$.achievements[*]" | ||
]; | ||
rr:subjectMap [ | ||
rr:template "achievement:{path}" | ||
]; | ||
rr:predicateObjectMap [ | ||
rr:predicate achievement:level; | ||
rr:objectMap [ rr:constant "{level}" ]; | ||
]; | ||
rr:predicateObjectMap [ | ||
rr:predicate achievement:score; | ||
rr:objectMap [ rr:datatype xsd:float; rr:constant "{score}" ]; | ||
]; | ||
rr:predicateObjectMap [ | ||
rr:predicate achievement:dateAssessed; | ||
rr:objectMap [ rr:datatype xsd:date; rr:constant "{date_assessed_iso}" ]; | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
# WF 2024-01-19 | ||
rdfizer -c config.ini |